!function(G){function webpackJsonpCallback(Z){for(var se,ce,fe=Z[0],ge=Z[1],Ce=Z[2],Se=0,Me=[];Se1)throw new MultiDisposeError(Z);return Array.isArray(G)?[]:G}if(G)return G.dispose(),G}function combinedDisposable(...G){const Z=toDisposable(()=>dispose(G));return function setParentOfDisposables(G,Z){if(ce)for(const ne of G)ce.setParent(ne,Z)}(G,Z),Z}function toDisposable(G){const Z=trackDisposable({dispose:Object(ie.a)(()=>{markAsDisposed(Z),G()})});return Z}class DisposableStore{constructor(){this._toDispose=new Set,this._isDisposed=!1,trackDisposable(this)}dispose(){this._isDisposed||(markAsDisposed(this),this._isDisposed=!0,this.clear())}clear(){try{dispose(this._toDispose.values())}finally{this._toDispose.clear()}}add(G){if(!G)return G;if(G===this)throw new Error("Cannot register a disposable on itself!");return setParentOfDisposable(G,this),this._isDisposed?DisposableStore.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(G),G}}DisposableStore.DISABLE_DISPOSED_WARNING=!1;class Disposable{constructor(){this._store=new DisposableStore,trackDisposable(this),setParentOfDisposable(this._store,this)}dispose(){markAsDisposed(this),this._store.dispose()}_register(G){if(G===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(G)}}Disposable.None=Object.freeze({dispose(){}});class MutableDisposable{constructor(){this._isDisposed=!1,trackDisposable(this)}get value(){return this._isDisposed?void 0:this._value}set value(G){var Z;this._isDisposed||G===this._value||(null===(Z=this._value)||void 0===Z||Z.dispose(),G&&setParentOfDisposable(G,this),this._value=G)}clear(){this.value=void 0}dispose(){var G;this._isDisposed=!0,markAsDisposed(this),null===(G=this._value)||void 0===G||G.dispose(),this._value=void 0}clearAndLeak(){const G=this._value;return this._value=void 0,G&&setParentOfDisposable(G,null),G}}class ImmortalReference{constructor(G){this.object=G}dispose(){}}},1001:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return De})),ne.d(Z,"a",(function(){return CommonEditorConfiguration})),ne.d(Z,"d",(function(){return isEditorConfigurationKey})),ne.d(Z,"c",(function(){return isDiffEditorConfigurationKey}));var ie=ne(4),se=ne(19),ce=ne(10),fe=ne(166),me=ne(69),ge=ne(109),Ce=ne(648),Se=ne(1002),Me=ne(608),ke=ne(180),xe=ne(2104);const De=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new se.b,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(G){this._tabFocus!==G&&(this._tabFocus=G,this._onDidChangeTabFocus.fire(this._tabFocus))}},Ie=Object.hasOwnProperty;class ComputedEditorOptions{constructor(){this._values=[]}_read(G){return this._values[G]}get(G){return this._values[G]}_write(G,Z){this._values[G]=Z}}class RawEditorOptions{constructor(){this._values=[]}_read(G){return this._values[G]}_write(G,Z){this._values[G]=Z}}class EditorConfiguration2{static readOptions(G){const Z=G,ne=new RawEditorOptions;for(const G of ge.l){const ie="_never_"===G.name?void 0:Z[G.name];ne._write(G.id,ie)}return ne}static validateOptions(G){const Z=new ge.j;for(const ne of ge.l)Z._write(ne.id,ne.validate(G._read(ne.id)));return Z}static computeOptions(G,Z){const ne=new ComputedEditorOptions;for(const ie of ge.l)ne._write(ie.id,ie.compute(Z,ne,G._read(ie.id)));return ne}static _deepEquals(G,Z){if("object"!=typeof G||"object"!=typeof Z)return G===Z;if(Array.isArray(G)||Array.isArray(Z))return!(!Array.isArray(G)||!Array.isArray(Z))&&me.h(G,Z);for(let ne in G)if(!EditorConfiguration2._deepEquals(G[ne],Z[ne]))return!1;return!0}static checkEquals(G,Z){const ne=[];let ie=!1;for(const se of ge.l){const ce=!EditorConfiguration2._deepEquals(G._read(se.id),Z._read(se.id));ne[se.id]=ce,ce&&(ie=!0)}return ie?new ge.b(ne):null}}function deepCloneAndMigrateOptions(G){const Z=fe.b(G);return function migrateOptions(G){const Z=G.wordWrap;!0===Z?G.wordWrap="on":!1===Z&&(G.wordWrap="off");const ne=G.lineNumbers;!0===ne?G.lineNumbers="on":!1===ne&&(G.lineNumbers="off"),!1===G.autoClosingBrackets&&(G.autoClosingBrackets="never",G.autoClosingQuotes="never",G.autoSurround="never"),"visible"===G.cursorBlinking&&(G.cursorBlinking="solid");const ie=G.renderWhitespace;!0===ie?G.renderWhitespace="boundary":!1===ie&&(G.renderWhitespace="none");const se=G.renderLineHighlight;!0===se?G.renderLineHighlight="line":!1===se&&(G.renderLineHighlight="none");const ce=G.acceptSuggestionOnEnter;!0===ce?G.acceptSuggestionOnEnter="on":!1===ce&&(G.acceptSuggestionOnEnter="off");const fe=G.tabCompletion;!1===fe?G.tabCompletion="off":!0===fe&&(G.tabCompletion="onlySnippets");const me=G.suggest;if(me&&"object"==typeof me.filteredTypes&&me.filteredTypes){const G={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(xe.b)(G,G=>{const Z=me.filteredTypes[G.key];!1===Z&&(me[G.value]=Z)})}const ge=G.hover;!0===ge?G.hover={enabled:!0}:!1===ge&&(G.hover={enabled:!1});const Ce=G.parameterHints;!0===Ce?G.parameterHints={enabled:!0}:!1===Ce&&(G.parameterHints={enabled:!1});const Se=G.autoIndent;!0===Se?G.autoIndent="full":!1===Se&&(G.autoIndent="advanced");const Me=G.matchBrackets;!0===Me?G.matchBrackets="always":!1===Me&&(G.matchBrackets="never")}(Z),Z}class CommonEditorConfiguration extends ce.a{constructor(G,Z){super(),this._onDidChange=this._register(new se.b),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new se.b),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=G,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new ge.a,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=deepCloneAndMigrateOptions(Z),this._readOptions=EditorConfiguration2.readOptions(this._rawOptions),this._validatedOptions=EditorConfiguration2.validateOptions(this._readOptions),this._register(Ce.a.onDidChangeZoomLevel(G=>this._recomputeOptions())),this._register(De.onDidChangeTabFocus(G=>this._recomputeOptions()))}observeReferenceElement(G){}updatePixelRatio(){}_recomputeOptions(){const G=this.options,Z=this._computeInternalOptions();if(G){const ne=EditorConfiguration2.checkEquals(G,Z);if(null===ne)return;this.options=Z,this._onDidChangeFast.fire(ne),this._onDidChange.fire(ne)}else this.options=Z}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const G=this._getEnvConfiguration(),Z=Se.a.createFromValidatedSettings(this._validatedOptions,G.zoomLevel,G.pixelRatio,this.isSimpleWidget),ne={memory:this._computeOptionsMemory,outerWidth:G.outerWidth,outerHeight:G.outerHeight,fontInfo:this.readConfiguration(Z),extraEditorClassName:G.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:G.emptySelectionClipboard,pixelRatio:G.pixelRatio,tabFocusMode:De.getTabFocusMode(),accessibilitySupport:G.accessibilitySupport};return EditorConfiguration2.computeOptions(this._validatedOptions,ne)}static _subsetEquals(G,Z){for(const ne in Z)if(Ie.call(Z,ne)){const ie=Z[ne],se=G[ne];if(se===ie)continue;if(Array.isArray(se)&&Array.isArray(ie)){if(!me.h(se,ie))return!1;continue}if(se&&"object"==typeof se&&ie&&"object"==typeof ie){if(!this._subsetEquals(se,ie))return!1;continue}return!1}return!0}updateOptions(G){if(void 0===G)return;const Z=deepCloneAndMigrateOptions(G);CommonEditorConfiguration._subsetEquals(this._rawOptions,Z)||(this._rawOptions=fe.f(this._rawOptions,Z||{}),this._readOptions=EditorConfiguration2.readOptions(this._rawOptions),this._validatedOptions=EditorConfiguration2.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(G){this._isDominatedByLongLines=G,this._recomputeOptions()}setMaxLineNumber(G){const Z=CommonEditorConfiguration._digitCount(G);this._lineNumbersDigitCount!==Z&&(this._lineNumbersDigitCount=Z,this._recomputeOptions())}setViewLineCount(G){this._viewLineCount!==G&&(this._viewLineCount=G,this._recomputeOptions())}static _digitCount(G){let Z=0;for(;G;)G=Math.floor(G/10),Z++;return Z||1}}const Re=Object.freeze({id:"editor",order:5,type:"object",title:ie.a("editorConfigurationTitle","Editor"),scope:5}),ze=ke.a.as(Me.a.Configuration),$e=Object.assign(Object.assign({},Re),{properties:{"editor.tabSize":{type:"number",default:ge.d.tabSize,minimum:1,markdownDescription:ie.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ge.d.insertSpaces,markdownDescription:ie.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ge.d.detectIndentation,markdownDescription:ie.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ge.d.trimAutoWhitespace,description:ie.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ge.d.largeFileOptimizations,description:ie.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:ie.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[ie.a("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),ie.a("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),ie.a("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:ie.a("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[ie.a("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),ie.a("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),ie.a("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:ie.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:ie.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:ie.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:ie.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:ie.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:ie.a("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:ie.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:ie.a("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[ie.a("wordWrap.off","Lines will never wrap."),ie.a("wordWrap.on","Lines will wrap at the viewport width."),ie.a("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const G of ge.l){const Z=G.schema;if(void 0!==Z)if(void 0!==(Je=Z).type||void 0!==Je.anyOf)$e.properties["editor."+G.name]=Z;else for(let G in Z)Ie.call(Z,G)&&($e.properties[G]=Z[G])}var Je;let it=null;function getEditorConfigurationKeys(){return null===it&&(it=Object.create(null),Object.keys($e.properties).forEach(G=>{it[G]=!0})),it}function isEditorConfigurationKey(G){return getEditorConfigurationKeys()["editor."+G]||!1}function isDiffEditorConfigurationKey(G){return getEditorConfigurationKeys()["diffEditor."+G]||!1}ze.registerConfiguration($e)},1002:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return BareFontInfo})),ne.d(Z,"b",(function(){return FontInfo}));var ie=ne(46),se=ne(648);const ce=ie.f?1.5:1.35;class BareFontInfo{constructor(G){this._bareFontInfoBrand=void 0,this.zoomLevel=G.zoomLevel,this.pixelRatio=G.pixelRatio,this.fontFamily=String(G.fontFamily),this.fontWeight=String(G.fontWeight),this.fontSize=G.fontSize,this.fontFeatureSettings=G.fontFeatureSettings,this.lineHeight=0|G.lineHeight,this.letterSpacing=G.letterSpacing}static createFromValidatedSettings(G,Z,ne,ie){const se=G.get(40),ce=G.get(44),fe=G.get(43),me=G.get(42),ge=G.get(57),Ce=G.get(54);return BareFontInfo._create(se,ce,fe,me,ge,Ce,Z,ne,ie)}static _create(G,Z,ne,ie,fe,me,ge,Ce,Se){0===fe?fe=ce*ne:fe<8&&(fe*=ne),(fe=Math.round(fe))<8&&(fe=8);const Me=1+(Se?0:.1*se.a.getZoomLevel());return new BareFontInfo({zoomLevel:ge,pixelRatio:Ce,fontFamily:G,fontWeight:Z,fontSize:ne*=Me,fontFeatureSettings:ie,lineHeight:fe*=Me,letterSpacing:me})}getId(){return this.zoomLevel+"-"+this.pixelRatio+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class FontInfo extends BareFontInfo{constructor(G,Z){super(G),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=Z,this.isMonospace=G.isMonospace,this.typicalHalfwidthCharacterWidth=G.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=G.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=G.canUseHalfwidthRightwardsArrow,this.spaceWidth=G.spaceWidth,this.middotWidth=G.middotWidth,this.wsmiddotWidth=G.wsmiddotWidth,this.maxDigitWidth=G.maxDigitWidth}equals(G){return this.fontFamily===G.fontFamily&&this.fontWeight===G.fontWeight&&this.fontSize===G.fontSize&&this.fontFeatureSettings===G.fontFeatureSettings&&this.lineHeight===G.lineHeight&&this.letterSpacing===G.letterSpacing&&this.typicalHalfwidthCharacterWidth===G.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===G.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===G.canUseHalfwidthRightwardsArrow&&this.spaceWidth===G.spaceWidth&&this.middotWidth===G.middotWidth&&this.wsmiddotWidth===G.wsmiddotWidth&&this.maxDigitWidth===G.maxDigitWidth}}},1003:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"SnippetController2",(function(){return De}));var ie=ne(10),se=ne(14),ce=ne(12),fe=ne(80),me=ne(23),ge=ne(134),Ce=ne(26),Se=ne(352),Me=ne(2114),ke=ne(4),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const xe={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let De=class SnippetController2{constructor(G,Z,ne){this._editor=G,this._logService=Z,this._snippetListener=new ie.b,this._modelVersionId=-1,this._inSnippet=SnippetController2.InSnippetMode.bindTo(ne),this._hasNextTabstop=SnippetController2.HasNextTabstop.bindTo(ne),this._hasPrevTabstop=SnippetController2.HasPrevTabstop.bindTo(ne)}static get(G){return G.getContribution(SnippetController2.ID)}dispose(){var G;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(G=this._session)||void 0===G||G.dispose(),this._snippetListener.dispose()}insert(G,Z){try{this._doInsert(G,void 0===Z?xe:Object.assign(Object.assign({},xe),Z))}catch(Z){this.cancel(),this._logService.error(Z),this._logService.error("snippet_error"),this._logService.error("insert_template=",G),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(G,Z){this._editor.hasModel()&&(this._snippetListener.clear(),Z.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(G,Z):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Me.a(this._editor,G,Z),this._session.insert()),Z.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(G=>G.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{choice:G}=this._session;if(G){if(this._currentChoice!==G){this._currentChoice=G,this._editor.setSelections(this._editor.getSelections().map(G=>fe.a.fromPositions(G.getStartPosition())));const[Z]=G.options;Object(ge.f)(this._editor,G.options.map((G,ne)=>({kind:13,label:G.value,insertText:G.value,sortText:"a".repeat(ne+1),range:ce.a.fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,Z.value.length))})))}}else this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(G=!1){var Z;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),null===(Z=this._session)||void 0===Z||Z.dispose(),this._session=void 0,this._modelVersionId=-1,G&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};De.ID="snippetController2",De.InSnippetMode=new Ce.c("inSnippetMode",!1,Object(ke.a)("inSnippetMode","Whether the editor in current in snippet mode")),De.HasNextTabstop=new Ce.c("hasNextTabstop",!1,Object(ke.a)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),De.HasPrevTabstop=new Ce.c("hasPrevTabstop",!1,Object(ke.a)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),De=__decorate([__param(1,Se.b),__param(2,Ce.b)],De),Object(se.l)(De.ID,De);const Ie=se.c.bindToContribution(De.get);Object(se.k)(new Ie({id:"jumpToNextSnippetPlaceholder",precondition:Ce.a.and(De.InSnippetMode,De.HasNextTabstop),handler:G=>G.next(),kbOpts:{weight:130,kbExpr:me.a.editorTextFocus,primary:2}})),Object(se.k)(new Ie({id:"jumpToPrevSnippetPlaceholder",precondition:Ce.a.and(De.InSnippetMode,De.HasPrevTabstop),handler:G=>G.prev(),kbOpts:{weight:130,kbExpr:me.a.editorTextFocus,primary:1026}})),Object(se.k)(new Ie({id:"leaveSnippet",precondition:De.InSnippetMode,handler:G=>G.cancel(!0),kbOpts:{weight:130,kbExpr:me.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(se.k)(new Ie({id:"acceptSnippet",precondition:De.InSnippetMode,handler:G=>G.finish()}))},1005:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ElementsDragAndDropData})),ne.d(Z,"b",(function(){return listView_ListView}));var ie=ne(166),se=ne(10),ce=ne(209),fe=ne(19),me=ne(416),ge=ne(994),Ce=ne(398);function groupIntersect(G,Z){const ne=[];for(let ie of Z){if(G.start>=ie.range.end)continue;if(G.end({range:shift(G.range,ie),size:G.size})),fe=ne.map((Z,ne)=>({range:{start:G+ne,end:G+ne+1},size:Z.size}));this.groups=function concat(...G){return function consolidate(G){const Z=[];let ne=null;for(let ie of G){const G=ie.range.start,se=ie.range.end,ce=ie.size;ne&&ce===ne.size?ne.range.end=se:(ne={range:{start:G,end:se},size:ce},Z.push(ne))}return Z}(G.reduce((G,Z)=>G.concat(Z),[]))}(se,fe,ce),this._size=this.groups.reduce((G,Z)=>G+Z.size*(Z.range.end-Z.range.start),0)}get count(){const G=this.groups.length;return G?this.groups[G-1].range.end:0}get size(){return this._size}indexAt(G){if(G<0)return-1;let Z=0,ne=0;for(let ie of this.groups){const se=ie.range.end-ie.range.start,ce=ne+se*ie.size;if(G{for(const ne of G){this.getRenderer(Z).disposeTemplate(ne.templateData),ne.templateData=null}}),this.cache.clear()}getRenderer(G){const Z=this.renderers.get(G);if(!Z)throw new Error("No renderer found for "+G);return Z}}var Me=ne(287),ke=ne(69),xe=ne(582),De=ne(57),Ie=ne(130),Re=ne(206),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe};const ze={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:G=>[G],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class ElementsDragAndDropData{constructor(G){this.elements=G}update(){}getData(){return this.elements}}class ExternalElementsDragAndDropData{constructor(G){this.elements=G}update(){}getData(){return this.elements}}class NativeDragAndDropData{constructor(){this.types=[],this.files=[]}update(G){if(G.types&&this.types.splice(0,this.types.length,...G.types),G.files){this.files.splice(0,this.files.length);for(let Z=0;Zne,(null==G?void 0:G.getPosInSet)?this.getPosInSet=G.getPosInSet.bind(G):this.getPosInSet=(G,Z)=>Z+1,(null==G?void 0:G.getRole)?this.getRole=G.getRole.bind(G):this.getRole=G=>"listitem",(null==G?void 0:G.isChecked)?this.isChecked=G.isChecked.bind(G):this.isChecked=G=>{}}}class listView_ListView{constructor(G,Z,ne,Ce=ze){if(this.virtualDelegate=Z,this.domId="list_id_"+ ++listView_ListView.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new De.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=se.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=se.a.None,this.onDragLeaveTimeout=se.a.None,this.disposables=new se.b,this._onDidChangeContentHeight=new fe.b,this._horizontalScrolling=!1,Ce.horizontalScrolling&&Ce.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new RangeMap;for(const G of ne)this.renderers.set(G.templateId,G);this.cache=this.disposables.add(new rowCache_RowCache(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof Ce.mouseSupport||Ce.mouseSupport),this._horizontalScrolling=Object(ie.e)(Ce,G=>G.horizontalScrolling,ze.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===Ce.additionalScrollHeight?0:Ce.additionalScrollHeight,this.accessibilityProvider=new ListViewAccessibilityProvider(Ce.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";Object(ie.e)(Ce,G=>G.transformOptimization,ze.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(ce.b.addTarget(this.rowsContainer)),this.scrollable=new ge.a(Object(ie.e)(Ce,G=>G.smoothScrolling,!1)?125:0,G=>Object(Se.V)(G)),this.scrollableElement=this.disposables.add(new me.c(this.rowsContainer,{alwaysConsumeMouseWheel:Object(ie.e)(Ce,G=>G.alwaysConsumeMouseWheel,ze.alwaysConsumeMouseWheel),horizontal:1,vertical:Object(ie.e)(Ce,G=>G.verticalScrollMode,ze.verticalScrollMode),useShadows:Object(ie.e)(Ce,G=>G.useShadows,ze.useShadows),mouseWheelScrollSensitivity:Ce.mouseWheelScrollSensitivity,fastScrollSensitivity:Ce.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),G.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(Object(Se.i)(this.rowsContainer,ce.a.Change,G=>this.onTouchChange(G))),this.disposables.add(Object(Se.i)(this.scrollableElement.getDomNode(),"scroll",G=>G.target.scrollTop=0)),this.disposables.add(Object(Se.i)(this.domNode,"dragover",G=>this.onDragOver(this.toDragEvent(G)))),this.disposables.add(Object(Se.i)(this.domNode,"drop",G=>this.onDrop(this.toDragEvent(G)))),this.disposables.add(Object(Se.i)(this.domNode,"dragleave",G=>this.onDragLeave(this.toDragEvent(G)))),this.disposables.add(Object(Se.i)(this.domNode,"dragend",G=>this.onDragEnd(G))),this.setRowLineHeight=Object(ie.e)(Ce,G=>G.setRowLineHeight,ze.setRowLineHeight),this.setRowHeight=Object(ie.e)(Ce,G=>G.setRowHeight,ze.setRowHeight),this.supportDynamicHeights=Object(ie.e)(Ce,G=>G.supportDynamicHeights,ze.supportDynamicHeights),this.dnd=Object(ie.e)(Ce,G=>G.dnd,ze.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(G){if(G!==this._horizontalScrolling){if(G&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=G,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const G of this.items)this.measureItemWidth(G);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:Object(Se.C)(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(G){void 0!==G.additionalScrollHeight&&(this.additionalScrollHeight=G.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==G.smoothScrolling&&this.scrollable.setSmoothScrollDuration(G.smoothScrolling?125:0),void 0!==G.horizontalScrolling&&(this.horizontalScrolling=G.horizontalScrolling),void 0!==G.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:G.mouseWheelScrollSensitivity}),void 0!==G.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:G.fastScrollSensitivity})}splice(G,Z,ne=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(G,Z,ne)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(G,Z,ne=[]){const ie=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),ce={start:G,end:G+Z},fe=Ce.a.intersect(ie,ce),me=new Map;for(let G=fe.start;G({id:String(this.itemId++),element:G,templateId:this.virtualDelegate.getTemplateId(G),size:this.virtualDelegate.getHeight(G),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(G),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:se.a.None}));let xe;0===G&&Z>=this.items.length?(this.rangeMap=new RangeMap,this.rangeMap.splice(0,0,ke),xe=this.items,this.items=ke):(this.rangeMap.splice(G,Z,ke),xe=this.items.splice(G,Z,...ke));const De=ne.length-Z,Ie=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Re=shift(Se,De),ze=Ce.a.intersect(Ie,Re);for(let G=ze.start;Gshift(G,De)),it=[{start:G,end:G+ne.length},...Je].map(G=>Ce.a.intersect(Ie,G)),ot=this.getNextToLastElement(it);for(const G of it)for(let Z=G.start;ZG.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Object(Se.V)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let G=0;for(const Z of this.items)void 0!==Z.width&&(G=Math.max(G,Z.width));this.scrollWidth=G,this.scrollableElement.setScrollDimensions({scrollWidth:0===G?0:G+10})}rerender(){if(this.supportDynamicHeights){for(const G of this.items)G.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(G){return this.items[G].element}domElement(G){const Z=this.items[G].row;return Z&&Z.domNode}elementHeight(G){return this.items[G].size}elementTop(G){return this.rangeMap.positionAt(G)}indexAt(G){return this.rangeMap.indexAt(G)}indexAfter(G){return this.rangeMap.indexAfter(G)}layout(G,Z){let ne={height:"number"==typeof G?G:Object(Se.B)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,ne.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(ne),void 0!==Z&&(this.renderWidth=Z,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof Z?Z:Object(Se.C)(this.domNode)})}render(G,Z,ne,ie,se,ce=!1){const fe=this.getRenderRange(Z,ne),me=Ce.a.relativeComplement(fe,G),ge=Ce.a.relativeComplement(G,fe),Se=this.getNextToLastElement(me);if(ce){const Z=Ce.a.intersect(G,fe);for(let G=Z.start;Gthis.onDragStart(ie.element,me,G))),this.horizontalScrolling&&(this.measureItemWidth(ie),this.eventuallyUpdateScrollWidth())}measureItemWidth(G){if(!G.row||!G.row.domNode)return;G.row.domNode.style.width=Ie.g?"-moz-fit-content":"fit-content",G.width=Object(Se.C)(G.row.domNode);const Z=window.getComputedStyle(G.row.domNode);Z.paddingLeft&&(G.width+=parseFloat(Z.paddingLeft)),Z.paddingRight&&(G.width+=parseFloat(Z.paddingRight)),G.row.domNode.style.width=""}updateItemInDOM(G,Z){G.row.domNode.style.top=this.elementTop(Z)+"px",this.setRowHeight&&(G.row.domNode.style.height=G.size+"px"),this.setRowLineHeight&&(G.row.domNode.style.lineHeight=G.size+"px"),G.row.domNode.setAttribute("data-index",""+Z),G.row.domNode.setAttribute("data-last-element",Z===this.length-1?"true":"false"),G.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(G.element,Z,this.length))),G.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(G.element,Z))),G.row.domNode.setAttribute("id",this.getElementDomId(Z)),G.row.domNode.classList.toggle("drop-target",G.dropTarget)}removeItemFromDOM(G){const Z=this.items[G];if(Z.dragStartDisposable.dispose(),Z.row){const ne=this.renderers.get(Z.templateId);ne&&ne.disposeElement&&ne.disposeElement(Z.element,G,Z.row.templateData,Z.size),this.cache.release(Z.row),Z.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(G,Z){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:G,reuseAnimation:Z})}get scrollTop(){return this.getScrollTop()}set scrollTop(G){this.setScrollTop(G)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return fe.c.map(this.disposables.add(new Re.a(this.domNode,"click")).event,G=>this.toMouseEvent(G))}get onMouseDblClick(){return fe.c.map(this.disposables.add(new Re.a(this.domNode,"dblclick")).event,G=>this.toMouseEvent(G))}get onMouseMiddleClick(){return fe.c.filter(fe.c.map(this.disposables.add(new Re.a(this.domNode,"auxclick")).event,G=>this.toMouseEvent(G)),G=>1===G.browserEvent.button)}get onMouseDown(){return fe.c.map(this.disposables.add(new Re.a(this.domNode,"mousedown")).event,G=>this.toMouseEvent(G))}get onContextMenu(){return fe.c.any(fe.c.map(this.disposables.add(new Re.a(this.domNode,"contextmenu")).event,G=>this.toMouseEvent(G)),fe.c.map(this.disposables.add(new Re.a(this.domNode,ce.a.Contextmenu)).event,G=>this.toGestureEvent(G)))}get onTouchStart(){return fe.c.map(this.disposables.add(new Re.a(this.domNode,"touchstart")).event,G=>this.toTouchEvent(G))}get onTap(){return fe.c.map(this.disposables.add(new Re.a(this.rowsContainer,ce.a.Tap)).event,G=>this.toGestureEvent(G))}toMouseEvent(G){const Z=this.getItemIndexFromEventTarget(G.target||null),ne=void 0===Z?void 0:this.items[Z];return{browserEvent:G,index:Z,element:ne&&ne.element}}toTouchEvent(G){const Z=this.getItemIndexFromEventTarget(G.target||null),ne=void 0===Z?void 0:this.items[Z];return{browserEvent:G,index:Z,element:ne&&ne.element}}toGestureEvent(G){const Z=this.getItemIndexFromEventTarget(G.initialTarget||null),ne=void 0===Z?void 0:this.items[Z];return{browserEvent:G,index:Z,element:ne&&ne.element}}toDragEvent(G){const Z=this.getItemIndexFromEventTarget(G.target||null),ne=void 0===Z?void 0:this.items[Z];return{browserEvent:G,index:Z,element:ne&&ne.element}}onScroll(G){try{const Z=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(Z,G.scrollTop,G.height,G.scrollLeft,G.scrollWidth),this.supportDynamicHeights&&this._rerender(G.scrollTop,G.height,G.inSmoothScrolling)}catch(Z){throw console.error("Got bad scroll event:",G),Z}}onTouchChange(G){G.preventDefault(),G.stopPropagation(),this.scrollTop-=G.translationY}onDragStart(G,Z,ne){if(!ne.dataTransfer)return;const ie=this.dnd.getDragElements(G);if(ne.dataTransfer.effectAllowed="copyMove",ne.dataTransfer.setData(xe.a.TEXT,Z),ne.dataTransfer.setDragImage){let G;this.dnd.getDragLabel&&(G=this.dnd.getDragLabel(ie,ne)),void 0===G&&(G=String(ie.length));const Z=Object(Se.a)(".monaco-drag-image");Z.textContent=G,document.body.appendChild(Z),ne.dataTransfer.setDragImage(Z,-10,-10),setTimeout(()=>document.body.removeChild(Z),0)}this.currentDragData=new ElementsDragAndDropData(ie),xe.c.CurrentDragAndDropData=new ExternalElementsDragAndDropData(ie),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,ne)}onDragOver(G){if(G.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),xe.c.CurrentDragAndDropData&&"vscode-ui"===xe.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(G.browserEvent),!G.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(xe.c.CurrentDragAndDropData)this.currentDragData=xe.c.CurrentDragAndDropData;else{if(!G.browserEvent.dataTransfer.types)return!1;this.currentDragData=new NativeDragAndDropData}const Z=this.dnd.onDragOver(this.currentDragData,G.element,G.index,G.browserEvent);if(this.canDrop="boolean"==typeof Z?Z:Z.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let ne;if(G.browserEvent.dataTransfer.dropEffect="boolean"!=typeof Z&&0===Z.effect?"copy":"move",ne="boolean"!=typeof Z&&Z.feedback?Z.feedback:void 0===G.index?[-1]:[G.index],ne=Object(ke.f)(ne).filter(G=>G>=-1&&GG-Z),ne=-1===ne[0]?[-1]:ne,function equalsDragFeedback(G,Z){return Array.isArray(G)&&Array.isArray(Z)?Object(ke.h)(G,Z):G===Z}(this.currentDragFeedback,ne))return!0;if(this.currentDragFeedback=ne,this.currentDragFeedbackDisposable.dispose(),-1===ne[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Object(se.i)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const G of ne){const Z=this.items[G];Z.dropTarget=!0,Z.row&&Z.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Object(se.i)(()=>{for(const G of ne){const Z=this.items[G];Z.dropTarget=!1,Z.row&&Z.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(G){var Z,ne;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(De.i)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&(null===(ne=(Z=this.dnd).onDragLeave)||void 0===ne||ne.call(Z,this.currentDragData,G.element,G.index,G.browserEvent))}onDrop(G){if(!this.canDrop)return;const Z=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,xe.c.CurrentDragAndDropData=void 0,Z&&G.browserEvent.dataTransfer&&(G.browserEvent.preventDefault(),Z.update(G.browserEvent.dataTransfer),this.dnd.drop(Z,G.element,G.index,G.browserEvent))}onDragEnd(G){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,xe.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(G)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=se.a.None}setupDragAndDropScrollTopAnimation(G){if(!this.dragOverAnimationDisposable){const G=Object(Se.G)(this.domNode).top;this.dragOverAnimationDisposable=Object(Se.p)(this.animateDragAndDropScrollTop.bind(this,G))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(De.i)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=G.pageY}animateDragAndDropScrollTop(G){if(void 0===this.dragOverMouseY)return;const Z=this.dragOverMouseY-G,ne=this.renderHeight-35;Z<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(Z-35))):Z>ne&&(this.scrollTop+=Math.min(14,Math.floor(.3*(Z-ne))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(G){const Z=this.scrollableElement.getDomNode();let ne=G;for(;ne instanceof HTMLElement&&ne!==this.rowsContainer&&Z.contains(ne);){const G=ne.getAttribute("data-index");if(G){const Z=Number(G);if(!isNaN(Z))return Z}ne=ne.parentElement}}getRenderRange(G,Z){return{start:this.rangeMap.indexAt(G),end:this.rangeMap.indexAfter(G+Z-1)}}_rerender(G,Z,ne){const ie=this.getRenderRange(G,Z);let se,ce;G===this.elementTop(ie.start)?(se=ie.start,ce=0):ie.end-ie.start>1&&(se=ie.start+1,ce=this.elementTop(se)-G);let fe=0;for(;;){const me=this.getRenderRange(G,Z);let ge=!1;for(let G=me.start;GG.range)).length)return;let{range:Z}=G[0];for(let ne=1;neG.provideDocumentRangeFormattingEdits(Z,Z.getFullModelRange(),ne,ie)})}return Z}class format_FormattingConflicts{static setFormatterSelector(G){return{dispose:format_FormattingConflicts._selectors.unshift(G)}}static select(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){if(0===G.length)return;const ie=at.a.first(format_FormattingConflicts._selectors);return ie?yield ie(G,Z,ne):void 0}))}}function formatDocumentRangesWithSelectedProvider(G,Z,ne,ie,se,ce){return __awaiter(this,void 0,void 0,(function*(){const fe=G.get($e.a),me=Object(Ce.b)(Z)?Z.getModel():Z,ge=xe.j.ordered(me),Se=yield format_FormattingConflicts.select(ge,me,ie);Se&&(se.report(Se),yield fe.invokeFunction(formatDocumentRangesWithProvider,Se,Z,ne,ce))}))}function formatDocumentRangesWithProvider(G,Z,ne,ie,ce){return __awaiter(this,void 0,void 0,(function*(){const fe=G.get(De.a);let me,Se;Object(Ce.b)(ne)?(me=ne.getModel(),Se=new ge.b(ne,5,void 0,ce)):(me=ne,Se=new ge.d(ne,ce));let xe=[],Ie=0;for(let G of Object(se.c)(ie).sort(Me.a.compareRangesUsingStarts))Ie>0&&Me.a.areIntersectingOrTouching(xe[Ie-1],G)?xe[Ie-1]=Me.a.fromPositions(xe[Ie-1].getStartPosition(),G.getEndPosition()):Ie=xe.push(G);const computeEdits=G=>__awaiter(this,void 0,void 0,(function*(){return(yield Z.provideDocumentRangeFormattingEdits(me,G,me.getFormattingOptions(),Se.token))||[]})),hasIntersectingEdit=(G,Z)=>{if(!G.length||!Z.length)return!1;const ne=G.reduce((G,Z)=>Me.a.plusRange(G,Z.range),G[0].range);if(!Z.some(G=>Me.a.intersectRanges(ne,G.range)))return!1;for(let ne of G)for(let G of Z)if(Me.a.intersectRanges(ne.range,G.range))return!0;return!1},ze=[],$e=[];try{for(let G of xe){if(Se.token.isCancellationRequested)return!0;$e.push(yield computeEdits(G))}for(let G=0;G({text:G.text,range:Me.a.lift(G.range),forceMoveMarkers:!0})),G=>{for(const{range:ne}of G)if(Me.a.areIntersectingOrTouching(ne,Z))return[new ke.a(ne.startLineNumber,ne.startColumn,ne.endLineNumber,ne.endColumn)];return null})}return!0}))}function formatDocumentWithSelectedProvider(G,Z,ne,ie,se){return __awaiter(this,void 0,void 0,(function*(){const ce=G.get($e.a),fe=Object(Ce.b)(Z)?Z.getModel():Z,me=getRealAndSyntheticDocumentFormattersOrdered(fe),ge=yield format_FormattingConflicts.select(me,fe,ne);ge&&(ie.report(ge),yield ce.invokeFunction(formatDocumentWithProvider,ge,Z,ne,se))}))}function formatDocumentWithProvider(G,Z,ne,ie,se){return __awaiter(this,void 0,void 0,(function*(){const ce=G.get(De.a);let fe,me,Se;Object(Ce.b)(ne)?(fe=ne.getModel(),me=new ge.b(ne,5,void 0,se)):(fe=ne,me=new ge.d(ne,se));try{const G=yield Z.provideDocumentFormattingEdits(fe,fe.getFormattingOptions(),me.token);if(Se=yield ce.computeMoreMinimalEdits(fe.uri,G),me.token.isCancellationRequested)return!0}finally{me.dispose()}if(!Se||0===Se.length)return!1;if(Object(Ce.b)(ne))Re.a.execute(ne,Se,2!==ie),2!==ie&&(alertFormattingEdits(Se),ne.revealPositionInCenterIfOutsideViewport(ne.getPosition(),1));else{const[{range:G}]=Se,Z=new ke.a(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn);fe.pushEditOperations([Z],Se.map(G=>({text:G.text,range:Me.a.lift(G.range),forceMoveMarkers:!0})),G=>{for(const{range:ne}of G)if(Me.a.areIntersectingOrTouching(ne,Z))return[new ke.a(ne.startLineNumber,ne.startColumn,ne.endLineNumber,ne.endColumn)];return null})}return!0}))}function getOnTypeFormattingEdits(G,Z,ne,ie,se){const me=xe.x.ordered(Z);return 0===me.length||me[0].autoFormatTriggerCharacters.indexOf(ie)<0?Promise.resolve(void 0):Promise.resolve(me[0].provideOnTypeFormattingEdits(Z,ne,ie,se,ce.a.None)).catch(fe.f).then(ne=>G.computeMoreMinimalEdits(Z.uri,ne))}format_FormattingConflicts._selectors=new Je.a,it.a.registerCommand("_executeFormatRangeProvider",(function(G,...Z){const[ne,ie,ge]=Z;Object(ot.c)(me.a.isUri(ne)),Object(ot.c)(Me.a.isIRange(ie));const Ce=G.get(Ie.a).getModel(ne);if(!Ce)throw Object(fe.b)("resource");return function getDocumentRangeFormattingEditsUntilResult(G,Z,ne,ie,ce){return __awaiter(this,void 0,void 0,(function*(){const me=xe.j.ordered(Z);for(const ge of me){let me=yield Promise.resolve(ge.provideDocumentRangeFormattingEdits(Z,ne,ie,ce)).catch(fe.f);if(Object(se.n)(me))return yield G.computeMoreMinimalEdits(Z.uri,me)}}))}(G.get(De.a),Ce,Me.a.lift(ie),ge,ce.a.None)})),it.a.registerCommand("_executeFormatDocumentProvider",(function(G,...Z){const[ne,ie]=Z;Object(ot.c)(me.a.isUri(ne));const ge=G.get(Ie.a).getModel(ne);if(!ge)throw Object(fe.b)("resource");return function getDocumentFormattingEditsUntilResult(G,Z,ne,ie){return __awaiter(this,void 0,void 0,(function*(){const ce=getRealAndSyntheticDocumentFormattersOrdered(Z);for(const me of ce){let ce=yield Promise.resolve(me.provideDocumentFormattingEdits(Z,ne,ie)).catch(fe.f);if(Object(se.n)(ce))return yield G.computeMoreMinimalEdits(Z.uri,ce)}}))}(G.get(De.a),ge,ie,ce.a.None)})),it.a.registerCommand("_executeFormatOnTypeProvider",(function(G,...Z){const[ne,ie,se,ce]=Z;Object(ot.c)(me.a.isUri(ne)),Object(ot.c)(Se.a.isIPosition(ie)),Object(ot.c)("string"==typeof se);const ge=G.get(Ie.a).getModel(ne);if(!ge)throw Object(fe.b)("resource");return getOnTypeFormattingEdits(G.get(De.a),ge,Se.a.lift(ie),se,ce)}))},103:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce})),ne.d(Z,"b",(function(){return CancellationTokenSource}));var ie=ne(19);const se=Object.freeze((function(G,Z){const ne=setTimeout(G.bind(Z),0);return{dispose(){clearTimeout(ne)}}}));var ce;!function(G){G.isCancellationToken=function isCancellationToken(Z){return Z===G.None||Z===G.Cancelled||(Z instanceof MutableToken||!(!Z||"object"!=typeof Z)&&("boolean"==typeof Z.isCancellationRequested&&"function"==typeof Z.onCancellationRequested))},G.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:ie.c.None}),G.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:se})}(ce||(ce={}));class MutableToken{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?se:(this._emitter||(this._emitter=new ie.b),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class CancellationTokenSource{constructor(G){this._token=void 0,this._parentListener=void 0,this._parentListener=G&&G.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new MutableToken),this._token}cancel(){this._token?this._token instanceof MutableToken&&this._token.cancel():this._token=ce.Cancelled}dispose(G=!1){G&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof MutableToken&&this._token.dispose():this._token=ce.None}}},108:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CSS",(function(){return Ce})),ne.d(Z,"add",(function(){return me})),ne.d(Z,"canUseDOM",(function(){return se})),ne.d(Z,"findFirstFocusableNode",(function(){return findFirstFocusableNode})),ne.d(Z,"getEventCoordinates",(function(){return getEventCoordinates})),ne.d(Z,"getOwnerDocument",(function(){return getOwnerDocument})),ne.d(Z,"getWindow",(function(){return getWindow})),ne.d(Z,"hasViewportRelativeCoordinates",(function(){return hasViewportRelativeCoordinates})),ne.d(Z,"isDocument",(function(){return isDocument})),ne.d(Z,"isHTMLElement",(function(){return isHTMLElement})),ne.d(Z,"isKeyboardEvent",(function(){return isKeyboardEvent})),ne.d(Z,"isNode",(function(){return isNode})),ne.d(Z,"isSVGElement",(function(){return isSVGElement})),ne.d(Z,"isTouchEvent",(function(){return isTouchEvent})),ne.d(Z,"isWindow",(function(){return isWindow})),ne.d(Z,"subtract",(function(){return ge})),ne.d(Z,"useCombinedRefs",(function(){return useCombinedRefs})),ne.d(Z,"useEvent",(function(){return useEvent})),ne.d(Z,"useInterval",(function(){return useInterval})),ne.d(Z,"useIsomorphicLayoutEffect",(function(){return ce})),ne.d(Z,"useLatestValue",(function(){return useLatestValue})),ne.d(Z,"useLazyMemo",(function(){return useLazyMemo})),ne.d(Z,"useNodeRef",(function(){return useNodeRef})),ne.d(Z,"usePrevious",(function(){return usePrevious})),ne.d(Z,"useUniqueId",(function(){return useUniqueId}));var ie=ne(0);function useCombinedRefs(){for(var G=arguments.length,Z=new Array(G),ne=0;neG=>{Z.forEach(Z=>Z(G))},Z)}const se="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function isWindow(G){const Z=Object.prototype.toString.call(G);return"[object Window]"===Z||"[object global]"===Z}function isNode(G){return"nodeType"in G}function getWindow(G){var Z,ne;return G?isWindow(G)?G:isNode(G)&&null!=(Z=null==(ne=G.ownerDocument)?void 0:ne.defaultView)?Z:window:window}function isDocument(G){const{Document:Z}=getWindow(G);return G instanceof Z}function isHTMLElement(G){return!isWindow(G)&&G instanceof getWindow(G).HTMLElement}function isSVGElement(G){return G instanceof getWindow(G).SVGElement}function getOwnerDocument(G){return G?isWindow(G)?G.document:isNode(G)?isDocument(G)?G:isHTMLElement(G)?G.ownerDocument:document:document:document}const ce=se?ie.useLayoutEffect:ie.useEffect;function useEvent(G){const Z=Object(ie.useRef)(G);return ce(()=>{Z.current=G}),Object(ie.useCallback)((function(){for(var G=arguments.length,ne=new Array(G),ie=0;ie{G.current=setInterval(Z,ne)},[]),Object(ie.useCallback)(()=>{null!==G.current&&(clearInterval(G.current),G.current=null)},[])]}function useLatestValue(G,Z){void 0===Z&&(Z=[G]);const ne=Object(ie.useRef)(G);return ce(()=>{ne.current!==G&&(ne.current=G)},Z),ne}function useLazyMemo(G,Z){const ne=Object(ie.useRef)();return Object(ie.useMemo)(()=>{const Z=G(ne.current);return ne.current=Z,Z},[...Z])}function useNodeRef(G){const Z=useEvent(G),ne=Object(ie.useRef)(null),se=Object(ie.useCallback)(G=>{G!==ne.current&&(null==Z||Z(G,ne.current)),ne.current=G},[]);return[ne,se]}function usePrevious(G){const Z=Object(ie.useRef)();return Object(ie.useEffect)(()=>{Z.current=G},[G]),Z.current}let fe={};function useUniqueId(G,Z){return Object(ie.useMemo)(()=>{if(Z)return Z;const ne=null==fe[G]?0:fe[G]+1;return fe[G]=ne,G+"-"+ne},[G,Z])}function createAdjustmentFn(G){return function(Z){for(var ne=arguments.length,ie=new Array(ne>1?ne-1:0),se=1;se{const ie=Object.entries(ne);for(const[ne,se]of ie){const ie=Z[ne];null!=ie&&(Z[ne]=ie+G*se)}return Z},{...Z})}}const me=createAdjustmentFn(1),ge=createAdjustmentFn(-1);function hasViewportRelativeCoordinates(G){return"clientX"in G&&"clientY"in G}function isKeyboardEvent(G){if(!G)return!1;const{KeyboardEvent:Z}=getWindow(G.target);return Z&&G instanceof Z}function isTouchEvent(G){if(!G)return!1;const{TouchEvent:Z}=getWindow(G.target);return Z&&G instanceof Z}function getEventCoordinates(G){if(isTouchEvent(G)){if(G.touches&&G.touches.length){const{clientX:Z,clientY:ne}=G.touches[0];return{x:Z,y:ne}}if(G.changedTouches&&G.changedTouches.length){const{clientX:Z,clientY:ne}=G.changedTouches[0];return{x:Z,y:ne}}}return hasViewportRelativeCoordinates(G)?{x:G.clientX,y:G.clientY}:null}const Ce=Object.freeze({Translate:{toString(G){if(!G)return;const{x:Z,y:ne}=G;return"translate3d("+(Z?Math.round(Z):0)+"px, "+(ne?Math.round(ne):0)+"px, 0)"}},Scale:{toString(G){if(!G)return;const{scaleX:Z,scaleY:ne}=G;return"scaleX("+Z+") scaleY("+ne+")"}},Transform:{toString(G){if(G)return[Ce.Translate.toString(G),Ce.Scale.toString(G)].join(" ")}},Transition:{toString(G){let{property:Z,duration:ne,easing:ie}=G;return Z+" "+ne+"ms "+ie}}}),Se="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function findFirstFocusableNode(G){return G.matches(Se)?G:G.querySelector(Se)}},109:function(G,Z,ne){"use strict";ne.d(Z,"h",(function(){return fe})),ne.d(Z,"b",(function(){return ConfigurationChangedEvent})),ne.d(Z,"j",(function(){return ValidatedEditorOptions})),ne.d(Z,"a",(function(){return ComputeOptionsMemory})),ne.d(Z,"k",(function(){return boolean})),ne.d(Z,"n",(function(){return stringSet})),ne.d(Z,"i",(function(){return me})),ne.d(Z,"e",(function(){return EditorFontLigatures})),ne.d(Z,"f",(function(){return EditorLayoutInfoComputer})),ne.d(Z,"m",(function(){return filterValidationDecorations})),ne.d(Z,"c",(function(){return ge})),ne.d(Z,"d",(function(){return Ce})),ne.d(Z,"l",(function(){return Se})),ne.d(Z,"g",(function(){return Me}));var ie=ne(4),se=ne(46),ce=ne(705);const fe=8;class ConfigurationChangedEvent{constructor(G){this._values=G}hasChanged(G){return this._values[G]}}class ValidatedEditorOptions{constructor(){this._values=[]}_read(G){return this._values[G]}get(G){return this._values[G]}_write(G,Z){this._values[G]=Z}}class ComputeOptionsMemory{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class BaseEditorOption{constructor(G,Z,ne,ie){this.id=G,this.name=Z,this.defaultValue=ne,this.schema=ie}compute(G,Z,ne){return ne}}class ComputedEditorOption{constructor(G,Z=null){this.schema=void 0,this.id=G,this.name="_never_",this.defaultValue=void 0,this.deps=Z}validate(G){return this.defaultValue}}class SimpleEditorOption{constructor(G,Z,ne,ie){this.id=G,this.name=Z,this.defaultValue=ne,this.schema=ie}validate(G){return void 0===G?this.defaultValue:G}compute(G,Z,ne){return ne}}function boolean(G,Z){return void 0===G?Z:"false"!==G&&Boolean(G)}class EditorBooleanOption extends SimpleEditorOption{constructor(G,Z,ne,ie){void 0!==ie&&(ie.type="boolean",ie.default=ne),super(G,Z,ne,ie)}validate(G){return boolean(G,this.defaultValue)}}class EditorIntOption extends SimpleEditorOption{constructor(G,Z,ne,ie,se,ce){void 0!==ce&&(ce.type="integer",ce.default=ne,ce.minimum=ie,ce.maximum=se),super(G,Z,ne,ce),this.minimum=ie,this.maximum=se}static clampedInt(G,Z,ne,ie){if(void 0===G)return Z;let se=parseInt(G,10);return isNaN(se)?Z:(se=Math.max(ne,se),se=Math.min(ie,se),0|se)}validate(G){return EditorIntOption.clampedInt(G,this.defaultValue,this.minimum,this.maximum)}}class EditorFloatOption extends SimpleEditorOption{constructor(G,Z,ne,ie,se){void 0!==se&&(se.type="number",se.default=ne),super(G,Z,ne,se),this.validationFn=ie}static clamp(G,Z,ne){return Gne?ne:G}static float(G,Z){if("number"==typeof G)return G;if(void 0===G)return Z;const ne=parseFloat(G);return isNaN(ne)?Z:ne}validate(G){return this.validationFn(EditorFloatOption.float(G,this.defaultValue))}}class EditorStringOption extends SimpleEditorOption{static string(G,Z){return"string"!=typeof G?Z:G}constructor(G,Z,ne,ie){void 0!==ie&&(ie.type="string",ie.default=ne),super(G,Z,ne,ie)}validate(G){return EditorStringOption.string(G,this.defaultValue)}}function stringSet(G,Z,ne){return"string"!=typeof G||-1===ne.indexOf(G)?Z:G}class EditorStringEnumOption extends SimpleEditorOption{constructor(G,Z,ne,ie,se){void 0!==se&&(se.type="string",se.enum=ie,se.default=ne),super(G,Z,ne,se),this._allowedValues=ie}validate(G){return stringSet(G,this.defaultValue,this._allowedValues)}}class EditorEnumOption extends BaseEditorOption{constructor(G,Z,ne,ie,se,ce,fe){void 0!==fe&&(fe.type="string",fe.enum=se,fe.default=ie),super(G,Z,ne,fe),this._allowedValues=se,this._convert=ce}validate(G){return"string"!=typeof G||-1===this._allowedValues.indexOf(G)?this.defaultValue:this._convert(G)}}var me;!function(G){G[G.Line=1]="Line",G[G.Block=2]="Block",G[G.Underline=3]="Underline",G[G.LineThin=4]="LineThin",G[G.BlockOutline=5]="BlockOutline",G[G.UnderlineThin=6]="UnderlineThin"}(me||(me={}));class EditorFontLigatures extends BaseEditorOption{constructor(){super(42,"fontLigatures",EditorFontLigatures.OFF,{anyOf:[{type:"boolean",description:ie.a("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:ie.a("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:ie.a("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(G){return void 0===G?this.defaultValue:"string"==typeof G?"false"===G?EditorFontLigatures.OFF:"true"===G?EditorFontLigatures.ON:G:Boolean(G)?EditorFontLigatures.ON:EditorFontLigatures.OFF}}EditorFontLigatures.OFF='"liga" off, "calt" off',EditorFontLigatures.ON='"liga" on, "calt" on';class EditorFontWeight extends BaseEditorOption{constructor(){super(44,"fontWeight",ge.fontWeight,{anyOf:[{type:"number",minimum:EditorFontWeight.MINIMUM_VALUE,maximum:EditorFontWeight.MAXIMUM_VALUE,errorMessage:ie.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:EditorFontWeight.SUGGESTION_VALUES}],default:ge.fontWeight,description:ie.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(G){return"normal"===G||"bold"===G?G:String(EditorIntOption.clampedInt(G,ge.fontWeight,EditorFontWeight.MINIMUM_VALUE,EditorFontWeight.MAXIMUM_VALUE))}}EditorFontWeight.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],EditorFontWeight.MINIMUM_VALUE=1,EditorFontWeight.MAXIMUM_VALUE=1e3;class EditorLayoutInfoComputer extends ComputedEditorOption{constructor(){super(129,[47,56,35,63,91,58,59,93,116,119,120,121,2])}compute(G,Z,ne){return EditorLayoutInfoComputer.computeLayout(Z,{memory:G.memory,outerWidth:G.outerWidth,outerHeight:G.outerHeight,isDominatedByLongLines:G.isDominatedByLongLines,lineHeight:G.fontInfo.lineHeight,viewLineCount:G.viewLineCount,lineNumbersDigitCount:G.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:G.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:G.fontInfo.maxDigitWidth,pixelRatio:G.pixelRatio})}static computeContainedMinimapLineCount(G){const Z=G.height/G.lineHeight,ne=G.scrollBeyondLastLine?Z-1:0,ie=(G.viewLineCount+ne)/(G.pixelRatio*G.height);return{typicalViewportLineCount:Z,extraLinesBeyondLastLine:ne,desiredRatio:ie,minimapLineCount:Math.floor(G.viewLineCount/ie)}}static _computeMinimapLayout(G,Z){const ne=G.outerWidth,ie=G.outerHeight,se=G.pixelRatio;if(!G.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(se*ie),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:ie};const ce=Z.stableMinimapLayoutInput,me=ce&&G.outerHeight===ce.outerHeight&&G.lineHeight===ce.lineHeight&&G.typicalHalfwidthCharacterWidth===ce.typicalHalfwidthCharacterWidth&&G.pixelRatio===ce.pixelRatio&&G.scrollBeyondLastLine===ce.scrollBeyondLastLine&&G.minimap.enabled===ce.minimap.enabled&&G.minimap.side===ce.minimap.side&&G.minimap.size===ce.minimap.size&&G.minimap.showSlider===ce.minimap.showSlider&&G.minimap.renderCharacters===ce.minimap.renderCharacters&&G.minimap.maxColumn===ce.minimap.maxColumn&&G.minimap.scale===ce.minimap.scale&&G.verticalScrollbarWidth===ce.verticalScrollbarWidth&&G.isViewportWrapping===ce.isViewportWrapping,ge=G.lineHeight,Ce=G.typicalHalfwidthCharacterWidth,Se=G.scrollBeyondLastLine,Me=G.minimap.renderCharacters;let ke=se>=2?Math.round(2*G.minimap.scale):G.minimap.scale;const xe=G.minimap.maxColumn,De=G.minimap.size,Ie=G.minimap.side,Re=G.verticalScrollbarWidth,ze=G.viewLineCount,$e=G.remainingWidth,Je=G.isViewportWrapping,it=Me?2:3;let ot=Math.floor(se*ie);const at=ot/se;let st=!1,ct=!1,ut=it*ke,dt=ke/se,ht=1;if("fill"===De||"fit"===De){const{typicalViewportLineCount:ne,extraLinesBeyondLastLine:ce,desiredRatio:fe,minimapLineCount:Ce}=EditorLayoutInfoComputer.computeContainedMinimapLineCount({viewLineCount:ze,scrollBeyondLastLine:Se,height:ie,lineHeight:ge,pixelRatio:se});if(ze/Ce>1)st=!0,ct=!0,ke=1,ut=1,dt=ke/se;else{let ie=!1,Ce=ke+1;if("fit"===De){const G=Math.ceil((ze+ce)*ut);Je&&me&&$e<=Z.stableFitRemainingWidth?(ie=!0,Ce=Z.stableFitMaxMinimapScale):ie=G>ot}if("fill"===De||ie){st=!0;const ie=ke;ut=Math.min(ge*se,Math.max(1,Math.floor(1/fe))),Je&&me&&$e<=Z.stableFitRemainingWidth&&(Ce=Z.stableFitMaxMinimapScale),ke=Math.min(Ce,Math.max(1,Math.floor(ut/it))),ke>ie&&(ht=Math.min(2,ke/ie)),dt=ke/se/ht,ot=Math.ceil(Math.max(ne,ze+ce)*ut),Je?(Z.stableMinimapLayoutInput=G,Z.stableFitRemainingWidth=$e,Z.stableFitMaxMinimapScale=ke):(Z.stableMinimapLayoutInput=null,Z.stableFitRemainingWidth=0)}}}const ft=Math.floor(xe*dt),_t=Math.min(ft,Math.max(0,Math.floor(($e-Re-2)*dt/(Ce+dt)))+fe);let yt=Math.floor(se*_t);const vt=yt/se;yt=Math.floor(yt*ht);return{renderMinimap:Me?1:2,minimapLeft:"left"===Ie?0:ne-_t-Re,minimapWidth:_t,minimapHeightIsEditorHeight:st,minimapIsSampling:ct,minimapScale:ke,minimapLineHeight:ut,minimapCanvasInnerWidth:yt,minimapCanvasInnerHeight:ot,minimapCanvasOuterWidth:vt,minimapCanvasOuterHeight:at}}static computeLayout(G,Z){const ne=0|Z.outerWidth,ie=0|Z.outerHeight,se=0|Z.lineHeight,ce=0|Z.lineNumbersDigitCount,fe=Z.typicalHalfwidthCharacterWidth,me=Z.maxDigitWidth,ge=Z.pixelRatio,Ce=Z.viewLineCount,Se=G.get(121),Me="inherit"===Se?G.get(120):Se,ke="inherit"===Me?G.get(116):Me,xe=G.get(119),De=G.get(2),Ie=Z.isDominatedByLongLines,Re=G.get(47),ze=0!==G.get(58).renderType,$e=G.get(59),Je=G.get(93),it=G.get(63),ot=G.get(91),at=ot.verticalScrollbarSize,st=ot.verticalHasArrows,ct=ot.arrowSize,ut=ot.horizontalScrollbarSize,dt=G.get(56),ht=G.get(35);let ft;if("string"==typeof dt&&/^\d+(\.\d+)?ch$/.test(dt)){const G=parseFloat(dt.substr(0,dt.length-2));ft=EditorIntOption.clampedInt(G*fe,0,0,1e3)}else ft=EditorIntOption.clampedInt(dt,0,0,1e3);ht&&(ft+=16);let _t=0;if(ze){const G=Math.max(ce,$e);_t=Math.round(G*me)}let yt=0;Re&&(yt=se);let vt=0,wt=vt+yt,Ct=wt+_t,St=Ct+ft;const Mt=ne-yt-_t-ft;let kt=!1,xt=!1,Lt=-1;2!==De&&("inherit"===Me&&Ie?(kt=!0,xt=!0):"on"===ke||"bounded"===ke?xt=!0:"wordWrapColumn"===ke&&(Lt=xe));const Tt=EditorLayoutInfoComputer._computeMinimapLayout({outerWidth:ne,outerHeight:ie,lineHeight:se,typicalHalfwidthCharacterWidth:fe,pixelRatio:ge,scrollBeyondLastLine:Je,minimap:it,verticalScrollbarWidth:at,viewLineCount:Ce,remainingWidth:Mt,isViewportWrapping:xt},Z.memory||new ComputeOptionsMemory);0!==Tt.renderMinimap&&0===Tt.minimapLeft&&(vt+=Tt.minimapWidth,wt+=Tt.minimapWidth,Ct+=Tt.minimapWidth,St+=Tt.minimapWidth);const At=Mt-Tt.minimapWidth,Dt=Math.max(1,Math.floor((At-at-2)/fe)),Et=st?ct:0;return xt&&(Lt=Math.max(1,Dt),"bounded"===ke&&(Lt=Math.min(Lt,xe))),{width:ne,height:ie,glyphMarginLeft:vt,glyphMarginWidth:yt,lineNumbersLeft:wt,lineNumbersWidth:_t,decorationsLeft:Ct,decorationsWidth:ft,contentLeft:St,contentWidth:At,minimap:Tt,viewportColumn:Dt,isWordWrapMinified:kt,isViewportWrapping:xt,wrappingColumn:Lt,verticalScrollbarWidth:at,horizontalScrollbarHeight:ut,overviewRuler:{top:Et,width:at,height:ie-2*Et,right:0}}}}function filterValidationDecorations(G){const Z=G.get(86);return"editable"===Z?G.get(79):"on"!==Z}function _scrollbarVisibilityFromString(G,Z){if("string"!=typeof G)return Z;switch(G){case"hidden":return 2;case"visible":return 3;default:return 1}}const ge={fontFamily:se.f?"Menlo, Monaco, 'Courier New', monospace":se.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:se.f?12:14,lineHeight:0,letterSpacing:0},Ce={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},Se=[];function register(G){return Se[G.id]=G,G}const Me={acceptSuggestionOnCommitCharacter:register(new EditorBooleanOption(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:ie.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:register(new EditorStringEnumOption(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",ie.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:ie.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:register(new class EditorAccessibilitySupport extends BaseEditorOption{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[ie.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),ie.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),ie.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:ie.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(G){switch(G){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(G,Z,ne){return 0===ne?G.accessibilitySupport:ne}}),accessibilityPageSize:register(new EditorIntOption(3,"accessibilityPageSize",10,1,1073741824,{description:ie.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:register(new EditorStringOption(4,"ariaLabel",ie.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:register(new EditorStringEnumOption(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",ie.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),ie.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:ie.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:register(new EditorStringEnumOption(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",ie.a("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:ie.a("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:register(new EditorStringEnumOption(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",ie.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:ie.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:register(new EditorStringEnumOption(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",ie.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),ie.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:ie.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:register(new EditorEnumOption(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function _autoIndentFromString(G){switch(G){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[ie.a("editor.autoIndent.none","The editor will not insert indentation automatically."),ie.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),ie.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),ie.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),ie.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:ie.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:register(new EditorBooleanOption(10,"automaticLayout",!1)),autoSurround:register(new EditorStringEnumOption(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[ie.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),ie.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),ie.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:ie.a("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),stickyTabStops:register(new EditorBooleanOption(103,"stickyTabStops",!1,{description:ie.a("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:register(new EditorBooleanOption(12,"codeLens",!0,{description:ie.a("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:register(new EditorStringOption(13,"codeLensFontFamily","",{description:ie.a("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:register(new EditorIntOption(14,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:ie.a("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:register(new EditorBooleanOption(15,"colorDecorators",!0,{description:ie.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:register(new EditorBooleanOption(16,"columnSelection",!1,{description:ie.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:register(new class EditorComments extends BaseEditorOption{constructor(){const G={insertSpace:!0,ignoreEmptyLines:!0};super(17,"comments",G,{"editor.comments.insertSpace":{type:"boolean",default:G.insertSpace,description:ie.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:G.ignoreEmptyLines,description:ie.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{insertSpace:boolean(Z.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:boolean(Z.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:register(new EditorBooleanOption(18,"contextmenu",!0)),copyWithSyntaxHighlighting:register(new EditorBooleanOption(19,"copyWithSyntaxHighlighting",!0,{description:ie.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:register(new EditorEnumOption(20,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function _cursorBlinkingStyleFromString(G){switch(G){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:ie.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:register(new EditorBooleanOption(21,"cursorSmoothCaretAnimation",!1,{description:ie.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:register(new EditorEnumOption(22,"cursorStyle",me.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function _cursorStyleFromString(G){switch(G){case"line":return me.Line;case"block":return me.Block;case"underline":return me.Underline;case"line-thin":return me.LineThin;case"block-outline":return me.BlockOutline;case"underline-thin":return me.UnderlineThin}}),{description:ie.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:register(new EditorIntOption(23,"cursorSurroundingLines",0,0,1073741824,{description:ie.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:register(new EditorStringEnumOption(24,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[ie.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),ie.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:ie.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:register(new EditorIntOption(25,"cursorWidth",0,0,1073741824,{markdownDescription:ie.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:register(new EditorBooleanOption(26,"disableLayerHinting",!1)),disableMonospaceOptimizations:register(new EditorBooleanOption(27,"disableMonospaceOptimizations",!1)),domReadOnly:register(new EditorBooleanOption(28,"domReadOnly",!1)),dragAndDrop:register(new EditorBooleanOption(29,"dragAndDrop",!0,{description:ie.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:register(new class EditorEmptySelectionClipboard extends EditorBooleanOption{constructor(){super(30,"emptySelectionClipboard",!0,{description:ie.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(G,Z,ne){return ne&&G.emptySelectionClipboard}}),extraEditorClassName:register(new EditorStringOption(31,"extraEditorClassName","")),fastScrollSensitivity:register(new EditorFloatOption(32,"fastScrollSensitivity",5,G=>G<=0?5:G,{markdownDescription:ie.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:register(new class EditorFind extends BaseEditorOption{constructor(){const G={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(33,"find",G,{"editor.find.cursorMoveOnType":{type:"boolean",default:G.cursorMoveOnType,description:ie.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:G.seedSearchStringFromSelection,enumDescriptions:[ie.a("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),ie.a("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),ie.a("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:ie.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:G.autoFindInSelection,enumDescriptions:[ie.a("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),ie.a("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),ie.a("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:ie.a("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:G.globalFindClipboard,description:ie.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:se.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:G.addExtraSpaceOnTop,description:ie.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:G.loop,description:ie.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{cursorMoveOnType:boolean(Z.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof G.seedSearchStringFromSelection?G.seedSearchStringFromSelection?"always":"never":stringSet(Z.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof G.autoFindInSelection?G.autoFindInSelection?"always":"never":stringSet(Z.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:boolean(Z.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:boolean(Z.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:boolean(Z.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:register(new EditorBooleanOption(34,"fixedOverflowWidgets",!1)),folding:register(new EditorBooleanOption(35,"folding",!0,{description:ie.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:register(new EditorStringEnumOption(36,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[ie.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),ie.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:ie.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:register(new EditorBooleanOption(37,"foldingHighlight",!0,{description:ie.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:register(new EditorBooleanOption(38,"foldingImportsByDefault",!1,{description:ie.a("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:register(new EditorBooleanOption(39,"unfoldOnClickAfterEndOfLine",!1,{description:ie.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:register(new EditorStringOption(40,"fontFamily",ge.fontFamily,{description:ie.a("fontFamily","Controls the font family.")})),fontInfo:register(new class EditorFontInfo extends ComputedEditorOption{constructor(){super(41)}compute(G,Z,ne){return G.fontInfo}}),fontLigatures2:register(new EditorFontLigatures),fontSize:register(new class EditorFontSize extends SimpleEditorOption{constructor(){super(43,"fontSize",ge.fontSize,{type:"number",minimum:6,maximum:100,default:ge.fontSize,description:ie.a("fontSize","Controls the font size in pixels.")})}validate(G){let Z=EditorFloatOption.float(G,this.defaultValue);return 0===Z?ge.fontSize:EditorFloatOption.clamp(Z,6,100)}compute(G,Z,ne){return G.fontInfo.fontSize}}),fontWeight:register(new EditorFontWeight),formatOnPaste:register(new EditorBooleanOption(45,"formatOnPaste",!1,{description:ie.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:register(new EditorBooleanOption(46,"formatOnType",!1,{description:ie.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:register(new EditorBooleanOption(47,"glyphMargin",!0,{description:ie.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:register(new class EditorGoToLocation extends BaseEditorOption{constructor(){const G={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},Z={type:"string",enum:["peek","gotoAndPeek","goto"],default:G.multiple,enumDescriptions:[ie.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),ie.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),ie.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},ne=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(48,"gotoLocation",G,{"editor.gotoLocation.multiple":{deprecationMessage:ie.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:ie.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:ie.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleDeclarations":Object.assign({description:ie.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleImplementations":Object.assign({description:ie.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Z),"editor.gotoLocation.multipleReferences":Object.assign({description:ie.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Z),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:G.alternativeDefinitionCommand,enum:ne,description:ie.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:G.alternativeTypeDefinitionCommand,enum:ne,description:ie.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:G.alternativeDeclarationCommand,enum:ne,description:ie.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:G.alternativeImplementationCommand,enum:ne,description:ie.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:G.alternativeReferenceCommand,enum:ne,description:ie.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(G){var Z,ne,ie,se,ce;if(!G||"object"!=typeof G)return this.defaultValue;const fe=G;return{multiple:stringSet(fe.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(Z=fe.multipleDefinitions)&&void 0!==Z?Z:stringSet(fe.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(ne=fe.multipleTypeDefinitions)&&void 0!==ne?ne:stringSet(fe.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(ie=fe.multipleDeclarations)&&void 0!==ie?ie:stringSet(fe.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(se=fe.multipleImplementations)&&void 0!==se?se:stringSet(fe.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(ce=fe.multipleReferences)&&void 0!==ce?ce:stringSet(fe.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:EditorStringOption.string(fe.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:EditorStringOption.string(fe.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:EditorStringOption.string(fe.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:EditorStringOption.string(fe.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:EditorStringOption.string(fe.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:register(new EditorBooleanOption(49,"hideCursorInOverviewRuler",!1,{description:ie.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:register(new EditorBooleanOption(50,"highlightActiveIndentGuide",!0,{description:ie.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:register(new class EditorHover extends BaseEditorOption{constructor(){const G={enabled:!0,delay:300,sticky:!0};super(51,"hover",G,{"editor.hover.enabled":{type:"boolean",default:G.enabled,description:ie.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:G.delay,description:ie.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:G.sticky,description:ie.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{enabled:boolean(Z.enabled,this.defaultValue.enabled),delay:EditorIntOption.clampedInt(Z.delay,this.defaultValue.delay,0,1e4),sticky:boolean(Z.sticky,this.defaultValue.sticky)}}}),inDiffEditor:register(new EditorBooleanOption(52,"inDiffEditor",!1)),letterSpacing:register(new EditorFloatOption(54,"letterSpacing",ge.letterSpacing,G=>EditorFloatOption.clamp(G,-5,20),{description:ie.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:register(new class EditorLightbulb extends BaseEditorOption{constructor(){const G={enabled:!0};super(55,"lightbulb",G,{"editor.lightbulb.enabled":{type:"boolean",default:G.enabled,description:ie.a("codeActions","Enables the code action lightbulb in the editor.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;return{enabled:boolean(G.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:register(new SimpleEditorOption(56,"lineDecorationsWidth",10)),lineHeight:register(new class EditorLineHeight extends EditorFloatOption{constructor(){super(57,"lineHeight",ge.lineHeight,G=>EditorFloatOption.clamp(G,0,150),{markdownDescription:ie.a("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(G,Z,ne){return G.fontInfo.lineHeight}}),lineNumbers:register(new class EditorRenderLineNumbersOption extends BaseEditorOption{constructor(){super(58,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[ie.a("lineNumbers.off","Line numbers are not rendered."),ie.a("lineNumbers.on","Line numbers are rendered as absolute number."),ie.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),ie.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:ie.a("lineNumbers","Controls the display of line numbers.")})}validate(G){let Z=this.defaultValue.renderType,ne=this.defaultValue.renderFn;return void 0!==G&&("function"==typeof G?(Z=4,ne=G):Z="interval"===G?3:"relative"===G?2:"on"===G?1:0),{renderType:Z,renderFn:ne}}}),lineNumbersMinChars:register(new EditorIntOption(59,"lineNumbersMinChars",5,1,300)),linkedEditing:register(new EditorBooleanOption(60,"linkedEditing",!1,{description:ie.a("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:register(new EditorBooleanOption(61,"links",!0,{description:ie.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:register(new EditorStringEnumOption(62,"matchBrackets","always",["always","near","never"],{description:ie.a("matchBrackets","Highlight matching brackets.")})),minimap:register(new class EditorMinimap extends BaseEditorOption{constructor(){const G={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(63,"minimap",G,{"editor.minimap.enabled":{type:"boolean",default:G.enabled,description:ie.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[ie.a("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),ie.a("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),ie.a("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:G.size,description:ie.a("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:G.side,description:ie.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:G.showSlider,description:ie.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:G.scale,minimum:1,maximum:3,enum:[1,2,3],description:ie.a("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:G.renderCharacters,description:ie.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:G.maxColumn,description:ie.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{enabled:boolean(Z.enabled,this.defaultValue.enabled),size:stringSet(Z.size,this.defaultValue.size,["proportional","fill","fit"]),side:stringSet(Z.side,this.defaultValue.side,["right","left"]),showSlider:stringSet(Z.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:boolean(Z.renderCharacters,this.defaultValue.renderCharacters),scale:EditorIntOption.clampedInt(Z.scale,1,1,3),maxColumn:EditorIntOption.clampedInt(Z.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:register(new EditorStringEnumOption(64,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:register(new EditorFloatOption(65,"mouseWheelScrollSensitivity",1,G=>0===G?1:G,{markdownDescription:ie.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:register(new EditorBooleanOption(66,"mouseWheelZoom",!1,{markdownDescription:ie.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:register(new EditorBooleanOption(67,"multiCursorMergeOverlapping",!0,{description:ie.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:register(new EditorEnumOption(68,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function _multiCursorModifierFromString(G){return"ctrlCmd"===G?se.f?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[ie.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),ie.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:ie.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:register(new EditorStringEnumOption(69,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[ie.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),ie.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:ie.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:register(new EditorBooleanOption(70,"occurrencesHighlight",!0,{description:ie.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:register(new EditorBooleanOption(71,"overviewRulerBorder",!0,{description:ie.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:register(new EditorIntOption(72,"overviewRulerLanes",3,0,3)),padding:register(new class EditorPadding extends BaseEditorOption{constructor(){super(73,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:ie.a("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:ie.a("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{top:EditorIntOption.clampedInt(Z.top,0,0,1e3),bottom:EditorIntOption.clampedInt(Z.bottom,0,0,1e3)}}}),parameterHints:register(new class EditorParameterHints extends BaseEditorOption{constructor(){const G={enabled:!0,cycle:!1};super(74,"parameterHints",G,{"editor.parameterHints.enabled":{type:"boolean",default:G.enabled,description:ie.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:G.cycle,description:ie.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{enabled:boolean(Z.enabled,this.defaultValue.enabled),cycle:boolean(Z.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:register(new EditorStringEnumOption(75,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[ie.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),ie.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:ie.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:register(new EditorBooleanOption(76,"definitionLinkOpensInPeek",!1,{description:ie.a("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:register(new class EditorQuickSuggestions extends BaseEditorOption{constructor(){const G={other:!0,comments:!1,strings:!1};super(77,"quickSuggestions",G,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:G.strings,description:ie.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:G.comments,description:ie.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:G.other,description:ie.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:G,description:ie.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=G}validate(G){if("boolean"==typeof G)return G;if(G&&"object"==typeof G){const Z=G,ne={other:boolean(Z.other,this.defaultValue.other),comments:boolean(Z.comments,this.defaultValue.comments),strings:boolean(Z.strings,this.defaultValue.strings)};return!!(ne.other&&ne.comments&&ne.strings)||!!(ne.other||ne.comments||ne.strings)&&ne}return this.defaultValue}}),quickSuggestionsDelay:register(new EditorIntOption(78,"quickSuggestionsDelay",10,0,1073741824,{description:ie.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:register(new EditorBooleanOption(79,"readOnly",!1)),renameOnType:register(new EditorBooleanOption(80,"renameOnType",!1,{description:ie.a("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:ie.a("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:register(new EditorBooleanOption(81,"renderControlCharacters",!1,{description:ie.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:register(new EditorBooleanOption(82,"renderIndentGuides",!0,{description:ie.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:register(new EditorBooleanOption(83,"renderFinalNewline",!0,{description:ie.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:register(new EditorStringEnumOption(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",ie.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:ie.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:register(new EditorBooleanOption(85,"renderLineHighlightOnlyWhenFocus",!1,{description:ie.a("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:register(new EditorStringEnumOption(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:register(new EditorStringEnumOption(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",ie.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),ie.a("renderWhitespace.selection","Render whitespace characters only on selected text."),ie.a("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:ie.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:register(new EditorIntOption(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:register(new EditorBooleanOption(89,"roundedSelection",!0,{description:ie.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:register(new class EditorRulers extends BaseEditorOption{constructor(){const G=[],Z={type:"number",description:ie.a("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",G,{type:"array",items:{anyOf:[Z,{type:["object"],properties:{column:Z,color:{type:"string",description:ie.a("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:G,description:ie.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(G){if(Array.isArray(G)){let Z=[];for(let ne of G)if("number"==typeof ne)Z.push({column:EditorIntOption.clampedInt(ne,0,0,1e4),color:null});else if(ne&&"object"==typeof ne){const G=ne;Z.push({column:EditorIntOption.clampedInt(G.column,0,0,1e4),color:G.color})}return Z.sort((G,Z)=>G.column-Z.column),Z}return this.defaultValue}}),scrollbar:register(new class EditorScrollbar extends BaseEditorOption{constructor(){const G={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",G,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[ie.a("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),ie.a("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),ie.a("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:ie.a("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[ie.a("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),ie.a("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),ie.a("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:ie.a("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:G.verticalScrollbarSize,description:ie.a("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:G.horizontalScrollbarSize,description:ie.a("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:G.scrollByPage,description:ie.a("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G,ne=EditorIntOption.clampedInt(Z.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),ie=EditorIntOption.clampedInt(Z.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:EditorIntOption.clampedInt(Z.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:_scrollbarVisibilityFromString(Z.vertical,this.defaultValue.vertical),horizontal:_scrollbarVisibilityFromString(Z.horizontal,this.defaultValue.horizontal),useShadows:boolean(Z.useShadows,this.defaultValue.useShadows),verticalHasArrows:boolean(Z.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:boolean(Z.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:boolean(Z.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:boolean(Z.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:ne,horizontalSliderSize:EditorIntOption.clampedInt(Z.horizontalSliderSize,ne,0,1e3),verticalScrollbarSize:ie,verticalSliderSize:EditorIntOption.clampedInt(Z.verticalSliderSize,ie,0,1e3),scrollByPage:boolean(Z.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:register(new EditorIntOption(92,"scrollBeyondLastColumn",5,0,1073741824,{description:ie.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:register(new EditorBooleanOption(93,"scrollBeyondLastLine",!0,{description:ie.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:register(new EditorBooleanOption(94,"scrollPredominantAxis",!0,{description:ie.a("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:register(new EditorBooleanOption(95,"selectionClipboard",!0,{description:ie.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:se.d})),selectionHighlight:register(new EditorBooleanOption(96,"selectionHighlight",!0,{description:ie.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:register(new EditorBooleanOption(97,"selectOnLineNumbers",!0)),showFoldingControls:register(new EditorStringEnumOption(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[ie.a("showFoldingControls.always","Always show the folding controls."),ie.a("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:ie.a("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:register(new EditorBooleanOption(99,"showUnused",!0,{description:ie.a("showUnused","Controls fading out of unused code.")})),showDeprecated:register(new EditorBooleanOption(124,"showDeprecated",!0,{description:ie.a("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:register(new class EditorInlayHints extends BaseEditorOption{constructor(){const G={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",G,{"editor.inlayHints.enabled":{type:"boolean",default:G.enabled,description:ie.a("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:G.fontSize,markdownDescription:ie.a("inlayHints.fontSize","Controls font size of inlay hints in the editor. When set to `0`, the 90% of `#editor.fontSize#` is used.")},"editor.inlayHints.fontFamily":{type:"string",default:G.fontFamily,description:ie.a("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{enabled:boolean(Z.enabled,this.defaultValue.enabled),fontSize:EditorIntOption.clampedInt(Z.fontSize,this.defaultValue.fontSize,0,100),fontFamily:EditorStringOption.string(Z.fontFamily,this.defaultValue.fontFamily)}}}),snippetSuggestions:register(new EditorStringEnumOption(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[ie.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),ie.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),ie.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),ie.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:ie.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:register(new class SmartSelect extends BaseEditorOption{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:ie.a("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(G){return G&&"object"==typeof G?{selectLeadingAndTrailingWhitespace:boolean(G.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:register(new EditorBooleanOption(102,"smoothScrolling",!1,{description:ie.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:register(new EditorIntOption(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:register(new class EditorSuggest extends BaseEditorOption{constructor(){const G={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",G,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[ie.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),ie.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:G.insertMode,description:ie.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:G.filterGraceful,description:ie.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:G.localityBonus,description:ie.a("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:G.shareSuggestSelections,markdownDescription:ie.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:G.snippetsPreventQuickSuggestions,description:ie.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:G.showIcons,description:ie.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:G.showStatusBar,description:ie.a("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:G.preview,description:ie.a("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.previewMode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[ie.a("suggest.previewMode.prefix","Only render a preview if the replace text is a prefix of the insert text."),ie.a("suggest.previewMode.subword","Only render a preview if the replace text is a subword of the insert text."),ie.a("suggest.previewMode.subwordSmart","Render a preview if the replace text is a subword of the insert text, or if it is a prefix of the insert text.")],default:G.previewMode,description:ie.a("suggest.previewMode","Controls which mode to use for rendering the suggest preview.")},"editor.suggest.showInlineDetails":{type:"boolean",default:G.showInlineDetails,description:ie.a("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:ie.a("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:ie.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:ie.a("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{insertMode:stringSet(Z.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:boolean(Z.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:boolean(Z.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:boolean(Z.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:boolean(Z.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:boolean(Z.showIcons,this.defaultValue.showIcons),showStatusBar:boolean(Z.showStatusBar,this.defaultValue.showStatusBar),preview:boolean(Z.preview,this.defaultValue.preview),previewMode:stringSet(Z.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:boolean(Z.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:boolean(Z.showMethods,this.defaultValue.showMethods),showFunctions:boolean(Z.showFunctions,this.defaultValue.showFunctions),showConstructors:boolean(Z.showConstructors,this.defaultValue.showConstructors),showDeprecated:boolean(Z.showDeprecated,this.defaultValue.showDeprecated),showFields:boolean(Z.showFields,this.defaultValue.showFields),showVariables:boolean(Z.showVariables,this.defaultValue.showVariables),showClasses:boolean(Z.showClasses,this.defaultValue.showClasses),showStructs:boolean(Z.showStructs,this.defaultValue.showStructs),showInterfaces:boolean(Z.showInterfaces,this.defaultValue.showInterfaces),showModules:boolean(Z.showModules,this.defaultValue.showModules),showProperties:boolean(Z.showProperties,this.defaultValue.showProperties),showEvents:boolean(Z.showEvents,this.defaultValue.showEvents),showOperators:boolean(Z.showOperators,this.defaultValue.showOperators),showUnits:boolean(Z.showUnits,this.defaultValue.showUnits),showValues:boolean(Z.showValues,this.defaultValue.showValues),showConstants:boolean(Z.showConstants,this.defaultValue.showConstants),showEnums:boolean(Z.showEnums,this.defaultValue.showEnums),showEnumMembers:boolean(Z.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:boolean(Z.showKeywords,this.defaultValue.showKeywords),showWords:boolean(Z.showWords,this.defaultValue.showWords),showColors:boolean(Z.showColors,this.defaultValue.showColors),showFiles:boolean(Z.showFiles,this.defaultValue.showFiles),showReferences:boolean(Z.showReferences,this.defaultValue.showReferences),showFolders:boolean(Z.showFolders,this.defaultValue.showFolders),showTypeParameters:boolean(Z.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:boolean(Z.showSnippets,this.defaultValue.showSnippets),showUsers:boolean(Z.showUsers,this.defaultValue.showUsers),showIssues:boolean(Z.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:register(new class InlineEditorSuggest extends BaseEditorOption{constructor(){const G={enabled:!1,mode:"subwordSmart"};super(53,"inlineSuggest",G,{"editor.inlineSuggest.enabled":{type:"boolean",default:G.enabled,description:ie.a("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.mode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[ie.a("inlineSuggest.mode.prefix","Only render an inline suggestion if the replace text is a prefix of the insert text."),ie.a("inlineSuggest.mode.subword","Only render an inline suggestion if the replace text is a subword of the insert text."),ie.a("inlineSuggest.mode.subwordSmart","Only render an inline suggestion if the replace text is a subword of the insert text, but the subword must start after the cursor.")],default:G.mode,description:ie.a("inlineSuggest.mode","Controls which mode to use for rendering inline suggestions.")}})}validate(G){if(!G||"object"!=typeof G)return this.defaultValue;const Z=G;return{enabled:boolean(Z.enabled,this.defaultValue.enabled),mode:stringSet(Z.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}),suggestFontSize:register(new EditorIntOption(106,"suggestFontSize",0,0,1e3,{markdownDescription:ie.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:register(new EditorIntOption(107,"suggestLineHeight",0,0,1e3,{markdownDescription:ie.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:register(new EditorBooleanOption(108,"suggestOnTriggerCharacters",!0,{description:ie.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:register(new EditorStringEnumOption(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[ie.a("suggestSelection.first","Always select the first suggestion."),ie.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),ie.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:ie.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:register(new EditorStringEnumOption(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[ie.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),ie.a("tabCompletion.off","Disable tab completions."),ie.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:ie.a("tabCompletion","Enables tab completions.")})),tabIndex:register(new EditorIntOption(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:register(new EditorStringEnumOption(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[ie.a("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),ie.a("unusualLineTerminators.off","Unusual line terminators are ignored."),ie.a("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:ie.a("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:register(new EditorBooleanOption(113,"useShadowDOM",!0)),useTabStops:register(new EditorBooleanOption(114,"useTabStops",!0,{description:ie.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:register(new EditorStringOption(115,"wordSeparators",ce.b,{description:ie.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:register(new EditorStringEnumOption(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[ie.a("wordWrap.off","Lines will never wrap."),ie.a("wordWrap.on","Lines will wrap at the viewport width."),ie.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),ie.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:ie.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:register(new EditorStringOption(117,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:register(new EditorStringOption(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:register(new EditorIntOption(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:ie.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:register(new EditorStringEnumOption(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:register(new EditorStringEnumOption(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:register(new EditorEnumOption(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function _wrappingIndentFromString(G){switch(G){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[ie.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),ie.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),ie.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),ie.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:ie.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:register(new EditorStringEnumOption(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[ie.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),ie.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:ie.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:register(new class EditorClassName extends ComputedEditorOption{constructor(){super(126,[64,31])}compute(G,Z,ne){const ie=["monaco-editor"];return Z.get(31)&&ie.push(Z.get(31)),G.extraEditorClassName&&ie.push(G.extraEditorClassName),"default"===Z.get(64)?ie.push("mouse-default"):"copy"===Z.get(64)&&ie.push("mouse-copy"),Z.get(99)&&ie.push("showUnused"),Z.get(124)&&ie.push("showDeprecated"),ie.join(" ")}}),pixelRatio:register(new class EditorPixelRatio extends ComputedEditorOption{constructor(){super(127)}compute(G,Z,ne){return G.pixelRatio}}),tabFocusMode:register(new class EditorTabFocusMode extends ComputedEditorOption{constructor(){super(128,[79])}compute(G,Z,ne){return!!Z.get(79)||G.tabFocusMode}}),layoutInfo:register(new EditorLayoutInfoComputer),wrappingInfo:register(new class EditorWrappingInfoComputer extends ComputedEditorOption{constructor(){super(130,[129])}compute(G,Z,ne){const ie=Z.get(129);return{isDominatedByLongLines:G.isDominatedByLongLines,isWordWrapMinified:ie.isWordWrapMinified,isViewportWrapping:ie.isViewportWrapping,wrappingColumn:ie.wrappingColumn}}})}},1094:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},1095:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearGetThemeCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2462)),ce=_interopRequireDefault(ne(2464)),fe=ne(562);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},1096:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},1110:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=21)}({0:function(G,Z){G.exports=ne(0)},21:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IconContext",(function(){return Se})),ne.d(Z,"IconProvider",(function(){return Me}));var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(8);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},1111:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},1112:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(2515)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},1152:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getCustomizedTheme=Z.addThemeDefaults=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2853));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Z.addThemeDefaults=function addThemeDefaults(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},1153:function(G,Z,ne){"use strict";function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.withConfig=withConfig,Z.insertCacheBuster=Z.createURL=Z.createStaticURL=Z.createRESTURL=Z.createDocsURL=Z.createAppDocsURL=void 0;var ie=ne(255);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z1&&void 0!==arguments[1]?arguments[1]:{},ce=_objectSpread({appBuild:Z,buildPushNumber:se,buildNumber:ne},ie),fe=G.match(/(^|\w\w-\w\w\/)static\//);if(!fe)return G;var me=fe.index+fe[0].length-1,ge=G.match(/(^|\w\w-\w\w|)static\/app/),Ce=ge?":".concat(ce.appBuild||0):"",Se=ce.buildPushNumber?".".concat(ce.buildPushNumber):"",Me="/@".concat(ce.buildNumber).concat(Se).concat(Ce),ke=G.substr(0,me),xe=G.substr(me);return"".concat(ke).concat(Me).concat(xe)}function createURL(G,me){var ge=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Ce=_objectSpread({appBuild:Z,buildPushNumber:se,buildNumber:ne,rootPath:fe,locale:ce},ge),Se=G||"/",Me=me?"?".concat((0,ie.stringify)(me)):"";return"/"!==Se.charAt(0)&&(Se="/".concat(Se)),insertCacheBuster(Se="".concat(Ce.rootPath||"","/").concat(Ce.locale).concat(Se).concat(Me),Ce)}function createDocsURLFromParams(G,Z){return createURL("/help",G,Z)}return{createAppDocsURL:function createAppDocsURL(G,Z,ne){var ie=Z.appName,se=Z.appVersion;return createDocsURLFromParams({location:"[".concat(ie,":").concat(se,"]").concat(G)},ne)},createDocsURL:function createDocsURL(G,Z){return createDocsURLFromParams({location:G},Z)},createRESTURL:function createRESTURL(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/^http[s]?:\/\//.test(G))return G;var ie,se,ce=ne.splunkdPath||me||"";return/^\/.*/.test(G)?/^\/services/.test(G)?"".concat(ce).concat(G):G:Z.app||Z.owner?(ie=Z.sharing?"nobody":Z.owner?encodeURIComponent(Z.owner):"-",se="system"===Z.sharing?"system":Z.app?encodeURIComponent(Z.app):"-","".concat(ce,"/servicesNS/").concat(ie,"/").concat(se,"/").concat(G)):"".concat(ce,"/services/").concat(G)},createStaticURL:function createStaticURL(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},1155:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},1156:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=197)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},107:function(G,Z){G.exports=ne(1157)},11:function(G,Z){G.exports=ne(63)},14:function(G,Z){G.exports=ne(1303)},166:function(G,Z){G.exports=ne(7368)},17:function(G,Z){G.exports=ne(640)},197:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Gt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(63),De=ne.n(xe),Ie=ne(107),Re=ne(26),ze=ne.n(Re),$e=ne(27),Je=ne.n($e),it=ne(54),ot=ne.n(it),at=ne(49),st=ne.n(at),ct=ne(14),ut=ne.n(ct),dt=ne(166),ht=ne.n(dt),ft=ne(0),_t=ne(41),yt=ne(4),vt=ne(34),wt=ne.n(vt);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne &{color:inherit;}",""],Me.mixins.reset("block"),Me.variables.fontSizeSmall,(function(G){return!G.$help&&Object(ze.css)(["margin-top:",";"],Object(Me.pick)({enterprise:"2px",prisma:"4px"}))})),_t=$e.a.span.withConfig({displayName:"ControlGroupStyles__StyledAsterisk",componentId:"wjnyif-8"})(["color:inherit;margin-right:2px;"]),yt=se.a.createContext({});function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne0&&(se.prepend=!0),ne1&&(se.inline=!0),"stack"===ce&&(se.inline=!1,ne0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},1159:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(0),se=ne(3),ce=ne(1158);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},1160:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=240)}({1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(1308)},240:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"legacyRefMode",(function(){return ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(15),Se=ne.n(Ce),Me=(ne(90),ne(71)),ke=ne.n(Me),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(8),$e=ne(7),Je=ne(21),it=ne.n(Je),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;ne{var{earliest:Z,latest:ne}=G;return{earliest:(0,fe.default)(Z,fe.default.ISO_8601).isValid()?fe.default.newSplunkTime({time:Z}).format("YYYY-MM-DDTHH:mm:ss.SSSZ"):Z,latest:(0,fe.default)(ne,fe.default.ISO_8601).isValid()?fe.default.newSplunkTime({time:ne}).format("YYYY-MM-DDTHH:mm:ss.SSSZ"):ne}};Z.timerangeQueryParametersString=G=>{var Z="";if(!G)return Z;var ne=[];return G.earliest&&ne.push("earliest=".concat(G.earliest)),G.latest&&ne.push("latest=".concat(G.latest)),ne.length&&(Z=ne.join("&")),Z};Z.parseExprToSeconds=function parseExprToSeconds(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"5s";try{if((0,se.default)(G))return Math.abs(parseInt(G,10));if((0,ce.default)(G)){var Z=(0,me.epochToMoment)(),{momentTime:ne}=(0,me.parse)("+".concat(G),Z),ie=ne.diff(Z,"seconds");return Math.abs(ie)}return 0}catch(G){return 0}};Z.getStatusMessage=(G,Z,ne)=>{if("running"===G){if(Z)return(0,ge.gettext)("Real-time search is running");if(0===ne)return(0,ge.gettext)("Search is running, but not enough data to render visualization")}return"queued"===G||"parsing"===G?(0,ge.gettext)("Search is not yet running, queued on server"):"done"===G&&0===ne?(0,ge.gettext)("Search ran successfully, but no results were returned"):""}},1162:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getCustomizedTheme=Z.addThemeDefaults=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2886));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Z.addThemeDefaults=function addThemeDefaults(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},1163:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getCustomizedTheme=Z.addThemeDefaults=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2896));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Z.addThemeDefaults=function addThemeDefaults(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},1164:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getCustomizedTheme=Z.addThemeDefaults=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2902));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Z.addThemeDefaults=function addThemeDefaults(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},1165:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},117:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return textModel_TextModel})),ne.d(Z,"a",(function(){return ModelDecorationOptions}));var ie=ne(51),se=ne(19),ce=ne(10),fe=ne(27),me=ne(94),ge=ne(109),Ce=ne(34),Se=ne(12),Me=ne(80),ke=ne(194),xe=ne(911);class SpacesDiffResult{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function spacesDiff(G,Z,ne,ie,se){let ce;for(se.spacesDiff=0,se.looksLikeAlignment=!1,ce=0;ce0&&me>0)return;if(ge>0&&Ce>0)return;let Se=Math.abs(me-Ce),Me=Math.abs(fe-ge);if(0===Se)return se.spacesDiff=Me,void(Me>0&&0<=ge-1&&ge-10?se++:Ie>1&&ce++,spacesDiff(fe,me,Me,De,Se),Se.looksLikeAlignment&&(!ne||Z!==Se.spacesDiff))continue;let ze=Se.spacesDiff;ze<=8&&Ce[ze]++,fe=Me,me=De}let Me=ne;se!==ce&&(Me=se{let ne=Ce[Z];ne>G&&(G=ne,ke=Z)}),4===ke&&Ce[4]>0&&Ce[2]>0&&Ce[2]>=Ce[4]/2&&(ke=2)}return{insertSpaces:Me,tabSize:ke}}function getNodeColor(G){return(1&G.metadata)>>>0}function setNodeColor(G,Z){G.metadata=254&G.metadata|Z<<0}function getNodeIsVisited(G){return(2&G.metadata)>>>1==1}function setNodeIsVisited(G,Z){G.metadata=253&G.metadata|(Z?1:0)<<1}function getNodeIsForValidation(G){return(4&G.metadata)>>>2==1}function setNodeIsForValidation(G,Z){G.metadata=251&G.metadata|(Z?1:0)<<2}function _setNodeStickiness(G,Z){G.metadata=231&G.metadata|Z<<3}function setCollapseOnReplaceEdit(G,Z){G.metadata=223&G.metadata|(Z?1:0)<<5}class IntervalNode{constructor(G,Z,ne){this.metadata=0,this.parent=this,this.left=this,this.right=this,setNodeColor(this,1),this.start=Z,this.end=ne,this.delta=0,this.maxEnd=ne,this.id=G,this.ownerId=0,this.options=null,setNodeIsForValidation(this,!1),_setNodeStickiness(this,1),setCollapseOnReplaceEdit(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=Z,this.cachedAbsoluteEnd=ne,this.range=null,setNodeIsVisited(this,!1)}reset(G,Z,ne,ie){this.start=Z,this.end=ne,this.maxEnd=ne,this.cachedVersionId=G,this.cachedAbsoluteStart=Z,this.cachedAbsoluteEnd=ne,this.range=ie}setOptions(G){this.options=G;let Z=this.options.className;setNodeIsForValidation(this,"squiggly-error"===Z||"squiggly-warning"===Z||"squiggly-info"===Z),_setNodeStickiness(this,this.options.stickiness),setCollapseOnReplaceEdit(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(G,Z,ne){this.cachedVersionId!==ne&&(this.range=null),this.cachedVersionId=ne,this.cachedAbsoluteStart=G,this.cachedAbsoluteEnd=Z}detach(){this.parent=null,this.left=null,this.right=null}}const De=new IntervalNode(null,0,0);De.parent=De,De.left=De,De.right=De,setNodeColor(De,0);class IntervalTree{constructor(){this.root=De,this.requestNormalizeDelta=!1}intervalSearch(G,Z,ne,ie,se){return this.root===De?[]:function intervalSearch(G,Z,ne,ie,se,ce){let fe=G.root,me=0,ge=0,Ce=0,Se=0,Me=[],ke=0;for(;fe!==De;)if(getNodeIsVisited(fe))setNodeIsVisited(fe.left,!1),setNodeIsVisited(fe.right,!1),fe===fe.parent.right&&(me-=fe.parent.delta),fe=fe.parent;else{if(!getNodeIsVisited(fe.left)){if(ge=me+fe.maxEnd,gene)setNodeIsVisited(fe,!0);else{if(Se=me+fe.end,Se>=Z){fe.setCachedOffsets(Ce,Se,ce);let G=!0;ie&&fe.ownerId&&fe.ownerId!==ie&&(G=!1),se&&getNodeIsForValidation(fe)&&(G=!1),G&&(Me[ke++]=fe)}setNodeIsVisited(fe,!0),fe.right===De||getNodeIsVisited(fe.right)||(me+=fe.delta,fe=fe.right)}}return setNodeIsVisited(G.root,!1),Me}(this,G,Z,ne,ie,se)}search(G,Z,ne){return this.root===De?[]:function search(G,Z,ne,ie){let se=G.root,ce=0,fe=0,me=0,ge=[],Ce=0;for(;se!==De;){if(getNodeIsVisited(se)){setNodeIsVisited(se.left,!1),setNodeIsVisited(se.right,!1),se===se.parent.right&&(ce-=se.parent.delta),se=se.parent;continue}if(se.left!==De&&!getNodeIsVisited(se.left)){se=se.left;continue}fe=ce+se.start,me=ce+se.end,se.setCachedOffsets(fe,me,ie);let G=!0;Z&&se.ownerId&&se.ownerId!==Z&&(G=!1),ne&&getNodeIsForValidation(se)&&(G=!1),G&&(ge[Ce++]=se),setNodeIsVisited(se,!0),se.right===De||getNodeIsVisited(se.right)||(ce+=se.delta,se=se.right)}return setNodeIsVisited(G.root,!1),ge}(this,G,Z,ne)}collectNodesFromOwner(G){return function collectNodesFromOwner(G,Z){let ne=G.root,ie=[],se=0;for(;ne!==De;)getNodeIsVisited(ne)?(setNodeIsVisited(ne.left,!1),setNodeIsVisited(ne.right,!1),ne=ne.parent):ne.left===De||getNodeIsVisited(ne.left)?(ne.ownerId===Z&&(ie[se++]=ne),setNodeIsVisited(ne,!0),ne.right===De||getNodeIsVisited(ne.right)||(ne=ne.right)):ne=ne.left;return setNodeIsVisited(G.root,!1),ie}(this,G)}collectNodesPostOrder(){return function collectNodesPostOrder(G){let Z=G.root,ne=[],ie=0;for(;Z!==De;)getNodeIsVisited(Z)?(setNodeIsVisited(Z.left,!1),setNodeIsVisited(Z.right,!1),Z=Z.parent):Z.left===De||getNodeIsVisited(Z.left)?Z.right===De||getNodeIsVisited(Z.right)?(ne[ie++]=Z,setNodeIsVisited(Z,!0)):Z=Z.right:Z=Z.left;return setNodeIsVisited(G.root,!1),ne}(this)}insert(G){rbTreeInsert(this,G),this._normalizeDeltaIfNecessary()}delete(G){rbTreeDelete(this,G),this._normalizeDeltaIfNecessary()}resolveNode(G,Z){const ne=G;let ie=0;for(;G!==this.root;)G===G.parent.right&&(ie+=G.parent.delta),G=G.parent;const se=ne.start+ie,ce=ne.end+ie;ne.setCachedOffsets(se,ce,Z)}acceptReplace(G,Z,ne,ie){const se=function searchForEditing(G,Z,ne){let ie=G.root,se=0,ce=0,fe=0,me=0,ge=[],Ce=0;for(;ie!==De;)if(getNodeIsVisited(ie))setNodeIsVisited(ie.left,!1),setNodeIsVisited(ie.right,!1),ie===ie.parent.right&&(se-=ie.parent.delta),ie=ie.parent;else{if(!getNodeIsVisited(ie.left)){if(ce=se+ie.maxEnd,cene?setNodeIsVisited(ie,!0):(me=se+ie.end,me>=Z&&(ie.setCachedOffsets(fe,me,0),ge[Ce++]=ie),setNodeIsVisited(ie,!0),ie.right===De||getNodeIsVisited(ie.right)||(se+=ie.delta,ie=ie.right))}return setNodeIsVisited(G.root,!1),ge}(this,G,G+Z);for(let G=0,Z=se.length;Gne?(se.start+=ge,se.end+=ge,se.delta+=ge,(se.delta<-1073741824||se.delta>1073741824)&&(G.requestNormalizeDelta=!0),setNodeIsVisited(se,!0)):(setNodeIsVisited(se,!0),se.right===De||getNodeIsVisited(se.right)||(ce+=se.delta,se=se.right))}setNodeIsVisited(G.root,!1)}(this,G,G+Z,ne),this._normalizeDeltaIfNecessary();for(let ce=0,fe=se.length;cene)&&(1!==ie&&(2===ie||Z))}function nodeAcceptEdit(G,Z,ne,ie,se){const ce=function getNodeStickiness(G){return(24&G.metadata)>>>3}(G),fe=0===ce||2===ce,me=1===ce||2===ce,ge=ne-Z,Ce=ie,Se=Math.min(ge,Ce),Me=G.start;let ke=!1;const xe=G.end;let De=!1;Z<=Me&&xe<=ne&&function getCollapseOnReplaceEdit(G){return(32&G.metadata)>>>5==1}(G)&&(G.start=Z,ke=!0,G.end=Z,De=!0);{const G=se?1:ge>0?2:0;!ke&&adjustMarkerBeforeColumn(Me,fe,Z,G)&&(ke=!0),!De&&adjustMarkerBeforeColumn(xe,me,Z,G)&&(De=!0)}if(Se>0&&!se){const G=ge>Ce?2:0;!ke&&adjustMarkerBeforeColumn(Me,fe,Z+Se,G)&&(ke=!0),!De&&adjustMarkerBeforeColumn(xe,me,Z+Se,G)&&(De=!0)}{const ie=se?1:0;!ke&&adjustMarkerBeforeColumn(Me,fe,ne,ie)&&(G.start=Z+Ce,ke=!0),!De&&adjustMarkerBeforeColumn(xe,me,ne,ie)&&(G.end=Z+Ce,De=!0)}const Ie=Ce-ge;ke||(G.start=Math.max(0,Me+Ie)),De||(G.end=Math.max(0,xe+Ie)),G.start>G.end&&(G.end=G.start)}function rbTreeInsert(G,Z){if(G.root===De)return Z.parent=De,Z.left=De,Z.right=De,setNodeColor(Z,0),G.root=Z,G.root;!function treeInsert(G,Z){let ne=0,ie=G.root;const se=Z.start,ce=Z.end;for(;;){if(intervalCompare(se,ce,ie.start+ne,ie.end+ne)<0){if(ie.left===De){Z.start-=ne,Z.end-=ne,Z.maxEnd-=ne,ie.left=Z;break}ie=ie.left}else{if(ie.right===De){Z.start-=ne+ie.delta,Z.end-=ne+ie.delta,Z.maxEnd-=ne+ie.delta,ie.right=Z;break}ne+=ie.delta,ie=ie.right}}Z.parent=ie,Z.left=De,Z.right=De,setNodeColor(Z,1)}(G,Z),recomputeMaxEndWalkToRoot(Z.parent);let ne=Z;for(;ne!==G.root&&1===getNodeColor(ne.parent);)if(ne.parent===ne.parent.parent.left){const Z=ne.parent.parent.right;1===getNodeColor(Z)?(setNodeColor(ne.parent,0),setNodeColor(Z,0),setNodeColor(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.right&&(ne=ne.parent,leftRotate(G,ne)),setNodeColor(ne.parent,0),setNodeColor(ne.parent.parent,1),rightRotate(G,ne.parent.parent))}else{const Z=ne.parent.parent.left;1===getNodeColor(Z)?(setNodeColor(ne.parent,0),setNodeColor(Z,0),setNodeColor(ne.parent.parent,1),ne=ne.parent.parent):(ne===ne.parent.left&&(ne=ne.parent,rightRotate(G,ne)),setNodeColor(ne.parent,0),setNodeColor(ne.parent.parent,1),leftRotate(G,ne.parent.parent))}return setNodeColor(G.root,0),Z}function rbTreeDelete(G,Z){let ne,ie;if(Z.left===De?(ne=Z.right,ie=Z,ne.delta+=Z.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(G.requestNormalizeDelta=!0),ne.start+=Z.delta,ne.end+=Z.delta):Z.right===De?(ne=Z.left,ie=Z):(ie=function leftest(G){for(;G.left!==De;)G=G.left;return G}(Z.right),ne=ie.right,ne.start+=ie.delta,ne.end+=ie.delta,ne.delta+=ie.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(G.requestNormalizeDelta=!0),ie.start+=Z.delta,ie.end+=Z.delta,ie.delta=Z.delta,(ie.delta<-1073741824||ie.delta>1073741824)&&(G.requestNormalizeDelta=!0)),ie===G.root)return G.root=ne,setNodeColor(ne,0),Z.detach(),resetSentinel(),recomputeMaxEnd(ne),void(G.root.parent=De);let se,ce=1===getNodeColor(ie);if(ie===ie.parent.left?ie.parent.left=ne:ie.parent.right=ne,ie===Z?ne.parent=ie.parent:(ie.parent===Z?ne.parent=ie:ne.parent=ie.parent,ie.left=Z.left,ie.right=Z.right,ie.parent=Z.parent,setNodeColor(ie,getNodeColor(Z)),Z===G.root?G.root=ie:Z===Z.parent.left?Z.parent.left=ie:Z.parent.right=ie,ie.left!==De&&(ie.left.parent=ie),ie.right!==De&&(ie.right.parent=ie)),Z.detach(),ce)return recomputeMaxEndWalkToRoot(ne.parent),ie!==Z&&(recomputeMaxEndWalkToRoot(ie),recomputeMaxEndWalkToRoot(ie.parent)),void resetSentinel();for(recomputeMaxEndWalkToRoot(ne),recomputeMaxEndWalkToRoot(ne.parent),ie!==Z&&(recomputeMaxEndWalkToRoot(ie),recomputeMaxEndWalkToRoot(ie.parent));ne!==G.root&&0===getNodeColor(ne);)ne===ne.parent.left?(se=ne.parent.right,1===getNodeColor(se)&&(setNodeColor(se,0),setNodeColor(ne.parent,1),leftRotate(G,ne.parent),se=ne.parent.right),0===getNodeColor(se.left)&&0===getNodeColor(se.right)?(setNodeColor(se,1),ne=ne.parent):(0===getNodeColor(se.right)&&(setNodeColor(se.left,0),setNodeColor(se,1),rightRotate(G,se),se=ne.parent.right),setNodeColor(se,getNodeColor(ne.parent)),setNodeColor(ne.parent,0),setNodeColor(se.right,0),leftRotate(G,ne.parent),ne=G.root)):(se=ne.parent.left,1===getNodeColor(se)&&(setNodeColor(se,0),setNodeColor(ne.parent,1),rightRotate(G,ne.parent),se=ne.parent.left),0===getNodeColor(se.left)&&0===getNodeColor(se.right)?(setNodeColor(se,1),ne=ne.parent):(0===getNodeColor(se.left)&&(setNodeColor(se.right,0),setNodeColor(se,1),leftRotate(G,se),se=ne.parent.left),setNodeColor(se,getNodeColor(ne.parent)),setNodeColor(ne.parent,0),setNodeColor(se.left,0),rightRotate(G,ne.parent),ne=G.root));setNodeColor(ne,0),resetSentinel()}function resetSentinel(){De.parent=De,De.delta=0,De.start=0,De.end=0}function leftRotate(G,Z){const ne=Z.right;ne.delta+=Z.delta,(ne.delta<-1073741824||ne.delta>1073741824)&&(G.requestNormalizeDelta=!0),ne.start+=Z.delta,ne.end+=Z.delta,Z.right=ne.left,ne.left!==De&&(ne.left.parent=Z),ne.parent=Z.parent,Z.parent===De?G.root=ne:Z===Z.parent.left?Z.parent.left=ne:Z.parent.right=ne,ne.left=Z,Z.parent=ne,recomputeMaxEnd(Z),recomputeMaxEnd(ne)}function rightRotate(G,Z){const ne=Z.left;Z.delta-=ne.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&(G.requestNormalizeDelta=!0),Z.start-=ne.delta,Z.end-=ne.delta,Z.left=ne.right,ne.right!==De&&(ne.right.parent=Z),ne.parent=Z.parent,Z.parent===De?G.root=ne:Z===Z.parent.right?Z.parent.right=ne:Z.parent.left=ne,ne.right=Z,Z.parent=ne,recomputeMaxEnd(Z),recomputeMaxEnd(ne)}function computeMaxEnd(G){let Z=G.end;if(G.left!==De){const ne=G.left.maxEnd;ne>Z&&(Z=ne)}if(G.right!==De){const ne=G.right.maxEnd+G.delta;ne>Z&&(Z=ne)}return Z}function recomputeMaxEnd(G){G.maxEnd=computeMaxEnd(G)}function recomputeMaxEndWalkToRoot(G){for(;G!==De;){const Z=computeMaxEnd(G);if(G.maxEnd===Z)return;G.maxEnd=Z,G=G.parent}}function intervalCompare(G,Z,ne,ie){return G===ne?Z-ie:G-ne}class TreeNode{constructor(G,Z){this.piece=G,this.color=Z,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Ie)return rbTreeBase_leftest(this.right);let G=this;for(;G.parent!==Ie&&G.parent.left!==G;)G=G.parent;return G.parent===Ie?Ie:G.parent}prev(){if(this.left!==Ie)return righttest(this.left);let G=this;for(;G.parent!==Ie&&G.parent.right!==G;)G=G.parent;return G.parent===Ie?Ie:G.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Ie=new TreeNode(null,0);function rbTreeBase_leftest(G){for(;G.left!==Ie;)G=G.left;return G}function righttest(G){for(;G.right!==Ie;)G=G.right;return G}function calculateSize(G){return G===Ie?0:G.size_left+G.piece.length+calculateSize(G.right)}function calculateLF(G){return G===Ie?0:G.lf_left+G.piece.lineFeedCnt+calculateLF(G.right)}function rbTreeBase_resetSentinel(){Ie.parent=Ie}function rbTreeBase_leftRotate(G,Z){let ne=Z.right;ne.size_left+=Z.size_left+(Z.piece?Z.piece.length:0),ne.lf_left+=Z.lf_left+(Z.piece?Z.piece.lineFeedCnt:0),Z.right=ne.left,ne.left!==Ie&&(ne.left.parent=Z),ne.parent=Z.parent,Z.parent===Ie?G.root=ne:Z.parent.left===Z?Z.parent.left=ne:Z.parent.right=ne,ne.left=Z,Z.parent=ne}function rbTreeBase_rightRotate(G,Z){let ne=Z.left;Z.left=ne.right,ne.right!==Ie&&(ne.right.parent=Z),ne.parent=Z.parent,Z.size_left-=ne.size_left+(ne.piece?ne.piece.length:0),Z.lf_left-=ne.lf_left+(ne.piece?ne.piece.lineFeedCnt:0),Z.parent===Ie?G.root=ne:Z===Z.parent.right?Z.parent.right=ne:Z.parent.left=ne,ne.right=Z,Z.parent=ne}function rbDelete(G,Z){let ne,ie;if(Z.left===Ie?(ie=Z,ne=ie.right):Z.right===Ie?(ie=Z,ne=ie.left):(ie=rbTreeBase_leftest(Z.right),ne=ie.right),ie===G.root)return G.root=ne,ne.color=0,Z.detach(),rbTreeBase_resetSentinel(),void(G.root.parent=Ie);let se,ce=1===ie.color;if(ie===ie.parent.left?ie.parent.left=ne:ie.parent.right=ne,ie===Z?(ne.parent=ie.parent,recomputeTreeMetadata(G,ne)):(ie.parent===Z?ne.parent=ie:ne.parent=ie.parent,recomputeTreeMetadata(G,ne),ie.left=Z.left,ie.right=Z.right,ie.parent=Z.parent,ie.color=Z.color,Z===G.root?G.root=ie:Z===Z.parent.left?Z.parent.left=ie:Z.parent.right=ie,ie.left!==Ie&&(ie.left.parent=ie),ie.right!==Ie&&(ie.right.parent=ie),ie.size_left=Z.size_left,ie.lf_left=Z.lf_left,recomputeTreeMetadata(G,ie)),Z.detach(),ne.parent.left===ne){let Z=calculateSize(ne),ie=calculateLF(ne);if(Z!==ne.parent.size_left||ie!==ne.parent.lf_left){let se=Z-ne.parent.size_left,ce=ie-ne.parent.lf_left;ne.parent.size_left=Z,ne.parent.lf_left=ie,updateTreeMetadata(G,ne.parent,se,ce)}}if(recomputeTreeMetadata(G,ne.parent),ce)rbTreeBase_resetSentinel();else{for(;ne!==G.root&&0===ne.color;)ne===ne.parent.left?(se=ne.parent.right,1===se.color&&(se.color=0,ne.parent.color=1,rbTreeBase_leftRotate(G,ne.parent),se=ne.parent.right),0===se.left.color&&0===se.right.color?(se.color=1,ne=ne.parent):(0===se.right.color&&(se.left.color=0,se.color=1,rbTreeBase_rightRotate(G,se),se=ne.parent.right),se.color=ne.parent.color,ne.parent.color=0,se.right.color=0,rbTreeBase_leftRotate(G,ne.parent),ne=G.root)):(se=ne.parent.left,1===se.color&&(se.color=0,ne.parent.color=1,rbTreeBase_rightRotate(G,ne.parent),se=ne.parent.left),0===se.left.color&&0===se.right.color?(se.color=1,ne=ne.parent):(0===se.left.color&&(se.right.color=0,se.color=1,rbTreeBase_leftRotate(G,se),se=ne.parent.left),se.color=ne.parent.color,ne.parent.color=0,se.left.color=0,rbTreeBase_rightRotate(G,ne.parent),ne=G.root));ne.color=0,rbTreeBase_resetSentinel()}}function fixInsert(G,Z){for(recomputeTreeMetadata(G,Z);Z!==G.root&&1===Z.parent.color;)if(Z.parent===Z.parent.parent.left){const ne=Z.parent.parent.right;1===ne.color?(Z.parent.color=0,ne.color=0,Z.parent.parent.color=1,Z=Z.parent.parent):(Z===Z.parent.right&&rbTreeBase_leftRotate(G,Z=Z.parent),Z.parent.color=0,Z.parent.parent.color=1,rbTreeBase_rightRotate(G,Z.parent.parent))}else{const ne=Z.parent.parent.left;1===ne.color?(Z.parent.color=0,ne.color=0,Z.parent.parent.color=1,Z=Z.parent.parent):(Z===Z.parent.left&&rbTreeBase_rightRotate(G,Z=Z.parent),Z.parent.color=0,Z.parent.parent.color=1,rbTreeBase_leftRotate(G,Z.parent.parent))}G.root.color=0}function updateTreeMetadata(G,Z,ne,ie){for(;Z!==G.root&&Z!==Ie;)Z.parent.left===Z&&(Z.parent.size_left+=ne,Z.parent.lf_left+=ie),Z=Z.parent}function recomputeTreeMetadata(G,Z){let ne=0,ie=0;if(Z!==G.root){if(0===ne){for(;Z!==G.root&&Z===Z.parent.right;)Z=Z.parent;if(Z===G.root)return;ne=calculateSize((Z=Z.parent).left)-Z.size_left,ie=calculateLF(Z.left)-Z.lf_left,Z.size_left+=ne,Z.lf_left+=ie}for(;Z!==G.root&&(0!==ne||0!==ie);)Z.parent.left===Z&&(Z.parent.size_left+=ne,Z.parent.lf_left+=ie),Z=Z.parent}}Ie.parent=Ie,Ie.left=Ie,Ie.right=Ie,Ie.color=0;var Re=ne(467);function createUintArray(G){let Z;return Z=G[G.length-1]<65536?new Uint16Array(G.length):new Uint32Array(G.length),Z.set(G,0),Z}class LineStarts{constructor(G,Z,ne,ie,se){this.lineStarts=G,this.cr=Z,this.lf=ne,this.crlf=ie,this.isBasicASCII=se}}function createLineStartsFast(G,Z=!0){let ne=[0],ie=1;for(let Z=0,se=G.length;Z(G!==Ie&&this._pieces.push(G.piece),!0))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class PieceTreeSearchCache{constructor(G){this._limit=G,this._cache=[]}get(G){for(let Z=this._cache.length-1;Z>=0;Z--){let ne=this._cache[Z];if(ne.nodeStartOffset<=G&&ne.nodeStartOffset+ne.node.piece.length>=G)return ne}return null}get2(G){for(let Z=this._cache.length-1;Z>=0;Z--){let ne=this._cache[Z];if(ne.nodeStartLineNumber&&ne.nodeStartLineNumber=G)return ne}return null}set(G){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(G)}validate(G){let Z=!1,ne=this._cache;for(let ie=0;ie=G)&&(ne[ie]=null,Z=!0)}if(Z){let G=[];for(const Z of ne)null!==Z&&G.push(Z);this._cache=G}}}class pieceTreeBase_PieceTreeBase{constructor(G,Z,ne){this.create(G,Z,ne)}create(G,Z,ne){this._buffers=[new StringBuffer("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Ie,this._lineCnt=1,this._length=0,this._EOL=Z,this._EOLLength=Z.length,this._EOLNormalized=ne;let ie=null;for(let Z=0,ne=G.length;Z0){G[Z].lineStarts||(G[Z].lineStarts=createLineStartsFast(G[Z].buffer));let ne=new Piece(Z+1,{line:0,column:0},{line:G[Z].lineStarts.length-1,column:G[Z].buffer.length-G[Z].lineStarts[G[Z].lineStarts.length-1]},G[Z].lineStarts.length-1,G[Z].buffer.length);this._buffers.push(G[Z]),ie=this.rbInsertRight(ie,ne)}this._searchCache=new PieceTreeSearchCache(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(G){let Z=65535-Math.floor(21845),ne=2*Z,ie="",se=0,ce=[];if(this.iterate(this.root,fe=>{let me=this.getNodeContent(fe),ge=me.length;if(se<=Z||se+ge0){let Z=ie.replace(/\r\n|\r|\n/g,G);ce.push(new StringBuffer(Z,createLineStartsFast(Z)))}this.create(ce,G,!0)}getEOL(){return this._EOL}setEOL(G){this._EOL=G,this._EOLLength=this._EOL.length,this.normalizeEOL(G)}createSnapshot(G){return new pieceTreeBase_PieceTreeSnapshot(this,G)}getOffsetAt(G,Z){let ne=0,ie=this.root;for(;ie!==Ie;)if(ie.left!==Ie&&ie.lf_left+1>=G)ie=ie.left;else{if(ie.lf_left+ie.piece.lineFeedCnt+1>=G){return ne+=ie.size_left,ne+(this.getAccumulatedValue(ie,G-ie.lf_left-2)+Z-1)}G-=ie.lf_left+ie.piece.lineFeedCnt,ne+=ie.size_left+ie.piece.length,ie=ie.right}return ne}getPositionAt(G){G=Math.floor(G),G=Math.max(0,G);let Z=this.root,ne=0,ie=G;for(;Z!==Ie;)if(0!==Z.size_left&&Z.size_left>=G)Z=Z.left;else{if(Z.size_left+Z.piece.length>=G){let se=this.getIndexOf(Z,G-Z.size_left);if(ne+=Z.lf_left+se.index,0===se.index){let G=ie-this.getOffsetAt(ne+1,1);return new Ce.a(ne+1,G+1)}return new Ce.a(ne+1,se.remainder+1)}if(G-=Z.size_left+Z.piece.length,ne+=Z.lf_left+Z.piece.lineFeedCnt,Z.right===Ie){let Z=ie-G-this.getOffsetAt(ne+1,1);return new Ce.a(ne+1,Z+1)}Z=Z.right}return new Ce.a(1,1)}getValueInRange(G,Z){if(G.startLineNumber===G.endLineNumber&&G.startColumn===G.endColumn)return"";let ne=this.nodeAt2(G.startLineNumber,G.startColumn),ie=this.nodeAt2(G.endLineNumber,G.endColumn),se=this.getValueInRange2(ne,ie);return Z?Z===this._EOL&&this._EOLNormalized&&Z===this.getEOL()&&this._EOLNormalized?se:se.replace(/\r\n|\r|\n/g,Z):se}getValueInRange2(G,Z){if(G.node===Z.node){let ne=G.node,ie=this._buffers[ne.piece.bufferIndex].buffer,se=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);return ie.substring(se+G.remainder,se+Z.remainder)}let ne=G.node,ie=this._buffers[ne.piece.bufferIndex].buffer,se=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start),ce=ie.substring(se+G.remainder,se+ne.piece.length);for(ne=ne.next();ne!==Ie;){let G=this._buffers[ne.piece.bufferIndex].buffer,ie=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);if(ne===Z.node){ce+=G.substring(ie,ie+Z.remainder);break}ce+=G.substr(ie,ne.piece.length),ne=ne.next()}return ce}getLinesContent(){let G=[],Z=0,ne="",ie=!1;return this.iterate(this.root,se=>{if(se===Ie)return!0;const ce=se.piece;let fe=ce.length;if(0===fe)return!0;const me=this._buffers[ce.bufferIndex].buffer,ge=this._buffers[ce.bufferIndex].lineStarts,Ce=ce.start.line,Se=ce.end.line;let Me=ge[Ce]+ce.start.column;if(ie&&(10===me.charCodeAt(Me)&&(Me++,fe--),G[Z++]=ne,ne="",ie=!1,0===fe))return!0;if(Ce===Se)return this._EOLNormalized||13!==me.charCodeAt(Me+fe-1)?ne+=me.substr(Me,fe):(ie=!0,ne+=me.substr(Me,fe-1)),!0;ne+=this._EOLNormalized?me.substring(Me,Math.max(Me,ge[Ce+1]-this._EOLLength)):me.substring(Me,ge[Ce+1]).replace(/(\r\n|\r|\n)$/,""),G[Z++]=ne;for(let ie=Ce+1;ieG+$e,Z.reset(0)):(xe=Ie.buffer,De=G=>G,Z.reset($e));do{if(ke=Z.next(xe),ke){if(De(ke.index)>=Je)return Ce;this.positionInBuffer(G,De(ke.index)-ze,it);let Z=this.getLineFeedCnt(G.piece.bufferIndex,se,it),ce=it.line===se.line?it.column-se.column+ie:it.column+1,fe=ce+ke[0].length;if(Me[Ce++]=Object(Re.d)(new Se.a(ne+Z,ce,ne+Z,fe),ke,me),De(ke.index)+ke[0].length>=Je)return Ce;if(Ce>=ge)return Ce}}while(ke);return Ce}findMatchesLineByLine(G,Z,ne,ie){const se=[];let ce=0;const fe=new Re.b(Z.wordSeparators,Z.regex);let me=this.nodeAt2(G.startLineNumber,G.startColumn);if(null===me)return[];let ge=this.nodeAt2(G.endLineNumber,G.endColumn);if(null===ge)return[];let Ce=this.positionInBuffer(me.node,me.remainder),Se=this.positionInBuffer(ge.node,ge.remainder);if(me.node===ge.node)return this.findMatchesInNode(me.node,fe,G.startLineNumber,G.startColumn,Ce,Se,Z,ne,ie,ce,se),se;let Me=G.startLineNumber,ke=me.node;for(;ke!==ge.node;){let ge=this.getLineFeedCnt(ke.piece.bufferIndex,Ce,ke.piece.end);if(ge>=1){let me=this._buffers[ke.piece.bufferIndex].lineStarts,Se=this.offsetInBuffer(ke.piece.bufferIndex,ke.piece.start),xe=me[Ce.line+ge],De=Me===G.startLineNumber?G.startColumn:1;if(ce=this.findMatchesInNode(ke,fe,Me,De,Ce,this.positionInBuffer(ke,xe-Se),Z,ne,ie,ce,se),ce>=ie)return se;Me+=ge}let Se=Me===G.startLineNumber?G.startColumn-1:0;if(Me===G.endLineNumber){const me=this.getLineContent(Me).substring(Se,G.endColumn-1);return ce=this._findMatchesInLine(Z,fe,me,G.endLineNumber,Se,ce,se,ne,ie),se}if(ce=this._findMatchesInLine(Z,fe,this.getLineContent(Me).substr(Se),Me,Se,ce,se,ne,ie),ce>=ie)return se;Me++,me=this.nodeAt2(Me,1),ke=me.node,Ce=this.positionInBuffer(me.node,me.remainder)}if(Me===G.endLineNumber){let me=Me===G.startLineNumber?G.startColumn-1:0;const ge=this.getLineContent(Me).substring(me,G.endColumn-1);return ce=this._findMatchesInLine(Z,fe,ge,G.endLineNumber,me,ce,se,ne,ie),se}let xe=Me===G.startLineNumber?G.startColumn:1;return ce=this.findMatchesInNode(ge.node,fe,Me,xe,Ce,Se,Z,ne,ie,ce,se),se}_findMatchesInLine(G,Z,ne,ie,se,ce,fe,me,ge){const Ce=G.wordSeparators;if(!me&&G.simpleSearch){const Z=G.simpleSearch,me=Z.length,Me=ne.length;let xe=-me;for(;-1!==(xe=ne.indexOf(Z,xe+me));)if((!Ce||Object(Re.e)(Ce,ne,Me,xe,me))&&(fe[ce++]=new ke.b(new Se.a(ie,xe+1+se,ie,xe+1+me+se),null),ce>=ge))return ce;return ce}let Me;Z.reset(0);do{if(Me=Z.next(ne),Me&&(fe[ce++]=Object(Re.d)(new Se.a(ie,Me.index+1+se,ie,Me.index+1+Me[0].length+se),Me,me),ce>=ge))return ce}while(Me);return ce}insert(G,Z,ne=!1){if(this._EOLNormalized=this._EOLNormalized&&ne,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Ie){let{node:ne,remainder:ie,nodeStartOffset:se}=this.nodeAt(G),ce=ne.piece,fe=ce.bufferIndex,me=this.positionInBuffer(ne,ie);if(0===ne.piece.bufferIndex&&ce.end.line===this._lastChangeBufferPos.line&&ce.end.column===this._lastChangeBufferPos.column&&se+ce.length===G&&Z.length<65535)return this.appendToNode(ne,Z),void this.computeBufferMetadata();if(se===G)this.insertContentToNodeLeft(Z,ne),this._searchCache.validate(G);else if(se+ne.piece.length>G){let G=[],se=new Piece(ce.bufferIndex,me,ce.end,this.getLineFeedCnt(ce.bufferIndex,me,ce.end),this.offsetInBuffer(fe,ce.end)-this.offsetInBuffer(fe,me));if(this.shouldCheckCRLF()&&this.endWithCR(Z)){if(10===this.nodeCharCodeAt(ne,ie)){let G={line:se.start.line+1,column:0};se=new Piece(se.bufferIndex,G,se.end,this.getLineFeedCnt(se.bufferIndex,G,se.end),se.length-1),Z+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(Z)){if(13===this.nodeCharCodeAt(ne,ie-1)){let se=this.positionInBuffer(ne,ie-1);this.deleteNodeTail(ne,se),Z="\r"+Z,0===ne.piece.length&&G.push(ne)}else this.deleteNodeTail(ne,me)}else this.deleteNodeTail(ne,me);let ge=this.createNewPieces(Z);se.length>0&&this.rbInsertRight(ne,se);let Ce=ne;for(let G=0;G=0;G--)se=this.rbInsertLeft(se,ie[G]);this.validateCRLFWithPrevNode(se),this.deleteNodes(ne)}insertContentToNodeRight(G,Z){this.adjustCarriageReturnFromNext(G,Z)&&(G+="\n");let ne=this.createNewPieces(G),ie=this.rbInsertRight(Z,ne[0]),se=ie;for(let G=1;G=Se))break;me=Ce+1}return ne?(ne.line=Ce,ne.column=fe-Me,null):{line:Ce,column:fe-Me}}getLineFeedCnt(G,Z,ne){if(0===ne.column)return ne.line-Z.line;let ie=this._buffers[G].lineStarts;if(ne.line===ie.length-1)return ne.line-Z.line;let se=ie[ne.line+1],ce=ie[ne.line]+ne.column;if(se>ce+1)return ne.line-Z.line;let fe=ce-1;return 13===this._buffers[G].buffer.charCodeAt(fe)?ne.line-Z.line+1:ne.line-Z.line}offsetInBuffer(G,Z){return this._buffers[G].lineStarts[Z.line]+Z.column}deleteNodes(G){for(let Z=0;Z65535){let Z=[];for(;G.length>65535;){const ne=G.charCodeAt(65534);let ie;13===ne||ne>=55296&&ne<=56319?(ie=G.substring(0,65534),G=G.substring(65534)):(ie=G.substring(0,65535),G=G.substring(65535));let se=createLineStartsFast(ie);Z.push(new Piece(this._buffers.length,{line:0,column:0},{line:se.length-1,column:ie.length-se[se.length-1]},se.length-1,ie.length)),this._buffers.push(new StringBuffer(ie,se))}let ne=createLineStartsFast(G);return Z.push(new Piece(this._buffers.length,{line:0,column:0},{line:ne.length-1,column:G.length-ne[ne.length-1]},ne.length-1,G.length)),this._buffers.push(new StringBuffer(G,ne)),Z}let Z=this._buffers[0].buffer.length;const ne=createLineStartsFast(G,!1);let ie=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===Z&&0!==Z&&this.startWithLF(G)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},ie=this._lastChangeBufferPos;for(let G=0;G=G-1)ne=ne.left;else{if(ne.lf_left+ne.piece.lineFeedCnt>G-1){let ie=this.getAccumulatedValue(ne,G-ne.lf_left-2),fe=this.getAccumulatedValue(ne,G-ne.lf_left-1),me=this._buffers[ne.piece.bufferIndex].buffer,ge=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);return se+=ne.size_left,this._searchCache.set({node:ne,nodeStartOffset:se,nodeStartLineNumber:ce-(G-1-ne.lf_left)}),me.substring(ge+ie,ge+fe-Z)}if(ne.lf_left+ne.piece.lineFeedCnt===G-1){let Z=this.getAccumulatedValue(ne,G-ne.lf_left-2),se=this._buffers[ne.piece.bufferIndex].buffer,ce=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);ie=se.substring(ce+Z,ce+ne.piece.length);break}G-=ne.lf_left+ne.piece.lineFeedCnt,se+=ne.size_left+ne.piece.length,ne=ne.right}}for(ne=ne.next();ne!==Ie;){let G=this._buffers[ne.piece.bufferIndex].buffer;if(ne.piece.lineFeedCnt>0){let se=this.getAccumulatedValue(ne,0),ce=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);return ie+=G.substring(ce,ce+se-Z),ie}{let Z=this.offsetInBuffer(ne.piece.bufferIndex,ne.piece.start);ie+=G.substr(Z,ne.piece.length)}ne=ne.next()}return ie}computeBufferMetadata(){let G=this.root,Z=1,ne=0;for(;G!==Ie;)Z+=G.lf_left+G.piece.lineFeedCnt,ne+=G.size_left+G.piece.length,G=G.right;this._lineCnt=Z,this._length=ne,this._searchCache.validate(this._length)}getIndexOf(G,Z){let ne=G.piece,ie=this.positionInBuffer(G,Z),se=ie.line-ne.start.line;if(this.offsetInBuffer(ne.bufferIndex,ne.end)-this.offsetInBuffer(ne.bufferIndex,ne.start)===Z){let Z=this.getLineFeedCnt(G.piece.bufferIndex,ne.start,ie);if(Z!==se)return{index:Z,remainder:0}}return{index:se,remainder:ie.column}}getAccumulatedValue(G,Z){if(Z<0)return 0;let ne=G.piece,ie=this._buffers[ne.bufferIndex].lineStarts,se=ne.start.line+Z+1;return se>ne.end.line?ie[ne.end.line]+ne.end.column-ie[ne.start.line]-ne.start.column:ie[se]-ie[ne.start.line]-ne.start.column}deleteNodeTail(G,Z){const ne=G.piece,ie=ne.lineFeedCnt,se=this.offsetInBuffer(ne.bufferIndex,ne.end),ce=Z,fe=this.offsetInBuffer(ne.bufferIndex,ce),me=this.getLineFeedCnt(ne.bufferIndex,ne.start,ce),ge=me-ie,Ce=fe-se,Se=ne.length+Ce;G.piece=new Piece(ne.bufferIndex,ne.start,ce,me,Se),updateTreeMetadata(this,G,Ce,ge)}deleteNodeHead(G,Z){const ne=G.piece,ie=ne.lineFeedCnt,se=this.offsetInBuffer(ne.bufferIndex,ne.start),ce=Z,fe=this.getLineFeedCnt(ne.bufferIndex,ce,ne.end),me=fe-ie,ge=se-this.offsetInBuffer(ne.bufferIndex,ce),Ce=ne.length+ge;G.piece=new Piece(ne.bufferIndex,ce,ne.end,fe,Ce),updateTreeMetadata(this,G,ge,me)}shrinkNode(G,Z,ne){const ie=G.piece,se=ie.start,ce=ie.end,fe=ie.length,me=ie.lineFeedCnt,ge=Z,Ce=this.getLineFeedCnt(ie.bufferIndex,ie.start,ge),Se=this.offsetInBuffer(ie.bufferIndex,Z)-this.offsetInBuffer(ie.bufferIndex,se);G.piece=new Piece(ie.bufferIndex,ie.start,ge,Ce,Se),updateTreeMetadata(this,G,Se-fe,Ce-me);let Me=new Piece(ie.bufferIndex,ne,ce,this.getLineFeedCnt(ie.bufferIndex,ne,ce),this.offsetInBuffer(ie.bufferIndex,ce)-this.offsetInBuffer(ie.bufferIndex,ne)),ke=this.rbInsertRight(G,Me);this.validateCRLFWithPrevNode(ke)}appendToNode(G,Z){this.adjustCarriageReturnFromNext(Z,G)&&(Z+="\n");const ne=this.shouldCheckCRLF()&&this.startWithLF(Z)&&this.endWithCR(G),ie=this._buffers[0].buffer.length;this._buffers[0].buffer+=Z;const se=createLineStartsFast(Z,!1);for(let G=0;GG)Z=Z.left;else{if(Z.size_left+Z.piece.length>=G){ie+=Z.size_left;let ne={node:Z,remainder:G-Z.size_left,nodeStartOffset:ie};return this._searchCache.set(ne),ne}G-=Z.size_left+Z.piece.length,ie+=Z.size_left+Z.piece.length,Z=Z.right}return null}nodeAt2(G,Z){let ne=this.root,ie=0;for(;ne!==Ie;)if(ne.left!==Ie&&ne.lf_left>=G-1)ne=ne.left;else{if(ne.lf_left+ne.piece.lineFeedCnt>G-1){let se=this.getAccumulatedValue(ne,G-ne.lf_left-2),ce=this.getAccumulatedValue(ne,G-ne.lf_left-1);return ie+=ne.size_left,{node:ne,remainder:Math.min(se+Z-1,ce),nodeStartOffset:ie}}if(ne.lf_left+ne.piece.lineFeedCnt===G-1){let se=this.getAccumulatedValue(ne,G-ne.lf_left-2);if(se+Z-1<=ne.piece.length)return{node:ne,remainder:se+Z-1,nodeStartOffset:ie};Z-=ne.piece.length-se;break}G-=ne.lf_left+ne.piece.lineFeedCnt,ie+=ne.size_left+ne.piece.length,ne=ne.right}for(ne=ne.next();ne!==Ie;){if(ne.piece.lineFeedCnt>0){let G=this.getAccumulatedValue(ne,0),ie=this.offsetOfNode(ne);return{node:ne,remainder:Math.min(Z-1,G),nodeStartOffset:ie}}if(ne.piece.length>=Z-1){return{node:ne,remainder:Z-1,nodeStartOffset:this.offsetOfNode(ne)}}Z-=ne.piece.length,ne=ne.next()}return null}nodeCharCodeAt(G,Z){if(G.piece.lineFeedCnt<1)return-1;let ne=this._buffers[G.piece.bufferIndex],ie=this.offsetInBuffer(G.piece.bufferIndex,G.piece.start)+Z;return ne.buffer.charCodeAt(ie)}offsetOfNode(G){if(!G)return 0;let Z=G.size_left;for(;G!==this.root;)G.parent.right===G&&(Z+=G.parent.size_left+G.parent.piece.length),G=G.parent;return Z}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(G){if("string"==typeof G)return 10===G.charCodeAt(0);if(G===Ie||0===G.piece.lineFeedCnt)return!1;let Z=G.piece,ne=this._buffers[Z.bufferIndex].lineStarts,ie=Z.start.line,se=ne[ie]+Z.start.column;return ie!==ne.length-1&&(!(ne[ie+1]>se+1)&&10===this._buffers[Z.bufferIndex].buffer.charCodeAt(se))}endWithCR(G){return"string"==typeof G?13===G.charCodeAt(G.length-1):G!==Ie&&0!==G.piece.lineFeedCnt&&13===this.nodeCharCodeAt(G,G.piece.length-1)}validateCRLFWithPrevNode(G){if(this.shouldCheckCRLF()&&this.startWithLF(G)){let Z=G.prev();this.endWithCR(Z)&&this.fixCRLF(Z,G)}}validateCRLFWithNextNode(G){if(this.shouldCheckCRLF()&&this.endWithCR(G)){let Z=G.next();this.startWithLF(Z)&&this.fixCRLF(G,Z)}}fixCRLF(G,Z){let ne,ie=[],se=this._buffers[G.piece.bufferIndex].lineStarts;ne=0===G.piece.end.column?{line:G.piece.end.line-1,column:se[G.piece.end.line]-se[G.piece.end.line-1]-1}:{line:G.piece.end.line,column:G.piece.end.column-1};const ce=G.piece.length-1,fe=G.piece.lineFeedCnt-1;G.piece=new Piece(G.piece.bufferIndex,G.piece.start,ne,fe,ce),updateTreeMetadata(this,G,-1,-1),0===G.piece.length&&ie.push(G);let me={line:Z.piece.start.line+1,column:0};const ge=Z.piece.length-1,Ce=this.getLineFeedCnt(Z.piece.bufferIndex,me,Z.piece.end);Z.piece=new Piece(Z.piece.bufferIndex,me,Z.piece.end,Ce,ge),updateTreeMetadata(this,Z,-1,-1),0===Z.piece.length&&ie.push(Z);let Se=this.createNewPieces("\r\n");this.rbInsertRight(G,Se[0]);for(let G=0;GG.sortIndex-Z.sortIndex)}this._mightContainRTL=ie,this._mightContainUnusualLineTerminators=se,this._mightContainNonBasicASCII=ce;const De=this._doApplyEdits(ge);let Ie=null;if(Z&&Me.length>0){Me.sort((G,Z)=>Z.lineNumber-G.lineNumber),Ie=[];for(let G=0,Z=Me.length;G0&&Me[G-1].lineNumber===Z)continue;let ne=Me[G].oldContent,ie=this.getLineContent(Z);0!==ie.length&&ie!==ne&&-1===fe.v(ie)&&Ie.push(Z)}}return this._onDidChangeContent.fire(),new ke.a(xe,De,Ie)}_reduceOperations(G){return G.length<1e3?G:[this._toSingleEditOperation(G)]}_toSingleEditOperation(G){let Z=!1;const ne=G[0].range,ie=G[G.length-1].range,se=new Se.a(ne.startLineNumber,ne.startColumn,ie.endLineNumber,ie.endColumn);let ce=ne.startLineNumber,fe=ne.startColumn;const me=[];for(let ne=0,ie=G.length;ne0&&me.push(ie.text),ce=se.endLineNumber,fe=se.endColumn}const ge=me.join(""),[Ce,Me,ke]=Object(ze.f)(ge);return{sortIndex:0,identifier:G[0].identifier,range:se,rangeOffset:this.getOffsetAt(se.startLineNumber,se.startColumn),rangeLength:this.getValueLengthInRange(se,0),text:ge,eolCount:Ce,firstLineLength:Me,lastLineLength:ke,forceMoveMarkers:Z,isAutoWhitespaceEdit:!1}}_doApplyEdits(G){G.sort(pieceTreeTextBuffer_PieceTreeTextBuffer._sortOpsDescending);let Z=[];for(let ne=0;ne0){const G=Ce.eolCount+1;ge=1===G?new Se.a(fe,me,fe,me+Ce.firstLineLength):new Se.a(fe,me,fe+G-1,Ce.lastLineLength+1)}else ge=new Se.a(fe,me,fe,me);ne=ge.endLineNumber,ie=ge.endColumn,Z.push(ge),se=Ce}return Z}static _sortOpsAscending(G,Z){let ne=Se.a.compareRangesUsingEnds(G.range,Z.range);return 0===ne?G.sortIndex-Z.sortIndex:ne}static _sortOpsDescending(G,Z){let ne=Se.a.compareRangesUsingEnds(G.range,Z.range);return 0===ne?Z.sortIndex-G.sortIndex:-ne}}class pieceTreeTextBufferBuilder_PieceTreeTextBufferFactory{constructor(G,Z,ne,ie,se,ce,fe,me,ge){this._chunks=G,this._bom=Z,this._cr=ne,this._lf=ie,this._crlf=se,this._containsRTL=ce,this._containsUnusualLineTerminators=fe,this._isBasicASCII=me,this._normalizeEOL=ge}_getEOL(G){const Z=this._cr+this._lf+this._crlf,ne=this._cr+this._crlf;return 0===Z?1===G?"\n":"\r\n":ne>Z/2?"\r\n":"\n"}create(G){const Z=this._getEOL(G);let ne=this._chunks;if(this._normalizeEOL&&("\r\n"===Z&&(this._cr>0||this._lf>0)||"\n"===Z&&(this._cr>0||this._crlf>0)))for(let G=0,ie=ne.length;G=55296&&Z<=56319?(this._acceptChunk1(G.substr(0,G.length-1),!1),this._hasPreviousChar=!0,this._previousChar=Z):(this._acceptChunk1(G,!1),this._hasPreviousChar=!1,this._previousChar=Z)}_acceptChunk1(G,Z){(Z||0!==G.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+G):this._acceptChunk2(G))}_acceptChunk2(G){const Z=function createLineStarts(G,Z){G.length=0,G[0]=0;let ne=1,ie=0,se=0,ce=0,fe=!0;for(let me=0,ge=Z.length;me126)&&(fe=!1)}const me=new LineStarts(createUintArray(G),ie,se,ce,fe);return G.length=0,me}(this._tmpLineStarts,G);this.chunks.push(new StringBuffer(G,Z.lineStarts)),this.cr+=Z.cr,this.lf+=Z.lf,this.crlf+=Z.crlf,this.isBasicASCII&&(this.isBasicASCII=Z.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=fe.m(G)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=fe.n(G))}finish(G=!0){return this._finish(),new pieceTreeTextBufferBuilder_PieceTreeTextBufferFactory(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,G)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let G=this.chunks[this.chunks.length-1];G.buffer+=String.fromCharCode(this._previousChar);let Z=createLineStartsFast(G.buffer);G.lineStarts=Z,13===this._previousChar&&this.cr++}}}var Je=ne(318),it=ne(69),ot=ne(397),at=ne(35),st=ne(365),ct=ne(607),ut=ne(46);class textModelTokens_TokenizationStateStore{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(G){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,G&&this._setBeginState(0,G)}flush(G){this._reset(G)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(G){G=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(G,Z){0!==Z&&(G+Z>this._len&&(Z=this._len-G),this._beginState.splice(G,Z),this._valid.splice(G,Z),this._len-=Z)}_insertLines(G,Z){if(0===Z)return;let ne=[],ie=[];for(let G=0;G=0;Z--)this._invalidateLine(G.startLineNumber+Z-1);this._acceptDeleteRange(G),this._acceptInsertText(new Ce.a(G.startLineNumber,G.startColumn),Z)}_acceptDeleteRange(G){G.startLineNumber-1>=this._len||this._deleteLines(G.startLineNumber,G.endLineNumber-G.startLineNumber)}_acceptInsertText(G,Z){G.lineNumber-1>=this._len||this._insertLines(G.lineNumber,Z)}}class textModelTokens_TextModelTokenization extends ce.a{constructor(G){super(),this._isDisposed=!1,this._textModel=G,this._tokenizationStateStore=new textModelTokens_TokenizationStateStore,this._tokenizationSupport=null,this._register(at.F.onDidChange(G=>{const Z=this._textModel.getLanguageIdentifier();-1!==G.changedLanguages.indexOf(Z.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeContentFast(G=>{if(G.isFlush)this._resetTokenizationState();else{for(let Z=0,ne=G.changes.length;Z{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[G,Z]=function initializeTokenization(G){const Z=G.getLanguageIdentifier();let ne=G.isTooLargeForTokenization()?null:at.F.get(Z.language),se=null;if(ne)try{se=ne.getInitialState()}catch(G){Object(ie.e)(G),ne=null}return[ne,se]}(this._textModel);this._tokenizationSupport=G,this._tokenizationStateStore.flush(Z),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&ut.k(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(G=this._textModel.getLineCount()){const Z=new ze.b,ne=ct.a.create(!1);for(;this._hasLinesToTokenize()&&!(ne.elapsed()>1);){if(this._tokenizeOneInvalidLine(Z)>=G)break}this._beginBackgroundTokenization(),this._textModel.setTokens(Z.tokens)}tokenizeViewport(G,Z){const ne=new ze.b;this._tokenizeViewport(ne,G,Z),this._textModel.setTokens(ne.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(G){const Z=new ze.b;this._updateTokensUntilLine(Z,G),this._textModel.setTokens(Z.tokens)}isCheapToTokenize(G){if(!this._tokenizationSupport)return!0;const Z=this._tokenizationStateStore.invalidLineStartIndex+1;return!(G>Z)&&(G0&&G>=1;G--){let Z=this._textModel.getLineFirstNonWhitespaceColumn(G);if(0!==Z&&Z=0;G--){me=safeTokenize(fe,this._tokenizationSupport,se[G],!1,me).endState}for(let ie=Z;ie<=ne;ie++){let Z=this._textModel.getLineContent(ie),ne=safeTokenize(fe,this._tokenizationSupport,Z,!0,me);G.add(ie,ne.tokens),this._tokenizationStateStore.setFakeTokens(ie-1),me=ne.endState}}}function safeTokenize(G,Z,ne,se,ce){let fe=null;if(Z)try{fe=Z.tokenize2(ne,se,ce.clone(),0)}catch(G){Object(ie.e)(G)}return fe||(fe=Object(st.e)(G.id,ne,ce,0)),ot.a.convertToEndOffset(fe.tokens,ne.length),fe}var dt=ne(705),ht=ne(122),ft=ne(498),_t=ne(541),yt=ne(44);function createTextBufferFactory(G){const Z=function createTextBufferBuilder(){return new pieceTreeTextBufferBuilder_PieceTreeTextBufferBuilder}();return Z.acceptChunk(G),Z.finish()}function createTextBuffer(G,Z){return("string"==typeof G?createTextBufferFactory(G):G).create(Z)}let vt=0;class TextModelSnapshot{constructor(G){this._source=G,this._eos=!1}read(){if(this._eos)return null;let G=[],Z=0,ne=0;for(;;){let ie=this._source.read();if(null===ie)return this._eos=!0,0===Z?null:G.join("");if(ie.length>0&&(G[Z++]=ie,ne+=ie.length),ne>=65536)return G.join("")}}}const invalidFunc=()=>{throw new Error("Invalid change accessor")};class BracketSearchCanceled{constructor(){this._searchCanceledBrand=void 0}}function stripBracketSearchCanceled(G){return G instanceof BracketSearchCanceled?null:G}BracketSearchCanceled.INSTANCE=new BracketSearchCanceled;class textModel_TextModel extends ce.a{constructor(G,Z,ne,ie=null,ce){super(),this._onWillDispose=this._register(new se.b),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new textModel_DidChangeDecorationsEmitter(G=>this.handleBeforeFireDecorationsChangedEvent(G))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new se.b),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new se.b),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new se.b),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new se.b),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new se.b),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeContentOrInjectedText=this._register(new se.b),this.onDidChangeContentOrInjectedText=this._onDidChangeContentOrInjectedText.event,this._eventEmitter=this._register(new textModel_DidChangeContentEmitter),this._register(this._eventEmitter.fastEvent(G=>{this._onDidChangeContentOrInjectedText.fire(G.rawContentChangedEvent)})),vt++,this.id="$model"+vt,this.isForSimpleWidget=Z.isForSimpleWidget,this._associatedResource=null==ie?me.a.parse("inmemory://model/"+vt):ie,this._undoRedoService=ce,this._attachedEditorCount=0;const{textBuffer:ge,disposable:Ce}=createTextBuffer(G,Z.defaultEOL);this._buffer=ge,this._bufferDisposable=Ce,this._options=textModel_TextModel.resolveOptions(this._buffer,Z);const Me=this._buffer.getLineCount(),ke=this._buffer.getValueLengthInRange(new Se.a(1,1,Me,this._buffer.getLineLength(Me)+1),0);Z.largeFileOptimizations?this._isTooLargeForTokenization=ke>textModel_TextModel.LARGE_FILE_SIZE_THRESHOLD||Me>textModel_TextModel.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=ke>textModel_TextModel.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=ne||st.a,this._languageRegistryListener=ht.a.onDidChange(G=>{G.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=fe.Q(vt),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new textModel_DecorationsTrees,this._commandManager=new xe.a(this,ce),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new ze.d,this._tokens2=new ze.e,this._tokenization=new textModelTokens_TextModelTokenization(this)}static resolveOptions(G,Z){if(Z.detectIndentation){const ne=guessIndentation(G,Z.tabSize,Z.insertSpaces);return new ke.e({tabSize:ne.tabSize,indentSize:ne.tabSize,insertSpaces:ne.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new ke.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}onDidChangeContentFast(G){return this._eventEmitter.fastEvent(Z=>G(Z.contentChangedEvent))}onDidChangeContent(G){return this._eventEmitter.slowEvent(Z=>G(Z.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const G=new pieceTreeTextBuffer_PieceTreeTextBuffer([],"","\n",!1,!1,!0,!0);G.dispose(),this._buffer=G}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(G,Z){this._isDisposing||this._eventEmitter.fire(new Je.a(G,Z))}setValue(G){if(this._assertNotDisposed(),null===G)return;const{textBuffer:Z,disposable:ne}=createTextBuffer(G,this._options.defaultEOL);this._setValueFromTextBuffer(Z,ne)}_createContentChanged2(G,Z,ne,ie,se,ce,fe){return{changes:[{range:G,rangeOffset:Z,rangeLength:ne,text:ie}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:se,isRedoing:ce,isFlush:fe}}_setValueFromTextBuffer(G,Z){this._assertNotDisposed();const ne=this.getFullModelRange(),ie=this.getValueLengthInRange(ne),se=this.getLineCount(),ce=this.getLineMaxColumn(se);this._buffer=G,this._bufferDisposable.dispose(),this._bufferDisposable=Z,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new textModel_DecorationsTrees,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Je.d([new Je.f],this._versionId,!1,!1),this._createContentChanged2(new Se.a(1,1,se,ce),0,ie,this.getValue(),!1,!1,!0))}setEOL(G){this._assertNotDisposed();const Z=1===G?"\r\n":"\n";if(this._buffer.getEOL()===Z)return;const ne=this.getFullModelRange(),ie=this.getValueLengthInRange(ne),se=this.getLineCount(),ce=this.getLineMaxColumn(se);this._onBeforeEOLChange(),this._buffer.setEOL(Z),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Je.d([new Je.e],this._versionId,!1,!1),this._createContentChanged2(new Se.a(1,1,se,ce),0,ie,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const G=this.getVersionId(),Z=this._decorationsTree.collectNodesPostOrder();for(let ne=0,ie=Z.length;ne0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let G=0,Z=0;const ne=this._buffer.getLineCount();for(let ie=1;ie<=ne;ie++){const ne=this._buffer.getLineLength(ie);ne>=1e4?Z+=ne:G+=ne}return Z>G}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(G){this._assertNotDisposed();let Z=void 0!==G.tabSize?G.tabSize:this._options.tabSize,ne=void 0!==G.indentSize?G.indentSize:this._options.indentSize,ie=void 0!==G.insertSpaces?G.insertSpaces:this._options.insertSpaces,se=void 0!==G.trimAutoWhitespace?G.trimAutoWhitespace:this._options.trimAutoWhitespace,ce=new ke.e({tabSize:Z,indentSize:ne,insertSpaces:ie,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:se});if(this._options.equals(ce))return;let fe=this._options.createChangeEvent(ce);this._options=ce,this._onDidChangeOptions.fire(fe)}detectIndentation(G,Z){this._assertNotDisposed();let ne=guessIndentation(this._buffer,Z,G);this.updateOptions({insertSpaces:ne.insertSpaces,tabSize:ne.tabSize,indentSize:ne.tabSize})}static _normalizeIndentationFromWhitespace(G,Z,ne){let ie=0;for(let ne=0;ne({range:G.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(G){this._assertNotDisposed();let Z=this._validatePosition(G.lineNumber,G.column,0);return this._buffer.getOffsetAt(Z.lineNumber,Z.column)}getPositionAt(G){this._assertNotDisposed();let Z=Math.min(this._buffer.getLength(),Math.max(0,G));return this._buffer.getPositionAt(Z)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(G){this._versionId=G}_overwriteAlternativeVersionId(G){this._alternativeVersionId=G}_overwriteInitialUndoRedoSnapshot(G){this._initialUndoRedoSnapshot=G}getValue(G,Z=!1){this._assertNotDisposed();const ne=this.getFullModelRange(),ie=this.getValueInRange(ne,G);return Z?this._buffer.getBOM()+ie:ie}createSnapshot(G=!1){return new TextModelSnapshot(this._buffer.createSnapshot(G))}getValueLength(G,Z=!1){this._assertNotDisposed();const ne=this.getFullModelRange(),ie=this.getValueLengthInRange(ne,G);return Z?this._buffer.getBOM().length+ie:ie}getValueInRange(G,Z=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(G),Z)}getValueLengthInRange(G,Z=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(G),Z)}getCharacterCountInRange(G,Z=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(G),Z)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(G){if(this._assertNotDisposed(),G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(G)}getLineLength(G){if(this._assertNotDisposed(),G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(G)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(G){return this._assertNotDisposed(),1}getLineMaxColumn(G){if(this._assertNotDisposed(),G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(G)+1}getLineFirstNonWhitespaceColumn(G){if(this._assertNotDisposed(),G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(G)}getLineLastNonWhitespaceColumn(G){if(this._assertNotDisposed(),G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(G)}_validateRangeRelaxedNoAllocations(G){const Z=this._buffer.getLineCount(),ne=G.startLineNumber,ie=G.startColumn;let se=Math.floor("number"!=typeof ne||isNaN(ne)?1:ne),ce=Math.floor("number"!=typeof ie||isNaN(ie)?1:ie);if(se<1)se=1,ce=1;else if(se>Z)se=Z,ce=this.getLineMaxColumn(se);else if(ce<=1)ce=1;else{const G=this.getLineMaxColumn(se);ce>=G&&(ce=G)}const fe=G.endLineNumber,me=G.endColumn;let ge=Math.floor("number"!=typeof fe||isNaN(fe)?1:fe),Ce=Math.floor("number"!=typeof me||isNaN(me)?1:me);if(ge<1)ge=1,Ce=1;else if(ge>Z)ge=Z,Ce=this.getLineMaxColumn(ge);else if(Ce<=1)Ce=1;else{const G=this.getLineMaxColumn(ge);Ce>=G&&(Ce=G)}return ne===se&&ie===ce&&fe===ge&&me===Ce&&G instanceof Se.a&&!(G instanceof Me.a)?G:new Se.a(se,ce,ge,Ce)}_isValidPosition(G,Z,ne){if("number"!=typeof G||"number"!=typeof Z)return!1;if(isNaN(G)||isNaN(Z))return!1;if(G<1||Z<1)return!1;if((0|G)!==G||(0|Z)!==Z)return!1;if(G>this._buffer.getLineCount())return!1;if(1===Z)return!0;if(Z>this.getLineMaxColumn(G))return!1;if(1===ne){const ne=this._buffer.getLineCharCode(G,Z-2);if(fe.F(ne))return!1}return!0}_validatePosition(G,Z,ne){const ie=Math.floor("number"!=typeof G||isNaN(G)?1:G),se=Math.floor("number"!=typeof Z||isNaN(Z)?1:Z),ce=this._buffer.getLineCount();if(ie<1)return new Ce.a(1,1);if(ie>ce)return new Ce.a(ce,this.getLineMaxColumn(ce));if(se<=1)return new Ce.a(ie,1);const me=this.getLineMaxColumn(ie);if(se>=me)return new Ce.a(ie,me);if(1===ne){const G=this._buffer.getLineCharCode(ie,se-2);if(fe.F(G))return new Ce.a(ie,se-1)}return new Ce.a(ie,se)}validatePosition(G){return this._assertNotDisposed(),G instanceof Ce.a&&this._isValidPosition(G.lineNumber,G.column,1)?G:this._validatePosition(G.lineNumber,G.column,1)}_isValidRange(G,Z){const ne=G.startLineNumber,ie=G.startColumn,se=G.endLineNumber,ce=G.endColumn;if(!this._isValidPosition(ne,ie,0))return!1;if(!this._isValidPosition(se,ce,0))return!1;if(1===Z){const G=ie>1?this._buffer.getLineCharCode(ne,ie-2):0,Z=ce>1&&ce<=this._buffer.getLineLength(se)?this._buffer.getLineCharCode(se,ce-2):0,me=fe.F(G),ge=fe.F(Z);return!me&&!ge}return!0}validateRange(G){if(this._assertNotDisposed(),G instanceof Se.a&&!(G instanceof Me.a)&&this._isValidRange(G,1))return G;const Z=this._validatePosition(G.startLineNumber,G.startColumn,0),ne=this._validatePosition(G.endLineNumber,G.endColumn,0),ie=Z.lineNumber,se=Z.column,ce=ne.lineNumber,me=ne.column;{const G=se>1?this._buffer.getLineCharCode(ie,se-2):0,Z=me>1&&me<=this._buffer.getLineLength(ce)?this._buffer.getLineCharCode(ce,me-2):0,ne=fe.F(G),ge=fe.F(Z);return ne||ge?ie===ce&&se===me?new Se.a(ie,se-1,ce,me-1):ne&&ge?new Se.a(ie,se-1,ce,me+1):ne?new Se.a(ie,se-1,ce,me):new Se.a(ie,se,ce,me+1):new Se.a(ie,se,ce,me)}}modifyPosition(G,Z){this._assertNotDisposed();let ne=this.getOffsetAt(G)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,ne)))}getFullModelRange(){this._assertNotDisposed();const G=this.getLineCount();return new Se.a(1,1,G,this.getLineMaxColumn(G))}findMatchesLineByLine(G,Z,ne,ie){return this._buffer.findMatchesLineByLine(G,Z,ne,ie)}findMatches(G,Z,ne,ie,se,ce,fe=999){this._assertNotDisposed();let me=null;null!==Z&&(Array.isArray(Z)||(Z=[Z]),Z.every(G=>Se.a.isIRange(G))&&(me=Z.map(G=>this.validateRange(G)))),null===me&&(me=[this.getFullModelRange()]),me=me.sort((G,Z)=>G.startLineNumber-Z.startLineNumber||G.startColumn-Z.startColumn);const ge=[];let Ce;if(ge.push(me.reduce((G,Z)=>Se.a.areIntersecting(G,Z)?G.plusRange(Z):(ge.push(G),Z))),!ne&&G.indexOf("\n")<0){const Z=new Re.a(G,ne,ie,se).parseSearchRequest();if(!Z)return[];Ce=G=>this.findMatchesLineByLine(G,Z,ce,fe)}else Ce=Z=>Re.c.findMatches(this,new Re.a(G,ne,ie,se),Z,ce,fe);return ge.map(Ce).reduce((G,Z)=>G.concat(Z),[])}findNextMatch(G,Z,ne,ie,se,ce){this._assertNotDisposed();const fe=this.validatePosition(Z);if(!ne&&G.indexOf("\n")<0){const Z=new Re.a(G,ne,ie,se).parseSearchRequest();if(!Z)return null;const me=this.getLineCount();let ge=new Se.a(fe.lineNumber,fe.column,me,this.getLineMaxColumn(me)),Ce=this.findMatchesLineByLine(ge,Z,ce,1);return Re.c.findNextMatch(this,new Re.a(G,ne,ie,se),fe,ce),Ce.length>0?Ce[0]:(ge=new Se.a(1,1,fe.lineNumber,this.getLineMaxColumn(fe.lineNumber)),Ce=this.findMatchesLineByLine(ge,Z,ce,1),Ce.length>0?Ce[0]:null)}return Re.c.findNextMatch(this,new Re.a(G,ne,ie,se),fe,ce)}findPreviousMatch(G,Z,ne,ie,se,ce){this._assertNotDisposed();const fe=this.validatePosition(Z);return Re.c.findPreviousMatch(this,new Re.a(G,ne,ie,se),fe,ce)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(G){if(("\n"===this.getEOL()?0:1)!==G)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(G)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(G){return G instanceof ke.f?G:new ke.f(G.identifier||null,this.validateRange(G.range),G.text,G.forceMoveMarkers||!1,G.isAutoWhitespaceEdit||!1,G._isTracked||!1)}_validateEditOperations(G){const Z=[];for(let ne=0,ie=G.length;ne({range:this.validateRange(G.range),text:G.text})),ie=!0;if(G)for(let Z=0,se=G.length;Zse.endLineNumber,fe=se.startLineNumber>Z.endLineNumber;if(!ie&&!fe){ce=!0;break}}if(!ce){ie=!1;break}}if(ie)for(let G=0,ie=this._trimAutoWhitespaceLines.length;GZ.endLineNumber)&&!(ie===Z.startLineNumber&&Z.startColumn===se&&Z.isEmpty()&&fe&&fe.length>0&&"\n"===fe.charAt(0)||ie===Z.startLineNumber&&1===Z.startColumn&&Z.isEmpty()&&fe&&fe.length>0&&"\n"===fe.charAt(fe.length-1))){ce=!1;break}}if(ce){const G=new Se.a(ie,1,ie,se);Z.push(new ke.f(null,G,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(G,Z,ne)}_applyUndo(G,Z,ne,ie){const se=G.map(G=>{const Z=this.getPositionAt(G.newPosition),ne=this.getPositionAt(G.newEnd);return{range:new Se.a(Z.lineNumber,Z.column,ne.lineNumber,ne.column),text:G.oldText}});this._applyUndoRedoEdits(se,Z,!0,!1,ne,ie)}_applyRedo(G,Z,ne,ie){const se=G.map(G=>{const Z=this.getPositionAt(G.oldPosition),ne=this.getPositionAt(G.oldEnd);return{range:new Se.a(Z.lineNumber,Z.column,ne.lineNumber,ne.column),text:G.newText}});this._applyUndoRedoEdits(se,Z,!1,!0,ne,ie)}_applyUndoRedoEdits(G,Z,ne,ie,se,ce){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=ne,this._isRedoing=ie,this.applyEdits(G,!1),this.setEOL(Z),this._overwriteAlternativeVersionId(se)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(ce),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(G,Z=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const ne=this._validateEditOperations(G);return this._doApplyEdits(ne,Z)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(G,Z){const ne=this._buffer.getLineCount(),ie=this._buffer.applyEdits(G,this._options.trimAutoWhitespace,Z),se=this._buffer.getLineCount(),ce=ie.changes;if(this._trimAutoWhitespaceLines=ie.trimAutoWhitespaceLineNumbers,0!==ce.length){for(let G=0,Z=ce.length;G0?Z.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(Z.rangeOffset,Z.rangeLength,Z.text.length,Z.forceMoveMarkers)}let G=[];this._increaseVersionId();let Z=ne;for(let ne=0,ie=ce.length;ne=0;Z--){const ne=me+Z,ie=De+Z;at.takeFromEndWhile(G=>G.lineNumber>ie);const se=at.takeFromEndWhile(G=>G.lineNumber===ie);G.push(new Je.g(ne,this.getLineContent(ie),se))}if(keG.lineNumberG.lineNumber===Z)}G.push(new Je.i(ie+1,me+Me,Ce,ge))}Z+=xe}this._emitContentChangedEvent(new Je.d(G,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ce,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===ie.reverseEdits?void 0:ie.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(G){if(null===G||0===G.size)return;const Z=[...G].map(G=>new Je.g(G,this.getLineContent(G),this._getInjectedTextInLine(G)));this._onDidChangeContentOrInjectedText.fire(new Je.c(Z))}changeDecorations(G,Z=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Z,G)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(G,Z){let ne={addDecoration:(Z,ne)=>this._deltaDecorationsImpl(G,[],[{range:Z,options:ne}])[0],changeDecoration:(G,Z)=>{this._changeDecorationImpl(G,Z)},changeDecorationOptions:(G,Z)=>{this._changeDecorationOptionsImpl(G,_normalizeOptions(Z))},removeDecoration:Z=>{this._deltaDecorationsImpl(G,[Z],[])},deltaDecorations:(Z,ne)=>0===Z.length&&0===ne.length?[]:this._deltaDecorationsImpl(G,Z,ne)},se=null;try{se=Z(ne)}catch(G){Object(ie.e)(G)}return ne.addDecoration=invalidFunc,ne.changeDecoration=invalidFunc,ne.changeDecorationOptions=invalidFunc,ne.removeDecoration=invalidFunc,ne.deltaDecorations=invalidFunc,se}deltaDecorations(G,Z,ne=0){if(this._assertNotDisposed(),G||(G=[]),0===G.length&&0===Z.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(ne,G,Z)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(G){return this.getDecorationRange(G)}_setTrackedRange(G,Z,ne){const ie=G?this._decorations[G]:null;if(!ie)return Z?this._deltaDecorationsImpl(0,[],[{range:Z,options:wt[ne]}])[0]:null;if(!Z)return this._decorationsTree.delete(ie),delete this._decorations[ie.id],null;const se=this._validateRangeRelaxedNoAllocations(Z),ce=this._buffer.getOffsetAt(se.startLineNumber,se.startColumn),fe=this._buffer.getOffsetAt(se.endLineNumber,se.endColumn);return this._decorationsTree.delete(ie),ie.reset(this.getVersionId(),ce,fe,se),ie.setOptions(wt[ne]),this._decorationsTree.insert(ie),ie.id}removeAllDecorationsWithOwnerId(G){if(this._isDisposed)return;const Z=this._decorationsTree.collectNodesFromOwner(G);for(let G=0,ne=Z.length;Gthis.getLineCount()?[]:this.getLinesDecorations(G,G,Z,ne)}getLinesDecorations(G,Z,ne=0,ie=!1){let se=this.getLineCount(),ce=Math.min(se,Math.max(1,G)),fe=Math.min(se,Math.max(1,Z)),me=this.getLineMaxColumn(fe);return this._getDecorationsInRange(new Se.a(ce,1,fe,me),ne,ie)}getDecorationsInRange(G,Z=0,ne=!1){let ie=this.validateRange(G);return this._getDecorationsInRange(ie,Z,ne)}getOverviewRulerDecorations(G=0,Z=!1){return this._decorationsTree.getAll(this,G,Z,!0)}getInjectedTextDecorations(G=0){return this._decorationsTree.getAllInjectedText(this,G)}_getInjectedTextInLine(G){const Z=this._buffer.getOffsetAt(G,1),ne=Z+this._buffer.getLineLength(G),ie=this._decorationsTree.getInjectedTextInInterval(this,Z,ne,0);return Je.b.fromDecorations(ie).filter(Z=>Z.lineNumber===G)}getAllDecorations(G=0,Z=!1){return this._decorationsTree.getAll(this,G,Z,!1)}_getDecorationsInRange(G,Z,ne){const ie=this._buffer.getOffsetAt(G.startLineNumber,G.startColumn),se=this._buffer.getOffsetAt(G.endLineNumber,G.endColumn);return this._decorationsTree.getAllInInterval(this,ie,se,Z,ne)}getRangeAt(G,Z){return this._buffer.getRangeAt(G,Z-G)}_changeDecorationImpl(G,Z){const ne=this._decorations[G];if(!ne)return;if(ne.options.after){const Z=this.getDecorationRange(G);this._onDidChangeDecorations.recordLineAffectedByInjectedText(Z.endLineNumber)}if(ne.options.before){const Z=this.getDecorationRange(G);this._onDidChangeDecorations.recordLineAffectedByInjectedText(Z.startLineNumber)}const ie=this._validateRangeRelaxedNoAllocations(Z),se=this._buffer.getOffsetAt(ie.startLineNumber,ie.startColumn),ce=this._buffer.getOffsetAt(ie.endLineNumber,ie.endColumn);this._decorationsTree.delete(ne),ne.reset(this.getVersionId(),se,ce,ie),this._decorationsTree.insert(ne),this._onDidChangeDecorations.checkAffectedAndFire(ne.options),ne.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(ie.endLineNumber),ne.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(ie.startLineNumber)}_changeDecorationOptionsImpl(G,Z){const ne=this._decorations[G];if(!ne)return;const ie=!(!ne.options.overviewRuler||!ne.options.overviewRuler.color),se=!(!Z.overviewRuler||!Z.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(ne.options),this._onDidChangeDecorations.checkAffectedAndFire(Z),ne.options.after||Z.after){const G=this._decorationsTree.getNodeRange(this,ne);this._onDidChangeDecorations.recordLineAffectedByInjectedText(G.endLineNumber)}if(ne.options.before||Z.before){const G=this._decorationsTree.getNodeRange(this,ne);this._onDidChangeDecorations.recordLineAffectedByInjectedText(G.startLineNumber)}ie!==se?(this._decorationsTree.delete(ne),ne.setOptions(Z),this._decorationsTree.insert(ne)):ne.setOptions(Z)}_deltaDecorationsImpl(G,Z,ne){const ie=this.getVersionId(),se=Z.length;let ce=0;const fe=ne.length;let me=0,ge=new Array(fe);for(;ce0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:Z})}setSemanticTokens(G,Z){this._tokens2.set(G,Z),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==G,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._tokens2.isComplete()}hasSomeSemanticTokens(){return!this._tokens2.isEmpty()}setPartialSemanticTokens(G,Z){if(this.hasCompleteSemanticTokens())return;const ne=this._tokens2.setPartial(G,Z);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:ne.startLineNumber,toLineNumber:ne.endLineNumber}]})}tokenizeViewport(G,Z){G=Math.max(1,G),Z=Math.min(this._buffer.getLineCount(),Z),this._tokenization.tokenizeViewport(G,Z)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(G){this._isDisposing||this._onDidChangeTokens.fire(G)}resetTokenization(){this._tokenization.reset()}forceTokenization(G){if(G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(G)}isCheapToTokenize(G){return this._tokenization.isCheapToTokenize(G)}tokenizeIfCheap(G){this.isCheapToTokenize(G)&&this.forceTokenization(G)}getLineTokens(G){if(G<1||G>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(G)}_getLineTokens(G){const Z=this.getLineContent(G),ne=this._tokens.getTokens(this._languageIdentifier.id,G-1,Z);return this._tokens2.addSemanticTokens(G,ne)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(G){if(this._languageIdentifier.id===G.id)return;let Z={oldLanguage:this._languageIdentifier.language,newLanguage:G.language};this._languageIdentifier=G,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(G,Z){const ne=this.validatePosition(new Ce.a(G,Z)),ie=this.getLineTokens(ne.lineNumber);return ie.getLanguageId(ie.findTokenIndexAtOffset(ne.column-1))}getWordAtPosition(G){this._assertNotDisposed();const Z=this.validatePosition(G),ne=this.getLineContent(Z.lineNumber),ie=this._getLineTokens(Z.lineNumber),se=ie.findTokenIndexAtOffset(Z.column-1),[ce,fe]=textModel_TextModel._findLanguageBoundaries(ie,se),me=Object(dt.d)(Z.column,ht.a.getWordDefinition(ie.getLanguageId(se)),ne.substring(ce,fe),ce);if(me&&me.startColumn<=G.column&&G.column<=me.endColumn)return me;if(se>0&&ce===Z.column-1){const[ce,fe]=textModel_TextModel._findLanguageBoundaries(ie,se-1),me=Object(dt.d)(Z.column,ht.a.getWordDefinition(ie.getLanguageId(se-1)),ne.substring(ce,fe),ce);if(me&&me.startColumn<=G.column&&G.column<=me.endColumn)return me}return null}static _findLanguageBoundaries(G,Z){const ne=G.getLanguageId(Z);let ie=0;for(let se=Z;se>=0&&G.getLanguageId(se)===ne;se--)ie=G.getStartOffset(se);let se=G.getLineContent().length;for(let ie=Z,ce=G.getCount();ie=0;G--){const ne=Z.getEndOffset(G);if(ne<=fe)break;if(Object(ft.b)(Z.getStandardTokenType(G))||Z.getLanguageId(G)!==ce){fe=ne;break}}let me=Math.min(Z.getLineContent().length,G.column-1+ne.maxBracketLength);for(let G=ie+1;G=me)break;if(Object(ft.b)(Z.getStandardTokenType(G))||Z.getLanguageId(G)!==ce){me=ne;break}}return{searchStartOffset:fe,searchEndOffset:me}}_matchBracket(G){const Z=G.lineNumber,ne=this._getLineTokens(Z),ie=this._buffer.getLineContent(Z),se=ne.findTokenIndexAtOffset(G.column-1);if(se<0)return null;const ce=ht.a.getBracketsSupport(ne.getLanguageId(se));if(ce&&!Object(ft.b)(ne.getStandardTokenType(se))){let{searchStartOffset:fe,searchEndOffset:me}=this._establishBracketSearchOffsets(G,ne,ce,se),ge=null;for(;;){const ne=_t.a.findNextBracketInRange(ce.forwardRegex,Z,ie,fe,me);if(!ne)break;if(ne.startColumn<=G.column&&G.column<=ne.endColumn){const G=ie.substring(ne.startColumn-1,ne.endColumn-1).toLowerCase(),Z=this._matchFoundBracket(ne,ce.textIsBracket[G],ce.textIsOpenBracket[G],null);if(Z){if(Z instanceof BracketSearchCanceled)return null;ge=Z}}fe=ne.endColumn-1}if(ge)return ge}if(se>0&&ne.getStartOffset(se)===G.column-1){const ce=se-1,fe=ht.a.getBracketsSupport(ne.getLanguageId(ce));if(fe&&!Object(ft.b)(ne.getStandardTokenType(ce))){let{searchStartOffset:se,searchEndOffset:me}=this._establishBracketSearchOffsets(G,ne,fe,ce);const ge=_t.a.findPrevBracketInRange(fe.reversedRegex,Z,ie,se,me);if(ge&&ge.startColumn<=G.column&&G.column<=ge.endColumn){const G=ie.substring(ge.startColumn-1,ge.endColumn-1).toLowerCase(),Z=this._matchFoundBracket(ge,fe.textIsBracket[G],fe.textIsOpenBracket[G],null);if(Z)return Z instanceof BracketSearchCanceled?null:Z}}}return null}_matchFoundBracket(G,Z,ne,ie){if(!Z)return null;const se=ne?this._findMatchingBracketDown(Z,G.getEndPosition(),ie):this._findMatchingBracketUp(Z,G.getStartPosition(),ie);return se?se instanceof BracketSearchCanceled?se:[G,se]:null}_findMatchingBracketUp(G,Z,ne){const ie=G.languageIdentifier.id,se=G.reversedRegex;let ce=-1,fe=0;const searchPrevMatchingBracketInRange=(Z,ie,me,ge)=>{for(;;){if(ne&&++fe%100==0&&!ne())return BracketSearchCanceled.INSTANCE;const Ce=_t.a.findPrevBracketInRange(se,Z,ie,me,ge);if(!Ce)break;const Se=ie.substring(Ce.startColumn-1,Ce.endColumn-1).toLowerCase();if(G.isOpen(Se)?ce++:G.isClose(Se)&&ce--,0===ce)return Ce;ge=Ce.startColumn-1}return null};for(let G=Z.lineNumber;G>=1;G--){const ne=this._getLineTokens(G),se=ne.getCount(),ce=this._buffer.getLineContent(G);let fe=se-1,me=ce.length,ge=ce.length;G===Z.lineNumber&&(fe=ne.findTokenIndexAtOffset(Z.column-1),me=Z.column-1,ge=Z.column-1);let Ce=!0;for(;fe>=0;fe--){const Z=ne.getLanguageId(fe)===ie&&!Object(ft.b)(ne.getStandardTokenType(fe));if(Z)Ce?me=ne.getStartOffset(fe):(me=ne.getStartOffset(fe),ge=ne.getEndOffset(fe));else if(Ce&&me!==ge){const Z=searchPrevMatchingBracketInRange(G,ce,me,ge);if(Z)return Z}Ce=Z}if(Ce&&me!==ge){const Z=searchPrevMatchingBracketInRange(G,ce,me,ge);if(Z)return Z}}return null}_findMatchingBracketDown(G,Z,ne){const ie=G.languageIdentifier.id,se=G.forwardRegex;let ce=1,fe=0;const searchNextMatchingBracketInRange=(Z,ie,me,ge)=>{for(;;){if(ne&&++fe%100==0&&!ne())return BracketSearchCanceled.INSTANCE;const Ce=_t.a.findNextBracketInRange(se,Z,ie,me,ge);if(!Ce)break;const Se=ie.substring(Ce.startColumn-1,Ce.endColumn-1).toLowerCase();if(G.isOpen(Se)?ce++:G.isClose(Se)&&ce--,0===ce)return Ce;me=Ce.endColumn-1}return null},me=this.getLineCount();for(let G=Z.lineNumber;G<=me;G++){const ne=this._getLineTokens(G),se=ne.getCount(),ce=this._buffer.getLineContent(G);let fe=0,me=0,ge=0;G===Z.lineNumber&&(fe=ne.findTokenIndexAtOffset(Z.column-1),me=Z.column-1,ge=Z.column-1);let Ce=!0;for(;fe=1;G--){const se=this._getLineTokens(G),ce=se.getCount(),fe=this._buffer.getLineContent(G);let me=ce-1,ge=fe.length,Ce=fe.length;if(G===Z.lineNumber){me=se.findTokenIndexAtOffset(Z.column-1),ge=Z.column-1,Ce=Z.column-1;const G=se.getLanguageId(me);ne!==G&&(ne=G,ie=ht.a.getBracketsSupport(ne))}let Se=!0;for(;me>=0;me--){const Z=se.getLanguageId(me);if(ne!==Z){if(ie&&Se&&ge!==Ce){const Z=_t.a.findPrevBracketInRange(ie.reversedRegex,G,fe,ge,Ce);if(Z)return this._toFoundBracket(ie,Z);Se=!1}ne=Z,ie=ht.a.getBracketsSupport(ne)}const ce=!!ie&&!Object(ft.b)(se.getStandardTokenType(me));if(ce)Se?ge=se.getStartOffset(me):(ge=se.getStartOffset(me),Ce=se.getEndOffset(me));else if(ie&&Se&&ge!==Ce){const Z=_t.a.findPrevBracketInRange(ie.reversedRegex,G,fe,ge,Ce);if(Z)return this._toFoundBracket(ie,Z)}Se=ce}if(ie&&Se&&ge!==Ce){const Z=_t.a.findPrevBracketInRange(ie.reversedRegex,G,fe,ge,Ce);if(Z)return this._toFoundBracket(ie,Z)}}return null}findNextBracket(G){const Z=this.validatePosition(G),ne=this.getLineCount();let ie=-1,se=null;for(let G=Z.lineNumber;G<=ne;G++){const ne=this._getLineTokens(G),ce=ne.getCount(),fe=this._buffer.getLineContent(G);let me=0,ge=0,Ce=0;if(G===Z.lineNumber){me=ne.findTokenIndexAtOffset(Z.column-1),ge=Z.column-1,Ce=Z.column-1;const G=ne.getLanguageId(me);ie!==G&&(ie=G,se=ht.a.getBracketsSupport(ie))}let Se=!0;for(;meDate.now()-G<=Z}const ie=this.validatePosition(G),se=this.getLineCount(),ce=new Map;let fe=[];const resetCounts=(G,Z)=>{if(!ce.has(G)){let ne=[];for(let G=0,ie=Z?Z.brackets.length:0;G{for(;;){if(ne&&++me%100==0&&!ne())return BracketSearchCanceled.INSTANCE;const ge=_t.a.findNextBracketInRange(G.forwardRegex,Z,ie,se,ce);if(!ge)break;const Ce=ie.substring(ge.startColumn-1,ge.endColumn-1).toLowerCase(),Se=G.textIsBracket[Ce];if(Se&&(Se.isOpen(Ce)?fe[Se.index]++:Se.isClose(Ce)&&fe[Se.index]--,-1===fe[Se.index]))return this._matchFoundBracket(ge,Se,!1,ne);se=ge.endColumn-1}return null};let ge=-1,Ce=null;for(let G=ie.lineNumber;G<=se;G++){const Z=this._getLineTokens(G),ne=Z.getCount(),se=this._buffer.getLineContent(G);let ce=0,fe=0,me=0;if(G===ie.lineNumber){ce=Z.findTokenIndexAtOffset(ie.column-1),fe=ie.column-1,me=ie.column-1;const G=Z.getLanguageId(ce);ge!==G&&(ge=G,Ce=ht.a.getBracketsSupport(ge),resetCounts(ge,Ce))}let Se=!0;for(;ceie)throw new Error("Illegal value for lineNumber");const se=ht.a.getFoldingRules(this._languageIdentifier.id),ce=Boolean(se&&se.offSide);let fe=-2,me=-1,ge=-2,Ce=-1;const up_resolveIndents=G=>{if(-1!==fe&&(-2===fe||fe>G-1)){fe=-1,me=-1;for(let Z=G-2;Z>=0;Z--){let G=this._computeIndentLevel(Z);if(G>=0){fe=Z,me=G;break}}}if(-2===ge){ge=-1,Ce=-1;for(let Z=G;Z=0){ge=Z,Ce=G;break}}}};let Se=-2,Me=-1,ke=-2,xe=-1;const down_resolveIndents=G=>{if(-2===Se){Se=-1,Me=-1;for(let Z=G-2;Z>=0;Z--){let G=this._computeIndentLevel(Z);if(G>=0){Se=Z,Me=G;break}}}if(-1!==ke&&(-2===ke||ke=0){ke=Z,xe=G;break}}}};let De=0,Ie=!0,Re=0,ze=!0,$e=0,Je=0;for(let se=0;Ie||ze;se++){const fe=G-se,ke=G+se;se>1&&(fe<1||fe1&&(ke>ie||ke>ne)&&(ze=!1),se>5e4&&(Ie=!1,ze=!1);let it=-1;if(Ie){const G=this._computeIndentLevel(fe-1);G>=0?(ge=fe-1,Ce=G,it=Math.ceil(G/this._options.indentSize)):(up_resolveIndents(fe),it=this._getIndentLevelForWhitespaceLine(ce,me,Ce))}let ot=-1;if(ze){const G=this._computeIndentLevel(ke-1);G>=0?(Se=ke-1,Me=G,ot=Math.ceil(G/this._options.indentSize)):(down_resolveIndents(ke),ot=this._getIndentLevelForWhitespaceLine(ce,Me,xe))}if(0!==se){if(1===se){if(ke<=ie&&ot>=0&&Je+1===ot){Ie=!1,De=ke,Re=ke,$e=ot;continue}if(fe>=1&&it>=0&&it-1===Je){ze=!1,De=fe,Re=fe,$e=it;continue}if(De=G,Re=G,$e=Je,0===$e)return{startLineNumber:De,endLineNumber:Re,indent:$e}}Ie&&(it>=$e?De=fe:Ie=!1),ze&&(ot>=$e?Re=ke:ze=!1)}else Je=it}return{startLineNumber:De,endLineNumber:Re,indent:$e}}getLinesIndentGuides(G,Z){this._assertNotDisposed();const ne=this.getLineCount();if(G<1||G>ne)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>ne)throw new Error("Illegal value for endLineNumber");const ie=ht.a.getFoldingRules(this._languageIdentifier.id),se=Boolean(ie&&ie.offSide);let ce=new Array(Z-G+1),fe=-2,me=-1,ge=-2,Ce=-1;for(let ie=G;ie<=Z;ie++){let Z=ie-G;const Se=this._computeIndentLevel(ie-1);if(Se>=0)fe=ie-1,me=Se,ce[Z]=Math.ceil(Se/this._options.indentSize);else{if(-2===fe){fe=-1,me=-1;for(let G=ie-2;G>=0;G--){let Z=this._computeIndentLevel(G);if(Z>=0){fe=G,me=Z;break}}}if(-1!==ge&&(-2===ge||ge=0){ge=G,Ce=Z;break}}}ce[Z]=this._getIndentLevelForWhitespaceLine(se,me,Ce)}}return ce}_getIndentLevelForWhitespaceLine(G,Z,ne){return-1===Z||-1===ne?0:Z0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(G):this._deferredEvent=G:(this._fastEmitter.fire(G),this._slowEmitter.fire(G))}}},1188:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce}));var ie=ne(130),se=ne(46);const ce={clipboard:{writeText:se.g||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:se.g||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:se.g||ie.i?0:navigator.keyboard||ie.h?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},1189:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return renderText})),ne.d(Z,"b",(function(){return renderFormattedText})),ne.d(Z,"a",(function(){return createElement}));var ie=ne(6);function renderText(G,Z={}){const ne=createElement(Z);return ne.textContent=G,ne}function renderFormattedText(G,Z={}){const ne=createElement(Z);return function _renderFormattedText(G,Z,ne,se){let ce;if(2===Z.type)ce=document.createTextNode(Z.content||"");else if(3===Z.type)ce=document.createElement("b");else if(4===Z.type)ce=document.createElement("i");else if(7===Z.type&&se)ce=document.createElement("code");else if(5===Z.type&&ne){const G=document.createElement("a");G.href="#",ne.disposeables.add(ie.o(G,"click",G=>{ne.callback(String(Z.index),G)})),ce=G}else 8===Z.type?ce=document.createElement("br"):1===Z.type&&(ce=G);ce&&G!==ce&&G.appendChild(ce);ce&&Array.isArray(Z.children)&&Z.children.forEach(G=>{_renderFormattedText(ce,G,ne,se)})}(ne,function parseFormattedText(G,Z){const ne={type:1,children:[]};let ie=0,se=ne;const ce=[],fe=new StringStream(G);for(;!fe.eos();){let G=fe.next();const ne="\\"===G&&0!==formatTagType(fe.peek(),Z);if(ne&&(G=fe.next()),ne||0===formatTagType(G,Z)||G!==fe.peek())if("\n"===G)2===se.type&&(se=ce.pop()),se.children.push({type:8});else if(2!==se.type){const Z={type:2,content:G};se.children.push(Z),ce.push(se),se=Z}else se.content+=G;else{fe.advance(),2===se.type&&(se=ce.pop());const ne=formatTagType(G,Z);if(se.type===ne||5===se.type&&6===ne)se=ce.pop();else{const G={type:ne,children:[]};5===ne&&(G.index=ie,ie++),se.children.push(G),ce.push(se),se=G}}}2===se.type&&(se=ce.pop());ce.length;return ne}(G,!!Z.renderCodeSegements),Z.actionHandler,Z.renderCodeSegements),ne}function createElement(G){const Z=G.inline?"span":"div",ne=document.createElement(Z);return G.className&&(ne.className=G.className),ne}class StringStream{constructor(G){this.source=G,this.index=0}eos(){return this.index>=this.source.length}next(){const G=this.peek();return this.advance(),G}peek(){return this.source[this.index]}advance(){this.index++}}function formatTagType(G,Z){switch(G){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return Z?7:0;default:return 0}}},1190:function(G,Z,ne){"use strict";ne.d(Z,"d",(function(){return toPosixPath})),ne.d(Z,"b",(function(){return isEqualOrParent})),ne.d(Z,"c",(function(){return isRootOrDriveLetter})),ne.d(Z,"a",(function(){return hasDriveLetter}));var ie=ne(46),se=ne(27),ce=ne(210);function toPosixPath(G){return-1===G.indexOf("/")&&(G=function toSlashes(G){return G.replace(/[\\/]/g,ce.e.sep)}(G)),/^[a-zA-Z]:(\/|$)/.test(G)&&(G="/"+G),G}function isEqualOrParent(G,Z,ne,ie=ce.h){if(G===Z)return!0;if(!G||!Z)return!1;if(Z.length>G.length)return!1;if(ne){if(!Object(se.S)(G,Z))return!1;if(Z.length===G.length)return!0;let ne=Z.length;return Z.charAt(Z.length-1)===ie&&ne--,G.charAt(ne)===ie}return Z.charAt(Z.length-1)!==ie&&(Z+=ie),0===G.indexOf(Z)}function isRootOrDriveLetter(G){const Z=Object(ce.d)(G);return ie.j?!(G.length>3)&&(hasDriveLetter(Z)&&(2===G.length||92===Z.charCodeAt(2))):Z===ce.e.sep}function hasDriveLetter(G){return!!ie.j&&(function isWindowsDriveLetter(G){return G>=65&&G<=90||G>=97&&G<=122}(G.charCodeAt(0))&&58===G.charCodeAt(1))}},1191:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getBaseLabel})),ne.d(Z,"b",(function(){return normalizeDriveLetter}));var ie=ne(94),se=ne(143),ce=ne(46),fe=ne(181),me=ne(1190);function getBaseLabel(G){if(!G)return;"string"==typeof G&&(G=ie.a.file(G));const Z=Object(fe.b)(G)||(G.scheme===se.c.file?G.fsPath:G.path);return ce.j&&Object(me.c)(Z)?normalizeDriveLetter(Z):Z}function normalizeDriveLetter(G){return Object(me.a)(G)?G.charAt(0).toUpperCase()+G.slice(1):G}},1192:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return DeleteOperations}));var ie=ne(27),se=ne(223),ce=ne(71),fe=ne(297),me=ne(12),ge=ne(34);class DeleteOperations{static deleteRight(G,Z,ne,ie){let ce=[],ge=3!==G;for(let G=0,Ce=ie.length;G=Me.length+1)return!1;const ke=Me.charAt(Se.column-2),xe=ie.get(ke);if(!xe)return!1;if(Object(ce.g)(ke)){if("never"===ne)return!1}else if("never"===Z)return!1;const De=Me.charAt(Se.column-1);let Ie=!1;for(const G of xe)G.open===ke&&G.close===De&&(Ie=!0);if(!Ie)return!1;if("auto"===G){let G=!1;for(let Z=0,ne=me.length;Z1){const G=Z.getLineContent(se.lineNumber),fe=ie.v(G),ge=-1===fe?G.length+1:fe+1;if(se.column<=ge){const G=ce.a.visibleColumnFromColumn2(ne,Z,se),ie=ce.a.prevIndentTabStop(G,ne.indentSize),fe=ce.a.columnFromVisibleColumn2(ne,Z,se.lineNumber,ie);return new me.a(se.lineNumber,fe,se.lineNumber,se.column)}}return me.a.fromPositions(DeleteOperations.getPositionAfterDeleteLeft(se,Z),se)}static getPositionAfterDeleteLeft(G,Z){if(G.column>1){const ne=ie.z(G.column-1,Z.getLineContent(G.lineNumber));return G.with(void 0,ne+1)}if(G.lineNumber>1){const ne=G.lineNumber-1;return new ge.a(ne,Z.getLineMaxColumn(ne))}return G}static cut(G,Z,ne){let ie=[];for(let ce=0,fe=ne.length;ce1?(G=Se.lineNumber-1,ne=Z.getLineMaxColumn(Se.lineNumber-1),ge=Se.lineNumber,Ce=Z.getLineMaxColumn(Se.lineNumber)):(G=Se.lineNumber,ne=1,ge=Se.lineNumber,Ce=Z.getLineMaxColumn(Se.lineNumber));let Me=new me.a(G,ne,ge,Ce);Me.isEmpty()?ie[ce]=null:ie[ce]=new se.a(Me,"")}else ie[ce]=null;else ie[ce]=new se.a(fe,"")}return new ce.e(0,ie,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},1193:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return se})),ne.d(Z,"a",(function(){return ce}));var ie=ne(4);class ModifierLabelProvider{constructor(G,Z,ne=Z){this.modifierLabels=[null],this.modifierLabels[2]=G,this.modifierLabels[1]=Z,this.modifierLabels[3]=ne}toLabel(G,Z,ne){if(0===Z.length)return null;const ie=[];for(let se=0,ce=Z.length;sene&&(Se=ne-Me);const ke=me.color;let xe=this._color2Id[ke];xe||(xe=++this._lastAssignedId,this._color2Id[ke]=xe,this._id2Color[xe]=ke);const De=new ColorZone(Se-Me,Se+Me,xe);me.setColorZone(De),ce.push(De)}return this._colorZonesInvalid=!1,ce.sort(ColorZone.compare),ce}}},1196:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return fe})),ne.d(Z,"a",(function(){return me}));var ie=ne(4),se=ne(26),ce=ne(46);const fe=new se.c("isWindows",ce.j,Object(ie.a)("isWindows","Whether the operating system is Windows")),me="inputFocus"},12:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Range}));var ie=ne(34);class Range{constructor(G,Z,ne,ie){G>ne||G===ne&&Z>ie?(this.startLineNumber=ne,this.startColumn=ie,this.endLineNumber=G,this.endColumn=Z):(this.startLineNumber=G,this.startColumn=Z,this.endLineNumber=ne,this.endColumn=ie)}isEmpty(){return Range.isEmpty(this)}static isEmpty(G){return G.startLineNumber===G.endLineNumber&&G.startColumn===G.endColumn}containsPosition(G){return Range.containsPosition(this,G)}static containsPosition(G,Z){return!(Z.lineNumberG.endLineNumber)&&(!(Z.lineNumber===G.startLineNumber&&Z.columnG.endColumn))}containsRange(G){return Range.containsRange(this,G)}static containsRange(G,Z){return!(Z.startLineNumberG.endLineNumber||Z.endLineNumber>G.endLineNumber)&&(!(Z.startLineNumber===G.startLineNumber&&Z.startColumnG.endColumn)))}strictContainsRange(G){return Range.strictContainsRange(this,G)}static strictContainsRange(G,Z){return!(Z.startLineNumberG.endLineNumber||Z.endLineNumber>G.endLineNumber)&&(!(Z.startLineNumber===G.startLineNumber&&Z.startColumn<=G.startColumn)&&!(Z.endLineNumber===G.endLineNumber&&Z.endColumn>=G.endColumn)))}plusRange(G){return Range.plusRange(this,G)}static plusRange(G,Z){let ne,ie,se,ce;return Z.startLineNumberG.endLineNumber?(se=Z.endLineNumber,ce=Z.endColumn):Z.endLineNumber===G.endLineNumber?(se=Z.endLineNumber,ce=Math.max(Z.endColumn,G.endColumn)):(se=G.endLineNumber,ce=G.endColumn),new Range(ne,ie,se,ce)}intersectRanges(G){return Range.intersectRanges(this,G)}static intersectRanges(G,Z){let ne=G.startLineNumber,ie=G.startColumn,se=G.endLineNumber,ce=G.endColumn,fe=Z.startLineNumber,me=Z.startColumn,ge=Z.endLineNumber,Ce=Z.endColumn;return nege?(se=ge,ce=Ce):se===ge&&(ce=Math.min(ce,Ce)),ne>se||ne===se&&ie>ce?null:new Range(ne,ie,se,ce)}equalsRange(G){return Range.equalsRange(this,G)}static equalsRange(G,Z){return!!G&&!!Z&&G.startLineNumber===Z.startLineNumber&&G.startColumn===Z.startColumn&&G.endLineNumber===Z.endLineNumber&&G.endColumn===Z.endColumn}getEndPosition(){return Range.getEndPosition(this)}static getEndPosition(G){return new ie.a(G.endLineNumber,G.endColumn)}getStartPosition(){return Range.getStartPosition(this)}static getStartPosition(G){return new ie.a(G.startLineNumber,G.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(G,Z){return new Range(this.startLineNumber,this.startColumn,G,Z)}setStartPosition(G,Z){return new Range(G,Z,this.endLineNumber,this.endColumn)}collapseToStart(){return Range.collapseToStart(this)}static collapseToStart(G){return new Range(G.startLineNumber,G.startColumn,G.startLineNumber,G.startColumn)}static fromPositions(G,Z=G){return new Range(G.lineNumber,G.column,Z.lineNumber,Z.column)}static lift(G){return G?new Range(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn):null}static isIRange(G){return G&&"number"==typeof G.startLineNumber&&"number"==typeof G.startColumn&&"number"==typeof G.endLineNumber&&"number"==typeof G.endColumn}static areIntersectingOrTouching(G,Z){return!(G.endLineNumberG.startLineNumber}}},122:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Me}));var ie=ne(19),se=ne(10),ce=ne(27),fe=ne(705),me=ne(262),ge=ne(498);class characterPair_CharacterPairSupport{constructor(G){if(G.autoClosingPairs?this._autoClosingPairs=G.autoClosingPairs.map(G=>new me.c(G)):G.brackets?this._autoClosingPairs=G.brackets.map(G=>new me.c({open:G[0],close:G[1]})):this._autoClosingPairs=[],G.__electricCharacterSupport&&G.__electricCharacterSupport.docComment){const Z=G.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new me.c({open:Z.open,close:Z.close||""}))}this._autoCloseBefore="string"==typeof G.autoCloseBefore?G.autoCloseBefore:characterPair_CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=G.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(G,Z,ne){if(0===Z.getTokenCount())return!0;const ie=Z.findTokenIndexAtOffset(ne-2),se=Z.getStandardTokenType(ie);return G.isOK(se)}getSurroundingPairs(){return this._surroundingPairs}}characterPair_CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var Ce=ne(541);class electricCharacter_BracketElectricCharacterSupport{constructor(G){this._richEditBrackets=G}getElectricCharacters(){let G=[];if(this._richEditBrackets)for(const Z of this._richEditBrackets.brackets)for(const ne of Z.close){const Z=ne.charAt(ne.length-1);G.push(Z)}return G=G.filter((G,Z,ne)=>ne.indexOf(G)===Z),G}onElectricCharacter(G,Z,ne){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const ie=Z.findTokenIndexAtOffset(ne-1);if(Object(ge.b)(Z.getStandardTokenType(ie)))return null;const se=this._richEditBrackets.reversedRegex,ce=Z.getLineContent().substring(0,ne-1)+G,fe=Ce.a.findPrevBracketInRange(se,1,ce,0,ce.length);if(!fe)return null;const me=ce.substring(fe.startColumn-1,fe.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[me])return null;const Se=Z.getActualLineContentBefore(fe.startColumn-1);return/^\s*$/.test(Se)?{matchOpenBracket:me}:null}}function resetGlobalRegex(G){return G.global&&(G.lastIndex=0),!0}class IndentRulesSupport{constructor(G){this._indentationRules=G}shouldIncrease(G){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&resetGlobalRegex(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(G))}shouldDecrease(G){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&resetGlobalRegex(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(G))}shouldIndentNextLine(G){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&resetGlobalRegex(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(G))}shouldIgnore(G){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&resetGlobalRegex(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(G))}getIndentMetadata(G){let Z=0;return this.shouldIncrease(G)&&(Z+=1),this.shouldDecrease(G)&&(Z+=2),this.shouldIndentNextLine(G)&&(Z+=4),this.shouldIgnore(G)&&(Z+=8),Z}}var Se=ne(51);class onEnter_OnEnterSupport{constructor(G){(G=G||{}).brackets=G.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],G.brackets.forEach(G=>{const Z=onEnter_OnEnterSupport._createOpenBracketRegExp(G[0]),ne=onEnter_OnEnterSupport._createCloseBracketRegExp(G[1]);Z&&ne&&this._brackets.push({open:G[0],openRegExp:Z,close:G[1],closeRegExp:ne})}),this._regExpRules=G.onEnterRules||[]}onEnter(G,Z,ne,ie){if(G>=3)for(let G=0,se=this._regExpRules.length;G!G.reg||(G.reg.lastIndex=0,G.reg.test(G.text))))return se.action}if(G>=2&&ne.length>0&&ie.length>0)for(let G=0,Z=this._brackets.length;G=2&&ne.length>0)for(let G=0,Z=this._brackets.length;G{for(let G=0;G{ce.dispose(),this._onDidChange.fire(new LanguageConfigurationChangeEvent(G))})}_getRichEditSupport(G){const Z=this._entries2.get(G);return Z?Z.getRichEditSupport():null}getIndentationRules(G){const Z=this._getRichEditSupport(G);return Z&&Z.indentationRules||null}_getElectricCharacterSupport(G){let Z=this._getRichEditSupport(G);return Z&&Z.electricCharacter||null}getElectricCharacters(G){let Z=this._getElectricCharacterSupport(G);return Z?Z.getElectricCharacters():[]}onElectricCharacter(G,Z,ne){let ie=Object(ge.a)(Z,ne-1),se=this._getElectricCharacterSupport(ie.languageId);return se?se.onElectricCharacter(G,ie,ne-ie.firstCharOffset):null}getComments(G){let Z=this._getRichEditSupport(G);return Z&&Z.comments||null}_getCharacterPairSupport(G){let Z=this._getRichEditSupport(G);return Z&&Z.characterPair||null}getAutoClosingPairs(G){const Z=this._getCharacterPairSupport(G);return new me.a(Z?Z.getAutoClosingPairs():[])}getAutoCloseBeforeSet(G){let Z=this._getCharacterPairSupport(G);return Z?Z.getAutoCloseBeforeSet():characterPair_CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(G){let Z=this._getCharacterPairSupport(G);return Z?Z.getSurroundingPairs():[]}shouldAutoClosePair(G,Z,ne){const ie=Object(ge.a)(Z,ne-1);return characterPair_CharacterPairSupport.shouldAutoClosePair(G,ie,ne-ie.firstCharOffset)}getWordDefinition(G){let Z=this._getRichEditSupport(G);return Z?Object(fe.c)(Z.wordDefinition||null):Object(fe.c)(null)}getFoldingRules(G){let Z=this._getRichEditSupport(G);return Z?Z.foldingRules:{}}getIndentRulesSupport(G){let Z=this._getRichEditSupport(G);return Z&&Z.indentRulesSupport||null}getPrecedingValidLine(G,Z,ne){let ie=G.getLanguageIdAtPosition(Z,0);if(Z>1){let se,ce=-1;for(se=Z-1;se>=1;se--){if(G.getLanguageIdAtPosition(se,0)!==ie)return ce;let Z=G.getLineContent(se);if(!ne.shouldIgnore(Z)&&!/^\s+$/.test(Z)&&""!==Z)return se;ce=se}}return-1}getInheritIndentForLine(G,Z,ne,ie=!0){if(G<4)return null;const se=this.getIndentRulesSupport(Z.getLanguageIdentifier().id);if(!se)return null;if(ne<=1)return{indentation:"",action:null};const fe=this.getPrecedingValidLine(Z,ne,se);if(fe<0)return null;if(fe<1)return{indentation:"",action:null};const ge=Z.getLineContent(fe);if(se.shouldIncrease(ge)||se.shouldIndentNextLine(ge))return{indentation:ce.y(ge),action:me.b.Indent,line:fe};if(se.shouldDecrease(ge))return{indentation:ce.y(ge),action:null,line:fe};{if(1===fe)return{indentation:ce.y(Z.getLineContent(fe)),action:null,line:fe};const G=fe-1,ne=se.getIndentMetadata(Z.getLineContent(G));if(!(3&ne)&&4&ne){let ne=0;for(let ie=G-1;ie>0;ie--)if(!se.shouldIndentNextLine(Z.getLineContent(ie))){ne=ie;break}return{indentation:ce.y(Z.getLineContent(ne+1)),action:null,line:ne+1}}if(ie)return{indentation:ce.y(Z.getLineContent(fe)),action:null,line:fe};for(let G=fe;G>0;G--){const ne=Z.getLineContent(G);if(se.shouldIncrease(ne))return{indentation:ce.y(ne),action:me.b.Indent,line:G};if(se.shouldIndentNextLine(ne)){let ne=0;for(let ie=G-1;ie>0;ie--)if(!se.shouldIndentNextLine(Z.getLineContent(G))){ne=ie;break}return{indentation:ce.y(Z.getLineContent(ne+1)),action:null,line:ne+1}}if(se.shouldDecrease(ne))return{indentation:ce.y(ne),action:null,line:G}}return{indentation:ce.y(Z.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(G,Z,ne,ie,se){if(G<4)return null;const fe=this._getRichEditSupport(ne);if(!fe)return null;const ge=this.getIndentRulesSupport(ne);if(!ge)return null;const Ce=this.getInheritIndentForLine(G,Z,ie),Se=Z.getLineContent(ie);if(Ce){const ne=Ce.line;if(void 0!==ne){const ie=fe.onEnter(G,"",Z.getLineContent(ne),"");if(ie){let G=ce.y(Z.getLineContent(ne));return ie.removeText&&(G=G.substring(0,G.length-ie.removeText)),ie.indentAction===me.b.Indent||ie.indentAction===me.b.IndentOutdent?G=se.shiftIndent(G):ie.indentAction===me.b.Outdent&&(G=se.unshiftIndent(G)),ge.shouldDecrease(Se)&&(G=se.unshiftIndent(G)),ie.appendText&&(G+=ie.appendText),ce.y(G)}}return ge.shouldDecrease(Se)?Ce.action===me.b.Indent?Ce.indentation:se.unshiftIndent(Ce.indentation):Ce.action===me.b.Indent?se.shiftIndent(Ce.indentation):Ce.indentation}return null}getIndentForEnter(G,Z,ne,ie){if(G<4)return null;Z.forceTokenization(ne.startLineNumber);const se=Z.getLineTokens(ne.startLineNumber),fe=Object(ge.a)(se,ne.startColumn-1),Ce=fe.getLineContent();let Se,Me,ke=!1;if(fe.firstCharOffset>0&&se.getLanguageId(0)!==fe.languageId?(ke=!0,Se=Ce.substr(0,ne.startColumn-1-fe.firstCharOffset)):Se=se.getLineContent().substring(0,ne.startColumn-1),ne.isEmpty())Me=Ce.substr(ne.startColumn-1-fe.firstCharOffset);else{Me=this.getScopedLineTokens(Z,ne.endLineNumber,ne.endColumn).getLineContent().substr(ne.endColumn-1-fe.firstCharOffset)}const xe=this.getIndentRulesSupport(fe.languageId);if(!xe)return null;const De=Se,Ie=ce.y(Se),Re={getLineTokens:G=>Z.getLineTokens(G),getLanguageIdentifier:()=>Z.getLanguageIdentifier(),getLanguageIdAtPosition:(G,ne)=>Z.getLanguageIdAtPosition(G,ne),getLineContent:G=>G===ne.startLineNumber?De:Z.getLineContent(G)},ze=ce.y(se.getLineContent()),$e=this.getInheritIndentForLine(G,Re,ne.startLineNumber+1);if(!$e){const G=ke?ze:Ie;return{beforeEnter:G,afterEnter:G}}let Je=ke?ze:$e.indentation;return $e.action===me.b.Indent&&(Je=ie.shiftIndent(Je)),xe.shouldDecrease(Me)&&(Je=ie.unshiftIndent(Je)),{beforeEnter:ke?ze:Ie,afterEnter:Je}}getIndentActionForType(G,Z,ne,ie,se){if(G<4)return null;const ce=this.getScopedLineTokens(Z,ne.startLineNumber,ne.startColumn);if(ce.firstCharOffset)return null;const fe=this.getIndentRulesSupport(ce.languageId);if(!fe)return null;const ge=ce.getLineContent(),Ce=ge.substr(0,ne.startColumn-1-ce.firstCharOffset);let Se;if(ne.isEmpty())Se=ge.substr(ne.startColumn-1-ce.firstCharOffset);else{Se=this.getScopedLineTokens(Z,ne.endLineNumber,ne.endColumn).getLineContent().substr(ne.endColumn-1-ce.firstCharOffset)}if(!fe.shouldDecrease(Ce+Se)&&fe.shouldDecrease(Ce+ie+Se)){const ie=this.getInheritIndentForLine(G,Z,ne.startLineNumber,!1);if(!ie)return null;let ce=ie.indentation;return ie.action!==me.b.Indent&&(ce=se.unshiftIndent(ce)),ce}return null}getIndentMetadata(G,Z){const ne=this.getIndentRulesSupport(G.getLanguageIdentifier().id);return ne?Z<1||Z>G.getLineCount()?null:ne.getIndentMetadata(G.getLineContent(Z)):null}getEnterAction(G,Z,ne){const ie=this.getScopedLineTokens(Z,ne.startLineNumber,ne.startColumn),se=this._getRichEditSupport(ie.languageId);if(!se)return null;const ce=ie.getLineContent(),fe=ce.substr(0,ne.startColumn-1-ie.firstCharOffset);let ge;if(ne.isEmpty())ge=ce.substr(ne.startColumn-1-ie.firstCharOffset);else{ge=this.getScopedLineTokens(Z,ne.endLineNumber,ne.endColumn).getLineContent().substr(ne.endColumn-1-ie.firstCharOffset)}let Ce="";if(ne.startLineNumber>1&&0===ie.firstCharOffset){const G=this.getScopedLineTokens(Z,ne.startLineNumber-1);G.languageId===ie.languageId&&(Ce=G.getLineContent())}const Se=se.onEnter(G,Ce,fe,ge);if(!Se)return null;const Me=Se.indentAction;let ke=Se.appendText;const xe=Se.removeText||0;ke?Me===me.b.Indent&&(ke="\t"+ke):ke=Me===me.b.Indent||Me===me.b.IndentOutdent?"\t":"";let De=this.getIndentationAtPosition(Z,ne.startLineNumber,ne.startColumn);return xe&&(De=De.substring(0,De.length-xe)),{indentAction:Me,appendText:ke,removeText:xe,indentation:De}}getIndentationAtPosition(G,Z,ne){const ie=G.getLineContent(Z);let se=ce.y(ie);return se.length>ne-1&&(se=se.substring(0,ne-1)),se}getScopedLineTokens(G,Z,ne){G.forceTokenization(Z);const ie=G.getLineTokens(Z),se=void 0===ne?G.getLineMaxColumn(Z)-1:ne-1;return Object(ge.a)(ie,se)}getBracketsSupport(G){const Z=this._getRichEditSupport(G);return Z&&Z.brackets||null}}},127:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("codeEditorService")},128:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return FastDomNode})),ne.d(Z,"b",(function(){return createFastDomNode}));class FastDomNode{constructor(G){this.domNode=G,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(G){this._maxWidth!==G&&(this._maxWidth=G,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(G){this._width!==G&&(this._width=G,this.domNode.style.width=this._width+"px")}setHeight(G){this._height!==G&&(this._height=G,this.domNode.style.height=this._height+"px")}setTop(G){this._top!==G&&(this._top=G,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(G){this._left!==G&&(this._left=G,this.domNode.style.left=this._left+"px")}setBottom(G){this._bottom!==G&&(this._bottom=G,this.domNode.style.bottom=this._bottom+"px")}setRight(G){this._right!==G&&(this._right=G,this.domNode.style.right=this._right+"px")}setFontFamily(G){this._fontFamily!==G&&(this._fontFamily=G,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(G){this._fontWeight!==G&&(this._fontWeight=G,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(G){this._fontSize!==G&&(this._fontSize=G,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(G){this._fontFeatureSettings!==G&&(this._fontFeatureSettings=G,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(G){this._lineHeight!==G&&(this._lineHeight=G,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(G){this._letterSpacing!==G&&(this._letterSpacing=G,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(G){this._className!==G&&(this._className=G,this.domNode.className=this._className)}toggleClassName(G,Z){this.domNode.classList.toggle(G,Z),this._className=this.domNode.className}setDisplay(G){this._display!==G&&(this._display=G,this.domNode.style.display=this._display)}setPosition(G){this._position!==G&&(this._position=G,this.domNode.style.position=this._position)}setVisibility(G){this._visibility!==G&&(this._visibility=G,this.domNode.style.visibility=this._visibility)}setBackgroundColor(G){this._backgroundColor!==G&&(this._backgroundColor=G,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(G){this._layerHint!==G&&(this._layerHint=G,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(G){this._boxShadow!==G&&(this._boxShadow=G,this.domNode.style.boxShadow=G)}setContain(G){this._contain!==G&&(this._contain=G,this.domNode.style.contain=this._contain)}setAttribute(G,Z){this.domNode.setAttribute(G,Z)}removeAttribute(G){this.domNode.removeAttribute(G)}appendChild(G){this.domNode.appendChild(G.domNode)}removeChild(G){this.domNode.removeChild(G.domNode)}}function createFastDomNode(G){return new FastDomNode(G)}},13:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Se})),ne.d(Z,"wc",(function(){return registerColor})),ne.d(Z,"eb",(function(){return ke})),ne.d(Z,"cb",(function(){return xe})),ne.d(Z,"fb",(function(){return De})),ne.d(Z,"db",(function(){return Ie})),ne.d(Z,"h",(function(){return Re})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"Jc",(function(){return $e})),ne.d(Z,"Ic",(function(){return Je})),ne.d(Z,"Hc",(function(){return it})),ne.d(Z,"Mc",(function(){return ot})),ne.d(Z,"jb",(function(){return at})),ne.d(Z,"lb",(function(){return st})),ne.d(Z,"kb",(function(){return ct})),ne.d(Z,"hb",(function(){return ut})),ne.d(Z,"gb",(function(){return dt})),ne.d(Z,"ib",(function(){return ht})),ne.d(Z,"pb",(function(){return ft})),ne.d(Z,"rb",(function(){return _t})),ne.d(Z,"qb",(function(){return yt})),ne.d(Z,"sb",(function(){return vt})),ne.d(Z,"ub",(function(){return wt})),ne.d(Z,"tb",(function(){return Ct})),ne.d(Z,"mb",(function(){return St})),ne.d(Z,"ob",(function(){return Mt})),ne.d(Z,"nb",(function(){return kt})),ne.d(Z,"f",(function(){return Tt})),ne.d(Z,"e",(function(){return At})),ne.d(Z,"g",(function(){return Dt})),ne.d(Z,"c",(function(){return Et})),ne.d(Z,"d",(function(){return jt})),ne.d(Z,"yc",(function(){return It})),ne.d(Z,"Ac",(function(){return Nt})),ne.d(Z,"Bc",(function(){return Rt})),ne.d(Z,"zc",(function(){return zt})),ne.d(Z,"pc",(function(){return qt})),ne.d(Z,"s",(function(){return Wt})),ne.d(Z,"u",(function(){return Bt})),ne.d(Z,"t",(function(){return Ft})),ne.d(Z,"V",(function(){return Ht})),ne.d(Z,"X",(function(){return $t})),ne.d(Z,"W",(function(){return Vt})),ne.d(Z,"K",(function(){return Yt})),ne.d(Z,"M",(function(){return Ut})),ne.d(Z,"L",(function(){return Kt})),ne.d(Z,"D",(function(){return Gt})),ne.d(Z,"C",(function(){return Zt})),ne.d(Z,"r",(function(){return Jt})),ne.d(Z,"B",(function(){return Qt})),ne.d(Z,"Y",(function(){return on})),ne.d(Z,"ab",(function(){return sn})),ne.d(Z,"Z",(function(){return cn})),ne.d(Z,"bb",(function(){return dn})),ne.d(Z,"qc",(function(){return mn})),ne.d(Z,"rc",(function(){return _n})),ne.d(Z,"vc",(function(){return gn})),ne.d(Z,"lc",(function(){return bn})),ne.d(Z,"kc",(function(){return yn})),ne.d(Z,"vb",(function(){return vn})),ne.d(Z,"yb",(function(){return wn})),ne.d(Z,"wb",(function(){return Cn})),ne.d(Z,"xb",(function(){return On})),ne.d(Z,"R",(function(){return Mn})),ne.d(Z,"S",(function(){return kn})),ne.d(Z,"J",(function(){return xn})),ne.d(Z,"T",(function(){return Tn})),ne.d(Z,"U",(function(){return Dn})),ne.d(Z,"v",(function(){return En})),ne.d(Z,"x",(function(){return jn})),ne.d(Z,"z",(function(){return Pn})),ne.d(Z,"w",(function(){return Nn})),ne.d(Z,"y",(function(){return qn})),ne.d(Z,"A",(function(){return Wn})),ne.d(Z,"H",(function(){return Bn})),ne.d(Z,"E",(function(){return Hn})),ne.d(Z,"G",(function(){return $n})),ne.d(Z,"F",(function(){return Vn})),ne.d(Z,"I",(function(){return Un})),ne.d(Z,"q",(function(){return Kn})),ne.d(Z,"O",(function(){return Xn})),ne.d(Z,"N",(function(){return Gn})),ne.d(Z,"Q",(function(){return Zn})),ne.d(Z,"P",(function(){return Jn})),ne.d(Z,"i",(function(){return Qn})),ne.d(Z,"j",(function(){return er})),ne.d(Z,"m",(function(){return tr})),ne.d(Z,"o",(function(){return nr})),ne.d(Z,"n",(function(){return rr})),ne.d(Z,"p",(function(){return ir})),ne.d(Z,"k",(function(){return ar})),ne.d(Z,"l",(function(){return sr})),ne.d(Z,"Gb",(function(){return lr})),ne.d(Z,"Hb",(function(){return ur})),ne.d(Z,"Jb",(function(){return dr})),ne.d(Z,"zb",(function(){return pr})),ne.d(Z,"Ab",(function(){return fr})),ne.d(Z,"Bb",(function(){return mr})),ne.d(Z,"Pb",(function(){return _r})),ne.d(Z,"Qb",(function(){return gr})),ne.d(Z,"Rb",(function(){return yr})),ne.d(Z,"Nb",(function(){return vr})),ne.d(Z,"Ob",(function(){return wr})),ne.d(Z,"Lb",(function(){return Cr})),ne.d(Z,"Mb",(function(){return Or})),ne.d(Z,"Cb",(function(){return Sr})),ne.d(Z,"Kb",(function(){return Mr})),ne.d(Z,"Ib",(function(){return kr})),ne.d(Z,"Db",(function(){return xr})),ne.d(Z,"Fb",(function(){return Lr})),ne.d(Z,"Eb",(function(){return Tr})),ne.d(Z,"Lc",(function(){return Ar})),ne.d(Z,"Gc",(function(){return Dr})),ne.d(Z,"tc",(function(){return jr})),ne.d(Z,"uc",(function(){return Pr})),ne.d(Z,"sc",(function(){return Ir})),ne.d(Z,"Tb",(function(){return Nr})),ne.d(Z,"Ub",(function(){return Rr})),ne.d(Z,"Sb",(function(){return zr})),ne.d(Z,"Xb",(function(){return qr})),ne.d(Z,"Vb",(function(){return Wr})),ne.d(Z,"Wb",(function(){return Br})),ne.d(Z,"Yb",(function(){return Fr})),ne.d(Z,"Ec",(function(){return Hr})),ne.d(Z,"Fc",(function(){return $r})),ne.d(Z,"Cc",(function(){return Vr})),ne.d(Z,"Dc",(function(){return Yr})),ne.d(Z,"ic",(function(){return Ur})),ne.d(Z,"jc",(function(){return Kr})),ne.d(Z,"bc",(function(){return Xr})),ne.d(Z,"cc",(function(){return Gr})),ne.d(Z,"ac",(function(){return Zr})),ne.d(Z,"gc",(function(){return Jr})),ne.d(Z,"Zb",(function(){return Qr})),ne.d(Z,"ec",(function(){return ei})),ne.d(Z,"fc",(function(){return ti})),ne.d(Z,"dc",(function(){return ni})),ne.d(Z,"mc",(function(){return ri})),ne.d(Z,"oc",(function(){return ii})),ne.d(Z,"nc",(function(){return oi})),ne.d(Z,"Kc",(function(){return transparent})),ne.d(Z,"hc",(function(){return oneOf})),ne.d(Z,"xc",(function(){return resolveColorValue}));var ie=ne(180),se=ne(44),ce=ne(19),fe=ne(4),me=ne(1349),ge=ne(57),Ce=ne(54);const Se={ColorContribution:"base.contributions.colors"};const Me=new class ColorRegistry{constructor(){this._onDidChangeSchema=new ce.b,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(G,Z,ne,ie=!1,se){let ce={id:G,description:ne,defaults:Z,needsTransparency:ie,deprecationMessage:se};this.colorsById[G]=ce;let fe={type:"string",description:ne,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return se&&(fe.deprecationMessage=se),this.colorSchema.properties[G]=fe,this.colorReferenceSchema.enum.push(G),this.colorReferenceSchema.enumDescriptions.push(ne),this._onDidChangeSchema.fire(),G}resolveDefaultColor(G,Z){const ne=this.colorsById[G];if(ne&&ne.defaults){return resolveColorValue(ne.defaults[Z.type],Z)}}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((G,Z)=>{let ne=-1===G.indexOf(".")?0:1,ie=-1===Z.indexOf(".")?0:1;return ne!==ie?ne-ie:G.localeCompare(Z)}).map(G=>`- \`${G}\`: ${this.colorsById[G].description}`).join("\n")}};function registerColor(G,Z,ne,ie,se){return Me.registerColor(G,Z,ne,ie,se)}ie.a.add(Se.ColorContribution,Me);const ke=registerColor("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},fe.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),xe=registerColor("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},fe.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),De=registerColor("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},fe.a("iconForeground","The default color for icons in the workbench.")),Ie=registerColor("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},fe.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),Re=registerColor("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},fe.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),ze=registerColor("contrastActiveBorder",{light:null,dark:null,hc:Ie},fe.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),$e=registerColor("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},fe.a("textLinkForeground","Foreground color for links in text.")),Je=registerColor("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},fe.a("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),it=registerColor("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:se.a.black},fe.a("textCodeBlockBackground","Background color for code blocks in text.")),ot=registerColor("widget.shadow",{dark:transparent(se.a.black,.36),light:transparent(se.a.black,.16),hc:null},fe.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),at=registerColor("input.background",{dark:"#3C3C3C",light:se.a.white,hc:se.a.black},fe.a("inputBoxBackground","Input box background.")),st=registerColor("input.foreground",{dark:ke,light:ke,hc:ke},fe.a("inputBoxForeground","Input box foreground.")),ct=registerColor("input.border",{dark:null,light:null,hc:Re},fe.a("inputBoxBorder","Input box border.")),ut=registerColor("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:Re},fe.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),dt=registerColor("inputOption.activeBackground",{dark:transparent(Ie,.4),light:transparent(Ie,.2),hc:se.a.transparent},fe.a("inputOption.activeBackground","Background color of activated options in input fields.")),ht=registerColor("inputOption.activeForeground",{dark:se.a.white,light:se.a.black,hc:null},fe.a("inputOption.activeForeground","Foreground color of activated options in input fields.")),ft=registerColor("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:se.a.black},fe.a("inputValidationInfoBackground","Input validation background color for information severity.")),_t=registerColor("inputValidation.infoForeground",{dark:null,light:null,hc:null},fe.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),yt=registerColor("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:Re},fe.a("inputValidationInfoBorder","Input validation border color for information severity.")),vt=registerColor("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:se.a.black},fe.a("inputValidationWarningBackground","Input validation background color for warning severity.")),wt=registerColor("inputValidation.warningForeground",{dark:null,light:null,hc:null},fe.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ct=registerColor("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:Re},fe.a("inputValidationWarningBorder","Input validation border color for warning severity.")),St=registerColor("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:se.a.black},fe.a("inputValidationErrorBackground","Input validation background color for error severity.")),Mt=registerColor("inputValidation.errorForeground",{dark:null,light:null,hc:null},fe.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),kt=registerColor("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:Re},fe.a("inputValidationErrorBorder","Input validation border color for error severity.")),xt=registerColor("dropdown.background",{dark:"#3C3C3C",light:se.a.white,hc:se.a.black},fe.a("dropdownBackground","Dropdown background.")),Lt=registerColor("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:se.a.white},fe.a("dropdownForeground","Dropdown foreground.")),Tt=registerColor("button.foreground",{dark:se.a.white,light:se.a.white,hc:se.a.white},fe.a("buttonForeground","Button foreground color.")),At=registerColor("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},fe.a("buttonBackground","Button background color.")),Dt=registerColor("button.hoverBackground",{dark:lighten(At,.2),light:darken(At,.2),hc:null},fe.a("buttonHoverBackground","Button background color when hovering.")),Et=registerColor("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:se.a.black},fe.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),jt=registerColor("badge.foreground",{dark:se.a.white,light:"#333",hc:se.a.white},fe.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),It=registerColor("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},fe.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Nt=registerColor("scrollbarSlider.background",{dark:se.a.fromHex("#797979").transparent(.4),light:se.a.fromHex("#646464").transparent(.4),hc:transparent(Re,.6)},fe.a("scrollbarSliderBackground","Scrollbar slider background color.")),Rt=registerColor("scrollbarSlider.hoverBackground",{dark:se.a.fromHex("#646464").transparent(.7),light:se.a.fromHex("#646464").transparent(.7),hc:transparent(Re,.8)},fe.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),zt=registerColor("scrollbarSlider.activeBackground",{dark:se.a.fromHex("#BFBFBF").transparent(.4),light:se.a.fromHex("#000000").transparent(.6),hc:Re},fe.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),qt=registerColor("progressBar.background",{dark:se.a.fromHex("#0E70C0"),light:se.a.fromHex("#0E70C0"),hc:Re},fe.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Wt=registerColor("editorError.background",{dark:null,light:null,hc:null},fe.a("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Bt=registerColor("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},fe.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Ft=registerColor("editorError.border",{dark:null,light:null,hc:se.a.fromHex("#E47777").transparent(.8)},fe.a("errorBorder","Border color of error boxes in the editor.")),Ht=registerColor("editorWarning.background",{dark:null,light:null,hc:null},fe.a("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),$t=registerColor("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},fe.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Vt=registerColor("editorWarning.border",{dark:null,light:null,hc:se.a.fromHex("#FFCC00").transparent(.8)},fe.a("warningBorder","Border color of warning boxes in the editor.")),Yt=registerColor("editorInfo.background",{dark:null,light:null,hc:null},fe.a("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ut=registerColor("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},fe.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Kt=registerColor("editorInfo.border",{dark:null,light:null,hc:se.a.fromHex("#75BEFF").transparent(.8)},fe.a("infoBorder","Border color of info boxes in the editor.")),Gt=registerColor("editorHint.foreground",{dark:se.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},fe.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Zt=registerColor("editorHint.border",{dark:null,light:null,hc:se.a.fromHex("#eeeeee").transparent(.8)},fe.a("hintBorder","Border color of hint boxes in the editor.")),Jt=registerColor("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:se.a.black},fe.a("editorBackground","Editor background color.")),Qt=registerColor("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:se.a.white},fe.a("editorForeground","Editor default foreground color.")),on=registerColor("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},fe.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),sn=registerColor("editorWidget.foreground",{dark:ke,light:ke,hc:ke},fe.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),cn=registerColor("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:Re},fe.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),dn=registerColor("editorWidget.resizeBorder",{light:null,dark:null,hc:null},fe.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),mn=registerColor("quickInput.background",{dark:on,light:on,hc:on},fe.a("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),_n=registerColor("quickInput.foreground",{dark:sn,light:sn,hc:sn},fe.a("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),gn=registerColor("quickInputTitle.background",{dark:new se.a(new se.c(255,255,255,.105)),light:new se.a(new se.c(0,0,0,.06)),hc:"#000000"},fe.a("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),bn=registerColor("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:se.a.white},fe.a("pickerGroupForeground","Quick picker color for grouping labels.")),yn=registerColor("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:se.a.white},fe.a("pickerGroupBorder","Quick picker color for grouping borders.")),vn=registerColor("keybindingLabel.background",{dark:new se.a(new se.c(128,128,128,.17)),light:new se.a(new se.c(221,221,221,.4)),hc:se.a.transparent},fe.a("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),wn=registerColor("keybindingLabel.foreground",{dark:se.a.fromHex("#CCCCCC"),light:se.a.fromHex("#555555"),hc:se.a.white},fe.a("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),Cn=registerColor("keybindingLabel.border",{dark:new se.a(new se.c(51,51,51,.6)),light:new se.a(new se.c(204,204,204,.4)),hc:new se.a(new se.c(111,195,223))},fe.a("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),On=registerColor("keybindingLabel.bottomBorder",{dark:new se.a(new se.c(68,68,68,.6)),light:new se.a(new se.c(187,187,187,.4)),hc:new se.a(new se.c(111,195,223))},fe.a("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Mn=registerColor("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},fe.a("editorSelectionBackground","Color of the editor selection.")),kn=registerColor("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},fe.a("editorSelectionForeground","Color of the selected text for high contrast.")),xn=registerColor("editor.inactiveSelectionBackground",{light:transparent(Mn,.5),dark:transparent(Mn,.5),hc:transparent(Mn,.5)},fe.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Tn=registerColor("editor.selectionHighlightBackground",{light:lessProminent(Mn,Jt,.3,.6),dark:lessProminent(Mn,Jt,.3,.6),hc:null},fe.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Dn=registerColor("editor.selectionHighlightBorder",{light:null,dark:null,hc:ze},fe.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),En=registerColor("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},fe.a("editorFindMatch","Color of the current search match.")),jn=registerColor("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},fe.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Pn=registerColor("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},fe.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Nn=registerColor("editor.findMatchBorder",{light:null,dark:null,hc:ze},fe.a("editorFindMatchBorder","Border color of the current search match.")),qn=registerColor("editor.findMatchHighlightBorder",{light:null,dark:null,hc:ze},fe.a("findMatchHighlightBorder","Border color of the other search matches.")),Wn=registerColor("editor.findRangeHighlightBorder",{dark:null,light:null,hc:transparent(ze,.4)},fe.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Bn=registerColor("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},fe.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Hn=registerColor("editorHoverWidget.background",{light:on,dark:on,hc:on},fe.a("hoverBackground","Background color of the editor hover.")),$n=registerColor("editorHoverWidget.foreground",{light:sn,dark:sn,hc:sn},fe.a("hoverForeground","Foreground color of the editor hover.")),Vn=registerColor("editorHoverWidget.border",{light:cn,dark:cn,hc:cn},fe.a("hoverBorder","Border color of the editor hover.")),Un=registerColor("editorHoverWidget.statusBarBackground",{dark:lighten(Hn,.2),light:darken(Hn,.05),hc:on},fe.a("statusBarBackground","Background color of the editor hover status bar.")),Kn=registerColor("editorLink.activeForeground",{dark:"#4E94CE",light:se.a.blue,hc:se.a.cyan},fe.a("activeLinkForeground","Color of active links.")),Xn=registerColor("editorInlayHint.foreground",{dark:transparent(jt,.8),light:transparent(jt,.8),hc:jt},fe.a("editorInlayHintForeground","Foreground color of inline hints")),Gn=registerColor("editorInlayHint.background",{dark:transparent(Et,.6),light:transparent(Et,.3),hc:Et},fe.a("editorInlayHintBackground","Background color of inline hints")),Zn=registerColor("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},fe.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Jn=registerColor("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},fe.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Qn=new se.a(new se.c(155,185,85,.2)),er=new se.a(new se.c(255,0,0,.2)),tr=registerColor("diffEditor.insertedTextBackground",{dark:Qn,light:Qn,hc:null},fe.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),nr=registerColor("diffEditor.removedTextBackground",{dark:er,light:er,hc:null},fe.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),rr=registerColor("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},fe.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),ir=registerColor("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},fe.a("diffEditorRemovedOutline","Outline color for text that got removed.")),ar=registerColor("diffEditor.border",{dark:null,light:null,hc:Re},fe.a("diffEditorBorder","Border color between the two text editors.")),sr=registerColor("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},fe.a("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),lr=registerColor("list.focusBackground",{dark:null,light:null,hc:null},fe.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ur=registerColor("list.focusForeground",{dark:null,light:null,hc:null},fe.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),dr=registerColor("list.focusOutline",{dark:Ie,light:Ie,hc:ze},fe.a("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),pr=registerColor("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},fe.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fr=registerColor("list.activeSelectionForeground",{dark:se.a.white,light:se.a.white,hc:null},fe.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),mr=registerColor("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},fe.a("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),_r=registerColor("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},fe.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),gr=registerColor("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},fe.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),yr=registerColor("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},fe.a("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),vr=registerColor("list.inactiveFocusBackground",{dark:null,light:null,hc:null},fe.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),wr=registerColor("list.inactiveFocusOutline",{dark:null,light:null,hc:null},fe.a("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Cr=registerColor("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},fe.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Or=registerColor("list.hoverForeground",{dark:null,light:null,hc:null},fe.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Sr=registerColor("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},fe.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Mr=registerColor("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:Ie},fe.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),kr=registerColor("list.focusHighlightForeground",{dark:Mr,light:function ifDefinedThenElse(G,Z,ne){return{op:5,if:G,then:Z,else:ne}}(pr,Mr,"#9DDDFF"),hc:Mr},fe.a("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),xr=registerColor("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:se.a.black},fe.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Lr=registerColor("listFilterWidget.outline",{dark:se.a.transparent,light:se.a.transparent,hc:"#f38518"},fe.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Tr=registerColor("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:Re},fe.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ar=registerColor("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},fe.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Dr=registerColor("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},fe.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Er=registerColor("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,fe.a("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),jr=registerColor("quickInputList.focusForeground",{dark:fr,light:fr,hc:fr},fe.a("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Pr=registerColor("quickInputList.focusIconForeground",{dark:mr,light:mr,hc:mr},fe.a("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Ir=registerColor("quickInputList.focusBackground",{dark:oneOf(Er,pr),light:oneOf(Er,pr),hc:null},fe.a("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Nr=registerColor("menu.border",{dark:null,light:null,hc:Re},fe.a("menuBorder","Border color of menus.")),Rr=registerColor("menu.foreground",{dark:Lt,light:ke,hc:Lt},fe.a("menuForeground","Foreground color of menu items.")),zr=registerColor("menu.background",{dark:xt,light:xt,hc:xt},fe.a("menuBackground","Background color of menu items.")),qr=registerColor("menu.selectionForeground",{dark:fr,light:fr,hc:fr},fe.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Wr=registerColor("menu.selectionBackground",{dark:pr,light:pr,hc:pr},fe.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Br=registerColor("menu.selectionBorder",{dark:null,light:null,hc:ze},fe.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Fr=registerColor("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:Re},fe.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Hr=registerColor("editor.snippetTabstopHighlightBackground",{dark:new se.a(new se.c(124,124,124,.3)),light:new se.a(new se.c(10,50,100,.2)),hc:new se.a(new se.c(124,124,124,.3))},fe.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),$r=registerColor("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},fe.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Vr=registerColor("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},fe.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Yr=registerColor("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new se.a(new se.c(10,50,100,.5)),hc:"#525252"},fe.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Ur=registerColor("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},fe.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Kr=registerColor("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},fe.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Xr=registerColor("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},fe.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Gr=registerColor("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},fe.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Zr=registerColor("minimap.errorHighlight",{dark:new se.a(new se.c(255,18,18,.7)),light:new se.a(new se.c(255,18,18,.7)),hc:new se.a(new se.c(255,50,50,1))},fe.a("minimapError","Minimap marker color for errors.")),Jr=registerColor("minimap.warningHighlight",{dark:$t,light:$t,hc:Vt},fe.a("overviewRuleWarning","Minimap marker color for warnings.")),Qr=registerColor("minimap.background",{dark:null,light:null,hc:null},fe.a("minimapBackground","Minimap background color.")),ei=registerColor("minimapSlider.background",{light:transparent(Nt,.5),dark:transparent(Nt,.5),hc:transparent(Nt,.5)},fe.a("minimapSliderBackground","Minimap slider background color.")),ti=registerColor("minimapSlider.hoverBackground",{light:transparent(Rt,.5),dark:transparent(Rt,.5),hc:transparent(Rt,.5)},fe.a("minimapSliderHoverBackground","Minimap slider background color when hovering.")),ni=registerColor("minimapSlider.activeBackground",{light:transparent(zt,.5),dark:transparent(zt,.5),hc:transparent(zt,.5)},fe.a("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),ri=registerColor("problemsErrorIcon.foreground",{dark:Bt,light:Bt,hc:Bt},fe.a("problemsErrorIconForeground","The color used for the problems error icon.")),ii=registerColor("problemsWarningIcon.foreground",{dark:$t,light:$t,hc:$t},fe.a("problemsWarningIconForeground","The color used for the problems warning icon.")),oi=registerColor("problemsInfoIcon.foreground",{dark:Ut,light:Ut,hc:Ut},fe.a("problemsInfoIconForeground","The color used for the problems info icon."));function darken(G,Z){return{op:0,value:G,factor:Z}}function lighten(G,Z){return{op:1,value:G,factor:Z}}function transparent(G,Z){return{op:2,value:G,factor:Z}}function oneOf(...G){return{op:3,values:G}}function lessProminent(G,Z,ne,ie){return{op:4,value:G,background:Z,factor:ne,transparency:ie}}function resolveColorValue(G,Z){if(null!==G)return"string"==typeof G?"#"===G[0]?se.a.fromHex(G):Z.getColor(G):G instanceof se.a?G:"object"==typeof G?function executeTransform(G,Z){var ne,ie,ce;switch(G.op){case 0:return null===(ne=resolveColorValue(G.value,Z))||void 0===ne?void 0:ne.darken(G.factor);case 1:return null===(ie=resolveColorValue(G.value,Z))||void 0===ie?void 0:ie.lighten(G.factor);case 2:return null===(ce=resolveColorValue(G.value,Z))||void 0===ce?void 0:ce.transparent(G.factor);case 3:for(const ne of G.values){const G=resolveColorValue(ne,Z);if(G)return G}return;case 5:return resolveColorValue(Z.defines(G.if)?G.then:G.else,Z);case 4:const fe=resolveColorValue(G.value,Z);if(!fe)return;const me=resolveColorValue(G.background,Z);return me?fe.isDarkerThan(me)?se.a.getLighterColor(fe,me,G.factor).transparent(G.transparency):se.a.getDarkerColor(fe,me,G.factor).transparent(G.transparency):fe.transparent(G.factor*G.transparency);default:throw Object(Ce.b)(G)}}(G,Z):void 0}let ai=ie.a.as(me.a.JSONContribution);ai.registerSchema("vscode://schemas/workbench-colors",Me.getColorSchema());const si=new ge.e(()=>ai.notifySchemaChanged("vscode://schemas/workbench-colors"),200);Me.onDidChangeSchema(()=>{si.isScheduled()||si.schedule()})},130:function(G,Z,ne){"use strict";ne.d(Z,"d",(function(){return getZoomLevel})),ne.d(Z,"b",(function(){return getTimeSinceLastZoomLevelChanged})),ne.d(Z,"l",(function(){return onDidChangeZoomLevel})),ne.d(Z,"c",(function(){return getZoomFactor})),ne.d(Z,"a",(function(){return getPixelRatio})),ne.d(Z,"g",(function(){return ce})),ne.d(Z,"j",(function(){return fe})),ne.d(Z,"f",(function(){return me})),ne.d(Z,"h",(function(){return ge})),ne.d(Z,"k",(function(){return Ce})),ne.d(Z,"e",(function(){return Se})),ne.d(Z,"i",(function(){return Me}));var ie=ne(19);class WindowManager{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new ie.b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let G=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(G.webkitBackingStorePixelRatio||G.mozBackingStorePixelRatio||G.msBackingStorePixelRatio||G.oBackingStorePixelRatio||G.backingStorePixelRatio||1)}}function getZoomLevel(){return WindowManager.INSTANCE.getZoomLevel()}function getTimeSinceLastZoomLevelChanged(){return WindowManager.INSTANCE.getTimeSinceLastZoomLevelChanged()}function onDidChangeZoomLevel(G){return WindowManager.INSTANCE.onDidChangeZoomLevel(G)}function getZoomFactor(){return WindowManager.INSTANCE.getZoomFactor()}function getPixelRatio(){return WindowManager.INSTANCE.getPixelRatio()}WindowManager.INSTANCE=new WindowManager;const se=navigator.userAgent,ce=se.indexOf("Firefox")>=0,fe=se.indexOf("AppleWebKit")>=0,me=se.indexOf("Chrome")>=0,ge=!me&&se.indexOf("Safari")>=0,Ce=!me&&!ge&&fe,Se=se.indexOf("Android")>=0,Me=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},1302:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z,ne=!1)=>{if(G instanceof ie)return G;try{return new ie(G,Z)}catch(G){if(!ne)return null;throw G}}},1303:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=231)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},231:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.span.withConfig({displayName:"ScreenReaderContentStyles__Styled",componentId:"sc-1lnohwp-0"})(["",";"],Ce.mixins.screenReaderContent());function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},1304:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=233)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},105:function(G,Z){G.exports=ne(785)},106:function(G,Z){G.exports=ne(272)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(758)},13:function(G,Z){G.exports=ne(4087)},15:function(G,Z){G.exports=ne(65)},17:function(G,Z){G.exports=ne(640)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},2:function(G,Z){G.exports=ne(0)},22:function(G,Z){G.exports=ne(1620)},233:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return $e})),ne.d(Z,"Divider",(function(){return Se.a})),ne.d(Z,"Heading",(function(){return Se.b})),ne.d(Z,"Option",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(4),Se=ne(62),Me=ne(30);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Select_defineProperties(G,Z){for(var ne=0;ne svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},30:function(G,Z,ne){"use strict";var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(13);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;neZ.value?(fece)&&(ne=G):ce>fe&&(ne=G):ne=G}return!1}));return 0===ce.length&&ne?[ne]:ce}},61:function(G,Z){G.exports=ne(198)},62:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return wt.Divider})),ne.d(Z,"b",(function(){return wt.Heading})),ne.d(Z,"d",(function(){return isOption}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(67),ge=ne.n(me),Ce=ne(55),Se=ne.n(Ce),Me=ne(105),ke=ne.n(Me),xe=ne(11),De=ne.n(xe),Ie=ne(15),Re=ne.n(Ie),ze=ne(42),$e=ne.n(ze),Je=ne(9),it=ne.n(Je),ot=ne(40),at=ne.n(ot),st=ne(5),ct=ne.n(st),ut=ne(44),dt=ne.n(ut),ht=ne(106),ft=ne.n(ht),_t=ne(61),yt=ne.n(_t),vt=ne(8),wt=ne(13),Ct=ne(22),St=ne.n(Ct),Mt=ne(7),kt=ne(35),xt=ne(37),Lt=ne.n(xt),Tt=ne(47),At=ne.n(Tt),Dt=ne(32),Et=ne.n(Dt),jt=ne(4),It=ne(56),Nt=ne.n(It),Rt=ne(57),zt=ne.n(Rt),qt=ne(0),Wt=function CaretSmallDownIcon(){return Object(qt.useSplunkTheme)().isEnterprise?se.a.createElement(zt.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(Nt.a,null)},Bt=ne(54),Ft=ne.n(Bt),Ht=ne(49),$t=ne.n(Ht),Vt=function Search(){var G=Object(qt.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact,ie=Object(jt._)("Search"),ce=ne?"20px":"24px";return Z?se.a.createElement(Ft.a,{role:"presentation",size:"16px",screenReaderText:ie,hideDefaultTooltip:!0}):se.a.createElement($t.a,{role:"presentation","aria-label":ie,width:ce,height:ce})},Yt=ne(30),Ut=ne(3),Kt=ne.n(Ut),Gt=ne(25),Zt=Kt()(Gt.g).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllLabel",componentId:"y6bn08-0"})(["font-weight:",";"],qt.variables.fontWeightBold),Jt=Kt()(Yt.a).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllOption",componentId:"y6bn08-1"})(["padding-inline-start:",";box-shadow:none;"],Object(qt.pick)({prisma:"42px;",enterprise:"32px;"})),Qt={active:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),id:fe.a.string,onClick:fe.a.func,selectAllLabel:fe.a.string,totalCount:fe.a.number,changedToggle:fe.a.bool,selected:fe.a.oneOf([!1,!0,"some"])},on=se.a.forwardRef((function(G,Z){var ne=G.active,ie=G.id,ce=G.onClick,fe=G.selectAllLabel,me=G.totalCount,ge=G.changedToggle,Ce=G.selected,Se=ge?" (".concat(null==me?void 0:me.toString(),")"):"";return se.a.createElement(Jt,{label:fe,value:"selectAll",key:"selectAll",onClick:ce,"data-test":"select-all","aria-keyshortcuts":"Control+A",id:ie,active:ne,ref:Z,tabIndex:-1},se.a.createElement(Gt.j,{interactive:!1,selected:"some"===Ce?"some":Ce,key:"main-checkbox",value:"main-checkbox",appearance:"checkbox","aria-label":!Ce&&Object(jt._)("No options selected")||"some"===Ce&&Object(jt._)("Some options selected")||Object(jt._)("All options selected"),"data-test":"select-all-switch",selectedLabel:!0===Ce?Object(jt._)("All options selected"):Object(jt._)("Option selected"),unselectedLabel:!0===Ce?Object(jt._)("No options selected"):Object(jt._)("Option unselected"),someSelectedLabel:Object(jt._)("Some options selected")}),se.a.createElement(Gt.d,{"data-test":"description"},"".concat(Se," Ctrl-a")),se.a.createElement(Gt.b,null,se.a.createElement(Gt.k,{$truncate:!1},se.a.createElement(Zt,{$truncate:!1},fe))))}));on.propTypes=Qt;var sn=on,cn=ne(17),dn=ne.n(cn),mn=Kt()(dn.a).withConfig({displayName:"SelectBaseStyles__StyledButton",componentId:"sc-16cj7sk-0"})(["&[data-inline]{width:",";}",""],(function(G){return G.$multiple?"400px":"auto"}),(function(G){return!G.$multiple&&"flex-grow: 0;"})),_n=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkIcon",componentId:"sc-16cj7sk-1"})(["padding-right:2px;"]),gn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkCaret",componentId:"sc-16cj7sk-2"})(["padding-left:2px;"]),bn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledFilter",componentId:"sc-16cj7sk-3"})(["padding:",";min-width:160px;"],Object(qt.pick)({enterprise:"8px",prisma:"10px 16px"})),yn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledSearchIconWrapper",componentId:"sc-16cj7sk-4"})(["color:",";pointer-events:none;padding:",";"],Object(qt.pick)({enterprise:{light:qt.variables.gray60,dark:qt.variables.white},prisma:qt.variables.contentColorMuted}),Object(qt.pick)({comfortable:"0 8px",compact:"0 6px"})),vn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledCount",componentId:"sc-16cj7sk-5"})(["padding-right:",";"],Object(qt.pick)({enterprise:qt.variables.spacingQuarter,prisma:qt.variables.spacingXSmall})),wn=Kt()(Lt.a).withConfig({displayName:"SelectBaseStyles__StyledControlsLink",componentId:"sc-16cj7sk-6"})(["margin-right:20px;",";"],(function(G){return G.$disabled&&Object(Ut.css)(["color:",";"],qt.variables.contentColorDisabled)})),Cn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledToggleAllControls",componentId:"sc-16cj7sk-7"})(["padding:",";",""],Object(qt.pick)({enterprise:"5px 8px",prisma:"10px 16px"}),Object(qt.pickVariant)("$placement",{above:{enterprise:Object(Ut.css)(["border-top:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-top:1px solid ",";"],qt.variables.neutral200)},below:{enterprise:Object(Ut.css)(["border-bottom:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-bottom:1px solid ",";"],qt.variables.neutral200)}})),On=ne(59),Mn=ne(18);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&(ce.index=ne.matchCharacter.index+1,se=Object(On.a)(ne.currentMatchOptions,ce));else{if(" "===ie)return void ne.resetMatches();se=Object(On.a)(ne.availableMatchOptions,ce)}if(se.length){var fe=0;if(0===ce.index&&se.length>1){var me=se.indexOf(ne.availableMatchOptions[Z]);me>=0&&(fe=me===se.length-1?0:me+1)}var ge,Ce=se[fe],Se=ne.optionRefsByKey[itemKeyFromValueLabel(Ce.value,Ce.label)];if(null!=Se)null===(ge=Se.focus)||void 0===ge||ge.call(Se)}ne.currentMatchOptions=se,ne.matchCharacter=ce,ne.matchTimeout&&clearTimeout(ne.matchTimeout),ne.matchTimeout=setTimeout(ne.resetMatches,500),G.preventDefault(),G.stopPropagation()}})),_defineProperty(_assertThisInitialized(ne),"handleTextChange",(function(G,Z){var ie,se,ce=Z.value;ne.setState({filterKeyword:ce,open:!0,activeIndex:0}),null===(ie=(se=ne.props).onFilterChange)||void 0===ie||ie.call(se,G,{keyword:ce})})),_defineProperty(_assertThisInitialized(ne),"handleTextFocus",(function(){ne.setState({textHasFocus:!0})})),_defineProperty(_assertThisInitialized(ne),"handleTextBlur",(function(){ne.setState({textHasFocus:!1})})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G){var Z={open:!0,topValues:ne.getTopValues()};ne.props.multiple&&(Z.filterKeyword="");var ie=ne.state.filterKeyword;ne.setState(Z,(function(){var Z,se,ce,fe,me;(null===(Z=(se=ne.props).onOpen)||void 0===Z||Z.call(se),ne.firstSelectedEnabledOption&&!ne.hasFilter())?ne.firstSelectedEnabledOption.focus():ne.setState({activeIndex:null!==(ce=ne.firstSelectedOptionIndex)&&void 0!==ce?ce:0});ie!==ne.state.filterKeyword&&(null===(fe=(me=ne.props).onFilterChange)||void 0===fe||fe.call(me,G,{keyword:ne.state.filterKeyword}))}))})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(){ne.setState({open:!1,activeIndex:0},(function(){var G,Z;ne.previousActiveIndex=null,null===(G=(Z=ne.props).onClose)||void 0===G||G.call(Z)}))})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottom",(function(G){var Z,ie;ne.state.open&&!ne.props.isLoadingOptions&&(null===(Z=(ie=ne.props).onScrollBottom)||void 0===Z||Z.call(ie,G))})),_defineProperty(_assertThisInitialized(ne),"handleActiveOptionMount",(function(G){ne.previousActiveIndex!==ne.state.activeIndex&&(null==G||G.scrollIntoViewIfNeeded())})),_defineProperty(_assertThisInitialized(ne),"handleOptionMount",(function(G,Z,ie){ie&&(ne.firstSelectedEnabledOption=G),null==G?delete ne.optionRefsByKey[Z]:ne.optionRefsByKey[Z]=G})),_defineProperty(_assertThisInitialized(ne),"createToggle",(function(){var G,Z,ce,fe=ne.props,me=fe.toggle,ge=fe.appearance,Ce=fe.children,Me=fe.describedBy,ke=fe.disabled,xe=fe.elementRef,De=fe.error,Ie=fe.inline,Re=fe.labelledBy,ze=fe.labelText,$e=fe.multiple,Je=fe.placeholder,ot=fe.prefixLabel,at=fe.required,st=fe.suffixLabel,ut=null!==(G=ne.getCurrentValues())&&void 0!==G?G:[],ht=ie.Children.toArray(Ce);(ce=ut.reduce((function(G,ne,ie,se){var ce=Se()(ht,(function(G){return isOption(G)&&G.props.value===ne}));return ce?(G.push(ce.props.children||ce.props.label),$e||1!==ut.length||(Z=ce.props.icon)):$e&&G.push(ne),ie0&&(ce=ne.wrapLabel({prefixLabel:ot,label:ce,suffixLabel:st})),(0===ce.length||!$e&&ce.every((function(G){return""===G})))&&(ce=Tn(Je));var ft=ce;ce.length>1&&(ft=ne.wrapLabel({prefixLabel:ot,label:["".concat(ut.length," items selected")],suffixLabel:st}));var _t=_objectSpread({"aria-describedby":Me,"aria-label":"".concat(ze?"".concat(ze,", "):"").concat(ft),"aria-labelledby":ze?void 0:Re,"aria-multiselectable":$e||void 0,"aria-required":at,"data-select-appearance":ge,"data-test":$e?"multiselect":"select",disabled:ke,elementRef:xe,error:De},ct()(ne.props,it()(SelectBase.propTypes)));if($e)_t["data-test-values"]=JSON.stringify(ut);else{var yt=_slicedToArray(ut,1)[0];_t["data-test-value"]=yt}return me?Object(ie.cloneElement)(me,_t):"link"===ge?se.a.createElement(Lt.a,_extends({},_t,{"data-select-appearance":"link"}),!!Z&&se.a.createElement(_n,null,Z),ce||Je,se.a.createElement(gn,null,se.a.createElement(Wt,null))):se.a.createElement(mn,_extends({},_t,{$multiple:$e,appearance:ge,label:ce,error:De,icon:Z,inline:Ie,isMenu:!0,"aria-haspopup":"listbox","aria-owns":ne.menuId,onClick:ne.props.onClick},dt()(ne.props,SelectBase.invalidLinkAppearanceProps)),!!ut.length&&$e&&se.a.createElement(vn,{"data-role":"count"},"(",ut.length,")"))})),_defineProperty(_assertThisInitialized(ne),"createChildren",(function(){var G,Z=ne.state,ce=Z.filterKeyword,fe=Z.textHasFocus,me=Z.topValues,ge=ne.props,Ce=ge.allowKeyMatching,Me=ge.allowNewValues,xe=ge.filter,De=ge.multiple,Ie=ge.selectAllAppearance,Re=ge.showSelectedValuesFirst,ze=ge.isLoadingOptions,$e=ge.onScrollBottom,Je=ne.getCurrentValues();ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.activeValue=void 0,ne.availableMatchOptions=[];var it,ot=0,at=!1,st="immediately"===Re?ne.getTopValues():me,ct=ie.Children.toArray(ne.props.children).reduce((function(Z,ce,fe){if(!isOption(ce))return Z.push(ce),Z;ce.props.value===ne.state.filterKeyword&&(G=!0);var me=Je&&Je.indexOf(ce.props.value)>=0,ge=!!me&&!ce.props.disabled&&!it,Se=Ce&&!De&&!xe&&!ze&&!$e,Me=itemKeyFromValueLabel(ce.props.value,ce.props.label),ke=-1;!Se||ce.props.disabled||ce.props.hidden||(ne.availableMatchOptions.push({label:ce.props.label,value:ce.props.value}),ke=ne.availableMatchOptions.length-1);var Ie=Object(ie.cloneElement)(ce,{key:ce.key||fe,onClick:ne.handleMenuOptionClick,onKeyDown:Se?function(G){return ne.handleMenuOptionKeyDown(G,ke)}:void 0,selected:me,multiple:De,role:"option",ref:function ref(G){return ne.handleOptionMount(G,Me,ge)}});return ge&&(it=!0),st&&st.indexOf(ce.props.value)>=0?(0===ot&&(Z.splice(ot,0,se.a.createElement(wt.Divider,{key:"topDivider"})),at=!0),Z.splice(ot,0,Ie),ot+=1):Z.push(Ie),Z}),[]);De&&ke()(Je,(function(Z){if(!Se()(ct,(function(G){return isOption(G)&&G.props&&G.props.value===Z}))){Z===ne.state.filterKeyword&&(G=!0);var ie=st&&st.indexOf(Z)>=0,ce=st.length;0===ot&&(ct.splice(0,0,se.a.createElement(wt.Divider,{key:"topDivider"})),ot+=1,at=!0),ct.splice(ie?0:ce+1,0,se.a.createElement(Yt.a,{label:String(Z),value:Z,key:"missing-value-".concat(Z),onClick:ne.handleMenuOptionClick,multiple:De,selected:!0})),ie&&(ot+=1)}}));var ut="controlled"===xe,dt=Object(kt.stringToKeywords)(ce);if(ct=ut?ct:ct.filter((function(G){return!isOption(G)||Object(kt.testPhrase)(G.props.label,dt)})).map((function(G){if(!isOption(G))return G;var Z=dt&&Object(kt.keywordLocations)(G.props.label,dt);return Object(ie.cloneElement)(G,{matchRanges:Z||void 0})})),Me&&!G&&ce){var ht=at?ot+1:ot;ct.splice(ht,0,se.a.createElement(Yt.a,{label:"".concat(ce," (new value)"),value:ce,key:"newValue",multiple:De,onClick:ne.handleMenuOptionClick}))}var ft,_t,yt="checkbox"===Ie&&De&&ct.length>1?1:0,vt=!0;(ct=ct.reduce((function(G,Z){if(!isOption(Z))return G.push(Z),G;if(Z.props&&Z.props.hidden)return G;Z.props.selected&&!Z.props.disabled&&null==ne.firstSelectedOptionIndex&&(ne.firstSelectedOptionIndex=ne.availableOptionCount);var se=yt===ne.state.activeIndex;if(yt+=1,ne.availableOptionCount+=1,ne.selectedOptionCount+=Z.props.selected?1:0,"newValue"===Z.key||Z.props.disabled||Z.props.selected||(vt=!1),!se||!fe)return G.push(Z),G;Z.props.disabled||(ne.activeValue=Z.props.value);var ce=Object(ie.cloneElement)(Z,{active:se,id:ne.activeItemId,ref:ne.handleActiveOptionMount});return G.push(ce),G}),[]),ne.optionSelection=(0===ne.selectedOptionCount?"none":vt&&"all")||"some","checkbox"===Ie&&De&&ne.availableOptionCount>0)&&(_t="all"===ne.optionSelection?""===ce?Object(jt._)("Clear all"):Object(jt._)("Clear all matches"):""===ce?Object(jt._)("Select all"):Object(jt._)("Select all matches"),0===ne.state.activeIndex&&fe&&(ne.activeValue="selectAll"),ct.unshift(se.a.createElement(sn,{key:"selectAllOption",selected:"all"===ne.optionSelection||"none"!==ne.optionSelection&&"some",selectAllLabel:_t,totalCount:null===(ft=ne.getCurrentValues())||void 0===ft?void 0:ft.length,changedToggle:!!ne.props.toggle,onClick:"all"===ne.optionSelection?ne.handleClearAll:ne.handleSelectAll,id:0===ne.state.activeIndex?ne.activeItemId:void 0,active:0===ne.state.activeIndex,ref:ne.handleActiveOptionMount,tabIndex:-1}),se.a.createElement(wt.Divider,{key:"selectAllDivider"})));return ne.displayedValues=ct.reduce((function(G,Z){return isOption(Z)&&G.push(Z.props.value),G}),[]),ct})),_defineProperty(_assertThisInitialized(ne),"wrapLabel",(function(G){var Z=G.prefixLabel,ne=G.label,ie=G.suffixLabel,se=ne;return Z&&(se=["".concat(Z,": ")].concat(se)),ie&&(se=ge()(se).concat(" ".concat(ie))),se})),_defineProperty(_assertThisInitialized(ne),"handleDropdownMount",(function(G){ne.dropdown=G})),ne.state={activeIndex:0,filterKeyword:"",open:!1,textHasFocus:!1,topValues:[],values:G.defaultValues||[]},ne.controlledExternally=De()(G,"values"),ne.displayedValues=[],ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.matchCharacter=null,ne.matchTimeout=null,ne.currentMatchOptions=[],ne.availableMatchOptions=[],ne.optionRefsByKey={},ne.optionSelection="none",SelectBase.validateAppearance(G),ne.menuId=Object(vt.createDOMID)("menu"),ne.activeItemId=Object(vt.createDOMID)("active-item"),ne}return _createClass(SelectBase,null,[{key:"validateAppearance",value:function validateAppearance(G){0}}]),_createClass(SelectBase,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){SelectBase.validateAppearance(this.props),this.previousActiveIndex=Z.activeIndex}},{key:"getCurrentValues",value:function getCurrentValues(){var G=this.isControlled()?this.props.values:this.state.values;return this.props.multiple||null==G?G:G.slice(0,1)}},{key:"getTopValues",value:function getTopValues(){var G;return this.props.multiple&&"never"!==this.props.showSelectedValuesFirst&&null!==(G=this.getCurrentValues())&&void 0!==G?G:[]}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"hasFilter",value:function hasFilter(){return!!this.props.filter}},{key:"toggleValue",value:function toggleValue(G,Z){var ne,ie,se,ce,fe=null!==(ne=this.getCurrentValues())&&void 0!==ne?ne:[],me=fe.indexOf(Z),ge=this.props,Ce=ge.name,Se=ge.multiple;ce=Se?me>=0?[].concat(_toConsumableArray(fe.slice(0,me)),_toConsumableArray(fe.slice(me+1))):fe.concat([Z]):[Z];var Me=!this.isControlled();Me&&this.setState({values:ce}),Se?Me&&this.setState({open:!0}):(this.handleRequestClose({reason:"contentClick"}),this.focus()),null===(ie=(se=this.props).onChange)||void 0===ie||ie.call(se,G,{values:ce,name:Ce,reason:"valueToggle"})}},{key:"focus",value:function focus(){var G;null===(G=this.dropdown)||void 0===G||G.focus()}},{key:"renderControls",value:function renderControls(G){var Z=G.hasChildren,ne=G.placement,ie=this.state.filterKeyword,ce=this.props,fe=ce.inputId,me=ce.inputRef,ge=ce.multiple,Ce=ce.selectAllAppearance,Se=Object(jt._)("Select all options".concat("all"===this.optionSelection?" disabled":"")),Me=Object(jt._)("Clear all options".concat("none"===this.optionSelection?" disabled":"")),ke=se.a.createElement(Cn,{$placement:ne,key:"selectAll"},se.a.createElement(wn,{$disabled:"all"===this.optionSelection,"aria-label":Se,onClick:this.handleSelectAll,"data-test":"select-all"},ie?Object(jt._)("Select All Matches"):Object(jt._)("Select All")),se.a.createElement(wn,{$disabled:"none"===this.optionSelection,"aria-label":Me,onClick:this.handleClearAll,"data-test":"clear-all"},ie?Object(jt._)("Clear All Matches"):Object(jt._)("Clear All")));return this.hasFilter()&&se.a.createElement("div",{key:"controls"},se.a.createElement(bn,{key:"filter","data-test":"filter"},se.a.createElement(Et.a,{value:ie,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,onChange:this.handleTextChange,onKeyDown:this.handleTextKeyDown,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur,placeholder:Object(jt._)("filter"),role:"combobox","aria-expanded":"true","aria-label":Object(jt._)("Filter"),"aria-activedescendant":this.activeItemId,inputRef:me,inputId:fe,canClear:!0,startAdornment:se.a.createElement(yn,null,se.a.createElement(Vt,null))})),ge&&Z&&"buttongroup"===Ce&&ke)}},{key:"render",value:function render(){var G,Z=this,ne=this.props,ce=ne.children,fe=ne.defaultPlacement,me=ne.inputId,ge=ne.multiple,Ce=ne.repositionMode,Me=this.hasFilter(),ke=null!==(G=this.getCurrentValues())&&void 0!==G?G:[],xe=ie.Children.toArray(ce),De=ke.some((function(G){var Z=Se()(xe,(function(Z){return isOption(Z)&&Z.props.value===G}));return Z&&!Z.props.disabled})),Ie=this.createChildren(),Re=this.createToggle(),ze=function createMenu(G){var ne=G.anchorWidth,ie=G.maxHeight,ce=G.placement,fe=Dn({anchorWidth:ne,isMultiple:Z.props.multiple,menuStyle:Z.props.menuStyle}),me=ke.length>0&&!De&&!Z.hasFilter()?0:void 0;return se.a.createElement(At.a,_extends({"aria-multiselectable":ge||void 0,childrenStart:Z.renderControls({placement:ce,hasChildren:!!Ie.length}),controlledExternally:Z.hasFilter(),placement:null!=ce?ce:void 0,maxHeight:null!=ie?ie:void 0,onScrollBottom:Z.props.onScrollBottom?Z.handleScrollBottom:void 0,"data-test":"results-menu",isLoading:Z.props.isLoadingOptions,id:Z.menuId},dt()(Z.props,"noOptionsMessage","footerMessage","animateLoading","loadingMessage","onScroll"),{style:fe,tabIndex:me}),Ie)};return se.a.createElement(St.a,{closeReasons:En,inputId:me,toggle:Re,onRequestOpen:this.handleRequestOpen,onRequestClose:this.handleRequestClose,open:this.state.open,openWithArrowKeys:!0,repositionMode:Ce,defaultPlacement:Me?fe:void 0,canCoverAnchor:Object(Mn.a)().innerHeight<500,ref:this.handleDropdownMount,retainFocus:!1,takeFocus:0===ke.length||ke.length>0&&!De||!!Me},ze)}}]),SelectBase}(ie.Component);_defineProperty(jn,"propTypes",kn),_defineProperty(jn,"defaultProps",xn),_defineProperty(jn,"Option",Yt.a),_defineProperty(jn,"Divider",wt.Divider),_defineProperty(jn,"Heading",wt.Heading),_defineProperty(jn,"invalidLinkAppearanceProps",["append","error","prepend"]);Z.c=jn},67:function(G,Z){G.exports=ne(594)},7:function(G,Z){G.exports=ne(1154)},8:function(G,Z){G.exports=ne(1155)},9:function(G,Z){G.exports=ne(62)}})},1305:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=203)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(758)},2:function(G,Z){G.exports=ne(0)},203:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(22),ge=ne(3),Ce=ne.n(ge),Se=ne(96),Me=ne.n(Se),ke=ne(65),xe=ne.n(ke),De=ne(0),Ie=ne(4),Re=Object(Ie._)("Open externally"),ze=Object(ge.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),$e=Ce()(xe.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-13bdx45-0"})([""," margin:0 0 0 3px;"],ze),Je=Ce()(Me.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-13bdx45-1"})([""," margin:0 0 0 4px;"],ze);var it=function External(){return Object(De.useSplunkTheme)().isEnterprise?se.a.createElement($e,{screenReaderText:Re}):se.a.createElement(Je,{"aria-label":Re},se.a.createElement("title",null,Re))},ot=ne(12),at=ne.n(ot),st=Ce()(at.a).withConfig({displayName:"LinkStyles__StyledClickable",componentId:"sc-1hhltcf-0"})(["",";color:",";text-decoration:none;font-size:inherit;font-weight:inherit;line-height:inherit;border-radius:",";&:not([disabled],[aria-disabled='true']){cursor:pointer;",";&:focus{box-shadow:",";outline:0;&:active{box-shadow:none;}}}&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),Object(De.pick)({enterprise:De.variables.linkColor,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:0,prisma:"1px"}),Object(De.pick)({enterprise:Object(ge.css)(["&:hover{text-decoration:underline;}"]),prisma:Object(ge.css)(["&:hover:not(:focus),&:active{text-decoration:underline;text-underline-position:under;}"])}),De.variables.focusShadow,De.variables.contentColorDisabled);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne{let{children:Z}=G,ne=(0,ce.default)(G,Ce);return fe.default.createElement(me.default.Panel,(0,se.default)({},(0,ge.default)(ne,Se),{__self:void 0,__source:{fileName:"/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/Panel.tsx",lineNumber:40,columnNumber:5}}),Z)};Z.default=_default},1307:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isInterpolationResult=isInterpolationResult,Z.default=Z.getThemeVariant=void 0;var ie=ne(1158);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var se={enterprise:"family",prisma:"family",light:"colorScheme",dark:"colorScheme",compact:"density",comfortable:"density"};function isInterpolationResult(G){return"object"!==_typeof(G)||Array.isArray(G)||null===G}var ce=function getThemeVariant(G,Z){var ne=Object.keys(G).shift();if(!ne)throw new Error("A pick tree cannot be empty.");var ie=se[ne];if(!ie)throw new Error("Invalid pick tree key: ".concat(ne));var ce=G[Z[ie]];return isInterpolationResult(ce)?ce:getThemeVariant(ce,Z)};Z.getThemeVariant=ce;var fe=function pick(G){return function(Z){var ne=Z.theme,se=(0,ie.addThemeDefaults)(null==ne?void 0:ne.splunkThemeV1);return ce(G,se)}};Z.default=fe},1308:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=185)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},150:function(G,Z){G.exports=ne(470)},151:function(G,Z){G.exports=ne(271)},152:function(G,Z){G.exports=ne(182)},16:function(G,Z){G.exports=ne(1309)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},185:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Jt})),ne.d(Z,"PopoverContext",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(93),ge=ne(150),Ce=ne.n(ge),Se=ne(58),Me=ne.n(Se),ke=ne(151),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(15),ze=ne.n(Re),$e=ne(152),Je=ne.n($e),it=ne(19),ot=ne.n(it),at=ne(71),st=ne.n(at),ct=ne(9),ut=ne.n(ct),dt=ne(5),ht=ne.n(dt),ft=ne(33),_t=ne.n(ft),yt=ne(0),vt=ne(43),wt=ne(16),Ct=ne.n(wt),St=ne(85),Mt=ne.n(St),kt=ne(53),xt=ne.n(kt),Lt=ne(31);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2875)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(2876)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(4114)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(7424)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},1309:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=241)}({1:function(G,Z){G.exports=ne(2)},132:function(G,Z){G.exports=ne(444)},2:function(G,Z){G.exports=ne(0)},241:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Se}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(132),ge=ne.n(me),Ce={children:fe.a.node,target:fe.a.oneOfType([fe.a.object,fe.a.string]),eventType:fe.a.any,listener:fe.a.func,options:fe.a.oneOfType([fe.a.object,fe.a.bool])};function EventListener(G){var Z=G.children,ne=G.target,ie=G.eventType,ce=G.listener,fe=G.options;return ge()(ne,ie,ce,fe),se.a.createElement(se.a.Fragment,null,Z||null)}EventListener.propTypes=Ce;var Se=EventListener}})},1310:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=200)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},14:function(G,Z){G.exports=ne(891)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},200:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Mt})),ne.d(Z,"ControlGroupContext",(function(){return yt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(55),ge=ne.n(me),Ce=ne(19),Se=ne.n(Ce),Me=ne(0),ke=ne(8),xe=ne(6),De=ne.n(xe),Ie=ne(14),Re=ne.n(Ie),ze=ne(3),$e=ne.n(ze),Je=ne(45),it=ne.n(Je),ot=$e()(De.a).withConfig({displayName:"ControlGroupStyles__StyledBox",componentId:"wjnyif-0"})([""," "," max-width:600px;margin-bottom:",";"," color:",";",""],Me.mixins.reset("block"),Me.mixins.clearfix(),Object(Me.pick)({enterprise:Object(ze.css)(["calc("," * 0.75)"],Me.variables.spacing),prisma:{comfortable:"16px",compact:"12px"}}),Object(Me.pick)({prisma:{comfortable:Object(ze.css)(["&:first-child{margin-top:",";}&:last-child{margin-bottom:",";}"],Me.variables.spacingMedium,Me.variables.spacingMedium),compact:Object(ze.css)(["&:first-child{margin-top:",";}&:last-child{margin-bottom:",";}"],Me.variables.spacingSmall,Me.variables.spacingSmall)}}),Object(Me.pick)({enterprise:Me.variables.textColor,prisma:Me.variables.contentColorMuted}),(function(G){return G.$error&&Object(ze.css)(["color:",";"],Object(Me.pick)({enterprise:{light:Me.variables.errorColorD10,dark:Me.variables.errorColorL20},prisma:Me.variables.accentColorNegative}))})),at=$e()(De.a).withConfig({displayName:"ControlGroupStyles__StyledControlsStackBox",componentId:"wjnyif-1"})(["flex-direction:column;"]),st=$e.a.div.withConfig({displayName:"ControlGroupStyles__StyledLabelWrapper",componentId:"wjnyif-2"})(["display:inline-flex;align-items:center;"," ",""],Object(Me.pick)({enterprise:Object(ze.css)(["justify-content:flex-end;"])}),(function(G){return"top"===G.$labelPosition?Object(ze.css)(["",""],Object(Me.pick)({prisma:Object(ze.css)(["height:24px;padding-bottom:",";"],Me.variables.spacingXSmall)})):Object(ze.css)(["",""],Object(Me.pick)({prisma:Object(ze.css)(["min-height:",";"],Me.variables.inputHeight)}))})),ct=$e()(st).withConfig({displayName:"ControlGroupStyles__StyledLabelWrapperLeft",componentId:"wjnyif-3"})(["float:left;"]),ut=$e.a.label.withConfig({displayName:"ControlGroupStyles__StyledLabel",componentId:"wjnyif-4"})(["padding:",";word-wrap:break-word;color:inherit;text-align:",";"],Object(Me.pick)({enterprise:{comfortable:"6px 0",compact:"4px 0"}}),Object(Me.pick)({enterprise:"right",prisma:"left"})),dt=$e()(it.a).withConfig({displayName:"ControlGroupStyles__StyledTooltip",componentId:"wjnyif-5"})(["",""],(function(G){return"top"===G.$labelPosition&&Object(ze.css)(["button{","}"],Object(Me.pick)({prisma:Object(ze.css)(["svg{width:20px;height:20px;}padding:4px;"])}))})),ht=$e.a.div.withConfig({displayName:"ControlGroupStyles__StyledHelp",componentId:"wjnyif-6"})(["",";font-size:",";color:",";margin-top:",";",""],Me.mixins.reset("block"),Me.variables.fontSizeSmall,Me.variables.contentColorMuted,Object(Me.pick)({enterprise:"2px",prisma:"4px"}),(function(G){return G.$error&&Object(ze.css)(["color:inherit;"])})),ft=$e.a.div.withConfig({displayName:"ControlGroupStyles__StyledErrorText",componentId:"wjnyif-7"})(["",";font-size:",";[aria-invalid] > &{color:inherit;}",""],Me.mixins.reset("block"),Me.variables.fontSizeSmall,(function(G){return!G.$help&&Object(ze.css)(["margin-top:",";"],Object(Me.pick)({enterprise:"2px",prisma:"4px"}))})),_t=$e.a.span.withConfig({displayName:"ControlGroupStyles__StyledAsterisk",componentId:"wjnyif-8"})(["color:inherit;margin-right:2px;"]),yt=se.a.createContext({});function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne0&&(se.prepend=!0),ne1&&(se.inline=!0),"stack"===ce&&(se.inline=!1,ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne1&&void 0!==arguments[1]?arguments[1]:"mouseLeaveToggle";(null==G.relatedTarget||G.relatedTarget!==ne.state.popoverEl&&G.relatedTarget!==ne.state.popoverOuterEl)&&ne.handleRequestClose(G,{reason:Z})})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeavePopover",(function(G){ne.handleMouseLeave(G,"mouseLeavePopover")})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeaveHitArea",(function(G){ne.handleMouseLeave(G,"mouseLeaveHitArea")})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitAreaImpl",(function(G){ne.handleRequestClose(G,{reason:"mouseStopHitArea"})})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitArea",Se()(ne.handleMouseMoveHitAreaImpl,10)),_defineProperty(_assertThisInitialized(ne),"handleClick",(function(G){"notOnClick"!==ne.props.closeWhen&&ne.handleRequestClose(G,{reason:"toggleClick"})})),_defineProperty(_assertThisInitialized(ne),"handleFocus",(function(G){ne.handleRequestOpen(G,{reason:"focusToggle"})})),_defineProperty(_assertThisInitialized(ne),"handleBlur",(function(G){ne.handleRequestClose(G,{reason:"blurToggle"})})),_defineProperty(_assertThisInitialized(ne),"handlePopoverOnRequestClose",(function(G){ne.handleRequestClose(null,G)})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G,Z){var ie=ne.props.closeDelay;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se;ne.isControlled()||ne.setState({open:!1}),null===(ie=(se=ne.props).onRequestClose)||void 0===ie||ie.call(se,G,Z)}),ie)})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G,Z){var ie=ne.props.openDelay,se="number"==typeof ie?ie:"primary"===ie?300:750;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se,ce=ne.isOpen();(ne.isControlled()||ne.setState({open:!0}),ce)||(null===(ie=(se=ne.props).onRequestOpen)||void 0===ie||ie.call(se,G,Z))}),se)})),ne.controlledExternally=ge()(G,"open"),ne.popoverId=Object(Re.createDOMID)("popover"),ne.ariaId=Object(Re.createDOMID)("aria-id"),ne.state={anchorEl:null,open:!1,popoverEl:null,popoverOuterEl:null,hitAreaEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Tooltip,[{key:"componentDidUpdate",value:function componentDidUpdate(){0}},{key:"componentWillUnmount",value:function componentWillUnmount(){void 0!==this.timeout&&clearTimeout(this.timeout)}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"isOpen",value:function isOpen(){var G=!!this.props.content;return this.state.anchorEl&&this.isControlled()?this.props.open:G&&this.state.open}},{key:"render",value:function render(){var G,Z=this.props,ne=Z.appearance,ce=Z.children,fe=Z.content,me=Z.defaultPlacement,ge=Z.elementRef,Ce=Z.inline,Se=(Z.onRequestClose,Z.onRequestOpen,Z.splunkTheme),Me=Z.contentRelationship,xe=_objectWithoutProperties(Z,["appearance","children","content","defaultPlacement","elementRef","inline","onRequestClose","onRequestOpen","splunkTheme","contentRelationship"]),Ie=this.state.anchorEl,Re=!!fe,$e=this.isOpen(),Je=Ce?dt:ut,ot=Ce?ft:ht,at=Se.isPrisma,st=at?"below":"above";return"label"===Me?G={labelledBy:this.ariaId,"aria-labelledby":this.ariaId}:"description"===Me&&(G={describedBy:this.ariaId,"aria-describedby":this.ariaId}),se.a.createElement(Je,Tooltip_extends({"data-test":"tooltip","data-test-open":$e,"data-test-popover-id":this.popoverId,ref:ge},xe),se.a.createElement(ot,{onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:this.handleMount,"data-test":"toggle"},Re&&Object(ie.isValidElement)(ce)?Object(ie.cloneElement)(ce,G):ce,Re&&!ce&&se.a.createElement(yt,{"aria-describedby":this.ariaId},at?se.a.createElement(it,{hideDefaultTooltip:!0,screenReaderText:Object(ze._)("More info"),style:{height:"22px",width:"22px"}}):se.a.createElement(se.a.Fragment,null,se.a.createElement("span",{"aria-hidden":"true"},"?"),se.a.createElement(De.a,null,Object(ze._)("More info")))),Re&&se.a.createElement(De.a,{"aria-hidden":"true",id:this.ariaId},fe)),se.a.createElement(ke.a,{role:"tooltip",align:"center",anchor:Ie,animationConfig:{tension:400},appearance:ne,closeReasons:["offScreen","escapeKey"],defaultPlacement:"theme"===me?st:me,id:this.popoverId,open:$e,onRequestClose:this.handlePopoverOnRequestClose,elementRef:this.handlePopoverMount,hitAreaRef:this.handleHitAreaMount,outerRef:this.handlePopoverOuterMount},se.a.createElement(_t,{$isLabel:"label"===Me},fe)))}}]),Tooltip}(ie.Component);_defineProperty(wt,"propTypes",vt),_defineProperty(wt,"defaultProps",{appearance:"inverted",closeDelay:300,closeWhen:"default",contentRelationship:"description",defaultPlacement:"theme",inline:!0,openDelay:"primary"});var Ct=Object(Ie.withSplunkTheme)(wt);Ct.propTypes=wt.propTypes;var St=Ct},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},34:function(G,Z){G.exports=ne(1623)},4:function(G,Z){G.exports=ne(371)},8:function(G,Z){G.exports=ne(979)}})},1312:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=203)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(530)},2:function(G,Z){G.exports=ne(0)},203:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(22),ge=ne(3),Ce=ne.n(ge),Se=ne(96),Me=ne.n(Se),ke=ne(65),xe=ne.n(ke),De=ne(0),Ie=ne(4),Re=Object(Ie._)("Open externally"),ze=Object(ge.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),$e=Ce()(xe.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-13bdx45-0"})([""," margin:0 0 0 3px;"],ze),Je=Ce()(Me.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-13bdx45-1"})([""," margin:0 0 0 4px;"],ze);var it=function External(){return Object(De.useSplunkTheme)().isEnterprise?se.a.createElement($e,{screenReaderText:Re}):se.a.createElement(Je,{"aria-label":Re},se.a.createElement("title",null,Re))},ot=ne(12),at=ne.n(ot),st=Ce()(at.a).withConfig({displayName:"LinkStyles__StyledClickable",componentId:"sc-1hhltcf-0"})(["",";color:",";text-decoration:none;font-size:inherit;font-weight:inherit;line-height:inherit;border-radius:",";&:not([disabled],[aria-disabled='true']){cursor:pointer;",";&:focus{box-shadow:",";outline:0;&:active{box-shadow:none;}}}&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),Object(De.pick)({enterprise:De.variables.linkColor,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:0,prisma:"1px"}),Object(De.pick)({enterprise:Object(ge.css)(["&:hover{text-decoration:underline;}"]),prisma:Object(ge.css)(["&:hover:not(:focus),&:active{text-decoration:underline;text-underline-position:under;}"])}),De.variables.focusShadow,De.variables.contentColorDisabled);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne0}function isClassDictionary(G){return"object"==typeof G}Object.defineProperty(Z,"__esModule",{value:!0}),Z.classNames=void 0,Z.classNames=function classNames(){for(var G=[],Z=0;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},1317:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=21)}({0:function(G,Z){G.exports=ne(0)},21:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IconContext",(function(){return Se})),ne.d(Z,"IconProvider",(function(){return Me}));var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(8);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},1318:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},1319:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=231)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},231:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.span.withConfig({displayName:"ScreenReaderContentStyles__Styled",componentId:"sc-1lnohwp-0"})(["",";"],Ce.mixins.screenReaderContent());function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},1320:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=61)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(644)},61:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Close}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(7),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z * > &,",":active > * > &,{color:",";}"],Ie.variables.contentColorDefault,ze,ze,Ie.variables.contentColorDefault)})}})),ot=ne(56),at=ne.n(ot),st=ne(57),ct=ne.n(st),ut=function CaretSmallDown(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(ct.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(at.a,{height:ne,width:ne})},dt=ne(126),ht=ne.n(dt),ft=ne(65),_t=ne.n(ft),yt=ne(4),vt=Object(yt._)("Open externally");var wt=function External(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(_t.a,{screenReaderText:vt,size:.8,style:{verticalAlign:"baseline"}}):se.a.createElement(ht.a,{"aria-label":vt,height:ne,width:ne},se.a.createElement("title",null,vt))};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,G)).then(G=>{Object.assign(this.completion,G),this._isResolved=!0,Z.dispose()},G=>{Object(ie.d)(G)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache}))}}class CompletionOptions{constructor(G=2,Z=new Set,ne=new Set,ie=!0){this.snippetSortOrder=G,this.kindFilter=Z,this.providerFilter=ne,this.showDeprecated=ie}}function getSnippetSuggestSupport(){}CompletionOptions.default=new CompletionOptions;class CompletionItemModel{constructor(G,Z,ne,ie){this.items=G,this.needsClipboard=Z,this.durations=ne,this.disposable=ie}}function provideSuggestionItems(G,Z,ne=CompletionOptions.default,ce={triggerKind:0},fe=me.a.None){return __awaiter(this,void 0,void 0,(function*(){const me=new xe.a(!0);Z=Z.clone();const Ce=G.getWordAtPosition(Z),Me=Ce?new ge.a(Z.lineNumber,Ce.startColumn,Z.lineNumber,Ce.endColumn):ge.a.fromPositions(Z),De={replace:Me,insert:Me.setEndPosition(Z.lineNumber,Z.column)},Ie=[],Re=new Se.b,ze=[];let $e=!1;const onCompletionList=(G,ie,se)=>{var ce,fe,me;if(ie){for(let se of ie.suggestions)if(!ne.kindFilter.has(se.kind)){if(!ne.showDeprecated&&(null===(ce=null==se?void 0:se.tags)||void 0===ce?void 0:ce.includes(1)))continue;se.range||(se.range=De),se.sortText||(se.sortText="string"==typeof se.label?se.label:se.label.label),!$e&&se.insertTextRules&&4&se.insertTextRules&&($e=ke.c.guessNeedsClipboard(se.insertText)),Ie.push(new CompletionItem(Z,se,ie,G))}Object(Se.g)(ie)&&Re.add(ie),ze.push({providerName:null!==(fe=G._debugDisplayName)&&void 0!==fe?fe:"unkown_provider",elapsedProvider:null!==(me=ie.duration)&&void 0!==me?me:-1,elapsedOverall:se.elapsed()})}},Je=(()=>__awaiter(this,void 0,void 0,(function*(){})))();for(let me of se.d.orderedGroups(G)){let se=Ie.length;if(yield Promise.all(me.map(se=>__awaiter(this,void 0,void 0,(function*(){if(!(ne.providerFilter.size>0)||ne.providerFilter.has(se))try{const ne=new xe.a(!0),ie=yield se.provideCompletionItems(G,Z,ce,fe);onCompletionList(se,ie,ne)}catch(G){Object(ie.f)(G)}})))),se!==Ie.length||fe.isCancellationRequested)break}return yield Je,fe.isCancellationRequested?(Re.dispose(),Promise.reject(Object(ie.a)())):new CompletionItemModel(Ie.sort(getSuggestionComparator(ne.snippetSortOrder)),$e,{entries:ze,elapsed:me.elapsed()},Re)}))}function defaultComparator(G,Z){if(G.sortTextLow&&Z.sortTextLow){if(G.sortTextLowZ.sortTextLow)return 1}return G.completion.labelZ.completion.label?1:G.completion.kind-Z.completion.kind}const ot=new Map;function getSuggestionComparator(G){return ot.get(G)}ot.set(0,(function snippetUpComparator(G,Z){if(G.completion.kind!==Z.completion.kind){if(27===G.completion.kind)return-1;if(27===Z.completion.kind)return 1}return defaultComparator(G,Z)})),ot.set(2,(function snippetDownComparator(G,Z){if(G.completion.kind!==Z.completion.kind){if(27===G.completion.kind)return 1;if(27===Z.completion.kind)return-1}return defaultComparator(G,Z)})),ot.set(1,defaultComparator),De.a.registerCommand("_executeCompletionItemProvider",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne,ie,se,fe]=Z;Object(Ie.c)(Re.a.isUri(ne)),Object(Ie.c)(ce.a.isIPosition(ie)),Object(Ie.c)("string"==typeof se||!se),Object(Ie.c)("number"==typeof fe||!fe);const ge=yield G.get(ze.a).createModelReference(ne);try{const G={incomplete:!1,suggestions:[]},Z=[],ne=yield provideSuggestionItems(ge.object.textEditorModel,ce.a.lift(ie),void 0,{triggerCharacter:se,triggerKind:se?1:0});for(const ie of ne.items)Z.length<(null!=fe?fe:0)&&Z.push(ie.resolve(me.a.None)),G.incomplete=G.incomplete||ie.container.incomplete,G.suggestions.push(ie.completion);try{return yield Promise.all(Z),G}finally{setTimeout(()=>ne.disposable.dispose(),100)}}finally{ge.dispose()}})));const at=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){let G={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,G}};function showSimpleSuggestions(G,Z){setTimeout(()=>{at.onlyOnceSuggestions.push(...Z),G.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(at))},0)}se.d.register("*",at)},1349:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce}));var ie=ne(180),se=ne(19);const ce={JSONContribution:"base.contributions.json"};const fe=new class JSONContributionRegistry{constructor(){this._onDidChangeSchema=new se.b,this.schemasById={}}registerSchema(G,Z){this.schemasById[function normalizeId(G){return G.length>0&&"#"===G.charAt(G.length-1)?G.substring(0,G.length-1):G}(G)]=Z,this._onDidChangeSchema.fire(G)}notifySchemaChanged(G){this._onDidChangeSchema.fire(G)}};ie.a.add(ce.JSONContribution,fe)},1350:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("markerDecorationsService")},1351:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se})),ne.d(Z,"b",(function(){return WorkspaceFolder}));var ie=ne(60);ne(234);const se=Object(ie.c)("contextService");class WorkspaceFolder{constructor(G,Z){this.raw=Z,this.uri=G.uri,this.index=G.index,this.name=G.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},1352:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return $n}));var ie=ne(1350),se=ne(14),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let ce=class MarkerDecorationsContribution{constructor(G,Z){}dispose(){}};ce.ID="editor.contrib.markerDecorations",ce=__decorate([__param(1,ie.a)],ce),Object(se.l)(ce.ID,ce);ne(7519);var fe=ne(4),me=ne(6),ge=ne(51),Ce=ne(19),Se=ne(10),Me=ne(143),ke=ne(317),xe=ne(127),De=ne(130),Ie=ne(80),Re=ne(128),ze=ne(46),$e=ne(209),Je=ne(279),it=ne(57),ot=ne(446);class editorDom_PageCoordinates{constructor(G,Z){this.x=G,this.y=Z,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new editorDom_ClientCoordinates(this.x-me.f.scrollX,this.y-me.f.scrollY)}}class editorDom_ClientCoordinates{constructor(G,Z){this.clientX=G,this.clientY=Z,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new editorDom_PageCoordinates(this.clientX+me.f.scrollX,this.clientY+me.f.scrollY)}}class EditorPagePosition{constructor(G,Z,ne,ie){this.x=G,this.y=Z,this.width=ne,this.height=ie,this._editorPagePositionBrand=void 0}}function createEditorPagePosition(G){const Z=me.D(G);return new EditorPagePosition(Z.left,Z.top,Z.width,Z.height)}class editorDom_EditorMouseEvent extends Je.a{constructor(G,Z){super(G),this._editorMouseEventBrand=void 0,this.pos=new editorDom_PageCoordinates(this.posx,this.posy),this.editorPos=createEditorPagePosition(Z)}}class editorDom_EditorMouseEventFactory{constructor(G){this._editorViewDomNode=G}_create(G){return new editorDom_EditorMouseEvent(G,this._editorViewDomNode)}onContextMenu(G,Z){return me.i(G,"contextmenu",G=>{Z(this._create(G))})}onMouseUp(G,Z){return me.i(G,"mouseup",G=>{Z(this._create(G))})}onMouseDown(G,Z){return me.i(G,"mousedown",G=>{Z(this._create(G))})}onMouseLeave(G,Z){return me.j(G,G=>{Z(this._create(G))})}onMouseMoveThrottled(G,Z,ne,ie){return me.l(G,"mousemove",Z,(G,Z)=>ne(G,this._create(Z)),ie)}}class editorDom_EditorPointerEventFactory{constructor(G){this._editorViewDomNode=G}_create(G){return new editorDom_EditorMouseEvent(G,this._editorViewDomNode)}onPointerUp(G,Z){return me.i(G,"pointerup",G=>{Z(this._create(G))})}onPointerDown(G,Z){return me.i(G,"pointerdown",G=>{Z(this._create(G))})}onPointerLeave(G,Z){return me.k(G,G=>{Z(this._create(G))})}onPointerMoveThrottled(G,Z,ne,ie){return me.l(G,"pointermove",Z,(G,Z)=>ne(G,this._create(Z)),ie)}}class editorDom_GlobalEditorMouseMoveMonitor extends Se.a{constructor(G){super(),this._editorViewDomNode=G,this._globalMouseMoveMonitor=this._register(new ot.a),this._keydownListener=null}startMonitoring(G,Z,ne,ie,se){this._keydownListener=me.o(document,"keydown",G=>{G.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,G.browserEvent)},!0);this._globalMouseMoveMonitor.startMonitoring(G,Z,(G,Z)=>ne(G,new editorDom_EditorMouseEvent(Z,this._editorViewDomNode)),ie,G=>{this._keydownListener.dispose(),se(G)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class viewEventHandler_ViewEventHandler extends Se.a{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(G){return!1}onCompositionEnd(G){return!1}onConfigurationChanged(G){return!1}onCursorStateChanged(G){return!1}onDecorationsChanged(G){return!1}onFlushed(G){return!1}onFocusChanged(G){return!1}onLanguageConfigurationChanged(G){return!1}onLineMappingChanged(G){return!1}onLinesChanged(G){return!1}onLinesDeleted(G){return!1}onLinesInserted(G){return!1}onRevealRangeRequest(G){return!1}onScrollChanged(G){return!1}onThemeChanged(G){return!1}onTokensChanged(G){return!1}onTokensColorsChanged(G){return!1}onZonesChanged(G){return!1}handleEvents(G){let Z=!1;for(let ne=0,ie=G.length;ne=me?se=Math.max(se,me+ge-ie):(Z[ne++]=new HorizontalRange(ie,se),ie=me,se=ge)}return Z[ne++]=new HorizontalRange(ie,se),Z}static _createHorizontalRangesFromClientRects(G,Z){if(!G||0===G.length)return null;const ne=[];for(let ie=0,se=G.length;ieme)return null;if((Z=Math.min(me,Math.max(0,Z)))===(ie=Math.min(me,Math.max(0,ie)))&&ne===se&&0===ne&&!G.children[Z].firstChild){const ne=G.children[Z].getClientRects();return this._createHorizontalRangesFromClientRects(ne,ce)}Z!==ie&&ie>0&&0===se&&(ie--,se=1073741824);let ge=G.children[Z].firstChild,Ce=G.children[ie].firstChild;if(ge&&Ce||(!ge&&0===ne&&Z>0&&(ge=G.children[Z-1].firstChild,ne=1073741824),!Ce&&0===se&&ie>0&&(Ce=G.children[ie-1].firstChild,se=1073741824)),!ge||!Ce)return null;ne=Math.min(ge.textContent.length,Math.max(0,ne)),se=Math.min(Ce.textContent.length,Math.max(0,se));const Se=this._readClientRects(ge,ne,Ce,se,fe);return this._createHorizontalRangesFromClientRects(Se,ce)}}var at=ne(611),st=ne(380),ct=ne(495),ut=ne(109);const dt=!!ze.g||!(ze.d||De.g||De.h);let ht=!0;class DomReadingContext{constructor(G,Z){this._domNode=G,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=Z}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class ViewLineOptions{constructor(G,Z){this.themeType=Z;const ne=G.options,ie=ne.get(41);this.renderWhitespace=ne.get(87),this.renderControlCharacters=ne.get(81),this.spaceWidth=ie.spaceWidth,this.middotWidth=ie.middotWidth,this.wsmiddotWidth=ie.wsmiddotWidth,this.useMonospaceOptimizations=ie.isMonospace&&!ne.get(27),this.canUseHalfwidthRightwardsArrow=ie.canUseHalfwidthRightwardsArrow,this.lineHeight=ne.get(57),this.stopRenderingLineAfter=ne.get(104),this.fontLigatures=ne.get(42)}equals(G){return this.themeType===G.themeType&&this.renderWhitespace===G.renderWhitespace&&this.renderControlCharacters===G.renderControlCharacters&&this.spaceWidth===G.spaceWidth&&this.middotWidth===G.middotWidth&&this.wsmiddotWidth===G.wsmiddotWidth&&this.useMonospaceOptimizations===G.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===G.canUseHalfwidthRightwardsArrow&&this.lineHeight===G.lineHeight&&this.stopRenderingLineAfter===G.stopRenderingLineAfter&&this.fontLigatures===G.fontLigatures}}class viewLine_ViewLine{constructor(G){this._options=G,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(G){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(Re.b)(G)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(G){this._isMaybeInvalid=!0,this._options=G}onSelectionChanged(){return(this._options.themeType===ct.a.HIGH_CONTRAST||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(G,Z,ne,ie){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const se=ne.getViewLineRenderingData(G),ce=this._options,fe=at.a.filter(se.inlineDecorations,G,se.minColumn,se.maxColumn);let me=null;if(ce.themeType===ct.a.HIGH_CONTRAST||"selection"===this._options.renderWhitespace){const Z=ne.selections;for(const ne of Z){if(ne.endLineNumberG)continue;const Z=ne.startLineNumber===G?ne.startColumn:se.minColumn,ie=ne.endLineNumber===G?ne.endColumn:se.maxColumn;Z');const Ce=Object(st.d)(ge,ie);ie.appendASCIIString("");let Se=null;return ht&&dt&&se.isBasicASCII&&ce.useMonospaceOptimizations&&0===Ce.containsForeignElements&&se.content.length<300&&ge.lineTokens.getCount()<100&&(Se=new viewLine_FastRenderedViewLine(this._renderedViewLine?this._renderedViewLine.domNode:null,ge,Ce.characterMapping)),Se||(Se=ft(this._renderedViewLine?this._renderedViewLine.domNode:null,ge,Ce.characterMapping,Ce.containsRTL,Ce.containsForeignElements)),this._renderedViewLine=Se,!0}layoutLine(G,Z){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(Z),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof viewLine_FastRenderedViewLine}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof viewLine_FastRenderedViewLine?this._renderedViewLine.monospaceAssumptionsAreValid():ht}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof viewLine_FastRenderedViewLine&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(G,Z,ne){if(!this._renderedViewLine)return null;G|=0,Z|=0,G=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,G)),Z=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,Z));const ie=0|this._renderedViewLine.input.stopRenderingLineAfter;let se=!1;-1!==ie&&G>ie+1&&Z>ie+1&&(se=!0),-1!==ie&&G>ie+1&&(G=ie+1),-1!==ie&&Z>ie+1&&(Z=ie+1);const ce=this._renderedViewLine.getVisibleRangesForRange(G,Z,ne);return ce&&ce.length>0?new VisibleRanges(se,ce):null}getColumnOfNodeOffset(G,Z,ne){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(G,Z,ne):1}}viewLine_ViewLine.CLASS_NAME="view-line";class viewLine_FastRenderedViewLine{constructor(G,Z,ne){this.domNode=G,this.input=Z,this._characterMapping=ne,this._charWidth=Z.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return ht;const G=this.getWidth(),Z=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(G-Z)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),ht=!1),ht}toSlowRenderedLine(){return ft(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(G,Z,ne){const ie=this._getCharPosition(G),se=this._getCharPosition(Z);return[new HorizontalRange(ie,se-ie)]}_getCharPosition(G){const Z=this._characterMapping.getAbsoluteOffset(G);return Math.round(this._charWidth*Z)}getColumnOfNodeOffset(G,Z,ne){const ie=Z.textContent.length;let se=-1;for(;Z;)Z=Z.previousSibling,se++;return this._characterMapping.getColumn(new st.a(se,ne),ie)}}class viewLine_RenderedViewLine{constructor(G,Z,ne,ie,se){if(this.domNode=G,this.input=Z,this._characterMapping=ne,this._isWhitespaceOnly=/^\s*$/.test(Z.lineContent),this._containsForeignElements=se,this._cachedWidth=-1,this._pixelOffsetCache=null,!ie||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let G=0,Z=this._characterMapping.length;G<=Z;G++)this._pixelOffsetCache[G]=-1}}_getReadingTarget(G){return G.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(G,Z,ne){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const ie=this._readPixelOffset(this.domNode,G,ne);if(-1===ie)return null;const se=this._readPixelOffset(this.domNode,Z,ne);return-1===se?null:[new HorizontalRange(ie,se-ie)]}return this._readVisibleRangesForRange(this.domNode,G,Z,ne)}_readVisibleRangesForRange(G,Z,ne,ie){if(Z===ne){const ne=this._readPixelOffset(G,Z,ie);return-1===ne?null:[new HorizontalRange(ne,0)]}return this._readRawVisibleRangesForRange(G,Z,ne,ie)}_readPixelOffset(G,Z,ne){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();const Z=this._getReadingTarget(G);return Z.firstChild?Z.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const ie=this._pixelOffsetCache[Z];if(-1!==ie)return ie;const se=this._actualReadPixelOffset(G,Z,ne);return this._pixelOffsetCache[Z]=se,se}return this._actualReadPixelOffset(G,Z,ne)}_actualReadPixelOffset(G,Z,ne){if(0===this._characterMapping.length){const Z=rangeUtil_RangeUtil.readHorizontalRanges(this._getReadingTarget(G),0,0,0,0,ne.clientRectDeltaLeft,ne.endNode);return Z&&0!==Z.length?Z[0].left:-1}if(Z===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const ie=this._characterMapping.getDomPosition(Z),se=rangeUtil_RangeUtil.readHorizontalRanges(this._getReadingTarget(G),ie.partIndex,ie.charIndex,ie.partIndex,ie.charIndex,ne.clientRectDeltaLeft,ne.endNode);if(!se||0===se.length)return-1;const ce=se[0].left;if(this.input.isBasicASCII){const G=this._characterMapping.getAbsoluteOffset(Z),ne=Math.round(this.input.spaceWidth*G);if(Math.abs(ne-ce)<=1)return ne}return ce}_readRawVisibleRangesForRange(G,Z,ne,ie){if(1===Z&&ne===this._characterMapping.length)return[new HorizontalRange(0,this.getWidth())];const se=this._characterMapping.getDomPosition(Z),ce=this._characterMapping.getDomPosition(ne);return rangeUtil_RangeUtil.readHorizontalRanges(this._getReadingTarget(G),se.partIndex,se.charIndex,ce.partIndex,ce.charIndex,ie.clientRectDeltaLeft,ie.endNode)}getColumnOfNodeOffset(G,Z,ne){const ie=Z.textContent.length;let se=-1;for(;Z;)Z=Z.previousSibling,se++;return this._characterMapping.getColumn(new st.a(se,ne),ie)}}class WebKitRenderedViewLine extends viewLine_RenderedViewLine{_readVisibleRangesForRange(G,Z,ne,ie){const se=super._readVisibleRangesForRange(G,Z,ne,ie);if(!se||0===se.length||Z===ne||1===Z&&ne===this._characterMapping.length)return se;if(!this.input.containsRTL){const Z=this._readPixelOffset(G,ne,ie);if(-1!==Z){const G=se[se.length-1];G.left=4&&3===G[0]&&7===G[3]}static isStrictChildOfViewLines(G){return G.length>4&&3===G[0]&&7===G[3]}static isChildOfScrollableElement(G){return G.length>=2&&3===G[0]&&5===G[1]}static isChildOfMinimap(G){return G.length>=2&&3===G[0]&&8===G[1]}static isChildOfContentWidgets(G){return G.length>=4&&3===G[0]&&1===G[3]}static isChildOfOverflowingContentWidgets(G){return G.length>=1&&2===G[0]}static isChildOfOverlayWidgets(G){return G.length>=2&&3===G[0]&&4===G[1]}}class mouseTarget_HitTestContext{constructor(G,Z,ne){this.model=G.model;const ie=G.configuration.options;this.layoutInfo=ie.get(129),this.viewDomNode=Z.viewDomNode,this.lineHeight=ie.get(57),this.stickyTabStops=ie.get(103),this.typicalHalfwidthCharacterWidth=ie.get(41).typicalHalfwidthCharacterWidth,this.lastRenderData=ne,this._context=G,this._viewHelper=Z}getZoneAtCoord(G){return mouseTarget_HitTestContext.getZoneAtCoord(this._context,G)}static getZoneAtCoord(G,Z){const ne=G.viewLayout.getWhitespaceAtVerticalOffset(Z);if(ne){const ie=ne.verticalOffset+ne.height/2,se=G.model.getLineCount();let ce,fe=null,me=null;return ne.afterLineNumber!==se&&(me=new yt.a(ne.afterLineNumber+1,1)),ne.afterLineNumber>0&&(fe=new yt.a(ne.afterLineNumber,G.model.getLineMaxColumn(ne.afterLineNumber))),ce=null===me?fe:null===fe?me:Z=G.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,mouseTarget_MouseTargetFactory._getMouseColumn(this.mouseContentHorizontalOffset,G.typicalHalfwidthCharacterWidth))}}{constructor(G,Z,ne,ie){super(G,Z,ne),this._ctx=G,ie?(this.target=ie,this.targetPath=viewPart_PartFingerprints.collect(ie,G.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}fulfill(G,Z=null,ne=null,ie=null){let se=this.mouseColumn;return Z&&Z.columnce.contentLeft+ce.width)continue;const ne=G.getVerticalOffsetForLineNumber(ce.position.lineNumber);if(ne<=se&&se<=ne+ce.height)return Z.fulfill(6,ce.position,null,{mightBeForeignElement:!1})}}return null}static _hitTestViewZone(G,Z){const ne=G.getZoneAtCoord(Z.mouseVerticalOffset);if(ne){const G=Z.isInContentArea?8:5;return Z.fulfill(G,ne.position,null,ne)}return null}static _hitTestTextArea(G,Z){return ElementPath.isTextArea(Z.targetPath)?G.lastRenderData.lastTextareaPosition?Z.fulfill(6,G.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1}):Z.fulfill(1,G.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(G,Z){if(Z.isInMarginArea){const ne=G.getFullLineRangeAtCoord(Z.mouseVerticalOffset),ie=ne.range.getStartPosition();let se=Math.abs(Z.pos.x-Z.editorPos.x);const ce={isAfterLines:ne.isAfterLines,glyphMarginLeft:G.layoutInfo.glyphMarginLeft,glyphMarginWidth:G.layoutInfo.glyphMarginWidth,lineNumbersWidth:G.layoutInfo.lineNumbersWidth,offsetX:se};return se-=G.layoutInfo.glyphMarginLeft,se<=G.layoutInfo.glyphMarginWidth?Z.fulfill(2,ie,ne.range,ce):(se-=G.layoutInfo.glyphMarginWidth,se<=G.layoutInfo.lineNumbersWidth?Z.fulfill(3,ie,ne.range,ce):(se-=G.layoutInfo.lineNumbersWidth,Z.fulfill(4,ie,ne.range,ce)))}return null}static _hitTestViewLines(G,Z,ne){if(!ElementPath.isChildOfViewLines(Z.targetPath))return null;if(G.isInTopPadding(Z.mouseVerticalOffset))return Z.fulfill(7,new yt.a(1,1),null,St);if(G.isAfterLines(Z.mouseVerticalOffset)||G.isInBottomPadding(Z.mouseVerticalOffset)){const ne=G.model.getLineCount(),ie=G.model.getLineMaxColumn(ne);return Z.fulfill(7,new yt.a(ne,ie),null,St)}if(ne){if(ElementPath.isStrictChildOfViewLines(Z.targetPath)){const ne=G.getLineNumberAtVerticalOffset(Z.mouseVerticalOffset);if(0===G.model.getLineLength(ne)){const ie=G.getLineWidth(ne),se=createEmptyContentDataInLines(Z.mouseContentHorizontalOffset-ie);return Z.fulfill(7,new yt.a(ne,1),null,se)}const ie=G.getLineWidth(ne);if(Z.mouseContentHorizontalOffset>=ie){const se=createEmptyContentDataInLines(Z.mouseContentHorizontalOffset-ie),ce=new yt.a(ne,G.model.getLineMaxColumn(ne));return Z.fulfill(7,ce,null,se)}}return Z.fulfill(0)}const ie=mouseTarget_MouseTargetFactory._doHitTest(G,Z);return 1===ie.type?mouseTarget_MouseTargetFactory.createMouseTargetFromHitTestPosition(G,Z,ie.spanNode,ie.position,ie.injectedText):this._createMouseTarget(G,Z.withTarget(ie.hitTarget),!0)}static _hitTestMinimap(G,Z){if(ElementPath.isChildOfMinimap(Z.targetPath)){const ne=G.getLineNumberAtVerticalOffset(Z.mouseVerticalOffset),ie=G.model.getLineMaxColumn(ne);return Z.fulfill(11,new yt.a(ne,ie))}return null}static _hitTestScrollbarSlider(G,Z){if(ElementPath.isChildOfScrollableElement(Z.targetPath)&&Z.target&&1===Z.target.nodeType){const ne=Z.target.className;if(ne&&/\b(slider|scrollbar)\b/.test(ne)){const ne=G.getLineNumberAtVerticalOffset(Z.mouseVerticalOffset),ie=G.model.getLineMaxColumn(ne);return Z.fulfill(11,new yt.a(ne,ie))}}return null}static _hitTestScrollbar(G,Z){if(ElementPath.isChildOfScrollableElement(Z.targetPath)){const ne=G.getLineNumberAtVerticalOffset(Z.mouseVerticalOffset),ie=G.model.getLineMaxColumn(ne);return Z.fulfill(11,new yt.a(ne,ie))}return null}getMouseColumn(G,Z){const ne=this._context.configuration.options,ie=ne.get(129),se=this._context.viewLayout.getCurrentScrollLeft()+Z.x-G.x-ie.contentLeft;return mouseTarget_MouseTargetFactory._getMouseColumn(se,ne.get(41).typicalHalfwidthCharacterWidth)}static _getMouseColumn(G,Z){if(G<0)return 1;return Math.round(G/Z)+1}static createMouseTargetFromHitTestPosition(G,Z,ne,ie,se){const ce=ie.lineNumber,fe=ie.column,me=G.getLineWidth(ce);if(Z.mouseContentHorizontalOffset>me){const G=createEmptyContentDataInLines(Z.mouseContentHorizontalOffset-me);return Z.fulfill(7,ie,null,G)}const ge=G.visibleRangeForPosition(ce,fe);if(!ge)return Z.fulfill(0,ie);const Ce=ge.left;if(Z.mouseContentHorizontalOffset===Ce)return Z.fulfill(6,ie,null,{mightBeForeignElement:!!se});const Se=[];if(Se.push({offset:ge.left,column:fe}),fe>1){const Z=G.visibleRangeForPosition(ce,fe-1);Z&&Se.push({offset:Z.left,column:fe-1})}if(feG.offset-Z.offset);const Me=Z.pos.toClientCoordinates(),ke=ne.getBoundingClientRect(),xe=ke.left<=Me.clientX&&Me.clientX<=ke.right;for(let G=1;G=Z.editorPos.y+G.layoutInfo.height&&(se=Z.editorPos.y+G.layoutInfo.height-1);const ce=new editorDom_PageCoordinates(Z.pos.x,se),fe=this._actualDoHitTestWithCaretRangeFromPoint(G,ce.toClientCoordinates());return 1===fe.type?fe:this._actualDoHitTestWithCaretRangeFromPoint(G,Z.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(G,Z){const ne=me.F(G.viewDomNode);let ie;if(ie=ne?void 0===ne.caretRangeFromPoint?function shadowCaretRangeFromPoint(G,Z,ne){const ie=document.createRange();let se=G.elementFromPoint(Z,ne);if(null!==se){for(;se&&se.firstChild&&se.firstChild.nodeType!==se.firstChild.TEXT_NODE&&se.lastChild&&se.lastChild.firstChild;)se=se.lastChild;const G=se.getBoundingClientRect(),ne=window.getComputedStyle(se,null).getPropertyValue("font"),ce=se.innerText;let fe,me=G.left,ge=0;if(Z>G.left+G.width)ge=ce.length;else{const G=CharWidthReader.getInstance();for(let ie=0;iethis._createMouseTarget(G,Z),G=>this._getMouseColumn(G))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(129).height;const ie=new editorDom_EditorMouseEventFactory(this.viewHelper.viewDomNode);this._register(ie.onContextMenu(this.viewHelper.viewDomNode,G=>this._onContextMenu(G,!0))),this._register(ie.onMouseMoveThrottled(this.viewHelper.viewDomNode,G=>this._onMouseMove(G),createMouseMoveEventMerger(this.mouseTargetFactory),mouseHandler_MouseHandler.MOUSE_MOVE_MINIMUM_TIME)),this._register(ie.onMouseUp(this.viewHelper.viewDomNode,G=>this._onMouseUp(G))),this._register(ie.onMouseLeave(this.viewHelper.viewDomNode,G=>this._onMouseLeave(G))),this._register(ie.onMouseDown(this.viewHelper.viewDomNode,G=>this._onMouseDown(G)));this._register(me.i(this.viewHelper.viewDomNode,me.d.MOUSE_WHEEL,G=>{if(this.viewController.emitMouseWheel(G),!this._context.configuration.options.get(66))return;const Z=new Je.b(G);if(ze.f?(G.metaKey||G.ctrlKey)&&!G.shiftKey&&!G.altKey:G.ctrlKey&&!G.metaKey&&!G.shiftKey&&!G.altKey){const G=Mt.a.getZoomLevel(),ne=Z.deltaY>0?1:-1;Mt.a.setZoomLevel(G+ne),Z.preventDefault(),Z.stopPropagation()}},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(G){if(G.hasChanged(129)){const G=this._context.configuration.options.get(129).height;this._height!==G&&(this._height=G,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(G){return this._mouseDownOperation.onCursorStateChanged(G),!1}onFocusChanged(G){return!1}onScrollChanged(G){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(G,Z){const ne=new editorDom_ClientCoordinates(G,Z).toPageCoordinates(),ie=createEditorPagePosition(this.viewHelper.viewDomNode);return ne.yie.y+ie.height||ne.xie.x+ie.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),ie,ne,null)}_createMouseTarget(G,Z){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),G.editorPos,G.pos,Z?G.target:null)}_getMouseColumn(G){return this.mouseTargetFactory.getMouseColumn(G.editorPos,G.pos)}_onContextMenu(G,Z){this.viewController.emitContextMenu({event:G,target:this._createMouseTarget(G,Z)})}_onMouseMove(G){if(this._mouseDownOperation.isActive())return;G.timestamp{G.preventDefault(),this.viewHelper.focusTextArea()};if(ge&&(ne||se&&ce))focus(),this._mouseDownOperation.start(Z.type,G);else if(ie)G.preventDefault();else if(fe){const ne=Z.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(ne.viewZoneId)&&(focus(),this._mouseDownOperation.start(Z.type,G),G.preventDefault())}else me&&this.viewHelper.shouldSuppressMouseDownOnWidget(Z.detail)&&(focus(),G.preventDefault());this.viewController.emitMouseDown({event:G,target:Z})}}mouseHandler_MouseHandler.MOUSE_MOVE_MINIMUM_TIME=100;class mouseHandler_MouseDownOperation extends Se.a{constructor(G,Z,ne,ie,se){super(),this._context=G,this._viewController=Z,this._viewHelper=ne,this._createMouseTarget=ie,this._getMouseColumn=se,this._mouseMoveMonitor=this._register(new editorDom_GlobalEditorMouseMoveMonitor(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new it.g),this._mouseState=new MouseDownState,this._currentSelection=new Ie.a(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(G){this._lastMouseEvent=G,this._mouseState.setModifiers(G);const Z=this._findMousePosition(G,!0);Z&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:G,target:Z}):this._dispatchMouse(Z,!0))}start(G,Z){this._lastMouseEvent=Z,this._mouseState.setStartedOnLineNumbers(3===G),this._mouseState.setStartButtons(Z),this._mouseState.setModifiers(Z);const ne=this._findMousePosition(Z,!0);if(!ne||!ne.position)return;this._mouseState.trySetCount(Z.detail,ne.position),Z.detail=this._mouseState.count;const ie=this._context.configuration.options;if(!ie.get(79)&&ie.get(29)&&!ie.get(16)&&!this._mouseState.altKey&&Z.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===ne.type&&ne.position&&this._currentSelection.containsPosition(ne.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(Z.target,Z.buttons,createMouseMoveEventMerger(null),G=>this._onMouseDownThenMove(G),G=>{const Z=this._findMousePosition(this._lastMouseEvent,!0);G&&G instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:Z?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(ne,Z.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(Z.target,Z.buttons,createMouseMoveEventMerger(null),G=>this._onMouseDownThenMove(G),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const G=this._findMousePosition(this._lastMouseEvent,!1);G&&(this._mouseState.isDragAndDrop||this._dispatchMouse(G,!0))},10)}onCursorStateChanged(G){this._currentSelection=G.selections[0]}_getPositionOutsideEditor(G){const Z=G.editorPos,ne=this._context.model,ie=this._context.viewLayout,se=this._getMouseColumn(G);if(G.posyZ.y+Z.height){const ce=ie.getCurrentScrollTop()+(G.posy-Z.y),fe=mouseTarget_HitTestContext.getZoneAtCoord(this._context,ce);if(fe){const G=this._helpPositionJumpOverViewZone(fe);if(G)return new mouseTarget_MouseTarget(null,13,se,G)}const me=ie.getLineNumberAtVerticalOffset(ce);return new mouseTarget_MouseTarget(null,13,se,new yt.a(me,ne.getLineMaxColumn(me)))}const ce=ie.getLineNumberAtVerticalOffset(ie.getCurrentScrollTop()+(G.posy-Z.y));return G.posxZ.x+Z.width?new mouseTarget_MouseTarget(null,13,se,new yt.a(ce,ne.getLineMaxColumn(ce))):null}_findMousePosition(G,Z){const ne=this._getPositionOutsideEditor(G);if(ne)return ne;const ie=this._createMouseTarget(G,Z);if(!ie.position)return null;if(8===ie.type||5===ie.type){const G=this._helpPositionJumpOverViewZone(ie.detail);if(G)return new mouseTarget_MouseTarget(ie.element,ie.type,ie.mouseColumn,G,null,ie.detail)}return ie}_helpPositionJumpOverViewZone(G){const Z=new yt.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),ne=G.positionBefore,ie=G.positionAfter;return ne&&ie?ne.isBefore(Z)?ne:ie:null}_dispatchMouse(G,Z){G.position&&this._viewController.dispatchMouse({position:G.position,mouseColumn:G.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:Z,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class MouseDownState{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(G){this._altKey=G.altKey,this._ctrlKey=G.ctrlKey,this._metaKey=G.metaKey,this._shiftKey=G.shiftKey}setStartButtons(G){this._leftButton=G.leftButton,this._middleButton=G.middleButton}setStartedOnLineNumbers(G){this._startedOnLineNumbers=G}trySetCount(G,Z){const ne=(new Date).getTime();ne-this._lastSetMouseDownCountTime>MouseDownState.CLEAR_MOUSE_DOWN_COUNT_TIME&&(G=1),this._lastSetMouseDownCountTime=ne,G>this._lastMouseDownCount+1&&(G=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(Z)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=Z,this._lastMouseDownCount=Math.min(G,this._lastMouseDownPositionEqualCount)}}MouseDownState.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var kt=ne(1188),xt=ne(908);class pointerHandler_PointerEventHandler extends mouseHandler_MouseHandler{constructor(G,Z,ne){super(G,Z,ne),this._register($e.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Tap,G=>this.onTap(G))),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Change,G=>this.onChange(G))),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Contextmenu,G=>this._onContextMenu(new editorDom_EditorMouseEvent(G,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(me.i(this.viewHelper.linesContentDomNode,"pointerdown",G=>{const Z=G.pointerType;this._lastPointerType="mouse"!==Z?"touch"===Z?"touch":"pen":"mouse"}));const ie=new editorDom_EditorPointerEventFactory(this.viewHelper.viewDomNode);this._register(ie.onPointerMoveThrottled(this.viewHelper.viewDomNode,G=>this._onMouseMove(G),createMouseMoveEventMerger(this.mouseTargetFactory),mouseHandler_MouseHandler.MOUSE_MOVE_MINIMUM_TIME)),this._register(ie.onPointerUp(this.viewHelper.viewDomNode,G=>this._onMouseUp(G))),this._register(ie.onPointerLeave(this.viewHelper.viewDomNode,G=>this._onMouseLeave(G))),this._register(ie.onPointerDown(this.viewHelper.viewDomNode,G=>this._onMouseDown(G)))}onTap(G){if(!G.initialTarget||!this.viewHelper.linesContentDomNode.contains(G.initialTarget))return;G.preventDefault(),this.viewHelper.focusTextArea();const Z=this._createMouseTarget(new editorDom_EditorMouseEvent(G,this.viewHelper.viewDomNode),!1);Z.position&&this.viewController.dispatchMouse({position:Z.position,mouseColumn:Z.position.column,startedOnLineNumbers:!1,mouseDownCount:G.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(G){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-G.translationX,-G.translationY)}_onMouseDown(G){"touch"!==G.browserEvent.pointerType&&super._onMouseDown(G)}}class pointerHandler_TouchHandler extends mouseHandler_MouseHandler{constructor(G,Z,ne){super(G,Z,ne),this._register($e.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Tap,G=>this.onTap(G))),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Change,G=>this.onChange(G))),this._register(me.i(this.viewHelper.linesContentDomNode,$e.a.Contextmenu,G=>this._onContextMenu(new editorDom_EditorMouseEvent(G,this.viewHelper.viewDomNode),!1)))}onTap(G){G.preventDefault(),this.viewHelper.focusTextArea();const Z=this._createMouseTarget(new editorDom_EditorMouseEvent(G,this.viewHelper.viewDomNode),!1);if(Z.position){const G=document.createEvent("CustomEvent");G.initEvent(xt.d.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(G),this.viewController.moveTo(Z.position)}}onChange(G){this._context.model.deltaScrollNow(-G.translationX,-G.translationY)}}class pointerHandler_PointerHandler extends Se.a{constructor(G,Z,ne){super(),ze.c&&kt.a.pointerEvents?this.handler=this._register(new pointerHandler_PointerEventHandler(G,Z,ne)):window.TouchEvent?this.handler=this._register(new pointerHandler_TouchHandler(G,Z,ne)):this.handler=this._register(new mouseHandler_MouseHandler(G,Z,ne))}getTargetAtClientPoint(G,Z){return this.handler.getTargetAtClientPoint(G,Z)}}ne(7521);var Lt=ne(27),Tt=ne(355);ne(7523);class dynamicViewOverlay_DynamicViewOverlay extends viewEventHandler_ViewEventHandler{}var At=ne(168),Dt=ne(50);class lineNumbers_LineNumbersOverlay extends dynamicViewOverlay_DynamicViewOverlay{constructor(G){super(),this._context=G,this._readConfig(),this._lastCursorModelPosition=new yt.a(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const G=this._context.configuration.options;this._lineHeight=G.get(57);const Z=G.get(58);this._renderLineNumbers=Z.renderType,this._renderCustomLineNumbers=Z.renderFn,this._renderFinalNewline=G.get(83);const ne=G.get(129);this._lineNumbersLeft=ne.lineNumbersLeft,this._lineNumbersWidth=ne.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(G){return this._readConfig(),!0}onCursorStateChanged(G){const Z=G.selections[0].getPosition();this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(Z);let ne=!1;return this._activeLineNumber!==Z.lineNumber&&(this._activeLineNumber=Z.lineNumber,ne=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(ne=!0),ne}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollTopChanged}onZonesChanged(G){return!0}_getLineRenderLineNumber(G){const Z=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new yt.a(G,1));if(1!==Z.column)return"";const ne=Z.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(ne);if(2===this._renderLineNumbers){const G=Math.abs(this._lastCursorModelPosition.lineNumber-ne);return 0===G?''+ne+"":String(G)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===ne||ne%10==0?String(ne):"":String(ne)}prepareRender(G){if(0===this._renderLineNumbers)return void(this._renderResult=null);const Z=ze.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",ne=G.visibleRange.startLineNumber,ie=G.visibleRange.endLineNumber,se='
',ce=this._context.model.getLineCount(),fe=[];for(let G=ne;G<=ie;G++){const ie=G-ne;if(!this._renderFinalNewline&&G===ce&&0===this._context.model.getLineLength(G)){fe[ie]="";continue}const me=this._getLineRenderLineNumber(G);me?G===this._activeLineNumber?fe[ie]='
'+me+"
":fe[ie]=se+me+"
":fe[ie]=""}this._renderResult=fe}render(G,Z){if(!this._renderResult)return"";const ne=Z-G;return ne<0||ne>=this._renderResult.length?"":this._renderResult[ne]}}lineNumbers_LineNumbersOverlay.CLASS_NAME="line-numbers",Object(Dt.f)((G,Z)=>{const ne=G.getColor(At.k);ne&&Z.addRule(`.monaco-editor .line-numbers { color: ${ne}; }`);const ie=G.getColor(At.b);ie&&Z.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${ie}; }`)});class margin_Margin extends viewPart_ViewPart{constructor(G){super(G);const Z=this._context.configuration.options,ne=Z.get(129);this._canUseLayerHinting=!Z.get(26),this._contentLeft=ne.contentLeft,this._glyphMarginLeft=ne.glyphMarginLeft,this._glyphMarginWidth=ne.glyphMarginWidth,this._domNode=Object(Re.b)(document.createElement("div")),this._domNode.setClassName(margin_Margin.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(Re.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(margin_Margin.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(G){const Z=this._context.configuration.options,ne=Z.get(129);return this._canUseLayerHinting=!Z.get(26),this._contentLeft=ne.contentLeft,this._glyphMarginLeft=ne.glyphMarginLeft,this._glyphMarginWidth=ne.glyphMarginWidth,!0}onScrollChanged(G){return super.onScrollChanged(G)||G.scrollTopChanged}prepareRender(G){}render(G){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const Z=G.scrollTop-G.bigNumbersDelta;this._domNode.setTop(-Z);const ne=Math.min(G.scrollHeight,1e6);this._domNode.setHeight(ne),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(ne)}}margin_Margin.CLASS_NAME="glyph-margin",margin_Margin.OUTER_CLASS_NAME="margin";var Et=ne(465),jt=ne(775);class VisibleTextAreaData{constructor(G,Z,ne){this._visibleTextAreaBrand=void 0,this.top=G,this.left=Z,this.width=ne}setWidth(G){return new VisibleTextAreaData(this.top,this.left,G)}}const It=De.g;class textAreaHandler_TextAreaHandler extends viewPart_ViewPart{constructor(G,Z,ne){super(G),this._primaryCursorPosition=new yt.a(1,1),this._primaryCursorVisibleRange=null,this._viewController=Z,this._viewHelper=ne,this._scrollLeft=0,this._scrollTop=0;const ie=this._context.configuration.options,se=ie.get(129);this._setAccessibilityOptions(ie),this._contentLeft=se.contentLeft,this._contentWidth=se.contentWidth,this._contentHeight=se.height,this._fontInfo=ie.get(41),this._lineHeight=ie.get(57),this._emptySelectionClipboard=ie.get(30),this._copyWithSyntaxHighlighting=ie.get(19),this._visibleTextArea=null,this._selections=[new Ie.a(1,1,1,1)],this._modelSelections=[new Ie.a(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(Re.b)(document.createElement("textarea")),viewPart_PartFingerprints.write(this.textArea,6),this.textArea.setClassName("inputarea "+jt.a),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(ie)),this.textArea.setAttribute("tabindex",String(ie.get(111))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",fe.a("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),ie.get(28)&&ie.get(79)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(Re.b)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const ce={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:G=>this._context.model.getLineMaxColumn(G),getValueInRange:(G,Z)=>this._context.model.getValueInRange(G,Z)},me={getDataToCopy:G=>{const Z=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,ze.j),ne=this._context.model.getEOL(),ie=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),se=Array.isArray(Z)?Z:null,ce=Array.isArray(Z)?Z.join(ne):Z;let fe=void 0,me=null;if(G&&(xt.a.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&ce.length<65536)){const G=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);G&&(fe=G.html,me=G.mode)}return{isFromEmptySelection:ie,multicursorText:se,text:ce,html:fe,mode:me}},getScreenReaderContent:G=>{if(1===this._accessibilitySupport){if(ze.f){const G=this._selections[0];if(G.isEmpty()){const Z=G.getStartPosition();let ne=this._getWordBeforePosition(Z);if(0===ne.length&&(ne=this._getCharacterBeforePosition(Z)),ne.length>0)return new Tt.b(ne,ne.length,ne.length,Z,Z)}}return Tt.b.EMPTY}if(De.e){const G=this._selections[0];if(G.isEmpty()){const Z=G.getStartPosition(),[ne,ie]=this._getAndroidWordAtPosition(Z);if(ne.length>0)return new Tt.b(ne,ie,ie,Z,Z)}return Tt.b.EMPTY}return Tt.a.fromEditorSelection(G,ce,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(G,Z,ne)=>this._context.model.deduceModelPositionRelativeToViewPosition(G,Z,ne)};this._textAreaInput=this._register(new xt.c(me,this.textArea)),this._register(this._textAreaInput.onKeyDown(G=>{this._viewController.emitKeyDown(G)})),this._register(this._textAreaInput.onKeyUp(G=>{this._viewController.emitKeyUp(G)})),this._register(this._textAreaInput.onPaste(G=>{let Z=!1,ne=null,ie=null;G.metadata&&(Z=this._emptySelectionClipboard&&!!G.metadata.isFromEmptySelection,ne=void 0!==G.metadata.multicursorText?G.metadata.multicursorText:null,ie=G.metadata.mode),this._viewController.paste(G.text,Z,ne,ie)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(G=>{G.replacePrevCharCnt||G.replaceNextCharCnt||G.positionDelta?(Tt.c&&console.log(` => compositionType: <<${G.text}>>, ${G.replacePrevCharCnt}, ${G.replaceNextCharCnt}, ${G.positionDelta}`),this._viewController.compositionType(G.text,G.replacePrevCharCnt,G.replaceNextCharCnt,G.positionDelta)):(Tt.c&&console.log(` => type: <<${G.text}>>`),this._viewController.type(G.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(G=>{this._viewController.setSelection(G)})),this._register(this._textAreaInput.onCompositionStart(G=>{const Z=this._selections[0].startLineNumber,ne=this._selections[0].startColumn+G.revealDeltaColumns;this._context.model.revealRange("keyboard",!0,new vt.a(Z,ne,Z,ne),0,1);const ie=this._viewHelper.visibleRangeForPositionRelativeToEditor(Z,ne);ie&&(this._visibleTextArea=new VisibleTextAreaData(this._context.viewLayout.getVerticalOffsetForLineNumber(Z),ie.left,It?0:1),this._render()),this.textArea.setClassName(`inputarea ${jt.a} ime-input`),this._viewController.compositionStart(),this._context.model.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(G=>{this._visibleTextArea&&(this._visibleTextArea=this._visibleTextArea.setWidth(function measureText(G,Z){const ne=document.createElement("canvas").getContext("2d");ne.font=function createFontString(G){return function doCreateFontString(G,Z,ne,ie,se){return`${G} normal ${Z} ${ne}px / ${ie}px ${se}`}("normal",G.fontWeight,G.fontSize,G.lineHeight,G.fontFamily)}(Z);const ie=ne.measureText(G);return De.g?ie.width+2:ie.width}(G.data,this._fontInfo)),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+jt.a),this._viewController.compositionEnd(),this._context.model.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(G){const Z=this._context.model.getLineContent(G.lineNumber),ne=Object(Et.a)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?');let ie=!0,se=G.column,ce=!0,fe=G.column,me=0;for(;me<50&&(ie||ce);){if(ie&&se<=1&&(ie=!1),ie){const G=Z.charCodeAt(se-2);0!==ne.get(G)?ie=!1:se--}if(ce&&fe>Z.length&&(ce=!1),ce){const G=Z.charCodeAt(fe-1);0!==ne.get(G)?ce=!1:fe++}me++}return[Z.substring(se-1,fe-1),G.column-se]}_getWordBeforePosition(G){const Z=this._context.model.getLineContent(G.lineNumber),ne=Object(Et.a)(this._context.configuration.options.get(115));let ie=G.column,se=0;for(;ie>1;){const ce=Z.charCodeAt(ie-2);if(0!==ne.get(ce)||se>50)return Z.substring(ie-1,G.column-1);se++,ie--}return Z.substring(0,G.column-1)}_getCharacterBeforePosition(G){if(G.column>1){const Z=this._context.model.getLineContent(G.lineNumber).charAt(G.column-2);if(!Lt.F(Z.charCodeAt(0)))return Z}return""}_getAriaLabel(G){return 1===G.get(2)?fe.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",ze.d?"Shift+Alt+F1":"Alt+F1"):G.get(4)}_setAccessibilityOptions(G){this._accessibilitySupport=G.get(2);const Z=G.get(3);2===this._accessibilitySupport&&Z===ut.g.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=Z}onConfigurationChanged(G){const Z=this._context.configuration.options,ne=Z.get(129);return this._setAccessibilityOptions(Z),this._contentLeft=ne.contentLeft,this._contentWidth=ne.contentWidth,this._contentHeight=ne.height,this._fontInfo=Z.get(41),this._lineHeight=Z.get(57),this._emptySelectionClipboard=Z.get(30),this._copyWithSyntaxHighlighting=Z.get(19),this.textArea.setAttribute("aria-label",this._getAriaLabel(Z)),this.textArea.setAttribute("tabindex",String(Z.get(111))),(G.hasChanged(28)||G.hasChanged(79))&&(Z.get(28)&&Z.get(79)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),G.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(G){return this._selections=G.selections.slice(0),this._modelSelections=G.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return this._scrollLeft=G.scrollLeft,this._scrollTop=G.scrollTop,!0}onZonesChanged(G){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(G){G.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",G.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),G.role&&this.textArea.setAttribute("role",G.role)}prepareRender(G){this._primaryCursorPosition=new yt.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=G.visibleRangeForPosition(this._primaryCursorPosition)}render(G){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const G=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(Gthis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const Z=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;Z<0||Z>this._contentHeight?this._renderAtTopLeft():ze.f?this._renderInsideEditor(this._primaryCursorPosition,Z,G,It?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,Z,G,It?0:1,It?0:1)}_renderInsideEditor(G,Z,ne,ie,se){this._lastRenderPosition=G;const ce=this.textArea,fe=this.textAreaCover;ke.a.applyFontInfo(ce,this._fontInfo),ce.setTop(Z),ce.setLeft(ne),ce.setWidth(ie),ce.setHeight(se),fe.setTop(0),fe.setLeft(0),fe.setWidth(0),fe.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const G=this.textArea,Z=this.textAreaCover;if(ke.a.applyFontInfo(G,this._fontInfo),G.setTop(0),G.setLeft(0),Z.setTop(0),Z.setLeft(0),It)return G.setWidth(0),G.setHeight(0),Z.setWidth(0),void Z.setHeight(0);G.setWidth(1),G.setHeight(1),Z.setWidth(1),Z.setHeight(1);const ne=this._context.configuration.options;ne.get(47)?Z.setClassName("monaco-editor-background textAreaCover "+margin_Margin.OUTER_CLASS_NAME):0!==ne.get(58).renderType?Z.setClassName("monaco-editor-background textAreaCover "+lineNumbers_LineNumbersOverlay.CLASS_NAME):Z.setClassName("monaco-editor-background textAreaCover")}}var Nt=ne(381);class viewController_ViewController{constructor(G,Z,ne,ie){this.configuration=G,this.viewModel=Z,this.userInputEvents=ne,this.commandDelegate=ie}paste(G,Z,ne,ie){this.commandDelegate.paste(G,Z,ne,ie)}type(G){this.commandDelegate.type(G)}compositionType(G,Z,ne,ie){this.commandDelegate.compositionType(G,Z,ne,ie)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(G){Nt.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:G})}_validateViewColumn(G){const Z=this.viewModel.getLineMinColumn(G.lineNumber);return G.column=4?this._selectAll():3===G.mouseDownCount?this._hasMulticursorModifier(G)?G.inSelectionMode?this._lastCursorLineSelectDrag(G.position):this._lastCursorLineSelect(G.position):G.inSelectionMode?this._lineSelectDrag(G.position):this._lineSelect(G.position):2===G.mouseDownCount?this._hasMulticursorModifier(G)?this._lastCursorWordSelect(G.position):G.inSelectionMode?this._wordSelectDrag(G.position):this._wordSelect(G.position):this._hasMulticursorModifier(G)?this._hasNonMulticursorModifier(G)||(G.shiftKey?this._columnSelect(G.position,G.mouseColumn,!0):G.inSelectionMode?this._lastCursorMoveToSelect(G.position):this._createCursor(G.position,!1)):G.inSelectionMode?G.altKey||ie?this._columnSelect(G.position,G.mouseColumn,!0):this._moveToSelect(G.position):this.moveTo(G.position)}_usualArgs(G){return G=this._validateViewColumn(G),{source:"mouse",position:this._convertViewToModelPosition(G),viewPosition:G}}moveTo(G){Nt.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_moveToSelect(G){Nt.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_columnSelect(G,Z,ne){G=this._validateViewColumn(G),Nt.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(G),viewPosition:G,mouseColumn:Z,doColumnSelect:ne})}_createCursor(G,Z){G=this._validateViewColumn(G),Nt.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(G),viewPosition:G,wholeLine:Z})}_lastCursorMoveToSelect(G){Nt.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_wordSelect(G){Nt.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_wordSelectDrag(G){Nt.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_lastCursorWordSelect(G){Nt.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_lineSelect(G){Nt.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_lineSelectDrag(G){Nt.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_lastCursorLineSelect(G){Nt.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_lastCursorLineSelectDrag(G){Nt.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(G))}_selectAll(){Nt.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(G){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(G)}emitKeyDown(G){this.userInputEvents.emitKeyDown(G)}emitKeyUp(G){this.userInputEvents.emitKeyUp(G)}emitContextMenu(G){this.userInputEvents.emitContextMenu(G)}emitMouseMove(G){this.userInputEvents.emitMouseMove(G)}emitMouseLeave(G){this.userInputEvents.emitMouseLeave(G)}emitMouseUp(G){this.userInputEvents.emitMouseUp(G)}emitMouseDown(G){this.userInputEvents.emitMouseDown(G)}emitMouseDrag(G){this.userInputEvents.emitMouseDrag(G)}emitMouseDrop(G){this.userInputEvents.emitMouseDrop(G)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(G){this.userInputEvents.emitMouseWheel(G)}}class ViewUserInputEvents{constructor(G){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=G}emitKeyDown(G){this.onKeyDown&&this.onKeyDown(G)}emitKeyUp(G){this.onKeyUp&&this.onKeyUp(G)}emitContextMenu(G){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(G))}emitMouseMove(G){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(G))}emitMouseLeave(G){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(G))}emitMouseDown(G){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(G))}emitMouseUp(G){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(G))}emitMouseDrag(G){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(G))}emitMouseDrop(G){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(G))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(G){this.onMouseWheel&&this.onMouseWheel(G)}_convertViewToModelMouseEvent(G){return G.target?{event:G.event,target:this._convertViewToModelMouseTarget(G.target)}:G}_convertViewToModelMouseTarget(G){return ViewUserInputEvents.convertViewToModelMouseTarget(G,this._coordinatesConverter)}static convertViewToModelMouseTarget(G,Z){return new viewUserInputEvents_ExternalMouseTarget(G.element,G.type,G.mouseColumn,G.position?Z.convertViewPositionToModelPosition(G.position):null,G.range?Z.convertViewRangeToModelRange(G.range):null,G.detail)}}class viewUserInputEvents_ExternalMouseTarget{constructor(G,Z,ne,ie,se,ce){this.element=G,this.type=Z,this.mouseColumn=ne,this.position=ie,this.range=se,this.detail=ce}toString(){return mouseTarget_MouseTarget.toString(this)}}var Rt,zt=ne(575);class RenderedLinesCollection{constructor(G){this._createLine=G,this._set(1,[])}flush(){this._set(1,[])}_set(G,Z){this._lines=Z,this._rendLineNumberStart=G}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(G){const Z=G-this._rendLineNumberStart;if(Z<0||Z>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[Z]}onLinesDeleted(G,Z){if(0===this.getCount())return null;const ne=this.getStartLineNumber(),ie=this.getEndLineNumber();if(Zie)return null;let se=0,ce=0;for(let fe=ne;fe<=ie;fe++){const ne=fe-this._rendLineNumberStart;G<=fe&&fe<=Z&&(0===ce?(se=ne,ce=1):ce++)}if(G=ne&&ce<=ie&&(this._lines[ce-this._rendLineNumberStart].onContentChanged(),se=!0);return se}onLinesInserted(G,Z){if(0===this.getCount())return null;const ne=Z-G+1,ie=this.getStartLineNumber(),se=this.getEndLineNumber();if(G<=ie)return this._rendLineNumberStart+=ne,null;if(G>se)return null;if(ne+G>se){return this._lines.splice(G-this._rendLineNumberStart,se-G+1)}const ce=[];for(let G=0;Gne)continue;const fe=Math.max(Z,ce.fromLineNumber),me=Math.min(ne,ce.toLineNumber);for(let G=fe;G<=me;G++){const Z=G-this._rendLineNumberStart;this._lines[Z].onTokensChanged(),ie=!0}}return ie}}class viewLayer_VisibleLinesCollection{constructor(G){this._host=G,this.domNode=this._createDomNode(),this._linesCollection=new RenderedLinesCollection(()=>this._host.createVisibleLine())}_createDomNode(){const G=Object(Re.b)(document.createElement("div"));return G.setClassName("view-layer"),G.setPosition("absolute"),G.domNode.setAttribute("role","presentation"),G.domNode.setAttribute("aria-hidden","true"),G}onConfigurationChanged(G){return!!G.hasChanged(129)}onFlushed(G){return this._linesCollection.flush(),!0}onLinesChanged(G){return this._linesCollection.onLinesChanged(G.fromLineNumber,G.toLineNumber)}onLinesDeleted(G){const Z=this._linesCollection.onLinesDeleted(G.fromLineNumber,G.toLineNumber);if(Z)for(let G=0,ne=Z.length;GZ){const G=Z,ce=Math.min(ne,se.rendLineNumberStart-1);G<=ce&&(this._insertLinesBefore(se,G,ce,ie,Z),se.linesLength+=ce-G+1)}else if(se.rendLineNumberStart0&&(this._removeLinesBefore(se,G),se.linesLength-=G)}if(se.rendLineNumberStart=Z,se.rendLineNumberStart+se.linesLength-1ne){const G=Math.max(0,ne-se.rendLineNumberStart+1),Z=se.linesLength-1-G+1;Z>0&&(this._removeLinesAfter(se,Z),se.linesLength-=Z)}return this._finishRendering(se,!1,ie),se}_renderUntouchedLines(G,Z,ne,ie,se){const ce=G.rendLineNumberStart,fe=G.lines;for(let G=Z;G<=ne;G++){const Z=ce+G;fe[G].layoutLine(Z,ie[Z-se])}}_insertLinesBefore(G,Z,ne,ie,se){const ce=[];let fe=0;for(let G=Z;G<=ne;G++)ce[fe++]=this.host.createVisibleLine();G.lines=ce.concat(G.lines)}_removeLinesBefore(G,Z){for(let ne=0;ne=0;Z--){const ne=G.lines[Z];ie[Z]&&(ne.setDomNode(ce),ce=ce.previousSibling)}}_finishRenderingInvalidLines(G,Z,ne){const ie=document.createElement("div");ViewLayerRenderer._ttPolicy&&(Z=ViewLayerRenderer._ttPolicy.createHTML(Z)),ie.innerHTML=Z;for(let Z=0;ZG}),ViewLayerRenderer._sb=Object(zt.a)(1e5);class viewOverlays_ViewOverlays extends viewPart_ViewPart{constructor(G){super(G),this._visibleLines=new viewLayer_VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let G=0,Z=this._dynamicOverlays.length;GG.shouldRender());for(let ne=0,ie=Z.length;ne'),ie.appendASCIIString(se),ie.appendASCIIString(""),!0)}layoutLine(G,Z){this._domNode&&(this._domNode.setTop(Z),this._domNode.setHeight(this._lineHeight))}}class ContentViewOverlays extends viewOverlays_ViewOverlays{constructor(G){super(G);const Z=this._context.configuration.options.get(129);this._contentWidth=Z.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(G){const Z=this._context.configuration.options.get(129);return this._contentWidth=Z.contentWidth,super.onConfigurationChanged(G)||!0}onScrollChanged(G){return super.onScrollChanged(G)||G.scrollWidthChanged}_viewOverlaysRender(G){super._viewOverlaysRender(G),this.domNode.setWidth(Math.max(G.scrollWidth,this._contentWidth))}}class viewOverlays_MarginViewOverlays extends viewOverlays_ViewOverlays{constructor(G){super(G);const Z=this._context.configuration.options,ne=Z.get(129);this._contentLeft=ne.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),ke.a.applyFontInfo(this.domNode,Z.get(41))}onConfigurationChanged(G){const Z=this._context.configuration.options;ke.a.applyFontInfo(this.domNode,Z.get(41));const ne=Z.get(129);return this._contentLeft=ne.contentLeft,super.onConfigurationChanged(G)||!0}onScrollChanged(G){return super.onScrollChanged(G)||G.scrollHeightChanged}_viewOverlaysRender(G){super._viewOverlaysRender(G);const Z=Math.min(G.scrollHeight,1e6);this.domNode.setHeight(Z),this.domNode.setWidth(this._contentLeft)}}class Coordinate{constructor(G,Z){this._coordinateBrand=void 0,this.top=G,this.left=Z}}class contentWidgets_ViewContentWidgets extends viewPart_ViewPart{constructor(G,Z){super(G),this._viewDomNode=Z,this._widgets={},this.domNode=Object(Re.b)(document.createElement("div")),viewPart_PartFingerprints.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(Re.b)(document.createElement("div")),viewPart_PartFingerprints.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(G){const Z=Object.keys(this._widgets);for(const ne of Z)this._widgets[ne].onConfigurationChanged(G);return!0}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLineMappingChanged(G){const Z=Object.keys(this._widgets);for(const ne of Z)this._widgets[ne].onLineMappingChanged(G);return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return!0}onZonesChanged(G){return!0}addWidget(G){const Z=new contentWidgets_Widget(this._context,this._viewDomNode,G);this._widgets[Z.id]=Z,Z.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(Z.domNode):this.domNode.appendChild(Z.domNode),this.setShouldRender()}setWidgetPosition(G,Z,ne){this._widgets[G.getId()].setPosition(Z,ne),this.setShouldRender()}removeWidget(G){const Z=G.getId();if(this._widgets.hasOwnProperty(Z)){const G=this._widgets[Z];delete this._widgets[Z];const ne=G.domNode.domNode;ne.parentNode.removeChild(ne),ne.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(G){return!!this._widgets.hasOwnProperty(G)&&this._widgets[G].suppressMouseDown}onBeforeRender(G){const Z=Object.keys(this._widgets);for(const ne of Z)this._widgets[ne].onBeforeRender(G)}prepareRender(G){const Z=Object.keys(this._widgets);for(const ne of Z)this._widgets[ne].prepareRender(G)}render(G){const Z=Object.keys(this._widgets);for(const ne of Z)this._widgets[ne].render(G)}}class contentWidgets_Widget{constructor(G,Z,ne){this._context=G,this._viewDomNode=Z,this._actual=ne,this.domNode=Object(Re.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const ie=this._context.configuration.options,se=ie.get(129);this._fixedOverflowWidgets=ie.get(34),this._contentWidth=se.contentWidth,this._contentLeft=se.contentLeft,this._lineHeight=ie.get(57),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(G){const Z=this._context.configuration.options;if(this._lineHeight=Z.get(57),G.hasChanged(129)){const G=Z.get(129);this._contentLeft=G.contentLeft,this._contentWidth=G.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(G){this._setPosition(this._range)}_setPosition(G){if(this._range=G,this._viewRange=null,this._range){const G=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(G.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(G.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(G))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(G,Z){this._setPosition(G),this._preference=Z,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(G,Z,ne,ie,se){const ce=G.top,fe=ce,me=Z.top+this._lineHeight,ge=ce-ie,Ce=fe>=ie,Se=me,Me=se.viewportHeight-me>=ie;let ke=G.left,xe=Z.left;return ke+ne>se.scrollLeft+se.viewportWidth&&(ke=se.scrollLeft+se.viewportWidth-ne),xe+ne>se.scrollLeft+se.viewportWidth&&(xe=se.scrollLeft+se.viewportWidth-ne),kece){const G=fe-(ce-ie);fe-=G,ne-=G}if(fe=22,ze=Se+ie<=Me.height-22;return this._fixedOverflowWidgets?{fitsAbove:Re,aboveTop:Math.max(Ce,22),aboveLeft:xe,fitsBelow:ze,belowTop:Se,belowLeft:Ie}:{fitsAbove:Re,aboveTop:ce,aboveLeft:ke,fitsBelow:ze,belowTop:fe,belowLeft:De}}_prepareRenderWidgetAtExactPositionOverflowing(G){return new Coordinate(G.top,G.left+this._contentLeft)}_getTopAndBottomLeft(G){if(!this._viewRange)return[null,null];const Z=G.linesVisibleRangesForRange(this._viewRange,!1);if(!Z||0===Z.length)return[null,null];let ne=Z[0],ie=Z[0];for(const G of Z)G.lineNumberie.lineNumber&&(ie=G);let se=1073741824;for(const G of ne.ranges)G.leftG.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(G){this._renderData=this._prepareRenderWidget(G)}render(G){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&safeInvoke(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+G.scrollTop-G.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&safeInvoke(this._actual.afterRender,this._actual,this._renderData.position)}}function safeInvoke(G,Z,...ne){try{return G.call(Z,...ne)}catch(G){return null}}ne(7527);var qt=ne(69);let Wt=!0;class currentLineHighlight_AbstractLineHighlightOverlay extends dynamicViewOverlay_DynamicViewOverlay{constructor(G){super(),this._context=G;const Z=this._context.configuration.options,ne=Z.get(129);this._lineHeight=Z.get(57),this._renderLineHighlight=Z.get(84),this._renderLineHighlightOnlyWhenFocus=Z.get(85),this._contentLeft=ne.contentLeft,this._contentWidth=ne.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Ie.a(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let G=!1;const Z=Wt?this._selections.slice(0,1):this._selections,ne=Z.map(G=>G.positionLineNumber);ne.sort((G,Z)=>G-Z),qt.h(this._cursorLineNumbers,ne)||(this._cursorLineNumbers=ne,G=!0);const ie=Z.every(G=>G.isEmpty());return this._selectionIsEmpty!==ie&&(this._selectionIsEmpty=ie,G=!0),G}onThemeChanged(G){return this._readFromSelections()}onConfigurationChanged(G){const Z=this._context.configuration.options,ne=Z.get(129);return this._lineHeight=Z.get(57),this._renderLineHighlight=Z.get(84),this._renderLineHighlightOnlyWhenFocus=Z.get(85),this._contentLeft=ne.contentLeft,this._contentWidth=ne.contentWidth,!0}onCursorStateChanged(G){return this._selections=G.selections,this._readFromSelections()}onFlushed(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollWidthChanged||G.scrollTopChanged}onZonesChanged(G){return!0}onFocusChanged(G){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=G.isFocused,!0)}prepareRender(G){if(!this._shouldRenderThis())return void(this._renderData=null);const Z=this._renderOne(G),ne=G.visibleRange.startLineNumber,ie=G.visibleRange.endLineNumber,se=this._cursorLineNumbers.length;let ce=0;const fe=[];for(let G=ne;G<=ie;G++){const ie=G-ne;for(;ce=this._renderData.length?"":this._renderData[ne]}}class CurrentLineHighlightOverlay extends currentLineHighlight_AbstractLineHighlightOverlay{_renderOne(G){return`
`}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class CurrentLineMarginHighlightOverlay extends currentLineHighlight_AbstractLineHighlightOverlay{_renderOne(G){return`
`}_shouldRenderMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderThis(){return!0}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}Object(Dt.f)((G,Z)=>{Wt=!1;const ne=G.getColor(At.i);if(ne&&(Z.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${ne}; }`),Z.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${ne}; border: none; }`)),!ne||ne.isTransparent()||G.defines(At.j)){const ne=G.getColor(At.j);ne&&(Wt=!0,Z.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${ne}; }`),Z.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${ne}; }`),"hc"===G.type&&(Z.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),Z.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});ne(7529);class decorations_DecorationsOverlay extends dynamicViewOverlay_DynamicViewOverlay{constructor(G){super(),this._context=G;const Z=this._context.configuration.options;this._lineHeight=Z.get(57),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options;return this._lineHeight=Z.get(57),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollTopChanged||G.scrollWidthChanged}onZonesChanged(G){return!0}prepareRender(G){const Z=G.getDecorationsInViewport();let ne=[],ie=0;for(let G=0,se=Z.length;G{if(G.options.zIndexZ.options.zIndex)return 1;const ne=G.options.className,ie=Z.options.className;return neie?1:vt.a.compareRangesUsingStarts(G.range,Z.range)});const se=G.visibleRange.startLineNumber,ce=G.visibleRange.endLineNumber,fe=[];for(let G=se;G<=ce;G++){fe[G-se]=""}this._renderWholeLineDecorations(G,ne,fe),this._renderNormalDecorations(G,ne,fe),this._renderResult=fe}_renderWholeLineDecorations(G,Z,ne){const ie=String(this._lineHeight),se=G.visibleRange.startLineNumber,ce=G.visibleRange.endLineNumber;for(let G=0,fe=Z.length;G',ge=Math.max(fe.range.startLineNumber,se),Ce=Math.min(fe.range.endLineNumber,ce);for(let G=ge;G<=Ce;G++){ne[G-se]+=me}}}_renderNormalDecorations(G,Z,ne){const ie=String(this._lineHeight),se=G.visibleRange.startLineNumber;let ce=null,fe=!1,me=null;for(let ge=0,Ce=Z.length;ge';fe[ge]+=ce}}}render(G,Z){if(!this._renderResult)return"";const ne=Z-G;return ne<0||ne>=this._renderResult.length?"":this._renderResult[ne]}}var Bt=ne(416);class editorScrollbar_EditorScrollbar extends viewPart_ViewPart{constructor(G,Z,ne,ie){super(G);const se=this._context.configuration.options,ce=se.get(91),fe=se.get(65),ge=se.get(32),Ce=se.get(94),Se={listenOnDomNode:ne.domNode,className:"editor-scrollable "+Object(Dt.e)(G.theme.type),useShadows:!1,lazyRender:!0,vertical:ce.vertical,horizontal:ce.horizontal,verticalHasArrows:ce.verticalHasArrows,horizontalHasArrows:ce.horizontalHasArrows,verticalScrollbarSize:ce.verticalScrollbarSize,verticalSliderSize:ce.verticalSliderSize,horizontalScrollbarSize:ce.horizontalScrollbarSize,horizontalSliderSize:ce.horizontalSliderSize,handleMouseWheel:ce.handleMouseWheel,alwaysConsumeMouseWheel:ce.alwaysConsumeMouseWheel,arrowSize:ce.arrowSize,mouseWheelScrollSensitivity:fe,fastScrollSensitivity:ge,scrollPredominantAxis:Ce,scrollByPage:ce.scrollByPage};this.scrollbar=this._register(new Bt.c(Z.domNode,Se,this._context.viewLayout.getScrollable())),viewPart_PartFingerprints.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(Re.b)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const onBrowserDesperateReveal=(G,Z,ne)=>{const ie={};if(Z){const Z=G.scrollTop;Z&&(ie.scrollTop=this._context.viewLayout.getCurrentScrollTop()+Z,G.scrollTop=0)}if(ne){const Z=G.scrollLeft;Z&&(ie.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+Z,G.scrollLeft=0)}this._context.model.setScrollPosition(ie,1)};this._register(me.i(ne.domNode,"scroll",G=>onBrowserDesperateReveal(ne.domNode,!0,!0))),this._register(me.i(Z.domNode,"scroll",G=>onBrowserDesperateReveal(Z.domNode,!0,!1))),this._register(me.i(ie.domNode,"scroll",G=>onBrowserDesperateReveal(ie.domNode,!0,!1))),this._register(me.i(this.scrollbarDomNode.domNode,"scroll",G=>onBrowserDesperateReveal(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const G=this._context.configuration.options,Z=G.get(129);this.scrollbarDomNode.setLeft(Z.contentLeft);"right"===G.get(63).side?this.scrollbarDomNode.setWidth(Z.contentWidth+Z.minimap.minimapWidth):this.scrollbarDomNode.setWidth(Z.contentWidth),this.scrollbarDomNode.setHeight(Z.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(G){this.scrollbar.delegateVerticalScrollbarMouseDown(G)}onConfigurationChanged(G){if(G.hasChanged(91)||G.hasChanged(65)||G.hasChanged(32)){const G=this._context.configuration.options,Z=G.get(91),ne=G.get(65),ie=G.get(32),se=G.get(94),ce={vertical:Z.vertical,horizontal:Z.horizontal,verticalScrollbarSize:Z.verticalScrollbarSize,horizontalScrollbarSize:Z.horizontalScrollbarSize,scrollByPage:Z.scrollByPage,handleMouseWheel:Z.handleMouseWheel,mouseWheelScrollSensitivity:ne,fastScrollSensitivity:ie,scrollPredominantAxis:se};this.scrollbar.updateOptions(ce)}return G.hasChanged(129)&&this._setLayout(),!0}onScrollChanged(G){return!0}onThemeChanged(G){return this.scrollbar.updateClassName("editor-scrollable "+Object(Dt.e)(this._context.theme.type)),!0}prepareRender(G){}render(G){this.scrollbar.renderNow()}}ne(7531);class DecorationToRender{constructor(G,Z,ne){this._decorationToRenderBrand=void 0,this.startLineNumber=+G,this.endLineNumber=+Z,this.className=String(ne)}}class glyphMargin_DedupOverlay extends dynamicViewOverlay_DynamicViewOverlay{_render(G,Z,ne){const ie=[];for(let ne=G;ne<=Z;ne++){ie[ne-G]=[]}if(0===ne.length)return ie;ne.sort((G,Z)=>G.className===Z.className?G.startLineNumber===Z.startLineNumber?G.endLineNumber-Z.endLineNumber:G.startLineNumber-Z.startLineNumber:G.className',fe=[];for(let G=Z;G<=ne;G++){const ne=G-Z,se=ie[ne];0===se.length?fe[ne]="":fe[ne]='
=this._renderResult.length?"":this._renderResult[ne]}}ne(7533);class indentGuides_IndentGuidesOverlay extends dynamicViewOverlay_DynamicViewOverlay{constructor(G){super(),this._context=G,this._primaryLineNumber=0;const Z=this._context.configuration.options,ne=Z.get(130),ie=Z.get(41);this._lineHeight=Z.get(57),this._spaceWidth=ie.spaceWidth,this._enabled=Z.get(82),this._activeIndentEnabled=Z.get(50),this._maxIndentLeft=-1===ne.wrappingColumn?-1:ne.wrappingColumn*ie.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options,ne=Z.get(130),ie=Z.get(41);return this._lineHeight=Z.get(57),this._spaceWidth=ie.spaceWidth,this._enabled=Z.get(82),this._activeIndentEnabled=Z.get(50),this._maxIndentLeft=-1===ne.wrappingColumn?-1:ne.wrappingColumn*ie.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(G){const Z=G.selections[0],ne=Z.isEmpty()?Z.positionLineNumber:0;return this._primaryLineNumber!==ne&&(this._primaryLineNumber=ne,!0)}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollTopChanged}onZonesChanged(G){return!0}onLanguageConfigurationChanged(G){return!0}prepareRender(G){if(!this._enabled)return void(this._renderResult=null);const Z=G.visibleRange.startLineNumber,ne=G.visibleRange.endLineNumber,{indentSize:ie}=this._context.model.getTextModelOptions(),se=ie*this._spaceWidth,ce=G.scrollWidth,fe=this._lineHeight,me=this._context.model.getLinesIndentGuides(Z,ne);let ge=0,Ce=0,Se=0;if(this._activeIndentEnabled&&this._primaryLineNumber){const G=this._context.model.getActiveIndentGuide(this._primaryLineNumber,Z,ne);ge=G.startLineNumber,Ce=G.endLineNumber,Se=G.indent}const Me=[];for(let ie=Z;ie<=ne;ie++){const ne=ge<=ie&&ie<=Ce,ke=ie-Z,xe=me[ke];let De="";if(xe>=1){const Z=G.visibleRangeForPosition(new yt.a(ie,1));let me=Z?Z.left:0;for(let G=1;G<=xe;G++){if(De+=`
`,me+=se,me>ce||this._maxIndentLeft>0&&me>this._maxIndentLeft)break}}Me[ke]=De}this._renderResult=Me}render(G,Z){if(!this._renderResult)return"";const ne=Z-G;return ne<0||ne>=this._renderResult.length?"":this._renderResult[ne]}}Object(Dt.f)((G,Z)=>{const ne=G.getColor(At.h);ne&&Z.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${ne} inset; }`);const ie=G.getColor(At.a)||ne;ie&&Z.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${ie} inset; }`)});ne(7535);class viewLines_LastRenderedData{constructor(){this._currentVisibleRange=new vt.a(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(G){this._currentVisibleRange=G}}class HorizontalRevealRangeRequest{constructor(G,Z,ne,ie,se,ce){this.lineNumber=G,this.startColumn=Z,this.endColumn=ne,this.startScrollTop=ie,this.stopScrollTop=se,this.scrollType=ce,this.type="range",this.minLineNumber=G,this.maxLineNumber=G}}class HorizontalRevealSelectionsRequest{constructor(G,Z,ne,ie){this.selections=G,this.startScrollTop=Z,this.stopScrollTop=ne,this.scrollType=ie,this.type="selections";let se=G[0].startLineNumber,ce=G[0].endLineNumber;for(let Z=1,ne=G.length;Z{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new it.e(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new viewLines_LastRenderedData,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new viewLine_ViewLine(this._viewLineOptions)}onConfigurationChanged(G){this._visibleLines.onConfigurationChanged(G),G.hasChanged(130)&&(this._maxLineWidth=0);const Z=this._context.configuration.options,ne=Z.get(41),ie=Z.get(130);return this._lineHeight=Z.get(57),this._typicalHalfwidthCharacterWidth=ne.typicalHalfwidthCharacterWidth,this._isViewportWrapping=ie.isViewportWrapping,this._revealHorizontalRightPadding=Z.get(88),this._cursorSurroundingLines=Z.get(23),this._cursorSurroundingLinesStyle=Z.get(24),this._canUseLayerHinting=!Z.get(26),ke.a.applyFontInfo(this.domNode,ne),this._onOptionsMaybeChanged(),G.hasChanged(129)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const G=this._context.configuration,Z=new ViewLineOptions(G,this._context.theme.type);if(!this._viewLineOptions.equals(Z)){this._viewLineOptions=Z;const G=this._visibleLines.getStartLineNumber(),ne=this._visibleLines.getEndLineNumber();for(let Z=G;Z<=ne;Z++){this._visibleLines.getVisibleLine(Z).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(G){const Z=this._visibleLines.getStartLineNumber(),ne=this._visibleLines.getEndLineNumber();let ie=!1;for(let G=Z;G<=ne;G++)ie=this._visibleLines.getVisibleLine(G).onSelectionChanged()||ie;return ie}onDecorationsChanged(G){{const G=this._visibleLines.getStartLineNumber(),Z=this._visibleLines.getEndLineNumber();for(let ne=G;ne<=Z;ne++)this._visibleLines.getVisibleLine(ne).onDecorationsChanged()}return!0}onFlushed(G){const Z=this._visibleLines.onFlushed(G);return this._maxLineWidth=0,Z}onLinesChanged(G){return this._visibleLines.onLinesChanged(G)}onLinesDeleted(G){return this._visibleLines.onLinesDeleted(G)}onLinesInserted(G){return this._visibleLines.onLinesInserted(G)}onRevealRangeRequest(G){const Z=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),G.source,G.range,G.selections,G.verticalType);if(-1===Z)return!1;let ne=this._context.viewLayout.validateScrollPosition({scrollTop:Z});G.revealHorizontal?G.range&&G.range.startLineNumber!==G.range.endLineNumber?ne={scrollTop:ne.scrollTop,scrollLeft:0}:G.range?this._horizontalRevealRequest=new HorizontalRevealRangeRequest(G.range.startLineNumber,G.range.startColumn,G.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),ne.scrollTop,G.scrollType):G.selections&&G.selections.length>0&&(this._horizontalRevealRequest=new HorizontalRevealSelectionsRequest(G.selections,this._context.viewLayout.getCurrentScrollTop(),ne.scrollTop,G.scrollType)):this._horizontalRevealRequest=null;const ie=Math.abs(this._context.viewLayout.getCurrentScrollTop()-ne.scrollTop)<=this._lineHeight?1:G.scrollType;return this._context.model.setScrollPosition(ne,ie),!0}onScrollChanged(G){if(this._horizontalRevealRequest&&G.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&G.scrollTopChanged){const Z=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),ne=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(G.scrollTopne)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(G.scrollWidth),this._visibleLines.onScrollChanged(G)||!0}onTokensChanged(G){return this._visibleLines.onTokensChanged(G)}onZonesChanged(G){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(G)}onThemeChanged(G){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(G,Z){const ne=this._getViewLineDomNode(G);if(null===ne)return null;const ie=this._getLineNumberFor(ne);if(-1===ie)return null;if(ie<1||ie>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(ie))return new yt.a(ie,1);const se=this._visibleLines.getStartLineNumber(),ce=this._visibleLines.getEndLineNumber();if(iece)return null;let fe=this._visibleLines.getVisibleLine(ie).getColumnOfNodeOffset(ie,G,Z);const me=this._context.model.getLineMinColumn(ie);return fene?-1:this._visibleLines.getVisibleLine(G).getWidth()}linesVisibleRangesForRange(G,Z){if(this.shouldRender())return null;const ne=G.endLineNumber,ie=vt.a.intersectRanges(G,this._lastRenderedData.getCurrentVisibleRange());if(!ie)return null;let se=[],ce=0;const fe=new DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot);let me=0;Z&&(me=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new yt.a(ie.startLineNumber,1)).lineNumber);const ge=this._visibleLines.getStartLineNumber(),Ce=this._visibleLines.getEndLineNumber();for(let G=ie.startLineNumber;G<=ie.endLineNumber;G++){if(GCe)continue;const Se=G===ie.startLineNumber?ie.startColumn:1,Me=G===ie.endLineNumber?ie.endColumn:this._context.model.getLineMaxColumn(G),ke=this._visibleLines.getVisibleLine(G).getVisibleRangesForRange(Se,Me,fe);if(ke){if(Z&&Gthis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(G).getVisibleRangesForRange(Z,ne,new DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(G){const Z=this._visibleRangesForLineRange(G.lineNumber,G.column,G.column);return Z?new HorizontalPosition(Z.outsideRenderedLine,Z.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(G){const Z=this._visibleLines.getStartLineNumber(),ne=this._visibleLines.getEndLineNumber();let ie=1,se=!0;for(let ce=Z;ce<=ne;ce++){const Z=this._visibleLines.getVisibleLine(ce);!G||Z.getWidthIsFast()?ie=Math.max(ie,Z.getWidth()):se=!1}return se&&1===Z&&ne===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(ie),se}_checkMonospaceFontAssumptions(){let G=-1,Z=-1;const ne=this._visibleLines.getStartLineNumber(),ie=this._visibleLines.getEndLineNumber();for(let se=ne;se<=ie;se++){const ne=this._visibleLines.getVisibleLine(se);if(ne.needsMonospaceFontCheck()){const ie=ne.getWidth();ie>Z&&(Z=ie,G=se)}}if(-1!==G&&!this._visibleLines.getVisibleLine(G).monospaceAssumptionsAreValid())for(let G=ne;G<=ie;G++){this._visibleLines.getVisibleLine(G).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(G){if(this._visibleLines.renderLines(G),this._lastRenderedData.setCurrentVisibleRange(G.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const Z=this._horizontalRevealRequest;if(G.startLineNumber<=Z.minLineNumber&&Z.maxLineNumber<=G.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const G=this._computeScrollLeftToReveal(Z);G&&(this._isViewportWrapping||this._ensureMaxLineWidth(G.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:G.scrollLeft},Z.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),ze.d&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const G=this._visibleLines.getStartLineNumber(),Z=this._visibleLines.getEndLineNumber();for(let ne=G;ne<=Z;ne++){if(this._visibleLines.getVisibleLine(ne).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const Z=this._context.viewLayout.getCurrentScrollTop()-G.bigNumbersDelta;this._linesContent.setTop(-Z),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(G){const Z=Math.ceil(G);this._maxLineWidth0){let G=ie[0].startLineNumber,Z=ie[0].endLineNumber;for(let ne=1,se=ie.length;nefe){if(!ge)return-1;Me=Ce}else if(5===se||6===se)if(6===se&&ce<=Ce&&Se<=me)Me=ce;else{const G=Ce-Math.max(5*this._lineHeight,.2*fe),Z=Se-fe;Me=Math.max(Z,G)}else if(1===se||2===se)if(2===se&&ce<=Ce&&Se<=me)Me=ce;else{const G=(Ce+Se)/2;Me=Math.max(0,G-fe/2)}else Me=this._computeMinimumScrolling(ce,me,Ce,Se,3===se,4===se);return Me}_computeScrollLeftToReveal(G){const Z=this._context.viewLayout.getCurrentViewport(),ne=Z.left,ie=ne+Z.width;let se=1073741824,ce=0;if("range"===G.type){const Z=this._visibleRangesForLineRange(G.lineNumber,G.startColumn,G.endColumn);if(!Z)return null;for(const G of Z.ranges)se=Math.min(se,G.left),ce=Math.max(ce,G.left+G.width)}else for(const Z of G.selections){if(Z.startLineNumber!==Z.endLineNumber)return null;const G=this._visibleRangesForLineRange(Z.startLineNumber,Z.startColumn,Z.endColumn);if(!G)return null;for(const Z of G.ranges)se=Math.min(se,Z.left),ce=Math.max(ce,Z.left+Z.width)}if(se=Math.max(0,se-viewLines_ViewLines.HORIZONTAL_EXTRA_PX),ce+=this._revealHorizontalRightPadding,"selections"===G.type&&ce-se>Z.width)return null;return{scrollLeft:this._computeMinimumScrolling(ne,ie,se,ce),maxHorizontalOffset:ce}}_computeMinimumScrolling(G,Z,ne,ie,se,ce){se=!!se,ce=!!ce;const fe=(Z|=0)-(G|=0);return(ie|=0)-(ne|=0)Z?Math.max(0,ie-fe):G:ne}}viewLines_ViewLines.HORIZONTAL_EXTRA_PX=30;ne(7537);class linesDecorations_LinesDecorationsOverlay extends glyphMargin_DedupOverlay{constructor(G){super(),this._context=G;const Z=this._context.configuration.options.get(129);this._decorationsLeft=Z.decorationsLeft,this._decorationsWidth=Z.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options.get(129);return this._decorationsLeft=Z.decorationsLeft,this._decorationsWidth=Z.decorationsWidth,!0}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollTopChanged}onZonesChanged(G){return!0}_getDecorations(G){const Z=G.getDecorationsInViewport();let ne=[],ie=0;for(let G=0,se=Z.length;G
',ce=[];for(let G=Z;G<=ne;G++){const ne=G-Z,fe=ie[ne];let me="";for(let G=0,Z=fe.length;G';se[ne]=fe}this._renderResult=se}render(G,Z){return this._renderResult?this._renderResult[Z-G]:""}}ne(7541);class RGBA8{constructor(G,Z,ne,ie){this._rgba8Brand=void 0,this.r=RGBA8._clamp(G),this.g=RGBA8._clamp(Z),this.b=RGBA8._clamp(ne),this.a=RGBA8._clamp(ie)}equals(G){return this.r===G.r&&this.g===G.g&&this.b===G.b&&this.a===G.a}static _clamp(G){return G<0?0:G>255?255:0|G}}RGBA8.Empty=new RGBA8(0,0,0,0);var Ft=ne(35);class minimapTokensColorTracker_MinimapTokensColorTracker extends Se.a{constructor(){super(),this._onDidChange=new Ce.b,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Ft.F.onDidChange(G=>{G.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=Object(Se.h)(new minimapTokensColorTracker_MinimapTokensColorTracker)),this._INSTANCE}_updateColorMap(){const G=Ft.F.getColorMap();if(!G)return this._colors=[RGBA8.Empty],void(this._backgroundIsLight=!0);this._colors=[RGBA8.Empty];for(let Z=1;Z=.5,this._onDidChange.fire(void 0)}getColor(G){return(G<1||G>=this._colors.length)&&(G=2),this._colors[G]}backgroundIsLight(){return this._backgroundIsLight}}minimapTokensColorTracker_MinimapTokensColorTracker._INSTANCE=null;var Ht=ne(219),$t=ne(13);const Vt=(()=>{const G=[];for(let Z=32;Z<=126;Z++)G.push(Z);return G.push(65533),G})();var Yt=ne(610);class minimapCharRenderer_MinimapCharRenderer{constructor(G,Z){this.scale=Z,this._minimapCharRendererBrand=void 0,this.charDataNormal=minimapCharRenderer_MinimapCharRenderer.soften(G,.8),this.charDataLight=minimapCharRenderer_MinimapCharRenderer.soften(G,50/60)}static soften(G,Z){let ne=new Uint8ClampedArray(G.length);for(let ie=0,se=G.length;ieG.width||ne+Me>G.height)return void console.warn("bad render request outside image data");const ke=me?this.charDataLight:this.charDataNormal,xe=((G,Z)=>(G-=32)<0||G>96?Z<=2?(G+96)%96:95:G)(ie,fe),De=4*G.width,Ie=ce.r,Re=ce.g,ze=ce.b,$e=se.r-Ie,Je=se.g-Re,it=se.b-ze,ot=G.data;let at=xe*Ce*Se,st=ne*De+4*Z;for(let G=0;GG.width||ne+Ce>G.height)return void console.warn("bad render request outside image data");const Se=4*G.width,Me=se.r,ke=se.g,xe=se.b,De=Me+.5*(ie.r-Me),Ie=ke+.5*(ie.g-ke),Re=xe+.5*(ie.b-xe),ze=G.data;let $e=ne*Se+4*Z;for(let G=0;G{const Z=new Uint8ClampedArray(G.length/2);for(let ne=0;ne>1]=Kt[G[ne]]<<4|15&Kt[G[ne+1]];return Z},Gt={1:Object(Ut.a)(()=>decodeData("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(Ut.a)(()=>decodeData("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class minimapCharRendererFactory_MinimapCharRendererFactory{static create(G,Z){if(this.lastCreated&&G===this.lastCreated.scale&&Z===this.lastFontFamily)return this.lastCreated;let ne;return ne=Gt[G]?new minimapCharRenderer_MinimapCharRenderer(Gt[G](),G):minimapCharRendererFactory_MinimapCharRendererFactory.createFromSampleData(minimapCharRendererFactory_MinimapCharRendererFactory.createSampleData(Z).data,G),this.lastFontFamily=Z,this.lastCreated=ne,ne}static createSampleData(G){const Z=document.createElement("canvas"),ne=Z.getContext("2d");Z.style.height="16px",Z.height=16,Z.width=960,Z.style.width="960px",ne.fillStyle="#ffffff",ne.font="bold 16px "+G,ne.textBaseline="middle";let ie=0;for(const G of Vt)ne.fillText(String.fromCharCode(G),ie,8),ie+=10;return ne.getImageData(0,0,960,16)}static createFromSampleData(G,Z){if(61440!==G.length)throw new Error("Unexpected source in MinimapCharRenderer");let ne=minimapCharRendererFactory_MinimapCharRendererFactory._downsample(G,Z);return new minimapCharRenderer_MinimapCharRenderer(ne,Z)}static _downsampleChar(G,Z,ne,ie,se){const ce=1*se,fe=2*se;let me=ie,ge=0;for(let ie=0;ie0){const G=255/me;for(let Z=0;ZminimapCharRendererFactory_MinimapCharRendererFactory.create(this.fontScale,me.fontFamily)),this.backgroundColor=minimap_MinimapOptions._getMinimapBackground(Z,ne)}static _getMinimapBackground(G,Z){const ne=G.getColor($t.Zb);return ne?new RGBA8(ne.rgba.r,ne.rgba.g,ne.rgba.b,ne.rgba.a):Z.getColor(2)}equals(G){return this.renderMinimap===G.renderMinimap&&this.size===G.size&&this.minimapHeightIsEditorHeight===G.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===G.scrollBeyondLastLine&&this.showSlider===G.showSlider&&this.pixelRatio===G.pixelRatio&&this.typicalHalfwidthCharacterWidth===G.typicalHalfwidthCharacterWidth&&this.lineHeight===G.lineHeight&&this.minimapLeft===G.minimapLeft&&this.minimapWidth===G.minimapWidth&&this.minimapHeight===G.minimapHeight&&this.canvasInnerWidth===G.canvasInnerWidth&&this.canvasInnerHeight===G.canvasInnerHeight&&this.canvasOuterWidth===G.canvasOuterWidth&&this.canvasOuterHeight===G.canvasOuterHeight&&this.isSampling===G.isSampling&&this.editorHeight===G.editorHeight&&this.fontScale===G.fontScale&&this.minimapLineHeight===G.minimapLineHeight&&this.minimapCharWidth===G.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(G.backgroundColor)}}class MinimapLayout{constructor(G,Z,ne,ie,se,ce,fe,me){this.scrollTop=G,this.scrollHeight=Z,this.sliderNeeded=ne,this._computedSliderRatio=ie,this.sliderTop=se,this.sliderHeight=ce,this.startLineNumber=fe,this.endLineNumber=me}getDesiredScrollTopFromDelta(G){return Math.round(this.scrollTop+G/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(G){return Math.round((G-this.sliderHeight/2)/this._computedSliderRatio)}static create(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se){const Me=G.pixelRatio,ke=G.minimapLineHeight,xe=Math.floor(G.canvasInnerHeight/ke),De=G.lineHeight;if(G.minimapHeightIsEditorHeight){const Z=me*G.lineHeight+(G.scrollBeyondLastLine?se-G.lineHeight:0),ne=Math.max(1,Math.floor(se*se/Z)),ie=Math.max(0,G.minimapHeight-ne),ce=ie/(Ce-se),Se=ge*ce,Me=ie>0,ke=Math.floor(G.canvasInnerHeight/G.minimapLineHeight);return new MinimapLayout(ge,Ce,Me,ce,Se,ne,1,Math.min(fe,ke))}let Ie,Re;if(ce&&ne!==fe){const G=ne-Z+1;Ie=Math.floor(G*ke/Me)}else{const G=se/De;Ie=Math.floor(G*ke/Me)}Re=G.scrollBeyondLastLine?(fe-1)*ke/Me:Math.max(0,fe*ke/Me-Ie),Re=Math.min(G.minimapHeight-Ie,Re);const ze=Re/(Ce-se),$e=ge*ze;let Je=0;if(G.scrollBeyondLastLine){Je=se/De-1}if(xe>=fe+Je){return new MinimapLayout(ge,Ce,Re>0,ze,$e,Ie,1,fe)}{let G=Math.max(1,Math.floor(Z-$e*Me/ke));Se&&Se.scrollHeight===Ce&&(Se.scrollTop>ge&&(G=Math.min(G,Se.startLineNumber)),Se.scrollTopMinimapLine.INVALID),this._renderedLines._set(G.startLineNumber,ne)}linesEquals(G){if(!this.scrollEquals(G))return!1;const Z=this._renderedLines._get().lines;for(let G=0,ne=Z.length;G1){for(let Z=0,ne=fe-1;Z0&&this.minimapLines[ne-1]>=G;)ne--;let ie=this.modelLineToMinimapLine(Z)-1;for(;ie+1Z)return null}return[ne+1,ie+1]}decorationLineRangeToMinimapLineRange(G,Z){let ne=this.modelLineToMinimapLine(G),ie=this.modelLineToMinimapLine(Z);return G!==Z&&ie===ne&&(ie===this.minimapLines.length?ne>1&&ne--:ie++),[ne,ie]}onLinesDeleted(G){const Z=G.toLineNumber-G.fromLineNumber+1;let ne=this.minimapLines.length,ie=0;for(let se=this.minimapLines.length-1;se>=0&&!(this.minimapLines[se]=0&&!(this.minimapLines[ne]0,scrollWidth:G.scrollWidth,scrollHeight:G.scrollHeight,viewportStartLineNumber:Z,viewportEndLineNumber:ne,viewportStartLineNumberVerticalOffset:G.getVerticalOffsetForLineNumber(Z),scrollTop:G.scrollTop,scrollLeft:G.scrollLeft,viewportWidth:G.viewportWidth,viewportHeight:G.viewportHeight};this._actual.render(ie)}_recreateLineSampling(){this._minimapSelections=null;const G=Boolean(this._samplingState),[Z,ne]=minimap_MinimapSamplingState.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=Z,G&&this._samplingState)for(const G of ne)switch(G.type){case"deleted":this._actual.onLinesDeleted(G.deleteFromLineNumber,G.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(G.insertFromLineNumber,G.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(G){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[G-1]):this._context.model.getLineContent(G)}getMinimapLinesRenderingData(G,Z,ne){if(this._samplingState){let ie=[];for(let se=0,ce=Z-G+1;se{G.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(G.leftButton&&this._lastRenderData){const Z=me.D(this._slider.domNode),ne=Z.top+Z.height/2;this._startSliderDragging(G.buttons,G.posx,ne,G.posy,this._lastRenderData.renderedLayout)}return}const Z=this._model.options.minimapLineHeight,ne=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*G.browserEvent.offsetY;let ie=Math.floor(ne/Z)+this._lastRenderData.renderedLayout.startLineNumber;ie=Math.min(ie,this._model.getLineCount()),this._model.revealLineNumber(ie)}),this._sliderMouseMoveMonitor=new ot.a,this._sliderMouseDownListener=me.o(this._slider.domNode,"mousedown",G=>{G.preventDefault(),G.stopPropagation(),G.leftButton&&this._lastRenderData&&this._startSliderDragging(G.buttons,G.posx,G.posy,G.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=$e.b.addTarget(this._domNode.domNode),this._sliderTouchStartListener=me.i(this._domNode.domNode,$e.a.Start,G=>{G.preventDefault(),G.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(G))},{passive:!1}),this._sliderTouchMoveListener=me.i(this._domNode.domNode,$e.a.Change,G=>{G.preventDefault(),G.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(G)},{passive:!1}),this._sliderTouchEndListener=me.o(this._domNode.domNode,$e.a.End,G=>{G.preventDefault(),G.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(G,Z,ne,ie,se){this._slider.toggleClassName("active",!0);const handleMouseMove=(G,ie)=>{const ce=Math.abs(ie-Z);if(ze.j&&ce>140)return void this._model.setScrollTop(se.scrollTop);const fe=G-ne;this._model.setScrollTop(se.getDesiredScrollTopFromDelta(fe))};ie!==ne&&handleMouseMove(ie,Z),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,G,ot.b,G=>handleMouseMove(G.posy,G.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(G){const Z=this._domNode.domNode.getBoundingClientRect().top,ne=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(G.pageY-Z);this._model.setScrollTop(ne)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new MinimapBuffers(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(G,Z){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(G,Z)}onLinesDeleted(G,Z){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(G,Z),!0}onLinesInserted(G,Z){return this._lastRenderData&&this._lastRenderData.onLinesInserted(G,Z),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor($t.cc),this._renderDecorations=!0,!0}onTokensChanged(G){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(G)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(G){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);G.scrollLeft+G.viewportWidth>=G.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const Z=MinimapLayout.create(this._model.options,G.viewportStartLineNumber,G.viewportEndLineNumber,G.viewportStartLineNumberVerticalOffset,G.viewportHeight,G.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),G.scrollTop,G.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(Z.sliderNeeded?"block":"none"),this._slider.setTop(Z.sliderTop),this._slider.setHeight(Z.sliderHeight);const ne=G.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,ie=Math.min(this._model.options.minimapWidth,Math.round(ne*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(ie),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-ie),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(Z.sliderHeight),this.renderDecorations(Z),this._lastRenderData=this.renderLines(Z)}renderDecorations(G){if(this._renderDecorations){this._renderDecorations=!1;const Z=this._model.getSelections(),ne=this._model.getMinimapDecorationsInViewport(G.startLineNumber,G.endLineNumber),{canvasInnerWidth:ie,canvasInnerHeight:se}=this._model.options,ce=this._model.options.minimapLineHeight,fe=this._model.options.minimapCharWidth,me=this._model.getOptions().tabSize,ge=this._decorationsCanvas.domNode.getContext("2d");ge.clearRect(0,0,ie,se);const Ce=new Map;for(let ne=0;nethis._model.options.canvasInnerHeight)return;let Me=Z.get(ce);const ke=!Me;if(!Me){const G=this._model.getLineContent(ce);Me=[ut.h];for(let Z=1;Zce?Me.length-1:De-1;if($e>0){const Z=Me[$e]-ze||2;this.renderDecoration(G,ie,ze,Se,Z,fe)}ke&&this.renderLineHighlight(G,ie,Se,fe)}renderLineHighlight(G,Z,ne,ie){G.fillStyle=Z&&Z.transparent(.5).toString()||"",G.fillRect(ut.h,ne,G.canvas.width,ie)}renderDecoration(G,Z,ne,ie,se,ce){G.fillStyle=Z&&Z.toString()||"",G.fillRect(ne,ie,se,ce)}renderLines(G){const Z=G.startLineNumber,ne=G.endLineNumber,ie=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(G)){const Z=this._lastRenderData._get();return new minimap_RenderData(G,Z.imageData,Z.lines)}const se=this._getBuffer();if(!se)return null;let[ce,fe,me]=minimap_InnerMinimap._renderUntouchedLines(se,Z,ne,ie,this._lastRenderData);const ge=this._model.getMinimapLinesRenderingData(Z,ne,me),Ce=this._model.getOptions().tabSize,Se=this._model.options.backgroundColor,Me=this._model.tokensColorTracker,ke=Me.backgroundIsLight(),xe=this._model.options.renderMinimap,De=this._model.options.charRenderer(),Ie=this._model.options.fontScale,Re=this._model.options.minimapCharWidth,ze=(1===xe?2:3)*Ie,$e=ie>ze?Math.floor((ie-ze)/2):0;let Je=0;const it=[];for(let G=0,ce=ne-Z+1;G=0&&seIe)return;const ce=xe.charCodeAt($e);if(9===ce){const G=Ce-($e+Je)%Ce;Je+=G-1,ze+=G*se}else if(32===ce)ze+=se;else{const Ce=Lt.E(ce)?2:1;for(let Se=0;SeIe)return}}}}}Object(Dt.f)((G,Z)=>{const ne=G.getColor($t.Zb);ne&&Z.addRule(`.monaco-editor .minimap > canvas { opacity: ${ne.rgba.a}; will-change: opacity; }`);const ie=G.getColor($t.ec);ie&&Z.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${ie}; }`);const se=G.getColor($t.fc);se&&Z.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${se}; }`);const ce=G.getColor($t.dc);ce&&Z.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${ce}; }`);const fe=G.getColor($t.yc);fe&&Z.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${fe} -6px 0 6px -6px inset; }`)});ne(7543);class overlayWidgets_ViewOverlayWidgets extends viewPart_ViewPart{constructor(G){super(G);const Z=this._context.configuration.options.get(129);this._widgets={},this._verticalScrollbarWidth=Z.verticalScrollbarWidth,this._minimapWidth=Z.minimap.minimapWidth,this._horizontalScrollbarHeight=Z.horizontalScrollbarHeight,this._editorHeight=Z.height,this._editorWidth=Z.width,this._domNode=Object(Re.b)(document.createElement("div")),viewPart_PartFingerprints.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(G){const Z=this._context.configuration.options.get(129);return this._verticalScrollbarWidth=Z.verticalScrollbarWidth,this._minimapWidth=Z.minimap.minimapWidth,this._horizontalScrollbarHeight=Z.horizontalScrollbarHeight,this._editorHeight=Z.height,this._editorWidth=Z.width,!0}addWidget(G){const Z=Object(Re.b)(G.getDomNode());this._widgets[G.getId()]={widget:G,preference:null,domNode:Z},Z.setPosition("absolute"),Z.setAttribute("widgetId",G.getId()),this._domNode.appendChild(Z),this.setShouldRender()}setWidgetPosition(G,Z){const ne=this._widgets[G.getId()];return ne.preference!==Z&&(ne.preference=Z,this.setShouldRender(),!0)}removeWidget(G){const Z=G.getId();if(this._widgets.hasOwnProperty(Z)){const G=this._widgets[Z].domNode.domNode;delete this._widgets[Z],G.parentNode.removeChild(G),this.setShouldRender()}}_renderWidget(G){const Z=G.domNode;if(null!==G.preference)if(0===G.preference)Z.setTop(0),Z.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===G.preference){const G=Z.domNode.clientHeight;Z.setTop(this._editorHeight-G-2*this._horizontalScrollbarHeight),Z.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===G.preference&&(Z.setTop(0),Z.domNode.style.right="50%");else Z.unsetTop()}prepareRender(G){}render(G){this._domNode.setWidth(this._editorWidth);const Z=Object.keys(this._widgets);for(let G=0,ne=Z.length;G=3){const Z=Math.floor(ie/3),ne=Math.floor(ie/3),se=ie-Z-ne,ce=G+Z;return[[0,G,ce,G,G+Z+se,G,ce,G],[0,Z,se,Z+se,ne,Z+se+ne,se+ne,Z+se+ne]]}if(2===ne){const Z=Math.floor(ie/2),ne=ie-Z;return[[0,G,G,G,G+Z,G,G,G],[0,Z,Z,Z,ne,Z+ne,Z+ne,Z+ne]]}return[[0,G,G,G,G,G,G,G],[0,ie,ie,ie,ie,ie,ie,ie]]}equals(G){return this.lineHeight===G.lineHeight&&this.pixelRatio===G.pixelRatio&&this.overviewRulerLanes===G.overviewRulerLanes&&this.renderBorder===G.renderBorder&&this.borderColor===G.borderColor&&this.hideCursor===G.hideCursor&&this.cursorColor===G.cursorColor&&this.themeType===G.themeType&&this.backgroundColor===G.backgroundColor&&this.top===G.top&&this.right===G.right&&this.domWidth===G.domWidth&&this.domHeight===G.domHeight&&this.canvasWidth===G.canvasWidth&&this.canvasHeight===G.canvasHeight}}class decorationsOverviewRuler_DecorationsOverviewRuler extends viewPart_ViewPart{constructor(G){super(G),this._domNode=Object(Re.b)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Ft.F.onDidChange(G=>{G.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(G){const Z=new decorationsOverviewRuler_Settings(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(Z))&&(this._settings=Z,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,G&&this._render(),!0)}onConfigurationChanged(G){return this._updateSettings(!1)}onCursorStateChanged(G){this._cursorPositions=[];for(let Z=0,ne=G.selections.length;ZZ&&(G=Z-me),ze=G-me,$e=G+me}ze>Re+1||ce!==De?(0!==G&&ge.fillRect(Ce[De],Ie,Se[De],Re-Ie),De=ce,Ie=ze,Re=$e):$e>Re&&(Re=$e)}ge.fillRect(Ce[De],Ie,Se[De],Re-Ie)}if(!this._settings.hideCursor&&this._settings.cursorColor){const G=2*this._settings.pixelRatio|0,ne=G/2|0,ce=this._settings.x[7],fe=this._settings.w[7];ge.fillStyle=this._settings.cursorColor;let me=-100,Ce=-100;for(let Se=0,Me=this._cursorPositions.length;SeZ&&(ke=Z-ne);const xe=ke-ne,De=xe+G;xe>Ce+1?(0!==Se&&ge.fillRect(ce,me,fe,Ce-me),me=xe,Ce=De):De>Ce&&(Ce=De)}ge.fillRect(ce,me,fe,Ce-me)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(ge.beginPath(),ge.lineWidth=1,ge.strokeStyle=this._settings.borderColor,ge.moveTo(0,0),ge.lineTo(0,Z),ge.stroke(),ge.moveTo(0,0),ge.lineTo(G,0),ge.stroke())}}var Qt=ne(1195);class overviewRuler_OverviewRuler extends viewEventHandler_ViewEventHandler{constructor(G,Z){super(),this._context=G;const ne=this._context.configuration.options;this._domNode=Object(Re.b)(document.createElement("canvas")),this._domNode.setClassName(Z),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Qt.b(G=>this._context.viewLayout.getVerticalOffsetForLineNumber(G)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(ne.get(57)),this._zoneManager.setPixelRatio(ne.get(127)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options;return G.hasChanged(57)&&(this._zoneManager.setLineHeight(Z.get(57)),this._render()),G.hasChanged(127)&&(this._zoneManager.setPixelRatio(Z.get(127)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(G){return this._render(),!0}onScrollChanged(G){return G.scrollHeightChanged&&(this._zoneManager.setOuterHeight(G.scrollHeight),this._render()),!0}onZonesChanged(G){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(G){this._domNode.setTop(G.top),this._domNode.setRight(G.right);let Z=!1;Z=this._zoneManager.setDOMWidth(G.width)||Z,Z=this._zoneManager.setDOMHeight(G.height)||Z,Z&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(G){this._zoneManager.setZones(G),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const G=this._zoneManager.getCanvasWidth(),Z=this._zoneManager.getCanvasHeight(),ne=this._zoneManager.resolveColorZones(),ie=this._zoneManager.getId2Color(),se=this._domNode.domNode.getContext("2d");return se.clearRect(0,0,G,Z),ne.length>0&&this._renderOneLane(se,ne,ie,G),!0}_renderOneLane(G,Z,ne,ie){let se=0,ce=0,fe=0;for(const me of Z){const Z=me.colorId,ge=me.from,Ce=me.to;Z!==se?(G.fillRect(0,ce,ie,fe-ce),se=Z,G.fillStyle=ne[se],ce=ge,fe=Ce):fe>=ge?fe=Math.max(fe,Ce):(G.fillRect(0,ce,ie,fe-ce),ce=ge,fe=Ce)}G.fillRect(0,ce,ie,fe-ce)}}ne(7545);class rulers_Rulers extends viewPart_ViewPart{constructor(G){super(G),this.domNode=Object(Re.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const Z=this._context.configuration.options;this._rulers=Z.get(90),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options;return this._rulers=Z.get(90),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth,!0}onScrollChanged(G){return G.scrollHeightChanged}prepareRender(G){}_ensureRulersCount(){const G=this._renderedRulers.length,Z=this._rulers.length;if(G===Z)return;if(G0;){const G=Object(Re.b)(document.createElement("div"));G.setClassName("view-ruler"),G.setWidth(ie),this.domNode.appendChild(G),this._renderedRulers.push(G),se--}return}let ne=G-Z;for(;ne>0;){const G=this._renderedRulers.pop();this.domNode.removeChild(G),ne--}}render(G){this._ensureRulersCount();for(let Z=0,ne=this._rulers.length;Z{const ne=G.getColor(At.n);ne&&Z.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${ne} inset; }`)});ne(7547);class scrollDecoration_ScrollDecorationViewPart extends viewPart_ViewPart{constructor(G){super(G),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const Z=this._context.configuration.options.get(91);this._useShadows=Z.useShadows,this._domNode=Object(Re.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const G=this._useShadows&&this._scrollTop>0;return this._shouldShow!==G&&(this._shouldShow=G,!0)}getDomNode(){return this._domNode}_updateWidth(){const G=this._context.configuration.options.get(129);0===G.minimap.renderMinimap||G.minimap.minimapWidth>0&&0===G.minimap.minimapLeft?this._width=G.width:this._width=G.width-G.minimap.minimapWidth-G.verticalScrollbarWidth}onConfigurationChanged(G){const Z=this._context.configuration.options.get(91);return this._useShadows=Z.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(G){return this._scrollTop=G.scrollTop,this._updateShouldShow()}prepareRender(G){}render(G){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(Dt.f)((G,Z)=>{const ne=G.getColor($t.yc);ne&&Z.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${ne} 0 6px 6px -6px inset; }`)});ne(7549);class HorizontalRangeWithStyle{constructor(G){this.left=G.left,this.width=G.width,this.startStyle=null,this.endStyle=null}}class LineVisibleRangesWithStyle{constructor(G,Z){this.lineNumber=G,this.ranges=Z}}function toStyledRange(G){return new HorizontalRangeWithStyle(G)}function toStyled(G){return new LineVisibleRangesWithStyle(G.lineNumber,G.ranges.map(toStyledRange))}class selections_SelectionsOverlay extends dynamicViewOverlay_DynamicViewOverlay{constructor(G){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=G;const Z=this._context.configuration.options;this._lineHeight=Z.get(57),this._roundedSelection=Z.get(89),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(G){const Z=this._context.configuration.options;return this._lineHeight=Z.get(57),this._roundedSelection=Z.get(89),this._typicalHalfwidthCharacterWidth=Z.get(41).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(G){return this._selections=G.selections.slice(0),!0}onDecorationsChanged(G){return!0}onFlushed(G){return!0}onLinesChanged(G){return!0}onLinesDeleted(G){return!0}onLinesInserted(G){return!0}onScrollChanged(G){return G.scrollTopChanged}onZonesChanged(G){return!0}_visibleRangesHaveGaps(G){for(let Z=0,ne=G.length;Z1)return!0}return!1}_enrichVisibleRangesWithStyle(G,Z,ne){const ie=this._typicalHalfwidthCharacterWidth/4;let se=null,ce=null;if(ne&&ne.length>0&&Z.length>0){const ie=Z[0].lineNumber;if(ie===G.startLineNumber)for(let G=0;!se&&G=0;G--)ne[G].lineNumber===fe&&(ce=ne[G].ranges[0]);se&&!se.startStyle&&(se=null),ce&&!ce.startStyle&&(ce=null)}for(let G=0,ne=Z.length;G0){const ne=Z[G-1].ranges[0].left,se=Z[G-1].ranges[0].left+Z[G-1].ranges[0].width;abs(me-ne)ne&&(Ce.top=1),abs(ge-se)'}_actualRenderOneSelection(G,Z,ne,ie){if(0===ie.length)return;const se=!!ie[0].ranges[0].startStyle,ce=this._lineHeight.toString(),fe=(this._lineHeight-1).toString(),me=ie[0].lineNumber,ge=ie[ie.length-1].lineNumber;for(let Ce=0,Se=ie.length;Ce1,fe)}this._previousFrameVisibleRangesWithStyle=se,this._renderResult=Z.map(([G,Z])=>G+Z)}render(G,Z){if(!this._renderResult)return"";const ne=Z-G;return ne<0||ne>=this._renderResult.length?"":this._renderResult[ne]}}function abs(G){return G<0?-G:G}selections_SelectionsOverlay.SELECTION_CLASS_NAME="selected-text",selections_SelectionsOverlay.SELECTION_TOP_LEFT="top-left-radius",selections_SelectionsOverlay.SELECTION_BOTTOM_LEFT="bottom-left-radius",selections_SelectionsOverlay.SELECTION_TOP_RIGHT="top-right-radius",selections_SelectionsOverlay.SELECTION_BOTTOM_RIGHT="bottom-right-radius",selections_SelectionsOverlay.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",selections_SelectionsOverlay.ROUNDED_PIECE_WIDTH=10,Object(Dt.f)((G,Z)=>{const ne=G.getColor($t.R);ne&&Z.addRule(`.monaco-editor .focused .selected-text { background-color: ${ne}; }`);const ie=G.getColor($t.J);ie&&Z.addRule(`.monaco-editor .selected-text { background-color: ${ie}; }`);const se=G.getColor($t.S);se&&!se.isTransparent()&&Z.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${se}; }`)});ne(7551);class ViewCursorRenderData{constructor(G,Z,ne,ie,se,ce){this.top=G,this.left=Z,this.width=ne,this.height=ie,this.textContent=se,this.textContentClassName=ce}}class viewCursor_ViewCursor{constructor(G){this._context=G;const Z=this._context.configuration.options,ne=Z.get(41);this._cursorStyle=Z.get(22),this._lineHeight=Z.get(57),this._typicalHalfwidthCharacterWidth=ne.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(Z.get(25),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(Re.b)(document.createElement("div")),this._domNode.setClassName("cursor "+jt.a),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),ke.a.applyFontInfo(this._domNode,ne),this._domNode.setDisplay("none"),this._position=new yt.a(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(G){const Z=this._context.configuration.options,ne=Z.get(41);return this._cursorStyle=Z.get(22),this._lineHeight=Z.get(57),this._typicalHalfwidthCharacterWidth=ne.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(Z.get(25),this._typicalHalfwidthCharacterWidth),ke.a.applyFontInfo(this._domNode,ne),!0}onCursorPositionChanged(G){return this._position=G,!0}_prepareRender(G){let Z="";if(this._cursorStyle===ut.i.Line||this._cursorStyle===ut.i.LineThin){const ne=G.visibleRangeForPosition(this._position);if(!ne||ne.outsideRenderedLine)return null;let ie;if(this._cursorStyle===ut.i.Line){if(ie=me.u(this._lineCursorWidth>0?this._lineCursorWidth:2),ie>2){const G=this._context.model.getLineContent(this._position.lineNumber),ne=Lt.L(G,this._position.column-1);Z=G.substr(this._position.column-1,ne)}}else ie=me.u(1);let se=ne.left;ie>=2&&se>=1&&(se-=1);const ce=G.getVerticalOffsetForLineNumber(this._position.lineNumber)-G.bigNumbersDelta;return new ViewCursorRenderData(ce,se,ie,this._lineHeight,Z,"")}const ne=this._context.model.getLineContent(this._position.lineNumber),ie=Lt.L(ne,this._position.column-1),se=G.linesVisibleRangesForRange(new vt.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ie),!1);if(!se||0===se.length)return null;const ce=se[0];if(ce.outsideRenderedLine||0===ce.ranges.length)return null;const fe=ce.ranges[0],ge=fe.width<1?this._typicalHalfwidthCharacterWidth:fe.width;let Ce="";if(this._cursorStyle===ut.i.Block){const G=this._context.model.getViewLineData(this._position.lineNumber);Z=ne.substr(this._position.column-1,ie);const se=G.tokens.findTokenIndexAtOffset(this._position.column-1);Ce=G.tokens.getClassName(se)}let Se=G.getVerticalOffsetForLineNumber(this._position.lineNumber)-G.bigNumbersDelta,Me=this._lineHeight;return this._cursorStyle!==ut.i.Underline&&this._cursorStyle!==ut.i.UnderlineThin||(Se+=this._lineHeight-2,Me=2),new ViewCursorRenderData(Se,fe.left,ge,Me,Z,Ce)}prepareRender(G){this._renderData=this._prepareRender(G)}render(G){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${jt.a} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class viewCursors_ViewCursors extends viewPart_ViewPart{constructor(G){super(G);const Z=this._context.configuration.options;this._readOnly=Z.get(79),this._cursorBlinking=Z.get(20),this._cursorStyle=Z.get(22),this._cursorSmoothCaretAnimation=Z.get(21),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new viewCursor_ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(Re.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new it.g,this._cursorFlatBlinkInterval=new it.c,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(G){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(G){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(G){const Z=this._context.configuration.options;this._readOnly=Z.get(79),this._cursorBlinking=Z.get(20),this._cursorStyle=Z.get(22),this._cursorSmoothCaretAnimation=Z.get(21),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(G);for(let Z=0,ne=this._secondaryCursors.length;ZZ.length){const G=this._secondaryCursors.length-Z.length;for(let Z=0;Z{for(let ne=0,ie=G.ranges.length;ne{this._isVisible?this._hide():this._show()},viewCursors_ViewCursors.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},viewCursors_ViewCursors.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let G="cursors-layer";switch(this._selectionIsEmpty||(G+=" has-selection"),this._cursorStyle){case ut.i.Line:G+=" cursor-line-style";break;case ut.i.Block:G+=" cursor-block-style";break;case ut.i.Underline:G+=" cursor-underline-style";break;case ut.i.LineThin:G+=" cursor-line-thin-style";break;case ut.i.BlockOutline:G+=" cursor-block-outline-style";break;case ut.i.UnderlineThin:G+=" cursor-underline-thin-style";break;default:G+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:G+=" cursor-blink";break;case 2:G+=" cursor-smooth";break;case 3:G+=" cursor-phase";break;case 4:G+=" cursor-expand";break;case 5:G+=" cursor-solid";break;default:G+=" cursor-solid"}else G+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(G+=" cursor-smooth-caret-animation"),G}_show(){this._primaryCursor.show();for(let G=0,Z=this._secondaryCursors.length;G{const ne=G.getColor(At.g);if(ne){let ie=G.getColor(At.f);ie||(ie=ne.opposite()),Z.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${ne}; border-color: ${ne}; color: ${ie}; }`),"hc"===G.type&&Z.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${ie}; border-right: 1px solid ${ie}; }`)}});const invalidFunc=()=>{throw new Error("Invalid change accessor")};class viewZones_ViewZones extends viewPart_ViewPart{constructor(G){super(G);const Z=this._context.configuration.options,ne=Z.get(129);this._lineHeight=Z.get(57),this._contentWidth=ne.contentWidth,this._contentLeft=ne.contentLeft,this.domNode=Object(Re.b)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(Re.b)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const G=this._context.viewLayout.getWhitespaces(),Z=new Map;for(const ne of G)Z.set(ne.id,ne);let ne=!1;return this._context.model.changeWhitespace(G=>{const ie=Object.keys(this._zones);for(let se=0,ce=ie.length;se{const ie={addZone:G=>(Z=!0,this._addZone(ne,G)),removeZone:G=>{G&&(Z=this._removeZone(ne,G)||Z)},layoutZone:G=>{G&&(Z=this._layoutZone(ne,G)||Z)}};!function safeInvoke1Arg(G,Z){try{return G(Z)}catch(G){Object(ge.e)(G)}}(G,ie),ie.addZone=invalidFunc,ie.removeZone=invalidFunc,ie.layoutZone=invalidFunc}),Z}_addZone(G,Z){const ne=this._computeWhitespaceProps(Z),ie={whitespaceId:G.insertWhitespace(ne.afterViewLineNumber,this._getZoneOrdinal(Z),ne.heightInPx,ne.minWidthInPx),delegate:Z,isVisible:!1,domNode:Object(Re.b)(Z.domNode),marginDomNode:Z.marginDomNode?Object(Re.b)(Z.marginDomNode):null};return this._safeCallOnComputedHeight(ie.delegate,ne.heightInPx),ie.domNode.setPosition("absolute"),ie.domNode.domNode.style.width="100%",ie.domNode.setDisplay("none"),ie.domNode.setAttribute("monaco-view-zone",ie.whitespaceId),this.domNode.appendChild(ie.domNode),ie.marginDomNode&&(ie.marginDomNode.setPosition("absolute"),ie.marginDomNode.domNode.style.width="100%",ie.marginDomNode.setDisplay("none"),ie.marginDomNode.setAttribute("monaco-view-zone",ie.whitespaceId),this.marginDomNode.appendChild(ie.marginDomNode)),this._zones[ie.whitespaceId]=ie,this.setShouldRender(),ie.whitespaceId}_removeZone(G,Z){if(this._zones.hasOwnProperty(Z)){const ne=this._zones[Z];return delete this._zones[Z],G.removeWhitespace(ne.whitespaceId),ne.domNode.removeAttribute("monaco-visible-view-zone"),ne.domNode.removeAttribute("monaco-view-zone"),ne.domNode.domNode.parentNode.removeChild(ne.domNode.domNode),ne.marginDomNode&&(ne.marginDomNode.removeAttribute("monaco-visible-view-zone"),ne.marginDomNode.removeAttribute("monaco-view-zone"),ne.marginDomNode.domNode.parentNode.removeChild(ne.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(G,Z){if(this._zones.hasOwnProperty(Z)){const ne=this._zones[Z],ie=this._computeWhitespaceProps(ne.delegate);return G.changeOneWhitespace(ne.whitespaceId,ie.afterViewLineNumber,ie.heightInPx),this._safeCallOnComputedHeight(ne.delegate,ie.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(G){if(this._zones.hasOwnProperty(G)){const Z=this._zones[G];return Boolean(Z.delegate.suppressMouseDown)}return!1}_heightInPixels(G){return"number"==typeof G.heightInPx?G.heightInPx:"number"==typeof G.heightInLines?this._lineHeight*G.heightInLines:this._lineHeight}_minWidthInPixels(G){return"number"==typeof G.minWidthInPx?G.minWidthInPx:0}_safeCallOnComputedHeight(G,Z){if("function"==typeof G.onComputedHeight)try{G.onComputedHeight(Z)}catch(G){Object(ge.e)(G)}}_safeCallOnDomNodeTop(G,Z){if("function"==typeof G.onDomNodeTop)try{G.onDomNodeTop(Z)}catch(G){Object(ge.e)(G)}}prepareRender(G){}render(G){const Z=G.viewportData.whitespaceViewportData,ne={};let ie=!1;for(let G=0,se=Z.length;G{this._context.theme.update(G),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new textAreaHandler_TextAreaHandler(this._context,fe,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(Re.b)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(Re.b)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(Re.b)(document.createElement("div")),viewPart_PartFingerprints.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new editorScrollbar_EditorScrollbar(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new viewLines_ViewLines(this._context,this._linesContent),this._viewZones=new viewZones_ViewZones(this._context),this._viewParts.push(this._viewZones);const me=new decorationsOverviewRuler_DecorationsOverviewRuler(this._context);this._viewParts.push(me);const ge=new scrollDecoration_ScrollDecorationViewPart(this._context);this._viewParts.push(ge);const Ce=new ContentViewOverlays(this._context);this._viewParts.push(Ce),Ce.addDynamicOverlay(new CurrentLineHighlightOverlay(this._context)),Ce.addDynamicOverlay(new selections_SelectionsOverlay(this._context)),Ce.addDynamicOverlay(new indentGuides_IndentGuidesOverlay(this._context)),Ce.addDynamicOverlay(new decorations_DecorationsOverlay(this._context));const Se=new viewOverlays_MarginViewOverlays(this._context);this._viewParts.push(Se),Se.addDynamicOverlay(new CurrentLineMarginHighlightOverlay(this._context)),Se.addDynamicOverlay(new GlyphMarginOverlay(this._context)),Se.addDynamicOverlay(new marginDecorations_MarginViewLineDecorationsOverlay(this._context)),Se.addDynamicOverlay(new linesDecorations_LinesDecorationsOverlay(this._context)),Se.addDynamicOverlay(new lineNumbers_LineNumbersOverlay(this._context));const Me=new margin_Margin(this._context);Me.getDomNode().appendChild(this._viewZones.marginDomNode),Me.getDomNode().appendChild(Se.getDomNode()),this._viewParts.push(Me),this._contentWidgets=new contentWidgets_ViewContentWidgets(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new viewCursors_ViewCursors(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new overlayWidgets_ViewOverlayWidgets(this._context),this._viewParts.push(this._overlayWidgets);const ke=new rulers_Rulers(this._context);this._viewParts.push(ke);const xe=new minimap_Minimap(this._context);if(this._viewParts.push(xe),me){const G=this._scrollbar.getOverviewRulerLayoutInfo();G.parent.insertBefore(me.getDomNode(),G.insertBefore)}this._linesContent.appendChild(Ce.getDomNode()),this._linesContent.appendChild(ke.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(Me.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(ge.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(xe.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),ce?ce.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new pointerHandler_PointerHandler(this._context,fe,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:G=>{this._textAreaHandler.textArea.domNode.dispatchEvent(G)},getLastRenderData:()=>{const G=this._viewCursors.getLastRenderData()||[],Z=this._textAreaHandler.getLastRenderData();return new PointerHandlerLastRenderData(G,Z)},shouldSuppressMouseDownOnViewZone:G=>this._viewZones.shouldSuppressMouseDownOnViewZone(G),shouldSuppressMouseDownOnWidget:G=>this._contentWidgets.shouldSuppressMouseDownOnWidget(G),getPositionFromDOMInfo:(G,Z)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(G,Z)),visibleRangeForPosition:(G,Z)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new yt.a(G,Z))),getLineWidth:G=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(G))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(G,Z)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new yt.a(G,Z)))}}_applyLayout(){const G=this._context.configuration.options.get(129);this.domNode.setWidth(G.width),this.domNode.setHeight(G.height),this._overflowGuardContainer.setWidth(G.width),this._overflowGuardContainer.setHeight(G.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const G=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(126)+" "+Object(Dt.e)(this._context.theme.type)+G}handleEvents(G){super.handleEvents(G),this._scheduleRender()}onConfigurationChanged(G){return this._configPixelRatio=this._context.configuration.options.get(127),this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(G){return this._selections=G.selections,!1}onFocusChanged(G){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(G){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const G of this._viewParts)G.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=me.T(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){!function safeInvokeNoArg(G){try{return G()}catch(G){Object(ge.e)(G)}}(()=>this._actualRender())}_getViewPartsToRender(){let G=[],Z=0;for(const ne of this._viewParts)ne.shouldRender()&&(G[Z++]=ne);return G}_actualRender(){if(!me.N(this.domNode.domNode))return;let G=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===G.length)return;const Z=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(Z.startLineNumber,Z.endLineNumber,Z.centeredLineNumber);const ne=new viewLinesViewportData_ViewportData(this._selections,Z,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(ne),this._viewLines.shouldRender()&&(this._viewLines.renderText(ne),this._viewLines.onDidRender(),G=this._getViewPartsToRender());const ie=new RenderingContext(this._context.viewLayout,ne,this._viewLines);for(const Z of G)Z.prepareRender(ie);for(const Z of G)Z.render(ie),Z.onDidRender();Math.abs(De.a()-this._configPixelRatio)>.001&&this._context.configuration.updatePixelRatio()}delegateVerticalScrollbarMouseDown(G){this._scrollbar.delegateVerticalScrollbarMouseDown(G)}restoreState(G){this._context.model.setScrollPosition({scrollTop:G.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:G.scrollLeft},1)}getOffsetForColumn(G,Z){const ne=this._context.model.validateModelPosition({lineNumber:G,column:Z}),ie=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(ne);this._flushAccumulatedAndRenderNow();const se=this._viewLines.visibleRangeForPosition(new yt.a(ie.lineNumber,ie.column));return se?se.left:-1}getTargetAtClientPoint(G,Z){const ne=this._pointerHandler.getTargetAtClientPoint(G,Z);return ne?ViewUserInputEvents.convertViewToModelMouseTarget(ne,this._context.model.coordinatesConverter):null}createOverviewRuler(G){return new overviewRuler_OverviewRuler(this._context,G)}change(G){this._viewZones.changeViewZones(G),this._scheduleRender()}render(G,Z){if(Z){this._viewLines.forceShouldRender();for(const G of this._viewParts)G.forceShouldRender()}G?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(G){this._textAreaHandler.setAriaOptions(G)}addContentWidget(G){this._contentWidgets.addWidget(G.widget),this.layoutContentWidget(G),this._scheduleRender()}layoutContentWidget(G){let Z=G.position&&G.position.range||null;if(null===Z){const ne=G.position?G.position.position:null;null!==ne&&(Z=new vt.a(ne.lineNumber,ne.column,ne.lineNumber,ne.column))}const ne=G.position?G.position.preference:null;this._contentWidgets.setWidgetPosition(G.widget,Z,ne),this._scheduleRender()}removeContentWidget(G){this._contentWidgets.removeWidget(G.widget),this._scheduleRender()}addOverlayWidget(G){this._overlayWidgets.addWidget(G.widget),this.layoutOverlayWidget(G),this._scheduleRender()}layoutOverlayWidget(G){const Z=G.position?G.position.preference:null;this._overlayWidgets.setWidgetPosition(G.widget,Z)&&this._scheduleRender()}removeOverlayWidget(G){this._overlayWidgets.removeWidget(G.widget),this._scheduleRender()}}class oneCursor_Cursor{constructor(G){this._selTrackedRange=null,this._trackSelection=!0,this._setState(G,new wt.f(new vt.a(1,1,1,1),0,new yt.a(1,1),0),new wt.f(new vt.a(1,1,1,1),0,new yt.a(1,1),0))}dispose(G){this._removeTrackedRange(G)}startTrackingSelection(G){this._trackSelection=!0,this._updateTrackedRange(G)}stopTrackingSelection(G){this._trackSelection=!1,this._removeTrackedRange(G)}_updateTrackedRange(G){this._trackSelection&&(this._selTrackedRange=G.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(G){this._selTrackedRange=G.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new wt.d(this.modelState,this.viewState)}readSelectionFromMarkers(G){const Z=G.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new Ie.a(Z.startLineNumber,Z.startColumn,Z.endLineNumber,Z.endColumn):new Ie.a(Z.endLineNumber,Z.endColumn,Z.startLineNumber,Z.startColumn)}ensureValidState(G){this._setState(G,this.modelState,this.viewState)}setState(G,Z,ne){this._setState(G,Z,ne)}static _validatePositionWithCache(G,Z,ne,ie){return Z.equals(ne)?ie:G.normalizePosition(Z,2)}static _validateViewState(G,Z){const ne=Z.position,ie=Z.selectionStart.getStartPosition(),se=Z.selectionStart.getEndPosition(),ce=G.normalizePosition(ne,2),fe=this._validatePositionWithCache(G,ie,ne,ce),me=this._validatePositionWithCache(G,se,ie,fe);return ne.equals(ce)&&ie.equals(fe)&&se.equals(me)?Z:new wt.f(vt.a.fromPositions(fe,me),Z.selectionStartLeftoverVisibleColumns+ie.column-fe.column,ce,Z.leftoverVisibleColumns+ne.column-ce.column)}_setState(G,Z,ne){if(ne&&(ne=oneCursor_Cursor._validateViewState(G.viewModel,ne)),Z){const ne=G.model.validateRange(Z.selectionStart),ie=Z.selectionStart.equalsRange(ne)?Z.selectionStartLeftoverVisibleColumns:0,se=G.model.validatePosition(Z.position),ce=Z.position.equals(se)?Z.leftoverVisibleColumns:0;Z=new wt.f(ne,ie,se,ce)}else{if(!ne)return;const ie=G.model.validateRange(G.coordinatesConverter.convertViewRangeToModelRange(ne.selectionStart)),se=G.model.validatePosition(G.coordinatesConverter.convertViewPositionToModelPosition(ne.position));Z=new wt.f(ie,ne.selectionStartLeftoverVisibleColumns,se,ne.leftoverVisibleColumns)}if(ne){const ie=G.coordinatesConverter.validateViewRange(ne.selectionStart,Z.selectionStart),se=G.coordinatesConverter.validateViewPosition(ne.position,Z.position);ne=new wt.f(ie,Z.selectionStartLeftoverVisibleColumns,se,Z.leftoverVisibleColumns)}else{const ie=G.coordinatesConverter.convertModelPositionToViewPosition(new yt.a(Z.selectionStart.startLineNumber,Z.selectionStart.startColumn)),se=G.coordinatesConverter.convertModelPositionToViewPosition(new yt.a(Z.selectionStart.endLineNumber,Z.selectionStart.endColumn)),ce=new vt.a(ie.lineNumber,ie.column,se.lineNumber,se.column),fe=G.coordinatesConverter.convertModelPositionToViewPosition(Z.position);ne=new wt.f(ce,Z.selectionStartLeftoverVisibleColumns,fe,Z.leftoverVisibleColumns)}this.modelState=Z,this.viewState=ne,this._updateTrackedRange(G)}}class cursorCollection_CursorCollection{constructor(G){this.context=G,this.primaryCursor=new oneCursor_Cursor(G),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let G=0,Z=this.secondaryCursors.length;Gne){let G=Z-ne;for(let Z=0;Z=G+1&&this.lastAddedCursorIndex--,this.secondaryCursors[G].dispose(this.context),this.secondaryCursors.splice(G,1)}_getAll(){let G=[];G[0]=this.primaryCursor;for(let Z=0,ne=this.secondaryCursors.length;ZG.selection.startLineNumber===Z.selection.startLineNumber?G.selection.startColumn-Z.selection.startColumn:G.selection.startLineNumber-Z.selection.startLineNumber);for(let ne=0;neme&&G.index--;G.splice(me,1),Z.splice(fe,1),this._removeSecondaryCursor(me-1),ne--}}}}var on=ne(1192),sn=ne(583),cn=ne(318);class ViewCompositionStartEvent{constructor(){this.type=0}}class ViewCompositionEndEvent{constructor(){this.type=1}}class ViewConfigurationChangedEvent{constructor(G){this.type=2,this._source=G}hasChanged(G){return this._source.hasChanged(G)}}class ViewCursorStateChangedEvent{constructor(G,Z){this.type=3,this.selections=G,this.modelSelections=Z}}class ViewDecorationsChangedEvent{constructor(G){this.type=4,G?(this.affectsMinimap=G.affectsMinimap,this.affectsOverviewRuler=G.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class ViewFlushedEvent{constructor(){this.type=5}}class ViewFocusChangedEvent{constructor(G){this.type=6,this.isFocused=G}}class ViewLanguageConfigurationEvent{constructor(){this.type=7}}class ViewLineMappingChangedEvent{constructor(){this.type=8}}class ViewLinesChangedEvent{constructor(G,Z){this.type=9,this.fromLineNumber=G,this.toLineNumber=Z}}class ViewLinesDeletedEvent{constructor(G,Z){this.type=10,this.fromLineNumber=G,this.toLineNumber=Z}}class ViewLinesInsertedEvent{constructor(G,Z){this.type=11,this.fromLineNumber=G,this.toLineNumber=Z}}class ViewRevealRangeRequestEvent{constructor(G,Z,ne,ie,se,ce){this.type=12,this.source=G,this.range=Z,this.selections=ne,this.verticalType=ie,this.revealHorizontal=se,this.scrollType=ce}}class ViewScrollChangedEvent{constructor(G){this.type=13,this.scrollWidth=G.scrollWidth,this.scrollLeft=G.scrollLeft,this.scrollHeight=G.scrollHeight,this.scrollTop=G.scrollTop,this.scrollWidthChanged=G.scrollWidthChanged,this.scrollLeftChanged=G.scrollLeftChanged,this.scrollHeightChanged=G.scrollHeightChanged,this.scrollTopChanged=G.scrollTopChanged}}class ViewThemeChangedEvent{constructor(){this.type=14}}class ViewTokensChangedEvent{constructor(G){this.type=15,this.ranges=G}}class ViewTokensColorsChangedEvent{constructor(){this.type=16}}class ViewZonesChangedEvent{constructor(){this.type=17}}class viewModelEventDispatcher_ViewModelEventDispatcher extends Se.a{constructor(){super(),this._onEvent=this._register(new Ce.b),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(G){this._addOutgoingEvent(G),this._emitOugoingEvents()}_addOutgoingEvent(G){for(let Z=0,ne=this._outgoingEvents.length;Z0;){if(this._collector||this._isConsumingViewEventQueue)return;const G=this._outgoingEvents.shift();G.isNoOp()||this._onEvent.fire(G)}}addViewEventHandler(G){for(let Z=0,ne=this._eventHandlers.length;Z0&&this._emitMany(Z)}this._emitOugoingEvents()}emitSingleViewEvent(G){try{this.beginEmitViewEvents().emitViewEvent(G)}finally{this.endEmitViewEvents()}}_emitMany(G){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(G):this._viewEventQueue=G,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const G=this._viewEventQueue;this._viewEventQueue=null;const Z=this._eventHandlers.slice(0);for(const ne of Z)ne.handleEvents(G)}}}class ViewModelEventsCollector{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(G){this.viewEvents.push(G)}emitOutgoingEvent(G){this.outgoingEvents.push(G)}}class ContentSizeChangedEvent{constructor(G,Z,ne,ie){this.kind=0,this._oldContentWidth=G,this._oldContentHeight=Z,this.contentWidth=ne,this.contentHeight=ie,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(G){return 0!==G.kind?this:new ContentSizeChangedEvent(this._oldContentWidth,this._oldContentHeight,G.contentWidth,G.contentHeight)}}class FocusChangedEvent{constructor(G,Z){this.kind=1,this.oldHasFocus=G,this.hasFocus=Z}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(G){return 1!==G.kind?this:new FocusChangedEvent(this.oldHasFocus,G.hasFocus)}}class ScrollChangedEvent{constructor(G,Z,ne,ie,se,ce,fe,me){this.kind=2,this._oldScrollWidth=G,this._oldScrollLeft=Z,this._oldScrollHeight=ne,this._oldScrollTop=ie,this.scrollWidth=se,this.scrollLeft=ce,this.scrollHeight=fe,this.scrollTop=me,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(G){return 2!==G.kind?this:new ScrollChangedEvent(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,G.scrollWidth,G.scrollLeft,G.scrollHeight,G.scrollTop)}}class viewModelEventDispatcher_ViewZonesChangedEvent{constructor(){this.kind=3}isNoOp(){return!1}merge(G){return this}}class CursorStateChangedEvent{constructor(G,Z,ne,ie,se,ce,fe){this.kind=5,this.oldSelections=G,this.selections=Z,this.oldModelVersionId=ne,this.modelVersionId=ie,this.source=se,this.reason=ce,this.reachedMaxCursorCount=fe}static _selectionsAreEqual(G,Z){if(!G&&!Z)return!0;if(!G||!Z)return!1;const ne=G.length;if(ne!==Z.length)return!1;for(let ie=0;ie=Z.length)return!1;if(!Z[ne].strictContainsRange(G[ne]))return!1}return!0}}class cursor_CursorsController extends Se.a{constructor(G,Z,ne,ie){super(),this._model=G,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=Z,this._coordinatesConverter=ne,this.context=new wt.c(this._model,this._viewModel,this._coordinatesConverter,ie),this._cursors=new cursorCollection_CursorCollection(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(Se.f)(this._autoClosedActions),super.dispose()}updateConfiguration(G){this.context=new wt.c(this._model,this._viewModel,this._coordinatesConverter,G),this._cursors.updateContext(this.context)}onLineMappingChanged(G){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(G,"viewModel",0,this.getCursorStates())}setHasFocus(G){this._hasFocus=G}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let G=this._cursors.getSelections();for(let Z=0;Zcursor_CursorsController.MAX_CURSOR_COUNT&&(ie=ie.slice(0,cursor_CursorsController.MAX_CURSOR_COUNT),se=!0);const ce=new CursorModelState(this._model,this);return this._cursors.setStates(ie),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(G,Z,ne,ce,se)}setCursorColumnSelectData(G){this._columnSelectData=G}revealPrimary(G,Z,ne,ie){const se=this._cursors.getViewPositions();if(se.length>1)this._emitCursorRevealRange(G,Z,null,this._cursors.getViewSelections(),0,ne,ie);else{const ce=se[0],fe=new vt.a(ce.lineNumber,ce.column,ce.lineNumber,ce.column);this._emitCursorRevealRange(G,Z,fe,null,0,ne,ie)}}_revealPrimaryCursor(G,Z,ne,ie,se){const ce=this._cursors.getViewPositions();if(ce.length>1)this._emitCursorRevealRange(G,Z,null,this._cursors.getViewSelections(),ne,ie,se);else{const fe=ce[0],me=new vt.a(fe.lineNumber,fe.column,fe.lineNumber,fe.column);this._emitCursorRevealRange(G,Z,me,null,ne,ie,se)}}_emitCursorRevealRange(G,Z,ne,ie,se,ce,fe){G.emitViewEvent(new ViewRevealRangeRequestEvent(Z,ne,ie,se,ce,fe))}saveState(){let G=[];const Z=this._cursors.getSelections();for(let ne=0,ie=Z.length;ne0){const ne=wt.d.fromModelSelections(Z.resultingSelection);this.setStates(G,"modelChange",Z.isUndoing?5:Z.isRedoing?6:2,ne)&&this._revealPrimaryCursor(G,"modelChange",0,!0,0)}else{const Z=this._cursors.readSelectionFromMarkers();this.setStates(G,"modelChange",2,wt.d.fromModelSelections(Z))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const G=this._cursors.getPrimaryCursor(),Z=G.viewState.selectionStart.getStartPosition(),ne=G.viewState.position;return{isReal:!1,fromViewLineNumber:Z.lineNumber,fromViewVisualColumn:wt.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,Z),toViewLineNumber:ne.lineNumber,toViewVisualColumn:wt.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,ne)}}getSelections(){return this._cursors.getSelections()}setSelections(G,Z,ne,ie){this.setStates(G,Z,ie,wt.d.fromModelSelections(ne))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(G){this._prevEditOperationType=G}_pushAutoClosedAction(G,Z){let ne=[],ie=[];for(let se=0,ce=G.length;se0&&(ce[0]._isTracked=!0);let fe=G.model.pushEditOperations(G.selectionsBefore,ce,ne=>{let ie=[];for(let Z=0;ZG.identifier.minor-Z.identifier.minor;let se=[];for(let ne=0;ne0?(ie[ne].sort(minorBasedSorter),se[ne]=Z[ne].computeCursorState(G.model,{getInverseEditOperations:()=>ie[ne],getTrackedSelection:Z=>{const ne=parseInt(Z,10),ie=G.model._getTrackedRange(G.trackedRanges[ne]);return 0===G.trackedRangesDirection[ne]?new Ie.a(ie.startLineNumber,ie.startColumn,ie.endLineNumber,ie.endColumn):new Ie.a(ie.endLineNumber,ie.endColumn,ie.startLineNumber,ie.startColumn)}})):se[ne]=G.selectionsBefore[ne];return se});fe||(fe=G.selectionsBefore);let me=[];for(let G in se)se.hasOwnProperty(G)&&me.push(parseInt(G,10));me.sort((G,Z)=>Z-G);for(const G of me)fe.splice(G,1);return fe}static _arrayIsEmpty(G){for(let Z=0,ne=G.length;Z{vt.a.isEmpty(G)&&""===ce||ie.push({identifier:{major:Z,minor:se++},range:G,text:ce,forceMoveMarkers:fe,isAutoWhitespaceEdit:ne.insertsAutoWhitespace})};let ce=!1;const fe={addEditOperation:addEditOperation,addTrackedEditOperation:(G,Z,ne)=>{ce=!0,addEditOperation(G,Z,ne)},trackSelection:(Z,ne)=>{const ie=Ie.a.liftSelection(Z);let se;if(ie.isEmpty())if("boolean"==typeof ne)se=ne?2:3;else{const Z=G.model.getLineMaxColumn(ie.startLineNumber);se=ie.startColumn===Z?2:3}else se=1;const ce=G.trackedRanges.length,fe=G.model._setTrackedRange(null,ie,se);return G.trackedRanges[ce]=fe,G.trackedRangesDirection[ce]=ie.getDirection(),ce.toString()}};try{ne.getEditOperations(G.model,fe)}catch(G){return Object(ge.e)(G),{operations:[],hadTrackedEditOperation:!1}}return{operations:ie,hadTrackedEditOperation:ce}}static _getLoserCursorMap(G){(G=G.slice(0)).sort((G,Z)=>-vt.a.compareRangesUsingEnds(G.range,Z.range));let Z={};for(let ne=1;nese.identifier.major?ie.identifier.major:se.identifier.major,Z[ce.toString()]=!0;for(let Z=0;Z0&&ne--}}return Z}}.executeCommands(this._model,this._cursors.getSelections(),G.commands);if(Z){this._interpretCommandResult(Z);let ne=[],ie=[];for(let Z=0;Z0&&this._pushAutoClosedAction(ne,ie),this._prevEditOperationType=G.type}G.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(G){G&&0!==G.length||(G=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(G),this._cursors.normalize()}_emitStateChangedIfNecessary(G,Z,ne,ie,se){const ce=new CursorModelState(this._model,this);if(ce.equals(ie))return!1;const fe=this._cursors.getSelections(),me=this._cursors.getViewSelections();if(G.emitViewEvent(new ViewCursorStateChangedEvent(me,fe)),!ie||ie.cursorState.length!==ce.cursorState.length||ce.cursorState.some((G,Z)=>!G.modelState.equals(ie.cursorState[Z].modelState))){const me=ie?ie.cursorState.map(G=>G.modelState.selection):null,ge=ie?ie.modelVersionId:0;G.emitOutgoingEvent(new CursorStateChangedEvent(me,fe,ge,ce.modelVersionId,Z||"keyboard",ne,se))}return!0}_findAutoClosingPairs(G){if(!G.length)return null;let Z=[];for(let ne=0,ie=G.length;ne=0)return null;const se=ie.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!se)return null;const ce=se[1],fe=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(ce);if(!fe||1!==fe.length)return null;const me=fe[0].open,ge=ie.text.length-se[2].length-1,Ce=ie.text.lastIndexOf(me,ge-1);if(-1===Ce)return null;Z.push([Ce,ge])}return Z}executeEdits(G,Z,ne,ie){let se=null;"snippet"===Z&&(se=this._findAutoClosingPairs(ne)),se&&(ne[0]._isTracked=!0);let ce=[],fe=[];const me=this._model.pushEditOperations(this.getSelections(),ne,G=>{if(se)for(let Z=0,ne=se.length;Z0&&this._pushAutoClosedAction(ce,fe)}_executeEdit(G,Z,ne,ie=0){if(this.context.cursorConfig.readOnly)return;const se=new CursorModelState(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),G()}catch(G){Object(ge.e)(G)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(Z,ne,ie,se,!1)&&this._revealPrimaryCursor(Z,ne,0,!0,0)}setIsDoingComposition(G){this._isDoingComposition=G}getAutoClosedCharacters(){return cursor_AutoClosedAction.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(G){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(G,Z){this._executeEdit(()=>{"keyboard"===Z&&(this._executeEditOperation(sn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},G,Z)}type(G,Z,ne){this._executeEdit(()=>{if("keyboard"===ne){const G=Z.length;let ne=0;for(;ne{this._executeEditOperation(sn.a.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),Z,ne,ie,se))},G,ce);else if(0!==se){const Z=this.getSelections().map(G=>{const Z=G.getPosition();return new Ie.a(Z.lineNumber,Z.column+se,Z.lineNumber,Z.column+se)});this.setSelections(G,ce,Z,0)}}paste(G,Z,ne,ie,se){this._executeEdit(()=>{this._executeEditOperation(sn.a.paste(this.context.cursorConfig,this._model,this.getSelections(),Z,ne,ie||[]))},G,se,4)}cut(G,Z){this._executeEdit(()=>{this._executeEditOperation(on.a.cut(this.context.cursorConfig,this._model,this.getSelections()))},G,Z)}executeCommand(G,Z,ne){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new wt.e(0,[Z],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},G,ne)}executeCommands(G,Z,ne){this._executeEdit(()=>{this._executeEditOperation(new wt.e(0,Z,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},G,ne)}}cursor_CursorsController.MAX_CURSOR_COUNT=1e4;var dn=ne(2107),mn=ne(773),_n=ne(23),gn=ne(1674),bn=ne(994);class PendingChanges{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(G){this._hasPending=!0,this._inserts.push(G)}change(G){this._hasPending=!0,this._changes.push(G)}remove(G){this._hasPending=!0,this._removes.push(G)}mustCommit(){return this._hasPending}commit(G){if(!this._hasPending)return;const Z=this._inserts,ne=this._changes,ie=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],G._commitPendingChanges(Z,ne,ie)}}class EditorWhitespace{constructor(G,Z,ne,ie,se){this.id=G,this.afterLineNumber=Z,this.ordinal=ne,this.height=ie,this.minWidth=se,this.prefixSum=0}}class linesLayout_LinesLayout{constructor(G,Z,ne,ie){this._instanceId=Lt.Q(++linesLayout_LinesLayout.INSTANCE_COUNT),this._pendingChanges=new PendingChanges,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=G,this._lineHeight=Z,this._paddingTop=ne,this._paddingBottom=ie}static findInsertionIndex(G,Z,ne){let ie=0,se=G.length;for(;ie>>1;Z===G[ce].afterLineNumber?ne{Z=!0,G|=0,ne|=0,ie|=0,se|=0;const ce=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new EditorWhitespace(ce,G,ne,ie,se)),ce},changeOneWhitespace:(G,ne,ie)=>{Z=!0,ne|=0,ie|=0,this._pendingChanges.change({id:G,newAfterLineNumber:ne,newHeight:ie})},removeWhitespace:G=>{Z=!0,this._pendingChanges.remove({id:G})}})}finally{this._pendingChanges.commit(this)}return Z}_commitPendingChanges(G,Z,ne){if((G.length>0||ne.length>0)&&(this._minWidth=-1),G.length+Z.length+ne.length<=1){for(const Z of G)this._insertWhitespace(Z);for(const G of Z)this._changeOneWhitespace(G.id,G.newAfterLineNumber,G.newHeight);for(const G of ne){const Z=this._findWhitespaceIndex(G.id);-1!==Z&&this._removeWhitespace(Z)}return}const ie=new Set;for(const G of ne)ie.add(G.id);const se=new Map;for(const G of Z)se.set(G.id,G);const applyRemoveAndChange=G=>{let Z=[];for(const ne of G)if(!ie.has(ne.id)){if(se.has(ne.id)){const G=se.get(ne.id);ne.afterLineNumber=G.newAfterLineNumber,ne.height=G.newHeight}Z.push(ne)}return Z},ce=applyRemoveAndChange(this._arr).concat(applyRemoveAndChange(G));ce.sort((G,Z)=>G.afterLineNumber===Z.afterLineNumber?G.ordinal-Z.ordinal:G.afterLineNumber-Z.afterLineNumber),this._arr=ce,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(G){const Z=linesLayout_LinesLayout.findInsertionIndex(this._arr,G.afterLineNumber,G.ordinal);this._arr.splice(Z,0,G),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,Z-1)}_findWhitespaceIndex(G){const Z=this._arr;for(let ne=0,ie=Z.length;neZ&&(this._arr[ne].afterLineNumber-=Z-G+1)}}onLinesInserted(G,Z){this._checkPendingChanges(),G|=0,Z|=0,this._lineCount+=Z-G+1;for(let ne=0,ie=this._arr.length;ne=Z.length||Z[se+1].afterLineNumber>=G)return se;ne=se+1|0}else ie=se-1|0}return-1}_findFirstWhitespaceAfterLineNumber(G){G|=0;const Z=this._findLastWhitespaceBeforeLineNumber(G)+1;return Z1?this._lineHeight*(G-1):0;return Z+this.getWhitespaceAccumulatedHeightBeforeLineNumber(G)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let G=0;for(let Z=0,ne=this._arr.length;Zthis.getLinesTotalHeight()}isInTopPadding(G){return 0!==this._paddingTop&&(this._checkPendingChanges(),G=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(G){if(this._checkPendingChanges(),(G|=0)<0)return 1;const Z=0|this._lineCount,ne=this._lineHeight;let ie=1,se=Z;for(;ie=ce+ne)ie=Z+1;else{if(G>=ce)return Z;se=Z}}return ie>Z?Z:ie}getLinesViewportData(G,Z){this._checkPendingChanges(),G|=0,Z|=0;const ne=this._lineHeight,ie=0|this.getLineNumberAtOrAfterVerticalOffset(G),se=0|this.getVerticalOffsetForLineNumber(ie);let ce=0|this._lineCount,fe=0|this.getFirstWhitespaceIndexAfterLineNumber(ie);const me=0|this.getWhitespacesCount();let ge,Ce;-1===fe?(fe=me,Ce=ce+1,ge=0):(Ce=0|this.getAfterLineNumberForWhitespaceIndex(fe),ge=0|this.getHeightForWhitespaceIndex(fe));let Se=se,Me=Se;let ke=0;se>=5e5&&(ke=5e5*Math.floor(se/5e5),ke=Math.floor(ke/ne)*ne,Me-=ke);const xe=[],De=G+(Z-G)/2;let Ie=-1;for(let G=ie;G<=ce;G++){if(-1===Ie){const Z=Se,ie=Se+ne;(Z<=De&&DeDe)&&(Ie=G)}for(Se+=ne,xe[G-ie]=Me,Me+=ne;Ce===G;)Me+=ge,Se+=ge,fe++,fe>=me?Ce=ce+1:(Ce=0|this.getAfterLineNumberForWhitespaceIndex(fe),ge=0|this.getHeightForWhitespaceIndex(fe));if(Se>=Z){ce=G;break}}-1===Ie&&(Ie=ce);const Re=0|this.getVerticalOffsetForLineNumber(ce);let ze=ie,$e=ce;return ze<$e&&seZ&&$e--,{bigNumbersDelta:ke,startLineNumber:ie,endLineNumber:ce,relativeVerticalOffset:xe,centeredLineNumber:Ie,completelyVisibleStartLineNumber:ze,completelyVisibleEndLineNumber:$e}}getVerticalOffsetForWhitespaceIndex(G){this._checkPendingChanges(),G|=0;const Z=this.getAfterLineNumberForWhitespaceIndex(G);let ne,ie;return ne=Z>=1?this._lineHeight*Z:0,ie=G>0?this.getWhitespacesAccumulatedHeight(G-1):0,ne+ie+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(G){this._checkPendingChanges(),G|=0;let Z=0,ne=this.getWhitespacesCount()-1;if(ne<0)return-1;if(G>=this.getVerticalOffsetForWhitespaceIndex(ne)+this.getHeightForWhitespaceIndex(ne))return-1;for(;Z=se+this.getHeightForWhitespaceIndex(ie))Z=ie+1;else{if(G>=se)return ie;ne=ie}}return Z}getWhitespaceAtVerticalOffset(G){this._checkPendingChanges(),G|=0;const Z=this.getWhitespaceIndexAtOrAfterVerticallOffset(G);if(Z<0)return null;if(Z>=this.getWhitespacesCount())return null;const ne=this.getVerticalOffsetForWhitespaceIndex(Z);if(ne>G)return null;const ie=this.getHeightForWhitespaceIndex(Z);return{id:this.getIdForWhitespaceIndex(Z),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(Z),verticalOffset:ne,height:ie}}getWhitespaceViewportData(G,Z){this._checkPendingChanges(),G|=0,Z|=0;const ne=this.getWhitespaceIndexAtOrAfterVerticallOffset(G),ie=this.getWhitespacesCount()-1;if(ne<0)return[];let se=[];for(let G=ne;G<=ie;G++){const ne=this.getVerticalOffsetForWhitespaceIndex(G),ie=this.getHeightForWhitespaceIndex(G);if(ne>=Z)break;se.push({id:this.getIdForWhitespaceIndex(G),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(G),verticalOffset:ne,height:ie})}return se}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(G){return this._checkPendingChanges(),G|=0,this._arr[G].id}getAfterLineNumberForWhitespaceIndex(G){return this._checkPendingChanges(),G|=0,this._arr[G].afterLineNumber}getHeightForWhitespaceIndex(G){return this._checkPendingChanges(),G|=0,this._arr[G].height}}linesLayout_LinesLayout.INSTANCE_COUNT=0;class EditorScrollDimensions{constructor(G,Z,ne,ie){(G|=0)<0&&(G=0),(Z|=0)<0&&(Z=0),(ne|=0)<0&&(ne=0),(ie|=0)<0&&(ie=0),this.width=G,this.contentWidth=Z,this.scrollWidth=Math.max(G,Z),this.height=ne,this.contentHeight=ie,this.scrollHeight=Math.max(ne,ie)}equals(G){return this.width===G.width&&this.contentWidth===G.contentWidth&&this.height===G.height&&this.contentHeight===G.contentHeight}}class viewLayout_EditorScrollable extends Se.a{constructor(G,Z){super(),this._onDidContentSizeChange=this._register(new Ce.b),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new EditorScrollDimensions(0,0,0,0),this._scrollable=this._register(new bn.a(G,Z)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(G){this._scrollable.setSmoothScrollDuration(G)}validateScrollPosition(G){return this._scrollable.validateScrollPosition(G)}getScrollDimensions(){return this._dimensions}setScrollDimensions(G){if(this._dimensions.equals(G))return;const Z=this._dimensions;this._dimensions=G,this._scrollable.setScrollDimensions({width:G.width,scrollWidth:G.scrollWidth,height:G.height,scrollHeight:G.scrollHeight},!0);const ne=Z.contentWidth!==G.contentWidth,ie=Z.contentHeight!==G.contentHeight;(ne||ie)&&this._onDidContentSizeChange.fire(new ContentSizeChangedEvent(Z.contentWidth,Z.contentHeight,G.contentWidth,G.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(G){this._scrollable.setScrollPositionNow(G)}setScrollPositionSmooth(G){this._scrollable.setScrollPositionSmooth(G)}}class viewLayout_ViewLayout extends Se.a{constructor(G,Z,ne){super(),this._configuration=G;const ie=this._configuration.options,se=ie.get(129),ce=ie.get(73);this._linesLayout=new linesLayout_LinesLayout(Z,ie.get(57),ce.top,ce.bottom),this._scrollable=this._register(new viewLayout_EditorScrollable(0,ne)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new EditorScrollDimensions(se.contentWidth,0,se.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(102)?125:0)}onConfigurationChanged(G){const Z=this._configuration.options;if(G.hasChanged(57)&&this._linesLayout.setLineHeight(Z.get(57)),G.hasChanged(73)){const G=Z.get(73);this._linesLayout.setPadding(G.top,G.bottom)}if(G.hasChanged(129)){const G=Z.get(129),ne=G.contentWidth,ie=G.height,se=this._scrollable.getScrollDimensions(),ce=se.contentWidth;this._scrollable.setScrollDimensions(new EditorScrollDimensions(ne,se.contentWidth,ie,this._getContentHeight(ne,ie,ce)))}else this._updateHeight();G.hasChanged(102)&&this._configureSmoothScrollDuration()}onFlushed(G){this._linesLayout.onFlushed(G)}onLinesDeleted(G,Z){this._linesLayout.onLinesDeleted(G,Z)}onLinesInserted(G,Z){this._linesLayout.onLinesInserted(G,Z)}_getHorizontalScrollbarHeight(G,Z){const ne=this._configuration.options.get(91);return 2===ne.horizontal||G>=Z?0:ne.horizontalScrollbarSize}_getContentHeight(G,Z,ne){const ie=this._configuration.options;let se=this._linesLayout.getLinesTotalHeight();return ie.get(93)?se+=Math.max(0,Z-ie.get(57)-ie.get(73).bottom):se+=this._getHorizontalScrollbarHeight(G,ne),se}_updateHeight(){const G=this._scrollable.getScrollDimensions(),Z=G.width,ne=G.height,ie=G.contentWidth;this._scrollable.setScrollDimensions(new EditorScrollDimensions(Z,G.contentWidth,ne,this._getContentHeight(Z,ne,ie)))}getCurrentViewport(){const G=this._scrollable.getScrollDimensions(),Z=this._scrollable.getCurrentScrollPosition();return new Ht.h(Z.scrollTop,Z.scrollLeft,G.width,G.height)}getFutureViewport(){const G=this._scrollable.getScrollDimensions(),Z=this._scrollable.getFutureScrollPosition();return new Ht.h(Z.scrollTop,Z.scrollLeft,G.width,G.height)}_computeContentWidth(G){const Z=this._configuration.options,ne=Z.get(130),ie=Z.get(41);if(ne.isViewportWrapping){const ne=Z.get(129),se=Z.get(63);return G>ne.contentWidth+ie.typicalHalfwidthCharacterWidth&&se.enabled&&"right"===se.side?G+ne.verticalScrollbarWidth:G}{const ne=Z.get(92)*ie.typicalHalfwidthCharacterWidth,se=this._linesLayout.getWhitespaceMinWidth();return Math.max(G+ne,se)}}setMaxLineWidth(G){const Z=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new EditorScrollDimensions(Z.width,this._computeContentWidth(G),Z.height,Z.contentHeight)),this._updateHeight()}saveState(){const G=this._scrollable.getFutureScrollPosition();let Z=G.scrollTop,ne=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(Z);return{scrollTop:Z,scrollTopWithoutViewZones:Z-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(ne),scrollLeft:G.scrollLeft}}changeWhitespace(G){const Z=this._linesLayout.changeWhitespace(G);return Z&&this.onHeightMaybeChanged(),Z}getVerticalOffsetForLineNumber(G){return this._linesLayout.getVerticalOffsetForLineNumber(G)}isAfterLines(G){return this._linesLayout.isAfterLines(G)}isInTopPadding(G){return this._linesLayout.isInTopPadding(G)}isInBottomPadding(G){return this._linesLayout.isInBottomPadding(G)}getLineNumberAtVerticalOffset(G){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(G)}getWhitespaceAtVerticalOffset(G){return this._linesLayout.getWhitespaceAtVerticalOffset(G)}getLinesViewportData(){const G=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(G.top,G.top+G.height)}getLinesViewportDataAtScrollTop(G){const Z=this._scrollable.getScrollDimensions();return G+Z.height>Z.scrollHeight&&(G=Z.scrollHeight-Z.height),G<0&&(G=0),this._linesLayout.getLinesViewportData(G,G+Z.height)}getWhitespaceViewportData(){const G=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(G.top,G.top+G.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(G){return this._scrollable.validateScrollPosition(G)}setScrollPosition(G,Z){1===Z?this._scrollable.setScrollPositionNow(G):this._scrollable.setScrollPositionSmooth(G)}deltaScrollNow(G,Z){const ne=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:ne.scrollLeft+G,scrollTop:ne.scrollTop+Z})}}var yn=ne(397),vn=ne(117),wn=ne(2108);class CoordinatesConverter{constructor(G){this._lines=G}convertViewPositionToModelPosition(G){return this._lines.convertViewPositionToModelPosition(G.lineNumber,G.column)}convertViewRangeToModelRange(G){return this._lines.convertViewRangeToModelRange(G)}validateViewPosition(G,Z){return this._lines.validateViewPosition(G.lineNumber,G.column,Z)}validateViewRange(G,Z){return this._lines.validateViewRange(G,Z)}convertModelPositionToViewPosition(G,Z){return this._lines.convertModelPositionToViewPosition(G.lineNumber,G.column,Z)}convertModelRangeToViewRange(G,Z){return this._lines.convertModelRangeToViewRange(G,Z)}modelPositionIsVisible(G){return this._lines.modelPositionIsVisible(G.lineNumber,G.column)}getModelLineViewLineCount(G){return this._lines.getModelLineViewLineCount(G)}}class splitLinesCollection_LineNumberMapper{constructor(G){this._counts=G,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(G){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,G-1)}_ensureValid(){if(!this._isValid){for(let G=this._validEndIndex+1,Z=this._counts.length;G0?this._modelToView[G-1]:0;this._modelToView[G]=ne+Z;for(let ie=0;ie0?this._modelToView[Z-1]:0;return new wn.b(Z,G-ne)}}class splitLinesCollection_SplitLinesCollection{constructor(G,Z,ne,ie,se,ce,fe,me,ge){this._editorId=G,this.model=Z,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=ne,this._monospaceLineBreaksComputerFactory=ie,this.fontInfo=se,this.tabSize=ce,this.wrappingStrategy=fe,this.wrappingColumn=me,this.wrappingIndent=ge,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new CoordinatesConverter(this)}_constructLines(G,Z){this.lines=[],G&&(this.hiddenAreasIds=[]);const ne=this.model.getLinesContent(),ie=this.model.getInjectedTextDecorations(this._editorId),se=cn.b.fromDecorations(ie),ce=ne.length,fe=this.createLineBreaksComputer(),me=se.length;let ge=0,Ce=gethis.model.getDecorationRange(G)).sort(vt.a.compareRangesUsingStarts),xe=1,De=0,Ie=-1,Re=Ie+1=xe&&Z<=De,ie=createSplitLine(Se[G],!ne);Me[G]=ie.getViewLineCount(),this.lines[G]=ie}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new splitLinesCollection_LineNumberMapper(Me)}getHiddenAreas(){return this.hiddenAreasIds.map(G=>this.model.getDecorationRange(G))}_reduceRanges(G){if(0===G.length)return[];let Z=G.map(G=>this.model.validateRange(G)).sort(vt.a.compareRangesUsingStarts),ne=[],ie=Z[0].startLineNumber,se=Z[0].endLineNumber;for(let G=1,ce=Z.length;Gse+1?(ne.push(new vt.a(ie,1,se,1)),ie=ce.startLineNumber,se=ce.endLineNumber):ce.endLineNumber>se&&(se=ce.endLineNumber)}return ne.push(new vt.a(ie,1,se,1)),ne}setHiddenAreas(G){let Z=this._reduceRanges(G),ne=this.hiddenAreasIds.map(G=>this.model.getDecorationRange(G)).sort(vt.a.compareRangesUsingStarts);if(Z.length===ne.length){let G=!1;for(let ie=0;ie=ce&&Z<=fe?this.lines[G].isVisible()&&(this.lines[G]=this.lines[G].setVisible(!1),ne=!0):(Ce=!0,this.lines[G].isVisible()||(this.lines[G]=this.lines[G].setVisible(!0),ne=!0)),ne){let Z=this.lines[G].getViewLineCount();this.prefixSumComputer.changeValue(G,Z)}}return Ce||this.setHiddenAreas([]),!0}modelPositionIsVisible(G,Z){return!(G<1||G>this.lines.length)&&this.lines[G-1].isVisible()}getModelLineViewLineCount(G){return G<1||G>this.lines.length?1:this.lines[G-1].getViewLineCount()}setTabSize(G){return this.tabSize!==G&&(this.tabSize=G,this._constructLines(!1,null),!0)}setWrappingSettings(G,Z,ne,ie){const se=this.fontInfo.equals(G),ce=this.wrappingStrategy===Z,fe=this.wrappingColumn===ne,me=this.wrappingIndent===ie;if(se&&ce&&fe&&me)return!1;const ge=se&&ce&&!fe&&me;this.fontInfo=G,this.wrappingStrategy=Z,this.wrappingColumn=ne,this.wrappingIndent=ie;let Ce=null;if(ge){Ce=[];for(let G=0,Z=this.lines.length;G2&&!this.lines[Z-2].isVisible();let ce=1===Z?1:this.prefixSumComputer.getAccumulatedValue(Z-2)+1,fe=0,me=[],ge=[];for(let G=0,Z=ie.length;Gfe?(ge=1===Z?1:this.prefixSumComputer.getAccumulatedValue(Z-2)+1,Ce=ge+fe-1,ke=Ce+1,xe=ke+(se-fe)-1,me=!0):seZ?Z:0|G}getActiveIndentGuide(G,Z,ne){G=this._toValidViewLineNumber(G),Z=this._toValidViewLineNumber(Z),ne=this._toValidViewLineNumber(ne);const ie=this.convertViewPositionToModelPosition(G,this.getViewLineMinColumn(G)),se=this.convertViewPositionToModelPosition(Z,this.getViewLineMinColumn(Z)),ce=this.convertViewPositionToModelPosition(ne,this.getViewLineMinColumn(ne)),fe=this.model.getActiveIndentGuide(ie.lineNumber,se.lineNumber,ce.lineNumber),me=this.convertModelPositionToViewPosition(fe.startLineNumber,1),ge=this.convertModelPositionToViewPosition(fe.endLineNumber,this.model.getLineMaxColumn(fe.endLineNumber));return{startLineNumber:me.lineNumber,endLineNumber:ge.lineNumber,indent:fe.indent}}getViewLinesIndentGuides(G,Z){G=this._toValidViewLineNumber(G),Z=this._toValidViewLineNumber(Z);const ne=this.convertViewPositionToModelPosition(G,this.getViewLineMinColumn(G)),ie=this.convertViewPositionToModelPosition(Z,this.getViewLineMaxColumn(Z));let se=[],ce=[],fe=[];const me=ne.lineNumber-1,ge=ie.lineNumber-1;let Ce=null;for(let G=me;G<=ge;G++){const Z=this.lines[G];if(Z.isVisible()){let ie=Z.getViewLineNumberOfModelPosition(0,G===me?ne.column:1),se=Z.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(G+1)),ge=se-ie+1,Se=0;ge>1&&1===Z.getViewLineMinColumn(this.model,G+1,se)&&(Se=0===ie?1:2),ce.push(ge),fe.push(Se),null===Ce&&(Ce=new yt.a(G+1,0))}else null!==Ce&&(se=se.concat(this.model.getLinesIndentGuides(Ce.lineNumber,G)),Ce=null)}null!==Ce&&(se=se.concat(this.model.getLinesIndentGuides(Ce.lineNumber,ie.lineNumber)),Ce=null);const Se=Z-G+1;let Me=new Array(Se),ke=0;for(let G=0,Z=se.length;GZ&&(Me=!0,Se=Z-se+1);let ke=Ce+Se;if(ge.getViewLinesData(this.model,ie+1,Ce,ke,se-G,ne,me),se+=Se,Me)break}return me}validateViewPosition(G,Z,ne){G=this._toValidViewLineNumber(G);let ie=this.prefixSumComputer.getIndexOf(G-1),se=ie.index,ce=ie.remainder,fe=this.lines[se],me=fe.getViewLineMinColumn(this.model,se+1,ce),ge=fe.getViewLineMaxColumn(this.model,se+1,ce);Zge&&(Z=ge);let Ce=fe.getModelColumnOfViewPosition(ce,Z);return this.model.validatePosition(new yt.a(se+1,Ce)).equals(ne)?new yt.a(G,Z):this.convertModelPositionToViewPosition(ne.lineNumber,ne.column)}validateViewRange(G,Z){const ne=this.validateViewPosition(G.startLineNumber,G.startColumn,Z.getStartPosition()),ie=this.validateViewPosition(G.endLineNumber,G.endColumn,Z.getEndPosition());return new vt.a(ne.lineNumber,ne.column,ie.lineNumber,ie.column)}convertViewPositionToModelPosition(G,Z){G=this._toValidViewLineNumber(G);let ne=this.prefixSumComputer.getIndexOf(G-1),ie=ne.index,se=ne.remainder,ce=this.lines[ie].getModelColumnOfViewPosition(se,Z);return this.model.validatePosition(new yt.a(ie+1,ce))}convertViewRangeToModelRange(G){const Z=this.convertViewPositionToModelPosition(G.startLineNumber,G.startColumn),ne=this.convertViewPositionToModelPosition(G.endLineNumber,G.endColumn);return new vt.a(Z.lineNumber,Z.column,ne.lineNumber,ne.column)}convertModelPositionToViewPosition(G,Z,ne=2){const ie=this.model.validatePosition(new yt.a(G,Z)),se=ie.lineNumber,ce=ie.column;let fe=se-1,me=!1;for(;fe>0&&!this.lines[fe].isVisible();)fe--,me=!0;if(0===fe&&!this.lines[fe].isVisible())return new yt.a(1,1);const ge=1+(0===fe?0:this.prefixSumComputer.getAccumulatedValue(fe-1));let Ce;return Ce=me?this.lines[fe].getViewPositionOfModelPosition(ge,this.model.getLineMaxColumn(fe+1),ne):this.lines[se-1].getViewPositionOfModelPosition(ge,ce,ne),Ce}convertModelRangeToViewRange(G,Z=0){if(G.isEmpty()){const ne=this.convertModelPositionToViewPosition(G.startLineNumber,G.startColumn,Z);return vt.a.fromPositions(ne)}{const Z=this.convertModelPositionToViewPosition(G.startLineNumber,G.startColumn,1),ne=this.convertModelPositionToViewPosition(G.endLineNumber,G.endColumn,0);return new vt.a(Z.lineNumber,Z.column,ne.lineNumber,ne.column)}}_getViewLineNumberForModelPosition(G,Z){let ne=G-1;if(this.lines[ne].isVisible()){const G=1+(0===ne?0:this.prefixSumComputer.getAccumulatedValue(ne-1));return this.lines[ne].getViewLineNumberOfModelPosition(G,Z)}for(;ne>0&&!this.lines[ne].isVisible();)ne--;if(0===ne&&!this.lines[ne].isVisible())return 1;const ie=1+(0===ne?0:this.prefixSumComputer.getAccumulatedValue(ne-1));return this.lines[ne].getViewLineNumberOfModelPosition(ie,this.model.getLineMaxColumn(ne+1))}getAllOverviewRulerDecorations(G,Z,ne){const ie=this.model.getOverviewRulerDecorations(G,Z),se=new OverviewRulerDecorations;for(const G of ie){const Z=G.options.overviewRuler,ie=Z?Z.position:0;if(0===ie)continue;const ce=Z.getColor(ne),fe=this._getViewLineNumberForModelPosition(G.range.startLineNumber,G.range.startColumn),me=this._getViewLineNumberForModelPosition(G.range.endLineNumber,G.range.endColumn);se.accept(ce,fe,me,ie)}return se.result}getDecorationsInRange(G,Z,ne){const ie=this.convertViewPositionToModelPosition(G.startLineNumber,G.startColumn),se=this.convertViewPositionToModelPosition(G.endLineNumber,G.endColumn);if(se.lineNumber-ie.lineNumber<=G.endLineNumber-G.startLineNumber)return this.model.getDecorationsInRange(new vt.a(ie.lineNumber,1,se.lineNumber,se.column),Z,ne);let ce=[];const fe=ie.lineNumber-1,me=se.lineNumber-1;let ge=null;for(let G=fe;G<=me;G++){if(this.lines[G].isVisible())null===ge&&(ge=new yt.a(G+1,G===fe?ie.column:1));else if(null!==ge){const ie=this.model.getLineMaxColumn(G);ce=ce.concat(this.model.getDecorationsInRange(new vt.a(ge.lineNumber,ge.column,G,ie),Z,ne)),ge=null}}null!==ge&&(ce=ce.concat(this.model.getDecorationsInRange(new vt.a(ge.lineNumber,ge.column,se.lineNumber,se.column),Z,ne)),ge=null),ce.sort((G,Z)=>{const ne=vt.a.compareRangesUsingStarts(G.range,Z.range);return 0===ne?G.idZ.id?1:0:ne});let Ce=[],Se=0,Me=null;for(const G of ce){const Z=G.id;Me!==Z&&(Me=Z,Ce[Se++]=G)}return Ce}getInjectedTextAt(G){const Z=this._toValidViewLineNumber(G.lineNumber),ne=this.prefixSumComputer.getIndexOf(Z-1),ie=ne.index,se=ne.remainder;return this.lines[ie].getInjectedTextAt(se,G.column)}normalizePosition(G,Z){const ne=this._toValidViewLineNumber(G.lineNumber),ie=this.prefixSumComputer.getIndexOf(ne-1),se=ie.index,ce=ie.remainder;return this.lines[se].normalizePosition(this.model,se+1,ce,G,Z)}getLineIndentColumn(G){const Z=this._toValidViewLineNumber(G),ne=this.prefixSumComputer.getIndexOf(Z-1),ie=ne.index;return 0===ne.remainder?this.model.getLineIndentColumn(ie+1):0}}class splitLinesCollection_VisibleIdentitySplitLine{constructor(){}isVisible(){return!0}setVisible(G){return G?this:InvisibleIdentitySplitLine.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(G,Z,ne){return G.getLineContent(Z)}getViewLineLength(G,Z,ne){return G.getLineLength(Z)}getViewLineMinColumn(G,Z,ne){return G.getLineMinColumn(Z)}getViewLineMaxColumn(G,Z,ne){return G.getLineMaxColumn(Z)}getViewLineData(G,Z,ne){let ie=G.getLineTokens(Z),se=ie.getLineContent();return new Ht.e(se,!1,1,se.length+1,0,ie.inflate(),null)}getViewLinesData(G,Z,ne,ie,se,ce,fe){ce[se]?fe[se]=this.getViewLineData(G,Z,0):fe[se]=null}getModelColumnOfViewPosition(G,Z){return Z}getViewPositionOfModelPosition(G,Z){return new yt.a(G,Z)}getViewLineNumberOfModelPosition(G,Z){return G}normalizePosition(G,Z,ne,ie,se){return ie}getInjectedTextAt(G,Z){return null}}splitLinesCollection_VisibleIdentitySplitLine.INSTANCE=new splitLinesCollection_VisibleIdentitySplitLine;class InvisibleIdentitySplitLine{constructor(){}isVisible(){return!1}setVisible(G){return G?splitLinesCollection_VisibleIdentitySplitLine.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(G,Z,ne){throw new Error("Not supported")}getViewLineLength(G,Z,ne){throw new Error("Not supported")}getViewLineMinColumn(G,Z,ne){throw new Error("Not supported")}getViewLineMaxColumn(G,Z,ne){throw new Error("Not supported")}getViewLineData(G,Z,ne){throw new Error("Not supported")}getViewLinesData(G,Z,ne,ie,se,ce,fe){throw new Error("Not supported")}getModelColumnOfViewPosition(G,Z){throw new Error("Not supported")}getViewPositionOfModelPosition(G,Z){throw new Error("Not supported")}getViewLineNumberOfModelPosition(G,Z){throw new Error("Not supported")}normalizePosition(G,Z,ne,ie,se){throw new Error("Not supported")}getInjectedTextAt(G,Z){throw new Error("Not supported")}}InvisibleIdentitySplitLine.INSTANCE=new InvisibleIdentitySplitLine;class splitLinesCollection_SplitLine{constructor(G,Z){this._lineBreakData=G,this._isVisible=Z}isVisible(){return this._isVisible}setVisible(G){return this._isVisible=G,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(G){return this._lineBreakData.getInputOffsetOfOutputPosition(G,0)}getInputEndOffsetOfOutputLineIndex(G,Z,ne){return ne+1===this._lineBreakData.breakOffsets.length?G.getLineMaxColumn(Z)-1:this._lineBreakData.getInputOffsetOfOutputPosition(ne+1,0)}getViewLineContent(G,Z,ne){if(!this._isVisible)throw new Error("Not supported");const ie=ne>0?this._lineBreakData.breakOffsets[ne-1]:0,se=nenew cn.b(0,0,G+1,this._lineBreakData.injectionOptions[Z],0));ce=cn.b.applyInjectedText(G.getLineContent(Z),ne).substring(ie,se)}else ce=G.getValueInRange({startLineNumber:Z,startColumn:ie+1,endLineNumber:Z,endColumn:se+1});return ne>0&&(ce=spaces(this._lineBreakData.wrappedTextIndentLength)+ce),ce}getViewLineLength(G,Z,ne){if(!this._isVisible)throw new Error("Not supported");const ie=ne>0?this._lineBreakData.breakOffsets[ne-1]:0;let se=(ne0&&(se=this._lineBreakData.wrappedTextIndentLength+se),se}getViewLineMinColumn(G,Z,ne){if(!this._isVisible)throw new Error("Not supported");return this._getViewLineMinColumn(ne)}_getViewLineMinColumn(G){return G>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(G,Z,ne){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineLength(G,Z,ne)+1}getViewLineData(G,Z,ne){if(!this._isVisible)throw new Error("Not supported");const ie=this._lineBreakData,se=ne>0?ie.wrappedTextIndentLength:0,ce=ie.injectionOffsets,fe=ie.injectionOptions;let me,ge,Ce;if(ce){const Se=G.getLineTokens(Z).withInserted(ce.map((G,Z)=>({offset:G,text:fe[Z].content,tokenMetadata:yn.a.defaultTokenMetadata}))),Me=ne>0?ie.breakOffsets[ne-1]:0,ke=ie.breakOffsets[ne];me=Se.getLineContent().substring(Me,ke),ge=Se.sliceAndInflate(Me,ke,se),Ce=new Array;let xe=0;for(let G=0;Gke)break;if(Me0?ie.wrappedTextIndentLength:0,ce=G+Math.max(se-Me,0),fe=G+Math.min(me-Me,ke);ce!==fe&&Ce.push(new Ht.d(ce,fe,Z.inlineClassName,Z.inlineClassNameAffectsLetterSpacing))}}xe+=Z}}else{const ie=this.getInputStartOffsetOfOutputLineIndex(ne),ce=this.getInputEndOffsetOfOutputLineIndex(G,Z,ne),fe=G.getLineTokens(Z);me=G.getValueInRange({startLineNumber:Z,startColumn:ie+1,endLineNumber:Z,endColumn:ce+1}),ge=fe.sliceAndInflate(ie,ce,se),Ce=null}ne>0&&(me=spaces(ie.wrappedTextIndentLength)+me);const Se=ne>0?ie.wrappedTextIndentLength+1:1,Me=me.length+1,ke=ne+10&&(ne0&&(ce+=this._lineBreakData.wrappedTextIndentLength),new yt.a(G+se,ce)}getViewLineNumberOfModelPosition(G,Z){if(!this._isVisible)throw new Error("Not supported");return G+this._lineBreakData.getOutputPositionOfInputOffset(Z-1).outputLineIndex}normalizePosition(G,Z,ne,ie,se){if(null!==this._lineBreakData.injectionOffsets){const G=ie.lineNumber-ne,Z=this._lineBreakData.outputPositionToOffsetInUnwrappedLine(ne,ie.column-1),ce=this._lineBreakData.normalizeOffsetAroundInjections(Z,se);if(ce!==Z)return this._lineBreakData.getOutputPositionOfOffsetInUnwrappedLine(ce,se).toPosition(G,this._lineBreakData.wrappedTextIndentLength)}if(0===se){if(ne>0&&ie.column===this._getViewLineMinColumn(ne))return new yt.a(ie.lineNumber-1,this.getViewLineMaxColumn(G,Z,ne-1))}else if(1===se){if(ne=Cn.length)for(let Z=1;Z<=G;Z++)Cn[Z]=_makeSpaces(Z);return Cn[G]}function _makeSpaces(G){return new Array(G+1).join(" ")}function createSplitLine(G,Z){return null===G?Z?splitLinesCollection_VisibleIdentitySplitLine.INSTANCE:InvisibleIdentitySplitLine.INSTANCE:new splitLinesCollection_SplitLine(G,Z)}class IdentityCoordinatesConverter{constructor(G){this._lines=G}_validPosition(G){return this._lines.model.validatePosition(G)}_validRange(G){return this._lines.model.validateRange(G)}convertViewPositionToModelPosition(G){return this._validPosition(G)}convertViewRangeToModelRange(G){return this._validRange(G)}validateViewPosition(G,Z){return this._validPosition(Z)}validateViewRange(G,Z){return this._validRange(Z)}convertModelPositionToViewPosition(G){return this._validPosition(G)}convertModelRangeToViewRange(G){return this._validRange(G)}modelPositionIsVisible(G){const Z=this._lines.model.getLineCount();return!(G.lineNumber<1||G.lineNumber>Z)}getModelLineViewLineCount(G){return 1}}class splitLinesCollection_IdentityLinesCollection{constructor(G){this.model=G}dispose(){}createCoordinatesConverter(){return new IdentityCoordinatesConverter(this)}getHiddenAreas(){return[]}setHiddenAreas(G){return!1}setTabSize(G){return!1}setWrappingSettings(G,Z,ne,ie){return!1}createLineBreaksComputer(){let G=[];return{addRequest:(Z,ne,ie)=>{G.push(null)},finalize:()=>G}}onModelFlushed(){}onModelLinesDeleted(G,Z,ne){return new ViewLinesDeletedEvent(Z,ne)}onModelLinesInserted(G,Z,ne,ie){return new ViewLinesInsertedEvent(Z,ne)}onModelLineChanged(G,Z,ne){return[!1,new ViewLinesChangedEvent(Z,Z),null,null]}acceptVersionId(G){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(G,Z,ne){return{startLineNumber:G,endLineNumber:G,indent:0}}getViewLinesIndentGuides(G,Z){const ne=Z-G+1;let ie=new Array(ne);for(let G=0;G=Z)return void(ne>ce&&(se[se.length-1]=ne));se.push(ie,Z,ne)}else this.result[G]=[ie,Z,ne]}}class viewModelDecorations_ViewModelDecorations{constructor(G,Z,ne,ie,se){this.editorId=G,this.model=Z,this.configuration=ne,this._linesCollection=ie,this._coordinatesConverter=se,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(G){const Z=G.id;let ne=this._decorationsCache[Z];if(!ne){const ie=G.range,se=G.options;let ce;if(se.isWholeLine){const G=this._coordinatesConverter.convertModelPositionToViewPosition(new yt.a(ie.startLineNumber,1),0),Z=this._coordinatesConverter.convertModelPositionToViewPosition(new yt.a(ie.endLineNumber,this.model.getLineMaxColumn(ie.endLineNumber)),1);ce=new vt.a(G.lineNumber,G.column,Z.lineNumber,Z.column)}else ce=this._coordinatesConverter.convertModelRangeToViewRange(ie,1);ne=new Ht.g(ce,se),this._decorationsCache[Z]=ne}return ne}getDecorationsViewportData(G){let Z=null!==this._cachedModelDecorationsResolver;return Z=Z&&G.equalsRange(this._cachedModelDecorationsResolverViewRange),Z||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(G),this._cachedModelDecorationsResolverViewRange=G),this._cachedModelDecorationsResolver}_getDecorationsViewportData(G){const Z=this._linesCollection.getDecorationsInRange(G,this.editorId,Object(ut.m)(this.configuration.options)),ne=G.startLineNumber,ie=G.endLineNumber;let se=[],ce=0,fe=[];for(let G=ne;G<=ie;G++)fe[G-ne]=[];for(let G=0,me=Z.length;Gthis.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new it.e(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new splitLinesCollection_IdentityLinesCollection(this.model);else{const G=this._configuration.options,Z=G.get(41),ne=G.get(123),ce=G.get(130),fe=G.get(122);this._lines=new splitLinesCollection_SplitLinesCollection(this._editorId,this.model,ie,se,Z,this.model.getOptions().tabSize,ne,ce.wrappingColumn,fe)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new cursor_CursorsController(ne,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new viewLayout_ViewLayout(this._configuration,this.getLineCount(),ce)),this._register(this.viewLayout.onDidScroll(G=>{G.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new ViewScrollChangedEvent(G)),this._eventDispatcher.emitOutgoingEvent(new ScrollChangedEvent(G.oldScrollWidth,G.oldScrollLeft,G.oldScrollHeight,G.oldScrollTop,G.scrollWidth,G.scrollLeft,G.scrollHeight,G.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(G=>{this._eventDispatcher.emitOutgoingEvent(G)})),this._decorations=new viewModelDecorations_ViewModelDecorations(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(G=>{try{const Z=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(Z,G)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(minimapTokensColorTracker_MinimapTokensColorTracker.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new ViewTokensColorsChangedEvent)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(G){this._eventDispatcher.addViewEventHandler(G)}removeViewEventHandler(G){this._eventDispatcher.removeViewEventHandler(G)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const G=this.viewLayout.getLinesViewportData(),Z=this.coordinatesConverter.convertViewPositionToModelPosition(new yt.a(G.startLineNumber,1)),ne=this.coordinatesConverter.convertViewPositionToModelPosition(new yt.a(G.endLineNumber,1));this.model.tokenizeViewport(Z.lineNumber,ne.lineNumber)}setHasFocus(G){this._hasFocus=G,this._cursor.setHasFocus(G),this._eventDispatcher.emitSingleViewEvent(new ViewFocusChangedEvent(G)),this._eventDispatcher.emitOutgoingEvent(new FocusChangedEvent(!G,G))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new ViewCompositionStartEvent)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new ViewCompositionEndEvent)}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new ViewThemeChangedEvent)}_onConfigurationChanged(G,Z){let ne=null;if(-1!==this._viewportStartLine){let G=new yt.a(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));ne=this.coordinatesConverter.convertViewPositionToModelPosition(G)}let ie=!1;const se=this._configuration.options,ce=se.get(41),fe=se.get(123),me=se.get(130),ge=se.get(122);if(this._lines.setWrappingSettings(ce,fe,me.wrappingColumn,ge)&&(G.emitViewEvent(new ViewFlushedEvent),G.emitViewEvent(new ViewLineMappingChangedEvent),G.emitViewEvent(new ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(G),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(ie=!0),this._updateConfigurationViewLineCount.schedule()),Z.hasChanged(79)&&(this._decorations.reset(),G.emitViewEvent(new ViewDecorationsChangedEvent(null))),G.emitViewEvent(new ViewConfigurationChangedEvent(Z)),this.viewLayout.onConfigurationChanged(Z),ie&&ne){const G=this.coordinatesConverter.convertModelPositionToViewPosition(ne),Z=this.viewLayout.getVerticalOffsetForLineNumber(G.lineNumber);this.viewLayout.setScrollPosition({scrollTop:Z+this._viewportStartLineDelta},1)}wt.b.shouldRecreate(Z)&&(this.cursorConfig=new wt.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(G=>{try{const Z=this._eventDispatcher.beginEmitViewEvents();let ne=!1,ie=!1;const se=G.changes,ce=G instanceof cn.d?G.versionId:null,fe=this._lines.createLineBreaksComputer();for(const G of se)switch(G.changeType){case 4:for(let Z=0;Z!G.ownerId||G.ownerId===this._editorId)),fe.addRequest(ne,ie,null)}break;case 2:{let Z=null;G.injectedText&&(Z=G.injectedText.filter(G=>!G.ownerId||G.ownerId===this._editorId)),fe.addRequest(G.detail,Z,null);break}}const me=fe.finalize();let ge=0;for(const G of se)switch(G.changeType){case 1:this._lines.onModelFlushed(),Z.emitViewEvent(new ViewFlushedEvent),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),ne=!0;break;case 3:{const ie=this._lines.onModelLinesDeleted(ce,G.fromLineNumber,G.toLineNumber);null!==ie&&(Z.emitViewEvent(ie),this.viewLayout.onLinesDeleted(ie.fromLineNumber,ie.toLineNumber)),ne=!0;break}case 4:{const ie=me.slice(ge,ge+G.detail.length);ge+=G.detail.length;const se=this._lines.onModelLinesInserted(ce,G.fromLineNumber,G.toLineNumber,ie);null!==se&&(Z.emitViewEvent(se),this.viewLayout.onLinesInserted(se.fromLineNumber,se.toLineNumber)),ne=!0;break}case 2:{const ne=me[ge];ge++;const[se,fe,Ce,Se]=this._lines.onModelLineChanged(ce,G.lineNumber,ne);ie=se,fe&&Z.emitViewEvent(fe),Ce&&(Z.emitViewEvent(Ce),this.viewLayout.onLinesInserted(Ce.fromLineNumber,Ce.toLineNumber)),Se&&(Z.emitViewEvent(Se),this.viewLayout.onLinesDeleted(Se.fromLineNumber,Se.toLineNumber));break}}null!==ce&&this._lines.acceptVersionId(ce),this.viewLayout.onHeightMaybeChanged(),!ne&&ie&&(Z.emitViewEvent(new ViewLineMappingChangedEvent),Z.emitViewEvent(new ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(Z),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const G=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(G){const Z=this.coordinatesConverter.convertModelPositionToViewPosition(G.getStartPosition()),ne=this.viewLayout.getVerticalOffsetForLineNumber(Z.lineNumber);this.viewLayout.setScrollPosition({scrollTop:ne+this._viewportStartLineDelta},1)}}try{const Z=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(Z,G)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(G=>{let Z=[];for(let ne=0,ie=G.ranges.length;ne{this._eventDispatcher.emitSingleViewEvent(new ViewLanguageConfigurationEvent),this.cursorConfig=new wt.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(G=>{this.cursorConfig=new wt.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(G=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const G=this._eventDispatcher.beginEmitViewEvents();G.emitViewEvent(new ViewFlushedEvent),G.emitViewEvent(new ViewLineMappingChangedEvent),G.emitViewEvent(new ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(G),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new wt.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(G=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new ViewDecorationsChangedEvent(G))}))}setHiddenAreas(G){try{const Z=this._eventDispatcher.beginEmitViewEvents();this._lines.setHiddenAreas(G)&&(Z.emitViewEvent(new ViewFlushedEvent),Z.emitViewEvent(new ViewLineMappingChangedEvent),Z.emitViewEvent(new ViewDecorationsChangedEvent(null)),this._cursor.onLineMappingChanged(Z),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){const G=this._configuration.options.get(129),Z=this._configuration.options.get(57),ne=Math.max(20,Math.round(G.height/Z)),ie=this.viewLayout.getLinesViewportData(),se=Math.max(1,ie.completelyVisibleStartLineNumber-ne),ce=Math.min(this.getLineCount(),ie.completelyVisibleEndLineNumber+ne);return this._toModelVisibleRanges(new vt.a(se,this.getLineMinColumn(se),ce,this.getLineMaxColumn(ce)))}getVisibleRanges(){const G=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(G)}_toModelVisibleRanges(G){const Z=this.coordinatesConverter.convertViewRangeToModelRange(G),ne=this._lines.getHiddenAreas();if(0===ne.length)return[Z];let ie=[],se=0,ce=Z.startLineNumber,fe=Z.startColumn,me=Z.endLineNumber,ge=Z.endColumn;for(let G=0,Z=ne.length;Gme||(ceG.toInlineDecoration(Z))]),new Ht.f(ce.minColumn,ce.maxColumn,ce.content,ce.continuesWithWrappedLine,ne,ie,ce.tokens,fe,se,ce.startVisibleColumn)}getViewLineData(G){return this._lines.getViewLineData(G)}getMinimapLinesRenderingData(G,Z,ne){let ie=this._lines.getViewLinesData(G,Z,ne);return new Ht.c(this.getTabSize(),ie)}getAllOverviewRulerDecorations(G){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object(ut.m)(this._configuration.options),G)}invalidateOverviewRulerColorCache(){const G=this.model.getOverviewRulerDecorations();for(const Z of G){const G=Z.options.overviewRuler;G&&G.invalidateCachedColor()}}invalidateMinimapColorCache(){const G=this.model.getAllDecorations();for(const Z of G){const G=Z.options.minimap;G&&G.invalidateCachedColor()}}getValueInRange(G,Z){const ne=this.coordinatesConverter.convertViewRangeToModelRange(G);return this.model.getValueInRange(ne,Z)}getModelLineMaxColumn(G){return this.model.getLineMaxColumn(G)}validateModelPosition(G){return this.model.validatePosition(G)}validateModelRange(G){return this.model.validateRange(G)}deduceModelPositionRelativeToViewPosition(G,Z,ne){const ie=this.coordinatesConverter.convertViewPositionToModelPosition(G);2===this.model.getEOL().length&&(Z<0?Z-=ne:Z+=ne);const se=this.model.getOffsetAt(ie)+Z;return this.model.getPositionAt(se)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(G,Z,ne){const ie=ne?"\r\n":this.model.getEOL();(G=G.slice(0)).sort(vt.a.compareRangesUsingStarts);let se=!1,ce=!1;for(const Z of G)Z.isEmpty()?se=!0:ce=!0;if(!ce){if(!Z)return"";const ne=G.map(G=>G.startLineNumber);let se="";for(let G=0;G0&&ne[G-1]===ne[G]||(se+=this.model.getLineContent(ne[G])+ie);return se}if(se&&Z){let Z=[],ie=0;for(const se of G){const G=se.startLineNumber;se.isEmpty()?G!==ie&&Z.push(this.model.getLineContent(G)):Z.push(this.model.getValueInRange(se,ne?2:0)),ie=G}return 1===Z.length?Z[0]:Z}let fe=[];for(const Z of G)Z.isEmpty()||fe.push(this.model.getValueInRange(Z,ne?2:0));return 1===fe.length?fe[0]:fe}getRichTextToCopy(G,Z){const ne=this.model.getLanguageIdentifier();if(1===ne.id)return null;if(1!==G.length)return null;let ie=G[0];if(ie.isEmpty()){if(!Z)return null;const G=ie.startLineNumber;ie=new vt.a(G,this.model.getLineMinColumn(G),G,this.model.getLineMaxColumn(G))}const se=this._configuration.options.get(41),ce=this._getColorMap();let fe;if(/[:;\\\/<>]/.test(se.fontFamily)||se.fontFamily===ut.c.fontFamily)fe=ut.c.fontFamily;else{fe=se.fontFamily,fe=fe.replace(/"/g,"'");if(!/[,']/.test(fe)){/[+ ]/.test(fe)&&(fe=`'${fe}'`)}fe=`${fe}, ${ut.c.fontFamily}`}return{mode:ne.language,html:`
`+this._getHTMLToCopy(ie,ce)+"
"}}_getHTMLToCopy(G,Z){const ne=G.startLineNumber,ie=G.startColumn,se=G.endLineNumber,ce=G.endColumn,fe=this.getTabSize();let me="";for(let G=ne;G<=se;G++){const ge=this.model.getLineTokens(G),Ce=ge.getLineContent(),Se=G===ne?ie-1:0,Me=G===se?ce-1:Ce.length;me+=""===Ce?"
":Object(gn.a)(Ce,ge.inflate(),Z,Se,Me,fe,ze.j)}return me}_getColorMap(){let G=Ft.F.getColorMap(),Z=["#000000"];if(G)for(let ne=1,ie=G.length;nethis._cursor.setStates(ie,G,Z,ne))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(G){this._cursor.setCursorColumnSelectData(G)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(G){this._cursor.setPrevEditOperationType(G)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(G,Z,ne=0){this._withViewEventsCollector(ie=>this._cursor.setSelections(ie,G,Z,ne))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(G){this._withViewEventsCollector(Z=>this._cursor.restoreState(Z,G))}_executeCursorEdit(G){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new ReadOnlyEditAttemptEvent):this._withViewEventsCollector(G)}executeEdits(G,Z,ne){this._executeCursorEdit(ie=>this._cursor.executeEdits(ie,G,Z,ne))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(G=>this._cursor.startComposition(G))}endComposition(G){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(Z=>this._cursor.endComposition(Z,G))}type(G,Z){this._executeCursorEdit(ne=>this._cursor.type(ne,G,Z))}compositionType(G,Z,ne,ie,se){this._executeCursorEdit(ce=>this._cursor.compositionType(ce,G,Z,ne,ie,se))}paste(G,Z,ne,ie){this._executeCursorEdit(se=>this._cursor.paste(se,G,Z,ne,ie))}cut(G){this._executeCursorEdit(Z=>this._cursor.cut(Z,G))}executeCommand(G,Z){this._executeCursorEdit(ne=>this._cursor.executeCommand(ne,G,Z))}executeCommands(G,Z){this._executeCursorEdit(ne=>this._cursor.executeCommands(ne,G,Z))}revealPrimaryCursor(G,Z){this._withViewEventsCollector(ne=>this._cursor.revealPrimary(ne,G,Z,0))}revealTopMostCursor(G){const Z=this._cursor.getTopMostViewPosition(),ne=new vt.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column);this._withViewEventsCollector(Z=>Z.emitViewEvent(new ViewRevealRangeRequestEvent(G,ne,null,0,!0,0)))}revealBottomMostCursor(G){const Z=this._cursor.getBottomMostViewPosition(),ne=new vt.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column);this._withViewEventsCollector(Z=>Z.emitViewEvent(new ViewRevealRangeRequestEvent(G,ne,null,0,!0,0)))}revealRange(G,Z,ne,ie,se){this._withViewEventsCollector(ce=>ce.emitViewEvent(new ViewRevealRangeRequestEvent(G,ne,null,ie,Z,se)))}getVerticalOffsetForLineNumber(G){return this.viewLayout.getVerticalOffsetForLineNumber(G)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(G,Z){this.viewLayout.setScrollPosition({scrollTop:G},Z)}setScrollPosition(G,Z){this.viewLayout.setScrollPosition(G,Z)}deltaScrollNow(G,Z){this.viewLayout.deltaScrollNow(G,Z)}changeWhitespace(G){this.viewLayout.changeWhitespace(G)&&(this._eventDispatcher.emitSingleViewEvent(new ViewZonesChangedEvent),this._eventDispatcher.emitOutgoingEvent(new viewModelEventDispatcher_ViewZonesChangedEvent))}setMaxLineWidth(G){this.viewLayout.setMaxLineWidth(G)}_withViewEventsCollector(G){try{G(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(G,Z){return this._lines.normalizePosition(G,Z)}getLineIndentColumn(G){return this._lines.getLineIndentColumn(G)}}var On=ne(98),Mn=ne(26),kn=ne(60),xn=ne(904),Tn=ne(193),Dn=ne(295),En=ne(54),jn=ne(577);class monospaceLineBreaksComputer_WrappingCharacterClassifier extends jn.a{constructor(G,Z){super(0);for(let Z=0;Z=0&&G<256?this._asciiMap[G]:G>=12352&&G<=12543||G>=13312&&G<=19903||G>=19968&&G<=40959?3:this._map.get(G)||this._defaultValue}}let Pn=[],Nn=[];class MonospaceLineBreaksComputerFactory{constructor(G,Z){this.classifier=new monospaceLineBreaksComputer_WrappingCharacterClassifier(G,Z)}static create(G){return new MonospaceLineBreaksComputerFactory(G.get(118),G.get(117))}createLineBreaksComputer(G,Z,ne,ie){Z|=0,ne=+ne;const se=[],ce=[],fe=[];return{addRequest:(G,Z,ne)=>{se.push(G),ce.push(Z),fe.push(ne)},finalize:()=>{const me=G.typicalFullwidthCharacterWidth/G.typicalHalfwidthCharacterWidth;let ge=[];for(let G=0,Ce=se.length;G=0){let G=Math.abs(Ce[Je]-ze);for(;Je+1<$e;){const Z=Math.abs(Ce[Je+1]-ze);if(Z>=G)break;G=Z,Je++}}for(;Je<$e;){let Z=Je<0?0:ge[Je],se=Je<0?0:Ce[Je];Ie>Z&&(Z=Ie,se=Re);let fe=0,Se=0,it=0,ot=0;if(se<=ze){let Re=se,$e=0===Z?0:ne.charCodeAt(Z-1),Je=0===Z?0:G.get($e),at=!0;for(let se=Z;seIe&&canBreak($e,Je,me,ge)&&(fe=Z,Se=Re),Re+=Ce,Re>ze){Z>Ie?(it=Z,ot=Re-Ce):(it=se+1,ot=Re),Re-Se>Me&&(fe=0),at=!1;break}$e=me,Je=ge}if(at){De>0&&(ke[De]=ge[ge.length-1],xe[De]=Ce[ge.length-1],De++);break}}if(0===fe){let me=se,ge=ne.charCodeAt(Z),Ce=G.get(ge),ke=!1;for(let ie=Z-1;ie>=Ie;ie--){const Z=ie+1,se=ne.charCodeAt(ie);if(9===se){ke=!0;break}let xe,De;if(Lt.G(se)?(ie--,xe=0,De=2):(xe=G.get(se),De=Lt.E(se)?ce:1),me<=ze){if(0===it&&(it=Z,ot=me),me<=ze-Me)break;if(canBreak(se,xe,ge,Ce)){fe=Z,Se=me;break}}me-=De,ge=se,Ce=xe}if(0!==fe){const G=Me-(ot-Se);if(G<=ie){const Z=ne.charCodeAt(it);let se;se=Lt.F(Z)?2:computeCharWidth(Z,ot,ie,ce),G-se<0&&(fe=0)}}if(ke){Je--;continue}}if(0===fe&&(fe=it,Se=ot),fe<=Ie){const G=ne.charCodeAt(Ie);Lt.F(G)?(fe=Ie+2,Se=Re+2):(fe=Ie+1,Se=Re+computeCharWidth(G,Re,ie,ce))}for(Ie=fe,ke[De]=fe,Re=Se,xe[De]=Se,De++,ze=Se+Me;Je<0||Je<$e&&Ce[Je]=at)break;at=G,Je++}}return 0===De?null:(ke.length=De,xe.length=De,Pn=Z.breakOffsets,Nn=Z.breakOffsetsVisibleColumn,Z.breakOffsets=ke,Z.breakOffsetsVisibleColumn=xe,Z.wrappedTextIndentLength=Se,Z)}function createLineBreaks(G,Z,ne,ie,se,ce,fe){const me=cn.b.applyInjectedText(Z,ne);let ge,Ce;if(ne&&ne.length>0?(ge=ne.map(G=>G.options),Ce=ne.map(G=>G.column-1)):(ge=null,Ce=null),-1===se)return ge?new Ht.b([me.length],[],0,Ce,ge):null;const Se=me.length;if(Se<=1)return ge?new Ht.b([me.length],[],0,Ce,ge):null;const Me=computeWrappedTextIndentLength(me,ie,se,ce,fe),ke=se-Me;let xe=[],De=[],Ie=0,Re=0,ze=0,$e=se,Je=me.charCodeAt(0),it=G.get(Je),ot=computeCharWidth(Je,0,ie,ce),at=1;Lt.F(Je)&&(ot+=1,Je=me.charCodeAt(1),it=G.get(Je),at++);for(let Z=at;Z$e&&((0===Re||ot-ze>ke)&&(Re=ne,ze=ot-ge),xe[Ie]=Re,De[Ie]=ze,Ie++,$e=ze+ke,Re=0),Je=se,it=fe}return 0!==Ie||ne&&0!==ne.length?(xe[Ie]=Se,De[Ie]=ot,new Ht.b(xe,De,Me,Ce,ge)):null}function computeCharWidth(G,Z,ne,ie){return 9===G?ne-Z%ne:Lt.E(G)||G<32?ie:1}function tabCharacterWidth(G,Z){return Z-G%Z}function canBreak(G,Z,ne,ie){return 32!==ne&&(2===Z||3===Z&&2!==ie||1===ie||3===ie&&1!==Z)}function computeWrappedTextIndentLength(G,Z,ne,ie,se){let ce=0;if(0!==se){const fe=Lt.v(G);if(-1!==fe){for(let ne=0;nene&&(ce=0)}}return ce}var qn;const Wn=null===(qn=window.trustedTypes)||void 0===qn?void 0:qn.createPolicy("domLineBreaksComputer",{createHTML:G=>G});class DOMLineBreaksComputerFactory{static create(){return new DOMLineBreaksComputerFactory}constructor(){}createLineBreaksComputer(G,Z,ne,ie){Z|=0,ne=+ne;let se=[],ce=[];return{addRequest:(G,Z,ne)=>{se.push(G),ce.push(Z)},finalize:()=>function domLineBreaksComputer_createLineBreaks(G,Z,ne,ie,se,ce){var fe;function createEmptyLineBreakWithPossiblyInjectedText(Z){const ne=ce[Z];if(ne){const ie=cn.b.applyInjectedText(G[Z],ne),se=ne.map(G=>G.options),ce=ne.map(G=>G.column-1);return new Ht.b([ie.length],[],0,ce,se)}return null}if(-1===ie){const Z=[];for(let ne=0,ie=G.length;neme?(ge=0,ke=0):Re=me-G}const ze=fe.substr(ge),$e=renderLine(ze,ke,ne,Re,Ce);Se[ie]=ge,Me[ie]=ke,xe[ie]=ze,De[ie]=$e[0],Ie[ie]=$e[1]}const Re=Ce.build(),ze=null!==(fe=null==Wn?void 0:Wn.createHTML(Re))&&void 0!==fe?fe:Re;ge.innerHTML=ze,ge.style.position="absolute",ge.style.top="10000",ge.style.wordWrap="break-word",document.body.appendChild(ge);let $e=document.createRange();const Je=Array.prototype.slice.call(ge.children,0);let it=[];for(let Z=0;ZG.options),Ce=ke.map(G=>G.column-1)):(ge=null,Ce=null),it[Z]=new Ht.b(ne,me,se,Ce,ge)}return document.body.removeChild(ge),it}(se,G,Z,ne,ie,ce)}}}function renderLine(G,Z,ne,ie,se){se.appendASCIIString('
');const ce=G.length;let fe=Z,me=0,ge=[],Ce=[],Se=0");for(let Z=0;Z"),ge[Z]=me,Ce[Z]=fe;const ie=Se;Se=Z+1"),ge[G.length]=me,Ce[G.length]=fe,se.appendASCIIString("
"),[ge,Ce]}function readLineBreaks(G,Z,ne,ie){if(ne.length<=1)return null;const se=Array.prototype.slice.call(Z.children,0),ce=[];try{!function discoverBreaks(G,Z,ne,ie,se,ce,fe,me){if(ie===ce)return;if(se=se||readClientRect(G,Z,ne[ie],ne[ie+1]),fe=fe||readClientRect(G,Z,ne[ce],ne[ce+1]),Math.abs(se[0].top-fe[0].top)<=.1)return;if(ie+1===ce)return void me.push(ce);const ge=ie+(ce-ie)/2|0,Ce=readClientRect(G,Z,ne[ge],ne[ge+1]);discoverBreaks(G,Z,ne,ie,se,ge,Ce,me),discoverBreaks(G,Z,ne,ge,Ce,ce,fe,me)}(G,se,ie,0,null,ne.length-1,null,ce)}catch(G){return console.log(G),null}return 0===ce.length?null:(ce.push(ne.length),ce)}function readClientRect(G,Z,ne,ie){return G.setStart(Z[ne/16384|0].firstChild,ne%16384),G.setEnd(Z[ie/16384|0].firstChild,ie%16384),G.getClientRects()}var Bn=ne(580),codeEditorWidget_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},codeEditorWidget_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Hn=0;class codeEditorWidget_ModelData{constructor(G,Z,ne,ie,se){this.model=G,this.viewModel=Z,this.view=ne,this.hasRealView=ie,this.listenersToRemove=se}dispose(){Object(Se.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let $n=class CodeEditorWidget extends Se.a{constructor(G,Z,ne,ie,ce,fe,me,Se,Me,ke){super(),this._onDidDispose=this._register(new Ce.b),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new Ce.b),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new Ce.b),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new Ce.b),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new Ce.b),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new Ce.b),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new Ce.b),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new Ce.b),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new Ce.b),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new Ce.b),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new Ce.b),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new Ce.b),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new codeEditorWidget_BooleanEventEmitter),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new codeEditorWidget_BooleanEventEmitter),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new Ce.b),this.onWillType=this._onWillType.event,this._onDidType=this._register(new Ce.b),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new Ce.b),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new Ce.b),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new Ce.b),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new Ce.b),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new Ce.b),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new Ce.b),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new Ce.b),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new Ce.b),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new Ce.b),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new Ce.b),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new Ce.b),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new Ce.b),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new Ce.b),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new Ce.b),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new Ce.b),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new Ce.b),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new Ce.b),this.onDidChangeViewZones=this._onDidChangeViewZones.event;const xe=Object.assign({},Z);let De;this._domElement=G,this._overflowWidgetsDomNode=xe.overflowWidgetsDomNode,delete xe.overflowWidgetsDomNode,this._id=++Hn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=ne.isSimpleWidget||!1,this._telemetryData=ne.telemetryData,this._configuration=this._register(this._createConfiguration(xe,ke)),this._register(this._configuration.onDidChange(G=>{this._onDidChangeConfiguration.fire(G);const Z=this._configuration.options;if(G.hasChanged(129)){const G=Z.get(129);this._onDidLayoutChange.fire(G)}})),this._contextKeyService=this._register(me.createScoped(this._domElement)),this._notificationService=Me,this._codeEditorService=ce,this._commandService=fe,this._themeService=Se,this._register(new codeEditorWidget_EditorContextKeysManager(this,this._contextKeyService)),this._register(new codeEditorWidget_EditorModeContext(this,this._contextKeyService)),this._instantiationService=ie.createChild(new xn.a([Mn.b,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new codeEditorWidget_CodeEditorWidgetFocusTracker(G),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},De=Array.isArray(ne.contributions)?ne.contributions:se.d.getEditorContributions();for(const G of De)if(this._contributions[G.id])Object(ge.e)(new Error("Cannot have two contributions with the same id "+G.id));else try{const Z=this._instantiationService.createInstance(G.ctor,this);this._contributions[G.id]=Z}catch(G){Object(ge.e)(G)}se.d.getEditorActions().forEach(G=>{if(this._actions[G.id])return void Object(ge.e)(new Error("Cannot have two actions with the same id "+G.id));const Z=new dn.a(G.id,G.label,G.alias,Object(En.o)(G.precondition),()=>this._instantiationService.invokeFunction(Z=>Promise.resolve(G.runEditorCommand(Z,this,null))),this._contextKeyService);this._actions[Z.id]=Z}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(G,Z){return new ke.a(this.isSimpleWidget,G,this._domElement,Z)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return mn.a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const G=Object.keys(this._contributions);for(let Z=0,ne=G.length;Zvt.a.lift(G)))}getVisibleColumnFromPosition(G){if(!this._modelData)return G.column;const Z=this._modelData.model.validatePosition(G),ne=this._modelData.model.getOptions().tabSize;return wt.a.visibleColumnFromColumn(this._modelData.model.getLineContent(Z.lineNumber),Z.column,ne)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(G){if(this._modelData){if(!yt.a.isIPosition(G))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:G.lineNumber,selectionStartColumn:G.column,positionLineNumber:G.lineNumber,positionColumn:G.column}])}}_sendRevealRange(G,Z,ne,ie){if(!this._modelData)return;if(!vt.a.isIRange(G))throw new Error("Invalid arguments");const se=this._modelData.model.validateRange(G),ce=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(se);this._modelData.viewModel.revealRange("api",ne,ce,Z,ie)}revealLine(G,Z=0){this._revealLine(G,0,Z)}revealLineInCenter(G,Z=0){this._revealLine(G,1,Z)}revealLineInCenterIfOutsideViewport(G,Z=0){this._revealLine(G,2,Z)}revealLineNearTop(G,Z=0){this._revealLine(G,5,Z)}_revealLine(G,Z,ne){if("number"!=typeof G)throw new Error("Invalid arguments");this._sendRevealRange(new vt.a(G,1,G,1),Z,!1,ne)}revealPosition(G,Z=0){this._revealPosition(G,0,!0,Z)}revealPositionInCenter(G,Z=0){this._revealPosition(G,1,!0,Z)}revealPositionInCenterIfOutsideViewport(G,Z=0){this._revealPosition(G,2,!0,Z)}revealPositionNearTop(G,Z=0){this._revealPosition(G,5,!0,Z)}_revealPosition(G,Z,ne,ie){if(!yt.a.isIPosition(G))throw new Error("Invalid arguments");this._sendRevealRange(new vt.a(G.lineNumber,G.column,G.lineNumber,G.column),Z,ne,ie)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(G){const Z=Ie.a.isISelection(G),ne=vt.a.isIRange(G);if(!Z&&!ne)throw new Error("Invalid arguments");if(Z)this._setSelectionImpl(G);else if(ne){const Z={selectionStartLineNumber:G.startLineNumber,selectionStartColumn:G.startColumn,positionLineNumber:G.endLineNumber,positionColumn:G.endColumn};this._setSelectionImpl(Z)}}_setSelectionImpl(G){if(!this._modelData)return;const Z=new Ie.a(G.selectionStartLineNumber,G.selectionStartColumn,G.positionLineNumber,G.positionColumn);this._modelData.viewModel.setSelections("api",[Z])}revealLines(G,Z,ne=0){this._revealLines(G,Z,0,ne)}revealLinesInCenter(G,Z,ne=0){this._revealLines(G,Z,1,ne)}revealLinesInCenterIfOutsideViewport(G,Z,ne=0){this._revealLines(G,Z,2,ne)}revealLinesNearTop(G,Z,ne=0){this._revealLines(G,Z,5,ne)}_revealLines(G,Z,ne,ie){if("number"!=typeof G||"number"!=typeof Z)throw new Error("Invalid arguments");this._sendRevealRange(new vt.a(G,1,Z,1),ne,!1,ie)}revealRange(G,Z=0,ne=!1,ie=!0){this._revealRange(G,ne?1:0,ie,Z)}revealRangeInCenter(G,Z=0){this._revealRange(G,1,!0,Z)}revealRangeInCenterIfOutsideViewport(G,Z=0){this._revealRange(G,2,!0,Z)}revealRangeNearTop(G,Z=0){this._revealRange(G,5,!0,Z)}revealRangeNearTopIfOutsideViewport(G,Z=0){this._revealRange(G,6,!0,Z)}revealRangeAtTop(G,Z=0){this._revealRange(G,3,!0,Z)}_revealRange(G,Z,ne,ie){if(!vt.a.isIRange(G))throw new Error("Invalid arguments");this._sendRevealRange(vt.a.lift(G),Z,ne,ie)}setSelections(G,Z="api",ne=0){if(this._modelData){if(!G||0===G.length)throw new Error("Invalid arguments");for(let Z=0,ne=G.length;ZG.isSupported()),G}getAction(G){return this._actions[G]||null}trigger(G,Z,ne){switch(ne=ne||{},Z){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(G);case"type":{const Z=ne;return void this._type(G,Z.text||"")}case"replacePreviousChar":{const Z=ne;return void this._compositionType(G,Z.text||"",Z.replaceCharCnt||0,0,0)}case"compositionType":{const Z=ne;return void this._compositionType(G,Z.text||"",Z.replacePrevCharCnt||0,Z.replaceNextCharCnt||0,Z.positionDelta||0)}case"paste":{const Z=ne;return void this._paste(G,Z.text||"",Z.pasteOnNewLine||!1,Z.multicursorText||null,Z.mode||null)}case"cut":return void this._cut(G)}const ie=this.getAction(Z);ie?Promise.resolve(ie.run()).then(void 0,ge.e):this._modelData&&(this._triggerEditorCommand(G,Z,ne)||this._triggerCommand(Z,ne))}_triggerCommand(G,Z){this._commandService.executeCommand(G,Z)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(G){this._modelData&&(this._modelData.viewModel.endComposition(G),this._onDidCompositionEnd.fire())}_type(G,Z){this._modelData&&0!==Z.length&&("keyboard"===G&&this._onWillType.fire(Z),this._modelData.viewModel.type(Z,G),"keyboard"===G&&this._onDidType.fire(Z))}_compositionType(G,Z,ne,ie,se){this._modelData&&this._modelData.viewModel.compositionType(Z,ne,ie,se,G)}_paste(G,Z,ne,ie,se){if(!this._modelData||0===Z.length)return;const ce=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(Z,ne,ie,G);const fe=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===G&&this._onDidPaste.fire({range:new vt.a(ce.lineNumber,ce.column,fe.lineNumber,fe.column),mode:se})}_cut(G){this._modelData&&this._modelData.viewModel.cut(G)}_triggerEditorCommand(G,Z,ne){const ie=se.d.getEditorCommand(Z);return!!ie&&((ne=ne||{}).source=G,this._instantiationService.invokeFunction(G=>{Promise.resolve(ie.runEditorCommand(G,this,ne)).then(void 0,ge.e)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(79)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(79)&&(this._modelData.model.popStackElement(),!0))}executeEdits(G,Z,ne){if(!this._modelData)return!1;if(this._configuration.options.get(79))return!1;let ie;return ie=ne?Array.isArray(ne)?()=>ne:ne:()=>null,this._modelData.viewModel.executeEdits(G,Z,ie),!0}executeCommand(G,Z){this._modelData&&this._modelData.viewModel.executeCommand(Z,G)}executeCommands(G,Z){this._modelData&&this._modelData.viewModel.executeCommands(Z,G)}changeDecorations(G){return this._modelData?this._modelData.model.changeDecorations(G,this._id):null}getLineDecorations(G){return this._modelData?this._modelData.model.getLineDecorations(G,this._id,Object(ut.m)(this._configuration.options)):null}deltaDecorations(G,Z){return this._modelData?0===G.length&&0===Z.length?G:this._modelData.model.deltaDecorations(G,Z,this._id):[]}removeDecorations(G){const Z=this._decorationTypeKeysToIds[G];Z&&this.deltaDecorations(Z,[]),this._decorationTypeKeysToIds.hasOwnProperty(G)&&delete this._decorationTypeKeysToIds[G],this._decorationTypeSubtypes.hasOwnProperty(G)&&delete this._decorationTypeSubtypes[G]}getLayoutInfo(){return this._configuration.options.get(129)}createOverviewRuler(G){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(G):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(G){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(G)}layout(G){this._configuration.observeReferenceElement(G),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(G){const Z={widget:G,position:G.getPosition()};this._contentWidgets.hasOwnProperty(G.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[G.getId()]=Z,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(Z)}layoutContentWidget(G){const Z=G.getId();if(this._contentWidgets.hasOwnProperty(Z)){const ne=this._contentWidgets[Z];ne.position=G.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(ne)}}removeContentWidget(G){const Z=G.getId();if(this._contentWidgets.hasOwnProperty(Z)){const G=this._contentWidgets[Z];delete this._contentWidgets[Z],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(G)}}addOverlayWidget(G){const Z={widget:G,position:G.getPosition()};this._overlayWidgets.hasOwnProperty(G.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[G.getId()]=Z,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(Z)}layoutOverlayWidget(G){const Z=G.getId();if(this._overlayWidgets.hasOwnProperty(Z)){const ne=this._overlayWidgets[Z];ne.position=G.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(ne)}}removeOverlayWidget(G){const Z=G.getId();if(this._overlayWidgets.hasOwnProperty(Z)){const G=this._overlayWidgets[Z];delete this._overlayWidgets[Z],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(G)}}changeViewZones(G){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(G)}getTargetAtClientPoint(G,Z){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(G,Z):null}getScrolledVisiblePosition(G){if(!this._modelData||!this._modelData.hasRealView)return null;const Z=this._modelData.model.validatePosition(G),ne=this._configuration.options,ie=ne.get(129);return{top:CodeEditorWidget._getVerticalOffsetForPosition(this._modelData,Z.lineNumber,Z.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(Z.lineNumber,Z.column)+ie.glyphMarginWidth+ie.lineNumbersWidth+ie.decorationsWidth-this.getScrollLeft(),height:ne.get(57)}}getOffsetForColumn(G,Z){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(G,Z):-1}render(G=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,G)}setAriaOptions(G){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(G)}applyFontInfo(G){ke.a.applyFontInfoSlow(G,this._configuration.options.get(41))}_attachModel(G){if(!G)return void(this._modelData=null);const Z=[];this._domElement.setAttribute("data-mode-id",G.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(G.isDominatedByLongLines()),this._configuration.setMaxLineNumber(G.getLineCount()),G.onBeforeAttached();const ne=new viewModelImpl_ViewModel(this._id,this._configuration,G,DOMLineBreaksComputerFactory.create(),MonospaceLineBreaksComputerFactory.create(this._configuration.options),G=>me.V(G));Z.push(G.onDidChangeDecorations(G=>this._onDidChangeModelDecorations.fire(G))),Z.push(G.onDidChangeLanguage(Z=>{this._domElement.setAttribute("data-mode-id",G.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(Z)})),Z.push(G.onDidChangeLanguageConfiguration(G=>this._onDidChangeModelLanguageConfiguration.fire(G))),Z.push(G.onDidChangeContent(G=>this._onDidChangeModelContent.fire(G))),Z.push(G.onDidChangeOptions(G=>this._onDidChangeModelOptions.fire(G))),Z.push(G.onWillDispose(()=>this.setModel(null))),Z.push(ne.onEvent(G=>{switch(G.kind){case 0:this._onDidContentSizeChange.fire(G);break;case 1:this._editorTextFocus.setValue(G.hasFocus);break;case 2:this._onDidScrollChange.fire(G);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{G.reachedMaxCursorCount&&this._notificationService.warn(fe.a("cursors.maximum","The number of cursors has been limited to {0}.",cursor_CursorsController.MAX_CURSOR_COUNT));const Z=[];for(let ne=0,ie=G.selections.length;ne{this._paste("keyboard",G,Z,ne,ie)},type:G=>{this._type("keyboard",G)},compositionType:(G,Z,ne,ie)=>{this._compositionType("keyboard",G,Z,ne,ie)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(G,Z,ne,ie)=>{const se={text:G,pasteOnNewLine:Z,multicursorText:ne,mode:ie};this._commandService.executeCommand("paste",se)},type:G=>{const Z={text:G};this._commandService.executeCommand("type",Z)},compositionType:(G,Z,ne,ie)=>{if(ne||ie){const se={text:G,replacePrevCharCnt:Z,replaceNextCharCnt:ne,positionDelta:ie};this._commandService.executeCommand("compositionType",se)}else{const ne={text:G,replaceCharCnt:Z};this._commandService.executeCommand("replacePreviousChar",ne)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const ne=new ViewUserInputEvents(G.coordinatesConverter);ne.onKeyDown=G=>this._onKeyDown.fire(G),ne.onKeyUp=G=>this._onKeyUp.fire(G),ne.onContextMenu=G=>this._onContextMenu.fire(G),ne.onMouseMove=G=>this._onMouseMove.fire(G),ne.onMouseLeave=G=>this._onMouseLeave.fire(G),ne.onMouseDown=G=>this._onMouseDown.fire(G),ne.onMouseUp=G=>this._onMouseUp.fire(G),ne.onMouseDrag=G=>this._onMouseDrag.fire(G),ne.onMouseDrop=G=>this._onMouseDrop.fire(G),ne.onMouseDropCanceled=G=>this._onMouseDropCanceled.fire(G),ne.onMouseWheel=G=>this._onMouseWheel.fire(G);return[new viewImpl_View(Z,this._configuration,this._themeService,G,ne,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(G){G&&G.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const G=this._modelData.model,Z=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),Z&&this._domElement.contains(Z)&&this._domElement.removeChild(Z),G}_removeDecorationType(G){this._codeEditorService.removeDecorationType(G)}hasModel(){return null!==this._modelData}};$n=codeEditorWidget_decorate([codeEditorWidget_param(3,kn.a),codeEditorWidget_param(4,xe.a),codeEditorWidget_param(5,On.b),codeEditorWidget_param(6,Mn.b),codeEditorWidget_param(7,Dt.b),codeEditorWidget_param(8,Tn.a),codeEditorWidget_param(9,Dn.b)],$n);class codeEditorWidget_BooleanEventEmitter extends Se.a{constructor(){super(),this._onDidChangeToTrue=this._register(new Ce.b),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new Ce.b),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(G){const Z=G?2:1;this._value!==Z&&(this._value=Z,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class codeEditorWidget_EditorContextKeysManager extends Se.a{constructor(G,Z){super(),this._editor=G,Z.createKey("editorId",G.getId()),this._editorSimpleInput=_n.a.editorSimpleInput.bindTo(Z),this._editorFocus=_n.a.focus.bindTo(Z),this._textInputFocus=_n.a.textInputFocus.bindTo(Z),this._editorTextFocus=_n.a.editorTextFocus.bindTo(Z),this._editorTabMovesFocus=_n.a.tabMovesFocus.bindTo(Z),this._editorReadonly=_n.a.readOnly.bindTo(Z),this._inDiffEditor=_n.a.inDiffEditor.bindTo(Z),this._editorColumnSelection=_n.a.columnSelection.bindTo(Z),this._hasMultipleSelections=_n.a.hasMultipleSelections.bindTo(Z),this._hasNonEmptySelection=_n.a.hasNonEmptySelection.bindTo(Z),this._canUndo=_n.a.canUndo.bindTo(Z),this._canRedo=_n.a.canRedo.bindTo(Z),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const G=this._editor.getOptions();this._editorTabMovesFocus.set(G.get(128)),this._editorReadonly.set(G.get(79)),this._inDiffEditor.set(G.get(52)),this._editorColumnSelection.set(G.get(16))}_updateFromSelection(){const G=this._editor.getSelections();G?(this._hasMultipleSelections.set(G.length>1),this._hasNonEmptySelection.set(G.some(G=>!G.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const G=this._editor.getModel();this._canUndo.set(Boolean(G&&G.canUndo())),this._canRedo.set(Boolean(G&&G.canRedo()))}}class codeEditorWidget_EditorModeContext extends Se.a{constructor(G,Z){super(),this._editor=G,this._contextKeyService=Z,this._langId=_n.a.languageId.bindTo(Z),this._hasCompletionItemProvider=_n.a.hasCompletionItemProvider.bindTo(Z),this._hasCodeActionsProvider=_n.a.hasCodeActionsProvider.bindTo(Z),this._hasCodeLensProvider=_n.a.hasCodeLensProvider.bindTo(Z),this._hasDefinitionProvider=_n.a.hasDefinitionProvider.bindTo(Z),this._hasDeclarationProvider=_n.a.hasDeclarationProvider.bindTo(Z),this._hasImplementationProvider=_n.a.hasImplementationProvider.bindTo(Z),this._hasTypeDefinitionProvider=_n.a.hasTypeDefinitionProvider.bindTo(Z),this._hasHoverProvider=_n.a.hasHoverProvider.bindTo(Z),this._hasDocumentHighlightProvider=_n.a.hasDocumentHighlightProvider.bindTo(Z),this._hasDocumentSymbolProvider=_n.a.hasDocumentSymbolProvider.bindTo(Z),this._hasReferenceProvider=_n.a.hasReferenceProvider.bindTo(Z),this._hasRenameProvider=_n.a.hasRenameProvider.bindTo(Z),this._hasSignatureHelpProvider=_n.a.hasSignatureHelpProvider.bindTo(Z),this._hasInlayHintsProvider=_n.a.hasInlayHintsProvider.bindTo(Z),this._hasDocumentFormattingProvider=_n.a.hasDocumentFormattingProvider.bindTo(Z),this._hasDocumentSelectionFormattingProvider=_n.a.hasDocumentSelectionFormattingProvider.bindTo(Z),this._hasMultipleDocumentFormattingProvider=_n.a.hasMultipleDocumentFormattingProvider.bindTo(Z),this._hasMultipleDocumentSelectionFormattingProvider=_n.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(Z),this._isInWalkThrough=_n.a.isInWalkThroughSnippet.bindTo(Z);const update=()=>this._update();this._register(G.onDidChangeModel(update)),this._register(G.onDidChangeModelLanguage(update)),this._register(Ft.d.onDidChange(update)),this._register(Ft.a.onDidChange(update)),this._register(Ft.b.onDidChange(update)),this._register(Ft.f.onDidChange(update)),this._register(Ft.e.onDidChange(update)),this._register(Ft.q.onDidChange(update)),this._register(Ft.G.onDidChange(update)),this._register(Ft.p.onDidChange(update)),this._register(Ft.i.onDidChange(update)),this._register(Ft.m.onDidChange(update)),this._register(Ft.y.onDidChange(update)),this._register(Ft.z.onDidChange(update)),this._register(Ft.g.onDidChange(update)),this._register(Ft.j.onDidChange(update)),this._register(Ft.B.onDidChange(update)),this._register(Ft.r.onDidChange(update)),update()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const G=this._editor.getModel();G?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(G.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(Ft.d.has(G)),this._hasCodeActionsProvider.set(Ft.a.has(G)),this._hasCodeLensProvider.set(Ft.b.has(G)),this._hasDefinitionProvider.set(Ft.f.has(G)),this._hasDeclarationProvider.set(Ft.e.has(G)),this._hasImplementationProvider.set(Ft.q.has(G)),this._hasTypeDefinitionProvider.set(Ft.G.has(G)),this._hasHoverProvider.set(Ft.p.has(G)),this._hasDocumentHighlightProvider.set(Ft.i.has(G)),this._hasDocumentSymbolProvider.set(Ft.m.has(G)),this._hasReferenceProvider.set(Ft.y.has(G)),this._hasRenameProvider.set(Ft.z.has(G)),this._hasSignatureHelpProvider.set(Ft.B.has(G)),this._hasInlayHintsProvider.set(Ft.r.has(G)),this._hasDocumentFormattingProvider.set(Ft.g.has(G)||Ft.j.has(G)),this._hasDocumentSelectionFormattingProvider.set(Ft.j.has(G)),this._hasMultipleDocumentFormattingProvider.set(Ft.g.all(G).length+Ft.j.all(G).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(Ft.j.all(G).length>1),this._isInWalkThrough.set(G.uri.scheme===Me.c.walkThroughSnippet)}):this.reset()}}class codeEditorWidget_CodeEditorWidgetFocusTracker extends Se.a{constructor(G){super(),this._onChange=this._register(new Ce.b),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(me.Y(G)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const Vn=encodeURIComponent("");function getSquigglySVGData(G){return Vn+encodeURIComponent(G.toString())+Un}const Kn=encodeURIComponent('');Object(Dt.f)((G,Z)=>{const ne=G.getColor($t.t);ne&&Z.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${ne}; }`);const ie=G.getColor($t.u);ie&&Z.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${getSquigglySVGData(ie)}") repeat-x bottom left; }`);const se=G.getColor($t.s);se&&Z.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${se}; }`);const ce=G.getColor($t.W);ce&&Z.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${ce}; }`);const fe=G.getColor($t.X);fe&&Z.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${getSquigglySVGData(fe)}") repeat-x bottom left; }`);const me=G.getColor($t.V);me&&Z.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${me}; }`);const ge=G.getColor($t.L);ge&&Z.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${ge}; }`);const Ce=G.getColor($t.M);Ce&&Z.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${getSquigglySVGData(Ce)}") repeat-x bottom left; }`);const Se=G.getColor($t.K);Se&&Z.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${Se}; }`);const Me=G.getColor($t.C);Me&&Z.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${Me}; }`);const ke=G.getColor($t.D);ke&&Z.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function getDotDotDotSVGData(G){return Kn+encodeURIComponent(G.toString())+Xn}(ke)}") no-repeat bottom left; }`);const xe=G.getColor(At.p);xe&&Z.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${xe.rgba.a}; }`);const De=G.getColor(At.o);De&&Z.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${De}; }`);const Ie=G.getColor($t.B)||"inherit";Z.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${Ie}}`)})},1354:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return createAndFillInActionBarActions})),ne.d(Z,"a",(function(){return ot})),ne.d(Z,"b",(function(){return createActionViewItem}));ne(7557);var ie=ne(6),se=ne(196),ce=ne(10),fe=ne(4),me=ne(92),ge=ne(341),Ce=ne(175),Se=ne(1193),Me=ne(193),ke=ne(50),xe=ne(536),De=(ne(4148),ne(19)),Ie=ne(209),Re=ne(205);class dropdown_BaseDropdown extends se.b{constructor(G,Z){super(),this._onDidChangeVisibility=new De.b,this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(ie.q)(G,Object(ie.a)(".monaco-dropdown")),this._label=Object(ie.q)(this._element,Object(ie.a)(".dropdown-label"));let ne=Z.labelRenderer;ne||(ne=G=>(G.textContent=Z.label||"",null));for(const G of[ie.d.CLICK,ie.d.MOUSE_DOWN,Ie.a.Tap])this._register(Object(ie.i)(this.element,G,G=>ie.c.stop(G,!0)));for(const G of[ie.d.MOUSE_DOWN,Ie.a.Tap])this._register(Object(ie.i)(this._label,G,G=>{G instanceof MouseEvent&&G.detail>1||(this.visible?this.hide():this.show())}));this._register(Object(ie.i)(this._label,ie.d.KEY_UP,G=>{const Z=new Re.a(G);(Z.equals(3)||Z.equals(10))&&(ie.c.stop(G,!0),this.visible?this.hide():this.show())}));const se=ne(this._label);se&&this._register(se),this._register(Ie.b.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class DropdownMenu extends dropdown_BaseDropdown{constructor(G,Z){super(G,Z),this._actions=[],this._contextMenuProvider=Z.contextMenuProvider,this.actions=Z.actions||[],this.actionProvider=Z.actionProvider,this.menuClassName=Z.menuClassName||"",this.menuAsChild=!!Z.menuAsChild}set menuOptions(G){this._menuOptions=G}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(G){this._actions=G}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:G=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(G):void 0,getKeyBinding:G=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(G):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class dropdownActionViewItem_DropdownMenuActionViewItem extends xe.b{constructor(G,Z,ne,ie=Object.create(null)){super(null,G,ie),this.actionItem=null,this._onDidChangeVisibility=this._register(new De.b),this.menuActionsOrProvider=Z,this.contextMenuProvider=ne,this.options=ie,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(G){this.actionItem=G;const Z=Array.isArray(this.menuActionsOrProvider),ne={contextMenuProvider:this.contextMenuProvider,labelRenderer:G=>{this.element=Object(ie.q)(G,Object(ie.a)("a.action-label"));let Z=[];return"string"==typeof this.options.classNames?Z=this.options.classNames.split(/\s+/g).filter(G=>!!G):this.options.classNames&&(Z=this.options.classNames),Z.find(G=>"icon"===G)||Z.push("codicon"),this.element.classList.add(...Z),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:Z?this.menuActionsOrProvider:void 0,actionProvider:Z?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new DropdownMenu(G,ne)),this._register(this.dropdownMenu.onDidChangeVisibility(G=>{var Z;null===(Z=this.element)||void 0===Z||Z.setAttribute("aria-expanded",""+G),this._onDidChangeVisibility.fire(G)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const G=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return G.options.anchorAlignmentProvider()}})}this.updateEnabled()}setActionContext(G){super.setActionContext(G),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=G:this.dropdownMenu.menuOptions={context:G})}updateEnabled(){var G,Z;const ne=!this.getAction().enabled;null===(G=this.actionItem)||void 0===G||G.classList.toggle("disabled",ne),null===(Z=this.element)||void 0===Z||Z.classList.toggle("disabled",ne)}}var ze=ne(46),$e=ne(60),Je=ne(26),it=ne(375),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function createAndFillInActionBarActions(G,Z,ne,ie,fe,ge,Ce){const Se=G.getActions(Z);return function fillInActions(G,Z,ne,ie=(G=>"navigation"===G),ce=Number.MAX_SAFE_INTEGER,fe=(()=>!1),ge=!1){let Ce,Se;Array.isArray(Z)?(Ce=Z,Se=Z):(Ce=Z.primary,Se=Z.secondary);const Me=new Set;for(const[Z,ce]of G){let G;ie(Z)?(G=Ce,G.length>0&&ge&&G.push(new se.d)):(G=Se,G.length>0&&G.push(new se.d));for(let ie of ce){ne&&(ie=ie instanceof me.c&&ie.alt?ie.alt:ie);const ce=G.push(ie);ie instanceof se.e&&Me.add({group:Z,action:ie,index:ce-1})}}for(const{group:G,action:Z,index:ne}of Me){const se=ie(G)?Ce:Se,me=Z.actions;(me.length<=1||se.length+me.length-2<=ce)&&fe(Z,G,se.length)&&se.splice(ne,1,...me)}if(Ce!==Se&&Ce.length>ce){const G=Ce.splice(ce,Ce.length-ce);Se.unshift(...G,new se.d)}}(Se,ne,!1,"string"==typeof ie?G=>G===ie:ie,fe,ge,Ce),function asDisposable(G){const Z=new ce.b;for(const[,ne]of G)for(const G of ne)Z.add(G);return Z}(Se)}let ot=class MenuEntryActionViewItem extends xe.a{constructor(G,Z,ne,se,fe){super(void 0,G,{icon:!(!G.class&&!G.item.icon),label:!G.class&&!G.item.icon,draggable:null==Z?void 0:Z.draggable}),this._keybindingService=ne,this._notificationService=se,this._contextKeyService=fe,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new ce.d),this._altKey=ie.e.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(G){return __awaiter(this,void 0,void 0,(function*(){G.preventDefault(),G.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(G){this._notificationService.error(G)}}))}render(G){super.render(G),G.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let Z=!1,ne=this._altKey.keyStatus.altKey||(ze.j||ze.d)&&this._altKey.keyStatus.shiftKey;const updateAltState=()=>{const G=Z&≠G!==this._wantsAltCommand&&(this._wantsAltCommand=G,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(G=>{ne=G.altKey||(ze.j||ze.d)&&G.shiftKey,updateAltState()})),this._register(Object(ie.i)(G,"mouseleave",G=>{Z=!1,updateAltState()})),this._register(Object(ie.i)(G,"mouseenter",G=>{Z=!0,updateAltState()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){const G=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),Z=G&&G.getLabel(),ne=this._commandAction.tooltip||this._commandAction.label;let ie=Z?Object(fe.a)("titleAndKb","{0} ({1})",ne,Z):ne;if(!this._wantsAltCommand&&this._menuItemAction.alt){const G=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,Z=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),ne=Z&&Z.getLabel(),se=ne?Object(fe.a)("titleAndKb","{0} ({1})",G,ne):G;ie+=`\n[${Se.b.modifierLabels[ze.a].altKey}] ${se}`}this.label.title=ie}}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.item))}_updateItemClass(G){var Z;this._itemClassDispose.value=void 0;const{element:ne,label:se}=this;if(!ne||!se)return;const fe=this._commandAction.checked&&(null===(Z=G.toggled)||void 0===Z?void 0:Z.icon)?G.toggled.icon:G.icon;if(fe)if(ke.d.isThemeIcon(fe)){const G=ke.d.asClassNameArray(fe);se.classList.add(...G),this._itemClassDispose.value=Object(ce.i)(()=>{se.classList.remove(...G)})}else fe.light&&se.style.setProperty("--menu-entry-icon-light",Object(ie.s)(fe.light)),fe.dark&&se.style.setProperty("--menu-entry-icon-dark",Object(ie.s)(fe.dark)),se.classList.add("icon"),this._itemClassDispose.value=Object(ce.i)(()=>{se.classList.remove("icon"),se.style.removeProperty("--menu-entry-icon-light"),se.style.removeProperty("--menu-entry-icon-dark")})}};ot=__decorate([__param(2,Ce.a),__param(3,Me.a),__param(4,Je.b)],ot);let at=class SubmenuEntryActionViewItem extends dropdownActionViewItem_DropdownMenuActionViewItem{constructor(G,Z){super(G,{getActions:()=>G.actions},Z,{menuAsChild:!0,classNames:ke.d.isThemeIcon(G.item.icon)?ke.d.asClassName(G.item.icon):void 0})}render(G){if(super.render(G),this.element){G.classList.add("menu-entry");const{icon:Z}=this._action.item;Z&&!ke.d.isThemeIcon(Z)&&(this.element.classList.add("icon"),Z.light&&this.element.style.setProperty("--menu-entry-icon-light",Object(ie.s)(Z.light)),Z.dark&&this.element.style.setProperty("--menu-entry-icon-dark",Object(ie.s)(Z.dark)))}}};at=__decorate([__param(1,ge.a)],at);let st=class DropdownWithDefaultActionViewItem extends xe.b{constructor(G,Z,ne,ie,se,ce,fe){let ge;super(null,G),this._keybindingService=Z,this._notificationService=ne,this._contextMenuService=ie,this._menuService=se,this._instaService=ce,this._storageService=fe,this._container=null,this._storageKey=G.item.submenu._debugName+"_lastActionId";let Ce=fe.get(this._storageKey,1);Ce&&(ge=G.actions.find(G=>Ce===G.id)),ge||(ge=G.actions[0]),this._defaultAction=this._instaService.createInstance(ot,ge,void 0),this._dropdown=new dropdownActionViewItem_DropdownMenuActionViewItem(G,G.actions,this._contextMenuService,{menuAsChild:!0,classNames:["codicon","codicon-chevron-down"]}),this._dropdown.actionRunner.onDidRun(G=>{G.action instanceof me.c&&this.update(G.action)})}update(G){this._storageService.store(this._storageKey,G.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(ot,G,void 0),this._defaultAction.actionRunner=new class extends se.b{runAction(G,Z){return __awaiter(this,void 0,void 0,(function*(){yield G.run(void 0)}))}},this._container&&this._defaultAction.render(Object(ie.P)(this._container,Object(ie.a)(".action-container")))}setActionContext(G){super.setActionContext(G),this._defaultAction.setActionContext(G),this._dropdown.setActionContext(G)}render(G){this._container=G,super.render(this._container),this._container.classList.add("monaco-dropdown-with-primary");const Z=Object(ie.a)(".action-container");this._defaultAction.render(Object(ie.q)(this._container,Z)),this._register(Object(ie.i)(Z,ie.d.KEY_DOWN,G=>{const Z=new Re.a(G);Z.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),Z.stopPropagation())}));const ne=Object(ie.a)(".dropdown-action-container");this._dropdown.render(Object(ie.q)(this._container,ne)),this._register(Object(ie.i)(ne,ie.d.KEY_DOWN,G=>{var Z;const ne=new Re.a(G);ne.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(Z=this._defaultAction.element)||void 0===Z||Z.focus(),ne.stopPropagation())}))}focus(G){G?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(G){G?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function createActionViewItem(G,Z){if(Z instanceof me.c)return G.createInstance(ot,Z,void 0);if(Z instanceof me.e){const ne=!Z.actions.some(G=>G instanceof me.c&&G.item.icon&&!ke.d.isThemeIcon(G.item.icon));return Z.item.rememberDefaultAction&&ne?G.createInstance(st,Z):G.createInstance(at,Z)}}st=__decorate([__param(1,Ce.a),__param(2,Me.a),__param(3,ge.a),__param(4,me.a),__param(5,$e.a),__param(6,it.a)],st)},1355:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return inputBox_InputBox})),ne.d(Z,"a",(function(){return inputBox_HistoryInputBox}));ne(7599);var ie=ne(4),se=ne(6),ce=ne(1189),fe=ne(215),me=ne(535),ge=ne(19),Ce=ne(316),Se=ne(44),Me=ne(166);class ArrayNavigator{constructor(G,Z=0,ne=G.length,ie=Z-1){this.items=G,this.start=Z,this.end=ne,this.index=ie}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class history_HistoryNavigator{constructor(G=[],Z=10){this._initialize(G),this._limit=Z,this._onChange()}add(G){this._history.delete(G),this._history.add(G),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(G){return this._history.has(G)}_onChange(){this._reduceToLimit();const G=this._elements;this._navigator=new ArrayNavigator(G,0,G.length,G.length)}_reduceToLimit(){const G=this._elements;G.length>this._limit&&this._initialize(G.slice(G.length-this._limit))}_currentPosition(){const G=this._navigator.current();return G?this._elements.indexOf(G):-1}_initialize(G){this._history=new Set;for(const Z of G)this._history.add(Z)}get _elements(){const G=[];return this._history.forEach(Z=>G.push(Z)),G}}var ke=ne(416),xe=ne(206);const De=se.a,Ie={inputBackground:Se.a.fromHex("#3C3C3C"),inputForeground:Se.a.fromHex("#CCCCCC"),inputValidationInfoBorder:Se.a.fromHex("#55AAFF"),inputValidationInfoBackground:Se.a.fromHex("#063B49"),inputValidationWarningBorder:Se.a.fromHex("#B89500"),inputValidationWarningBackground:Se.a.fromHex("#352A05"),inputValidationErrorBorder:Se.a.fromHex("#BE1100"),inputValidationErrorBackground:Se.a.fromHex("#5A1D1D")};class inputBox_InputBox extends Ce.a{constructor(G,Z,ne){var ie;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new ge.b),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new ge.b),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=Z,this.options=ne||Object.create(null),Object(Me.f)(this.options,Ie,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(ie=this.options.tooltip)&&void 0!==ie?ie:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=se.q(G,De(".monaco-inputbox.idle"));let ce=this.options.flexibleHeight?"textarea":"input",fe=se.q(this.element,De(".ibwrapper"));if(this.input=se.q(fe,De(ce+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=se.q(fe,De("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new ke.b(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),se.q(G,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(G=>this.input.scrollTop=G.scrollTop));const Z=this._register(new xe.a(document,"selectionchange")),ne=ge.c.filter(Z.event,()=>{const G=document.getSelection();return(null==G?void 0:G.anchorNode)===fe});this._register(ne(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new me.a(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(G){this.placeholder=G,this.input.setAttribute("placeholder",G)}setTooltip(G){this.tooltip=G,this.input.title=G}setAriaLabel(G){this.ariaLabel=G,G?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(G){this.input.value!==G&&(this.input.value=G,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:se.H(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(G=null){this.input.select(),G&&(this.input.setSelectionRange(G.start,G.end),G.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return se.I(this.input)}set width(G){if(this.options.flexibleHeight&&this.options.flexibleWidth){let Z=0;if(this.mirror){Z=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)}this.input.style.width=G-Z+"px"}else this.input.style.width=G+"px";this.mirror&&(this.mirror.style.width=G+"px")}set paddingRight(G){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${G}px)`:this.input.style.paddingRight=G+"px",this.mirror&&(this.mirror.style.paddingRight=G+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const G=this.cachedContentHeight,Z=this.cachedHeight,ne=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:G,height:Z}),this.scrollableElement.setScrollPosition({scrollTop:ne})}showMessage(G,Z){this.message=G,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(G.type));const ne=this.stylesForType(this.message.type);this.element.style.border=ne.border?"1px solid "+ne.border:"",(this.hasFocus()||Z)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let G=null;return this.validation&&(G=this.validation(this.value),G?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(G)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==G?void 0:G.type}stylesForType(G){switch(G){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(G){switch(G){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let G,Z,layout=()=>G.style.width=se.I(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:Z=>{if(!this.message)return null;G=se.q(Z,De(".monaco-inputbox-container")),layout();const ne={inline:!0,className:"monaco-inputbox-message"},ie=this.message.formatContent?Object(ce.b)(this.message.content,ne):Object(ce.c)(this.message.content,ne);ie.classList.add(this.classForType(this.message.type));const fe=this.stylesForType(this.message.type);return ie.style.backgroundColor=fe.background?fe.background.toString():"",ie.style.color=fe.foreground?fe.foreground.toString():"",ie.style.border=fe.border?"1px solid "+fe.border:"",se.q(G,ie),null},onHide:()=>{this.state="closed"},layout:layout}),Z=3===this.message.type?ie.a("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?ie.a("alertWarningMessage","Warning: {0}",this.message.content):ie.a("alertInfoMessage","Info: {0}",this.message.content),fe.a(Z),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const G=this.value,Z=10===G.charCodeAt(G.length-1)?" ":"";(G+Z).replace(/\u000c/g,"")?this.mirror.textContent=G+Z:this.mirror.innerText=" ",this.layout()}style(G){this.inputBackground=G.inputBackground,this.inputForeground=G.inputForeground,this.inputBorder=G.inputBorder,this.inputValidationInfoBackground=G.inputValidationInfoBackground,this.inputValidationInfoForeground=G.inputValidationInfoForeground,this.inputValidationInfoBorder=G.inputValidationInfoBorder,this.inputValidationWarningBackground=G.inputValidationWarningBackground,this.inputValidationWarningForeground=G.inputValidationWarningForeground,this.inputValidationWarningBorder=G.inputValidationWarningBorder,this.inputValidationErrorBackground=G.inputValidationErrorBackground,this.inputValidationErrorForeground=G.inputValidationErrorForeground,this.inputValidationErrorBorder=G.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const G=this.inputBackground?this.inputBackground.toString():"",Z=this.inputForeground?this.inputForeground.toString():"",ne=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=G,this.element.style.color=Z,this.input.style.backgroundColor="inherit",this.input.style.color=Z,this.element.style.borderWidth=ne?"1px":"",this.element.style.borderStyle=ne?"solid":"",this.element.style.borderColor=ne}layout(){if(!this.mirror)return;const G=this.cachedContentHeight;this.cachedContentHeight=se.H(this.mirror),G!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(G){const Z=this.inputElement,ne=Z.selectionStart,ie=Z.selectionEnd,se=Z.value;null!==ne&&null!==ie&&(this.value=se.substr(0,ne)+G+se.substr(ie),Z.setSelectionRange(ne+1,ne+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class inputBox_HistoryInputBox extends inputBox_InputBox{constructor(G,Z,ne){super(G,Z,ne),this.history=new history_HistoryNavigator(ne.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let G=this.getNextValue();G&&(G=G===this.value?this.getNextValue():G),G&&(this.value=G,fe.c(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let G=this.getPreviousValue();G&&(G=G===this.value?this.getPreviousValue():G),G&&(this.value=G,fe.c(this.value))}getCurrentValue(){let G=this.history.current();return G||(G=this.history.last(),this.history.next()),G}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},1356:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return iconLabel_IconLabel}));ne(7573);var ie=ne(6),se=ne(909),ce=ne(10),fe=ne(398),me=ne(166),ge=ne(54),Ce=ne(103),Se=ne(4),Me=ne(57),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function setupCustomHover(G,Z,ne){if(!ne)return;const se=function getTooltipForCustom(G){if(Object(ge.k)(G))return()=>__awaiter(this,void 0,void 0,(function*(){return G}));if(Object(ge.h)(G.markdown))return G.markdown;{const Z=G.markdown;return()=>__awaiter(this,void 0,void 0,(function*(){return Z}))}}(ne);let fe,me;const ke=ie.i(Z,ie.d.MOUSE_OVER,ke=>{if(fe)return;const xe=new Ce.b,mouseLeaveOrDown=G=>{const ne=G.type===ie.d.MOUSE_DOWN;ne&&(null==me||me.dispose(),me=void 0),(ne||G.fromElement===Z)&&(null==fe||fe.dispose(),fe=void 0)},De=ie.i(Z,ie.d.MOUSE_LEAVE,mouseLeaveOrDown,!0),Ie=ie.i(Z,ie.d.MOUSE_DOWN,mouseLeaveOrDown,!0),Re={targetElements:[Z],dispose:()=>{}};let ze;if(void 0===G.placement||"mouse"===G.placement){const mouseMove=G=>Re.x=G.x+10;ze=ie.i(Z,ie.d.MOUSE_MOVE,mouseMove,!0)}const $e=new Me.e(()=>__awaiter(this,void 0,void 0,(function*(){var Z;if(fe){const ie={text:Object(Se.a)("iconLabel.loading","Loading..."),target:Re,hoverPosition:2};null==me||me.dispose(),me=G.showHover(ie);const ce=null!==(Z=yield se(xe.token))&&void 0!==Z?Z:Object(ge.k)(ne)?void 0:ne.markdownNotSupportedFallback;if(null==me||me.dispose(),me=void 0,ce&&fe){const Z={text:ce,target:Re,showPointer:"element"===G.placement,hoverPosition:2};me=G.showHover(Z)}}null==ze||ze.dispose()})),G.delay);$e.schedule(),fe=Object(ce.i)(()=>{$e.dispose(),null==ze||ze.dispose(),Ie.dispose(),De.dispose(),xe.dispose(!0)})},!0);return Object(ce.i)(()=>{ke.dispose(),null==fe||fe.dispose(),null==me||me.dispose()})}class FastLabelNode{constructor(G){this._element=G}get element(){return this._element}set textContent(G){this.disposed||G===this._textContent||(this._textContent=G,this._element.textContent=G)}set className(G){this.disposed||G===this._className||(this._className=G,this._element.className=G)}set empty(G){this.disposed||G===this._empty||(this._empty=G,this._element.style.marginLeft=G?"0":"")}dispose(){this.disposed=!0}}class iconLabel_IconLabel extends ce.a{constructor(G,Z){super(),this.customHovers=new Map,this.domNode=this._register(new FastLabelNode(ie.q(G,ie.a(".monaco-icon-label")))),this.labelContainer=ie.q(this.domNode.element,ie.a(".monaco-icon-label-container"));const ne=ie.q(this.labelContainer,ie.a("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new FastLabelNode(ie.q(this.labelContainer,ie.a("span.monaco-icon-description-container")))),(null==Z?void 0:Z.supportHighlights)||(null==Z?void 0:Z.supportIcons)?this.nameNode=new iconLabel_LabelWithHighlights(ne,!!Z.supportIcons):this.nameNode=new iconLabel_Label(ne),(null==Z?void 0:Z.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new se.a(ie.q(this.descriptionContainer.element,ie.a("span.label-description")),!!Z.supportIcons):this.descriptionNodeFactory=()=>this._register(new FastLabelNode(ie.q(this.descriptionContainer.element,ie.a("span.label-description")))),this.hoverDelegate=null==Z?void 0:Z.hoverDelegate}setLabel(G,Z,ne){const ie=["monaco-icon-label"];ne&&(ne.extraClasses&&ie.push(...ne.extraClasses),ne.italic&&ie.push("italic"),ne.strikethrough&&ie.push("strikethrough")),this.domNode.className=ie.join(" "),this.setupHover(this.labelContainer,null==ne?void 0:ne.title),this.nameNode.setLabel(G,ne),(Z||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof se.a?(this.descriptionNode.set(Z||"",ne?ne.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,null==ne?void 0:ne.descriptionTitle)):(this.descriptionNode.textContent=Z||"",this.setupHover(this.descriptionNode.element,(null==ne?void 0:ne.descriptionTitle)||""),this.descriptionNode.empty=!Z))}setupHover(G,Z){const ne=this.customHovers.get(G);if(ne&&(ne.dispose(),this.customHovers.delete(G)),Z)if(this.hoverDelegate){const ne=setupCustomHover(this.hoverDelegate,G,Z);ne&&this.customHovers.set(G,ne)}else!function setupNativeHover(G,Z){Object(ge.k)(Z)?G.title=Z:(null==Z?void 0:Z.markdownNotSupportedFallback)?G.title=Z.markdownNotSupportedFallback:G.removeAttribute("title")}(G,Z);else G.removeAttribute("title")}dispose(){super.dispose();for(const G of this.customHovers.values())G.dispose();this.customHovers.clear()}}class iconLabel_Label{constructor(G){this.container=G,this.label=void 0,this.singleLabel=void 0}setLabel(G,Z){if(this.label!==G||!Object(me.d)(this.options,Z))if(this.label=G,this.options=Z,"string"==typeof G)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=ie.q(this.container,ie.a("a.label-name",{id:null==Z?void 0:Z.domId}))),this.singleLabel.textContent=G;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let ne=0;ne{const se={start:ie,end:ie+G.length},ce=ne.map(G=>fe.a.intersect(se,G)).filter(G=>!fe.a.isEmpty(G)).map(({start:G,end:Z})=>({start:G-ie,end:Z-ie}));return ie=se.end+Z.length,ce})}(G,ne,null==Z?void 0:Z.matches);for(let fe=0;fe{this.viewContainer.scrollTop=G.scrollTop,this.viewContainer.scrollLeft=G.scrollLeft})),Object(Se.q)(this.el,this.scrollableElement.getDomNode()),this.style(Z.styles||xe),Z.descriptor&&(this.size=Z.descriptor.size,Z.descriptor.views.forEach((G,Z)=>{const ne=ce.l(G.visible)||G.visible?G.size:{type:"invisible",cachedVisibleSize:G.size},ie=G.view;this.doAddView(ie,ne,Z,!0)}),this.contentSize=this.viewItems.reduce((G,Z)=>G+Z.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(G){for(const Z of this.sashItems)Z.sash.orthogonalStartSash=G;this._orthogonalStartSash=G}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(G){for(const Z of this.sashItems)Z.sash.orthogonalEndSash=G;this._orthogonalEndSash=G}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(G){this._startSnappingEnabled!==G&&(this._startSnappingEnabled=G,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(G){this._endSnappingEnabled!==G&&(this._endSnappingEnabled=G,this.updateSashEnablement())}style(G){G.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",G.separatorBorder.toString()))}addView(G,Z,ne=this.viewItems.length,ie){this.doAddView(G,Z,ne,ie)}layout(G,Z){const ne=Math.max(this.size,this.contentSize);if(this.size=G,this.layoutContext=Z,this.proportions)for(let Z=0;Z1===this.viewItems[G].priority),se=Z.filter(G=>2===this.viewItems[G].priority);this.resize(this.viewItems.length-1,G-ne,void 0,ie,se)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(G=>G.size/this.contentSize))}onSashStart({sash:G,start:Z,alt:ne}){for(const G of this.viewItems)G.enabled=!1;const se=this.sashItems.findIndex(Z=>Z.sash===G),ce=Object(ie.e)(Object(Se.i)(document.body,"keydown",G=>resetSashDragState(this.sashDragState.current,G.altKey)),Object(Se.i)(document.body,"keyup",()=>resetSashDragState(this.sashDragState.current,!1))),resetSashDragState=(G,Z)=>{const ne=this.viewItems.map(G=>G.size);let ie,fe,ge=Number.NEGATIVE_INFINITY,Ce=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(Z=!Z),Z){if(se===this.sashItems.length-1){const G=this.viewItems[se];ge=(G.minimumSize-G.size)/2,Ce=(G.maximumSize-G.size)/2}else{const G=this.viewItems[se+1];ge=(G.size-G.maximumSize)/2,Ce=(G.size-G.minimumSize)/2}}if(!Z){const G=Object(me.r)(se,-1),Z=Object(me.r)(se+1,this.viewItems.length),ce=G.reduce((G,Z)=>G+(this.viewItems[Z].minimumSize-ne[Z]),0),ge=G.reduce((G,Z)=>G+(this.viewItems[Z].viewMaximumSize-ne[Z]),0),Ce=0===Z.length?Number.POSITIVE_INFINITY:Z.reduce((G,Z)=>G+(ne[Z]-this.viewItems[Z].minimumSize),0),Se=0===Z.length?Number.NEGATIVE_INFINITY:Z.reduce((G,Z)=>G+(ne[Z]-this.viewItems[Z].viewMaximumSize),0),Me=Math.max(ce,Se),ke=Math.min(Ce,ge),xe=this.findFirstSnapIndex(G),De=this.findFirstSnapIndex(Z);if("number"==typeof xe){const G=this.viewItems[xe],Z=Math.floor(G.viewMinimumSize/2);ie={index:xe,limitDelta:G.visible?Me-Z:Me+Z,size:G.size}}if("number"==typeof De){const G=this.viewItems[De],Z=Math.floor(G.viewMinimumSize/2);fe={index:De,limitDelta:G.visible?ke+Z:ke-Z,size:G.size}}}this.sashDragState={start:G,current:G,index:se,sizes:ne,minDelta:ge,maxDelta:Ce,alt:Z,snapBefore:ie,snapAfter:fe,disposable:ce}};resetSashDragState(Z,ne)}onSashChange({current:G}){const{index:Z,start:ne,sizes:ie,alt:se,minDelta:ce,maxDelta:fe,snapBefore:me,snapAfter:ge}=this.sashDragState;this.sashDragState.current=G;const Ce=G-ne,Se=this.resize(Z,Ce,ie,void 0,void 0,ce,fe,me,ge);if(se){const G=Z===this.sashItems.length-1,ne=this.viewItems.map(G=>G.size),ie=G?Z:Z+1,se=this.viewItems[ie],ce=se.size-se.maximumSize,fe=se.size-se.minimumSize,me=G?Z-1:Z+1;this.resize(me,-Se,ne,void 0,void 0,ce,fe)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(G){this._onDidSashChange.fire(G),this.sashDragState.disposable.dispose(),this.saveProportions();for(const G of this.viewItems)G.enabled=!0}onViewChange(G,Z){const ne=this.viewItems.indexOf(G);ne<0||ne>=this.viewItems.length||(Z="number"==typeof Z?Z:G.size,Z=Object(fe.b)(Z,G.minimumSize,G.maximumSize),this.inverseAltBehavior&&ne>0?(this.resize(ne-1,Math.floor((G.size-Z)/2)),this.distributeEmptySpace(),this.layoutViews()):(G.size=Z,this.relayout([ne],void 0)))}resizeView(G,Z){if(this.state!==De.Idle)throw new Error("Cant modify splitview");if(this.state=De.Busy,G<0||G>=this.viewItems.length)return;const ne=Object(me.r)(this.viewItems.length).filter(Z=>Z!==G),ie=[...ne.filter(G=>1===this.viewItems[G].priority),G],se=ne.filter(G=>2===this.viewItems[G].priority),ce=this.viewItems[G];Z=Math.round(Z),Z=Object(fe.b)(Z,ce.minimumSize,Math.min(ce.maximumSize,this.size)),ce.size=Z,this.relayout(ie,se),this.state=De.Idle}distributeViewSizes(){const G=[];let Z=0;for(const ne of this.viewItems)ne.maximumSize-ne.minimumSize>0&&(G.push(ne),Z+=ne.size);const ne=Math.floor(Z/G.length);for(const Z of G)Z.size=Object(fe.b)(ne,Z.minimumSize,Z.maximumSize);const ie=Object(me.r)(this.viewItems.length),se=ie.filter(G=>1===this.viewItems[G].priority),ce=ie.filter(G=>2===this.viewItems[G].priority);this.relayout(se,ce)}getViewSize(G){return G<0||G>=this.viewItems.length?-1:this.viewItems[G].size}doAddView(G,Z,ne=this.viewItems.length,ce){if(this.state!==De.Idle)throw new Error("Cant modify splitview");this.state=De.Busy;const fe=Object(Se.a)(".split-view-view");ne===this.viewItems.length?this.viewContainer.appendChild(fe):this.viewContainer.insertBefore(fe,this.viewContainer.children.item(ne));const Ce=G.onDidChange(G=>this.onViewChange(Ie,G)),Me=Object(ie.i)(()=>this.viewContainer.removeChild(fe)),ke=Object(ie.e)(Ce,Me);let xe;xe="number"==typeof Z?Z:"split"===Z.type?this.getViewSize(Z.index)/2:"invisible"===Z.type?{cachedVisibleSize:Z.cachedVisibleSize}:G.minimumSize;const Ie=0===this.orientation?new VerticalViewItem(fe,G,xe,ke):new HorizontalViewItem(fe,G,xe,ke);if(this.viewItems.splice(ne,0,Ie),this.viewItems.length>1){let G={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const Z=0===this.orientation?new ge.b(this.sashContainer,{getHorizontalSashTop:G=>this.getSashPosition(G),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},G),{orientation:1})):new ge.b(this.sashContainer,{getVerticalSashLeft:G=>this.getSashPosition(G),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},G),{orientation:0})),ce=0===this.orientation?G=>({sash:Z,start:G.startY,current:G.currentY,alt:G.altKey}):G=>({sash:Z,start:G.startX,current:G.currentX,alt:G.altKey}),fe=se.c.map(Z.onDidStart,ce)(this.onSashStart,this),Ce=se.c.map(Z.onDidChange,ce)(this.onSashChange,this),Se=se.c.map(Z.onDidEnd,()=>this.sashItems.findIndex(G=>G.sash===Z))(this.onSashEnd,this),Me=Z.onDidReset(()=>{const G=this.sashItems.findIndex(G=>G.sash===Z),ne=Object(me.r)(G,-1),ie=Object(me.r)(G+1,this.viewItems.length),se=this.findFirstSnapIndex(ne),ce=this.findFirstSnapIndex(ie);("number"!=typeof se||this.viewItems[se].visible)&&("number"!=typeof ce||this.viewItems[ce].visible)&&this._onDidSashReset.fire(G)}),ke=Object(ie.e)(fe,Ce,Se,Me,Z),xe={sash:Z,disposable:ke};this.sashItems.splice(ne-1,0,xe)}let Re;fe.appendChild(G.element),"number"!=typeof Z&&"split"===Z.type&&(Re=[Z.index]),ce||this.relayout([ne],Re),this.state=De.Idle,ce||"number"==typeof Z||"distribute"!==Z.type||this.distributeViewSizes()}relayout(G,Z){const ne=this.viewItems.reduce((G,Z)=>G+Z.size,0);this.resize(this.viewItems.length-1,this.size-ne,void 0,G,Z),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(G,Z,ne=this.viewItems.map(G=>G.size),ie,se,ce=Number.NEGATIVE_INFINITY,ge=Number.POSITIVE_INFINITY,Ce,Se){if(G<0||G>=this.viewItems.length)return 0;const Me=Object(me.r)(G,-1),ke=Object(me.r)(G+1,this.viewItems.length);if(se)for(const G of se)Object(me.p)(Me,G),Object(me.p)(ke,G);if(ie)for(const G of ie)Object(me.o)(Me,G),Object(me.o)(ke,G);const xe=Me.map(G=>this.viewItems[G]),De=Me.map(G=>ne[G]),Ie=ke.map(G=>this.viewItems[G]),Re=ke.map(G=>ne[G]),ze=Me.reduce((G,Z)=>G+(this.viewItems[Z].minimumSize-ne[Z]),0),$e=Me.reduce((G,Z)=>G+(this.viewItems[Z].maximumSize-ne[Z]),0),Je=0===ke.length?Number.POSITIVE_INFINITY:ke.reduce((G,Z)=>G+(ne[Z]-this.viewItems[Z].minimumSize),0),it=0===ke.length?Number.NEGATIVE_INFINITY:ke.reduce((G,Z)=>G+(ne[Z]-this.viewItems[Z].maximumSize),0),ot=Math.max(ze,it,ce),at=Math.min(Je,$e,ge);let st=!1;if(Ce){const G=this.viewItems[Ce.index],ne=Z>=Ce.limitDelta;st=ne!==G.visible,G.setVisible(ne,Ce.size)}if(!st&&Se){const G=this.viewItems[Se.index],ne=ZG+Z.size,0);let ne=this.size-Z;const ie=Object(me.r)(this.viewItems.length-1,-1),se=ie.filter(G=>1===this.viewItems[G].priority),ce=ie.filter(G=>2===this.viewItems[G].priority);for(const G of ce)Object(me.p)(ie,G);for(const G of se)Object(me.o)(ie,G);"number"==typeof G&&Object(me.o)(ie,G);for(let G=0;0!==ne&&GG+Z.size,0);let G=0;for(const Z of this.viewItems)Z.layout(G,this.layoutContext),G+=Z.size;this.sashItems.forEach(G=>G.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let G=!1;const Z=this.viewItems.map(Z=>G=Z.size-Z.minimumSize>0||G);G=!1;const ne=this.viewItems.map(Z=>G=Z.maximumSize-Z.size>0||G),ie=[...this.viewItems].reverse();G=!1;const se=ie.map(Z=>G=Z.size-Z.minimumSize>0||G).reverse();G=!1;const ce=ie.map(Z=>G=Z.maximumSize-Z.size>0||G).reverse();let fe=0;for(let G=0;G0||this.startSnappingEnabled)?ie.state=1:Me&&Z[G]&&(fe0)return;if(!G.visible&&G.snap)return Z}}dispose(){super.dispose(),this.viewItems.forEach(G=>G.dispose()),this.viewItems=[],this.sashItems.forEach(G=>G.disposable.dispose()),this.sashItems=[]}}},1364:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"MoveWordCommand",(function(){return MoveWordCommand})),ne.d(Z,"WordLeftCommand",(function(){return WordLeftCommand})),ne.d(Z,"WordRightCommand",(function(){return WordRightCommand})),ne.d(Z,"CursorWordStartLeft",(function(){return CursorWordStartLeft})),ne.d(Z,"CursorWordEndLeft",(function(){return CursorWordEndLeft})),ne.d(Z,"CursorWordLeft",(function(){return CursorWordLeft})),ne.d(Z,"CursorWordStartLeftSelect",(function(){return CursorWordStartLeftSelect})),ne.d(Z,"CursorWordEndLeftSelect",(function(){return CursorWordEndLeftSelect})),ne.d(Z,"CursorWordLeftSelect",(function(){return CursorWordLeftSelect})),ne.d(Z,"CursorWordAccessibilityLeft",(function(){return CursorWordAccessibilityLeft})),ne.d(Z,"CursorWordAccessibilityLeftSelect",(function(){return CursorWordAccessibilityLeftSelect})),ne.d(Z,"CursorWordStartRight",(function(){return CursorWordStartRight})),ne.d(Z,"CursorWordEndRight",(function(){return CursorWordEndRight})),ne.d(Z,"CursorWordRight",(function(){return CursorWordRight})),ne.d(Z,"CursorWordStartRightSelect",(function(){return CursorWordStartRightSelect})),ne.d(Z,"CursorWordEndRightSelect",(function(){return CursorWordEndRightSelect})),ne.d(Z,"CursorWordRightSelect",(function(){return CursorWordRightSelect})),ne.d(Z,"CursorWordAccessibilityRight",(function(){return CursorWordAccessibilityRight})),ne.d(Z,"CursorWordAccessibilityRightSelect",(function(){return CursorWordAccessibilityRightSelect})),ne.d(Z,"DeleteWordCommand",(function(){return DeleteWordCommand})),ne.d(Z,"DeleteWordLeftCommand",(function(){return DeleteWordLeftCommand})),ne.d(Z,"DeleteWordRightCommand",(function(){return DeleteWordRightCommand})),ne.d(Z,"DeleteWordStartLeft",(function(){return DeleteWordStartLeft})),ne.d(Z,"DeleteWordEndLeft",(function(){return DeleteWordEndLeft})),ne.d(Z,"DeleteWordLeft",(function(){return DeleteWordLeft})),ne.d(Z,"DeleteWordStartRight",(function(){return DeleteWordStartRight})),ne.d(Z,"DeleteWordEndRight",(function(){return DeleteWordEndRight})),ne.d(Z,"DeleteWordRight",(function(){return DeleteWordRight})),ne.d(Z,"DeleteInsideWord",(function(){return DeleteInsideWord}));var ie=ne(4),se=ne(14),ce=ne(223),fe=ne(71),me=ne(580),ge=ne(465),Ce=ne(34),Se=ne(12),Me=ne(80),ke=ne(23),xe=ne(295),De=ne(26),Ie=ne(109),Re=ne(122),ze=ne(1196);class MoveWordCommand extends se.c{constructor(G){super(G),this._inSelectionMode=G.inSelectionMode,this._wordNavigationType=G.wordNavigationType}runEditorCommand(G,Z,ne){if(!Z.hasModel())return;const ie=Object(ge.a)(Z.getOption(115)),se=Z.getModel(),ce=Z.getSelections().map(G=>{const Z=new Ce.a(G.positionLineNumber,G.positionColumn),ne=this._move(ie,se,Z,this._wordNavigationType);return this._moveTo(G,ne,this._inSelectionMode)});if(se.pushStackElement(),Z._getViewModel().setCursorStates("moveWordCommand",3,ce.map(G=>fe.d.fromModelSelection(G))),1===ce.length){const G=new Ce.a(ce[0].positionLineNumber,ce[0].positionColumn);Z.revealPosition(G,0)}}_moveTo(G,Z,ne){return ne?new Me.a(G.selectionStartLineNumber,G.selectionStartColumn,Z.lineNumber,Z.column):new Me.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column)}}class WordLeftCommand extends MoveWordCommand{_move(G,Z,ne,ie){return me.a.moveWordLeft(G,Z,ne,ie)}}class WordRightCommand extends MoveWordCommand{_move(G,Z,ne,ie){return me.a.moveWordRight(G,Z,ne,ie)}}class CursorWordStartLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class CursorWordEndLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class CursorWordLeft extends WordLeftCommand{constructor(){var G;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:De.a.and(ke.a.textInputFocus,null===(G=De.a.and(xe.a,ze.b))||void 0===G?void 0:G.negate()),primary:2063,mac:{primary:527},weight:100}})}}class CursorWordStartLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class CursorWordEndLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class CursorWordLeftSelect extends WordLeftCommand{constructor(){var G;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:De.a.and(ke.a.textInputFocus,null===(G=De.a.and(xe.a,ze.b))||void 0===G?void 0:G.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class CursorWordAccessibilityLeft extends WordLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(G,Z,ne,ie){return super._move(Object(ge.a)(Ie.g.wordSeparators.defaultValue),Z,ne,ie)}}class CursorWordAccessibilityLeftSelect extends WordLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(G,Z,ne,ie){return super._move(Object(ge.a)(Ie.g.wordSeparators.defaultValue),Z,ne,ie)}}class CursorWordStartRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class CursorWordEndRight extends WordRightCommand{constructor(){var G;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:De.a.and(ke.a.textInputFocus,null===(G=De.a.and(xe.a,ze.b))||void 0===G?void 0:G.negate()),primary:2065,mac:{primary:529},weight:100}})}}class CursorWordRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class CursorWordStartRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class CursorWordEndRightSelect extends WordRightCommand{constructor(){var G;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:De.a.and(ke.a.textInputFocus,null===(G=De.a.and(xe.a,ze.b))||void 0===G?void 0:G.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class CursorWordRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class CursorWordAccessibilityRight extends WordRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(G,Z,ne,ie){return super._move(Object(ge.a)(Ie.g.wordSeparators.defaultValue),Z,ne,ie)}}class CursorWordAccessibilityRightSelect extends WordRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(G,Z,ne,ie){return super._move(Object(ge.a)(Ie.g.wordSeparators.defaultValue),Z,ne,ie)}}class DeleteWordCommand extends se.c{constructor(G){super(G),this._whitespaceHeuristics=G.whitespaceHeuristics,this._wordNavigationType=G.wordNavigationType}runEditorCommand(G,Z,ne){if(!Z.hasModel())return;const ie=Object(ge.a)(Z.getOption(115)),se=Z.getModel(),fe=Z.getSelections(),me=Z.getOption(5),Ce=Z.getOption(8),Se=Re.a.getAutoClosingPairs(se.getLanguageIdentifier().id),Me=Z._getViewModel(),ke=fe.map(G=>{const ne=this._delete({wordSeparators:ie,model:se,selection:G,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:Z.getOption(6),autoClosingBrackets:me,autoClosingQuotes:Ce,autoClosingPairs:Se,autoClosedCharacters:Me.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ce.a(ne,"")});Z.pushUndoStop(),Z.executeCommands(this.id,ke),Z.pushUndoStop()}}class DeleteWordLeftCommand extends DeleteWordCommand{_delete(G,Z){let ne=me.a.deleteWordLeft(G,Z);return ne||new Se.a(1,1,1,1)}}class DeleteWordRightCommand extends DeleteWordCommand{_delete(G,Z){let ne=me.a.deleteWordRight(G,Z);if(ne)return ne;const ie=G.model.getLineCount(),se=G.model.getLineMaxColumn(ie);return new Se.a(ie,se,ie,se)}}class DeleteWordStartLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:ke.a.writable})}}class DeleteWordEndLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:ke.a.writable})}}class DeleteWordLeft extends DeleteWordLeftCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:ke.a.writable,kbOpts:{kbExpr:ke.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class DeleteWordStartRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:ke.a.writable})}}class DeleteWordEndRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:ke.a.writable})}}class DeleteWordRight extends DeleteWordRightCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:ke.a.writable,kbOpts:{kbExpr:ke.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class DeleteInsideWord extends se.b{constructor(){super({id:"deleteInsideWord",precondition:ke.a.writable,label:ie.a("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(G,Z,ne){if(!Z.hasModel())return;const ie=Object(ge.a)(Z.getOption(115)),se=Z.getModel(),fe=Z.getSelections().map(G=>{const Z=me.a.deleteInsideWord(ie,se,G);return new ce.a(Z,"")});Z.pushUndoStop(),Z.executeCommands(this.id,fe),Z.pushUndoStop()}}Object(se.k)(new CursorWordStartLeft),Object(se.k)(new CursorWordEndLeft),Object(se.k)(new CursorWordLeft),Object(se.k)(new CursorWordStartLeftSelect),Object(se.k)(new CursorWordEndLeftSelect),Object(se.k)(new CursorWordLeftSelect),Object(se.k)(new CursorWordStartRight),Object(se.k)(new CursorWordEndRight),Object(se.k)(new CursorWordRight),Object(se.k)(new CursorWordStartRightSelect),Object(se.k)(new CursorWordEndRightSelect),Object(se.k)(new CursorWordRightSelect),Object(se.k)(new CursorWordAccessibilityLeft),Object(se.k)(new CursorWordAccessibilityLeftSelect),Object(se.k)(new CursorWordAccessibilityRight),Object(se.k)(new CursorWordAccessibilityRightSelect),Object(se.k)(new DeleteWordStartLeft),Object(se.k)(new DeleteWordEndLeft),Object(se.k)(new DeleteWordLeft),Object(se.k)(new DeleteWordStartRight),Object(se.k)(new DeleteWordEndRight),Object(se.k)(new DeleteWordRight),Object(se.j)(DeleteInsideWord)},1365:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"SuggestController",(function(){return Bn})),ne.d(Z,"TriggerSuggestAction",(function(){return suggestController_TriggerSuggestAction}));var ie=ne(215),se=ne(69),ce=ne(51),fe=ne(165),me=ne(10),ge=ne(332),Ce=ne(14),Se=ne(221),Me=ne(12),ke=ne(23),xe=ne(1003),De=ne(538),Ie=ne(234),Re=ne(375),ze=ne(35),$e=ne(57),Je=ne(60),it=ne(156),ot=ne(533),at=ne(373),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class Memory{constructor(G){this.name=G}select(G,Z,ne){if(0===ne.length)return 0;let ie=ne[0].score[0];for(let G=0;Gthis._saveState(),500),this._disposables.add(G.onWillSaveState(G=>{G.reason===Re.c.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(G,Z,ne){this._withStrategy(G,Z).memorize(G,Z,ne),this._persistSoon.schedule()}select(G,Z,ne){return this._withStrategy(G,Z).select(G,Z,ne)}_withStrategy(G,Z){var ne,ie;const se=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:null===(ne=this._modeService.getLanguageIdentifier(G.getLanguageIdAtPosition(Z.lineNumber,Z.column)))||void 0===ne?void 0:ne.language,resource:G.uri});if((null===(ie=this._strategy)||void 0===ie?void 0:ie.name)!==se){this._saveState();const G=SuggestMemoryService._strategyCtors.get(se)||NoMemory;this._strategy=new G;try{const G=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,Z=this._storageService.get(`${SuggestMemoryService._storagePrefix}/${se}`,G);Z&&this._strategy.fromJSON(JSON.parse(Z))}catch(G){}}return this._strategy}_saveState(){if(this._strategy){const G=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,Z=JSON.stringify(this._strategy);this._storageService.store(`${SuggestMemoryService._storagePrefix}/${this._strategy.name}`,Z,G,1)}}};st._strategyCtors=new Map([["recentlyUsedByPrefix",class suggestMemory_PrefixMemory extends Memory{constructor(){super("recentlyUsedByPrefix"),this._trie=Ie.c.forStrings(),this._seq=0}memorize(G,Z,ne){const{word:ie}=G.getWordUntilPosition(Z),se=`${G.getLanguageIdentifier().language}/${ie}`;this._trie.set(se,{type:ne.completion.kind,insertText:ne.completion.insertText,touch:this._seq++})}select(G,Z,ne){let{word:ie}=G.getWordUntilPosition(Z);if(!ie)return super.select(G,Z,ne);let se=`${G.getLanguageIdentifier().language}/${ie}`,ce=this._trie.get(se);if(ce||(ce=this._trie.findSubstr(se)),ce)for(let G=0;GG.push([ne,Z])),G.sort((G,Z)=>-(G[1].touch-Z[1].touch)).forEach((G,Z)=>G[1].touch=Z),G.slice(0,200)}fromJSON(G){if(this._trie.clear(),G.length>0){this._seq=G[0][1].touch+1;for(const[Z,ne]of G)ne.type="number"==typeof ne.type?ne.type:Object(ze.H)(ne.type),this._trie.set(Z,ne)}}}],["recentlyUsed",class suggestMemory_LRUMemory extends Memory{constructor(){super("recentlyUsed"),this._cache=new Ie.a(300,.66),this._seq=0}memorize(G,Z,ne){const ie=`${G.getLanguageIdentifier().language}/${ne.textLabel}`;this._cache.set(ie,{touch:this._seq++,type:ne.completion.kind,insertText:ne.completion.insertText})}select(G,Z,ne){if(0===ne.length)return 0;const ie=G.getLineContent(Z.lineNumber).substr(Z.column-10,Z.column-1);if(/\s$/.test(ie))return super.select(G,Z,ne);let se=ne[0].score[0],ce=-1,fe=-1,me=-1;for(let Z=0;Zme&&se.type===ne[Z].completion.kind&&se.insertText===ne[Z].completion.insertText&&(me=se.touch,fe=Z),ne[Z].completion.preselect&&-1===ce)return Z}return-1!==fe?fe:-1!==ce?ce:0}toJSON(){return this._cache.toJSON()}fromJSON(G){this._cache.clear();for(const[Z,ne]of G)ne.touch=0,ne.type="number"==typeof ne.type?ne.type:Object(ze.H)(ne.type),this._cache.set(Z,ne);this._seq=this._cache.size}}],["first",NoMemory]]),st._storagePrefix="suggest/memories",st=__decorate([__param(0,Re.a),__param(1,at.a),__param(2,it.a)],st);const ct=Object(Je.c)("ISuggestMemories");Object(ot.b)(ct,st,!0);var ut=ne(4),dt=ne(98),ht=ne(26),ft=ne(378),_t=ne(134),suggestAlternatives_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestAlternatives_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let yt=class SuggestAlternatives{constructor(G,Z){this._editor=G,this._index=0,this._ckOtherSuggestions=SuggestAlternatives.OtherSuggestions.bindTo(Z)}dispose(){this.reset()}reset(){var G;this._ckOtherSuggestions.reset(),null===(G=this._listener)||void 0===G||G.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:G,index:Z},ne){if(0===G.items.length)return void this.reset();SuggestAlternatives._moveIndex(!0,G,Z)!==Z?(this._acceptNext=ne,this._model=G,this._index=Z,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(G,Z,ne){let ie=ne;for(;ie=(ie+Z.items.length+(G?1:-1))%Z.items.length,ie!==ne&&Z.items[ie].completion.additionalTextEdits;);return ie}next(){this._move(!0)}prev(){this._move(!1)}_move(G){if(this._model)try{this._ignore=!0,this._index=SuggestAlternatives._moveIndex(G,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};yt.OtherSuggestions=new ht.c("hasOtherSuggestions",!1),yt=suggestAlternatives_decorate([suggestAlternatives_param(1,ht.b)],yt);var vt=ne(19),wt=ne(80),Ct=ne(253),St=ne(27);class completionModel_CompletionModel{constructor(G,Z,ne,ie,se,ce,fe){this.clipboardText=fe,this._snippetCompareFn=completionModel_CompletionModel._compareCompletionItems,this._items=G,this._column=Z,this._wordDistance=ie,this._options=se,this._refilterKind=1,this._lineContext=ne,"top"===ce?this._snippetCompareFn=completionModel_CompletionModel._compareCompletionItemsSnippetsUp:"bottom"===ce&&(this._snippetCompareFn=completionModel_CompletionModel._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(G){this._lineContext.leadingLineContent===G.leadingLineContent&&this._lineContext.characterCountDelta===G.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta2e3?Ct.d:Ct.e;for(let se=0;se=Me)Ce.score=Ct.a.Default;else if("string"==typeof Ce.completion.filterText){let Z=ge(ie,ce,G,Ce.completion.filterText,Ce.filterTextLow,0,!1);if(!Z)continue;0===Object(St.g)(Ce.completion.filterText,Ce.textLabel)?Ce.score=Z:(Ce.score=Object(Ct.b)(ie,ce,G,Ce.textLabel,Ce.labelLow,0),Ce.score[0]=Z[0])}else{let Z=ge(ie,ce,G,Ce.textLabel,Ce.labelLow,0,!1);if(!Z)continue;Ce.score=Z}}Ce.idx=se,Ce.distance=this._wordDistance.distance(Ce.position,Ce.completion),me.push(Ce),G.push(Ce.textLabel.length)}this._filteredItems=me.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:G.length?Object(se.q)(G.length-.85,G,(G,Z)=>G-Z):0}}static _compareCompletionItems(G,Z){return G.score[0]>Z.score[0]?-1:G.score[0]Z.distance?1:G.idxZ.idx?1:0}static _compareCompletionItemsSnippetsDown(G,Z){if(G.completion.kind!==Z.completion.kind){if(27===G.completion.kind)return 1;if(27===Z.completion.kind)return-1}return completionModel_CompletionModel._compareCompletionItems(G,Z)}static _compareCompletionItemsSnippetsUp(G,Z){if(G.completion.kind!==Z.completion.kind){if(27===G.completion.kind)return-1;if(27===Z.completion.kind)return 1}return completionModel_CompletionModel._compareCompletionItems(G,Z)}}var Mt=ne(103),kt=ne(418),xt=ne(2109),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class wordDistance_WordDistance{static create(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(!Z.getOption(105).localityBonus)return wordDistance_WordDistance.None;if(!Z.hasModel())return wordDistance_WordDistance.None;const ne=Z.getModel(),ie=Z.getPosition();if(!G.canComputeWordRanges(ne.uri))return wordDistance_WordDistance.None;const[ce]=yield(new xt.a).provideSelectionRanges(ne,[ie]);if(0===ce.length)return wordDistance_WordDistance.None;const fe=yield G.computeWordRanges(ne.uri,ce[0].range);if(!fe)return wordDistance_WordDistance.None;const me=ne.getWordUntilPosition(ie);return delete fe[me.word],new class extends wordDistance_WordDistance{distance(G,ne){if(!ie.equals(Z.getPosition()))return 0;if(17===ne.kind)return 2<<20;let me="string"==typeof ne.label?ne.label:ne.label.label,ge=fe[me];if(Object(se.m)(ge))return 2<<20;let Ce=Object(se.d)(ge,Me.a.fromPositions(G),Me.a.compareRangesUsingStarts),Se=Ce>=0?ge[Ce]:ge[Math.max(0,~Ce-1)],ke=ce.length;for(const G of ce){if(!Me.a.containsRange(G.range,Se))break;ke-=1}return ke}}}))}}wordDistance_WordDistance.None=new class extends wordDistance_WordDistance{distance(){return 0}};var Lt=ne(576),Tt=ne(574),At=ne(352),suggestModel_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestModel_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},suggestModel_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class suggestModel_LineContext{constructor(G,Z,ne,ie){this.leadingLineContent=G.getLineContent(Z.lineNumber).substr(0,Z.column-1),this.leadingWord=G.getWordUntilPosition(Z),this.lineNumber=Z.lineNumber,this.column=Z.column,this.auto=ne,this.shy=ie}static shouldAutoTrigger(G){if(!G.hasModel())return!1;const Z=G.getModel(),ne=G.getPosition();Z.tokenizeIfCheap(ne.lineNumber);const ie=Z.getWordAtPosition(ne);return!!ie&&(ie.endColumn===ne.column&&!!isNaN(Number(ie.word)))}}let Dt=class SuggestModel{constructor(G,Z,ne,ie,se,ce,fe){this._editor=G,this._editorWorkerService=Z,this._clipboardService=ne,this._telemetryService=ie,this._logService=se,this._contextKeyService=ce,this._configurationService=fe,this._toDispose=new me.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new me.b,this._triggerQuickSuggest=new $e.g,this._state=0,this._completionDisposables=new me.b,this._onDidCancel=new vt.b,this._onDidTrigger=new vt.b,this._onDidSuggest=new vt.b,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new wt.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(ze.d.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(G=>{this._onCursorChange(G)}));let ge=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{ge=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{ge=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{ge||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(me.f)(this._triggerCharacterListener),Object(me.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(78),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(79)||!this._editor.hasModel()||!this._editor.getOption(108))return;const G=new Map;for(const Z of ze.d.all(this._editor.getModel()))for(const ne of Z.triggerCharacters||[]){let ie=G.get(ne);ie||(ie=new Set,ie.add(Object(_t.c)()),G.set(ne,ie)),ie.add(Z)}const checkTriggerCharacter=Z=>{if(function shouldPreventSuggestOnTriggerCharacters(G,Z){return Boolean(G.getContextKeyValue("inlineSuggestionVisible"))&&!Boolean(Z.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters"))}(this._contextKeyService,this._configurationService))return;if(suggestModel_LineContext.shouldAutoTrigger(this._editor))return;if(!Z){const G=this._editor.getPosition();Z=this._editor.getModel().getLineContent(G.lineNumber).substr(0,G.column-1)}let ne="";Object(St.G)(Z.charCodeAt(Z.length-1))?Object(St.F)(Z.charCodeAt(Z.length-2))&&(ne=Z.substr(Z.length-2)):ne=Z.charAt(Z.length-1);const ie=G.get(ne);if(ie){const G=this._completionModel?{items:this._completionModel.adopt(ie),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,triggerCharacter:ne},Boolean(this._completionModel),ie,G)}};this._triggerCharacterListener.add(this._editor.onDidType(checkTriggerCharacter)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(checkTriggerCharacter))}get state(){return this._state}cancel(G=!1){var Z;0!==this._state&&(this._triggerQuickSuggest.cancel(),null===(Z=this._requestToken)||void 0===Z||Z.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:G}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&ze.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())}_onCursorChange(G){if(!this._editor.hasModel())return;const Z=this._editor.getModel(),ne=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!G.selection.isEmpty()||0!==G.reason&&3!==G.reason||"keyboard"!==G.source&&"deleteLeft"!==G.source)this.cancel();else if(ze.d.has(Z))if(0===this._state&&0===G.reason){if(!1===this._editor.getOption(77))return;if(!ne.containsRange(this._currentSelection)&&!ne.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(105).snippetsPreventQuickSuggestions&&xe.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(0!==this._state)return;if(!suggestModel_LineContext.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel())return;const G=this._editor.getModel(),Z=this._editor.getPosition(),ne=this._editor.getOption(77);if(!1!==ne){if(!0===ne);else{G.tokenizeIfCheap(Z.lineNumber);const ie=G.getLineTokens(Z.lineNumber),se=ie.getStandardTokenType(ie.findTokenIndexAtOffset(Math.max(Z.column-1-1,0)));if(!(ne.other&&0===se||ne.comments&&1===se||ne.strings&&2===se))return}(function shouldPreventQuickSuggest(G,Z){return Boolean(G.getContextKeyValue("inlineSuggestionVisible"))&&!Boolean(Z.getValue("editor.inlineSuggest.allowQuickSuggestions"))})(this._contextKeyService,this._configurationService)||this.trigger({auto:!0,shy:!1})}},this._quickSuggestDelay)}else 0!==this._state&&3===G.reason&&this._refilterCompletionItems()}_refilterCompletionItems(){Promise.resolve().then(()=>{if(0===this._state)return;if(!this._editor.hasModel())return;const G=this._editor.getModel(),Z=this._editor.getPosition(),ne=new suggestModel_LineContext(G,Z,2===this._state,!1);this._onNewContext(ne)})}trigger(G,Z=!1,ne,ie){var se;if(!this._editor.hasModel())return;const fe=this._editor.getModel(),me=G.auto,ge=new suggestModel_LineContext(fe,this._editor.getPosition(),me,G.shy);this.cancel(Z),this._state=me?2:1,this._onDidTrigger.fire({auto:me,shy:G.shy,position:this._editor.getPosition()}),this._context=ge;let Ce={triggerKind:null!==(se=G.triggerKind)&&void 0!==se?se:0};G.triggerCharacter&&(Ce={triggerKind:1,triggerCharacter:G.triggerCharacter}),this._requestToken=new Mt.b;const Se=this._editor.getOption(100);let Me=1;switch(Se){case"top":Me=0;break;case"bottom":Me=2}const{itemKind:ke,showDeprecated:xe}=SuggestModel._createSuggestFilter(this._editor),De=wordDistance_WordDistance.create(this._editorWorkerService,this._editor),Ie=Object(_t.e)(fe,this._editor.getPosition(),new _t.a(Me,ke,ne,xe),Ce,this._requestToken.token);Promise.all([Ie,De]).then(([Z,ne])=>suggestModel_awaiter(this,void 0,void 0,(function*(){var se;if(null===(se=this._requestToken)||void 0===se||se.dispose(),!this._editor.hasModel())return;let ce=null==ie?void 0:ie.clipboardText;if(!ce&&Z.needsClipboard&&(ce=yield this._clipboardService.readText()),0===this._state)return;const fe=this._editor.getModel();let ge=Z.items;if(ie){const G=Object(_t.d)(Me);ge=ge.concat(ie.items).sort(G)}const Ce=new suggestModel_LineContext(fe,this._editor.getPosition(),me,G.shy);this._completionModel=new completionModel_CompletionModel(ge,this._context.column,{leadingLineContent:Ce.leadingLineContent,characterCountDelta:Ce.column-this._context.column},ne,this._editor.getOption(105),this._editor.getOption(100),ce),this._completionDisposables.add(Z.disposable),this._onNewContext(Ce),this._reportDurationsTelemetry(Z.durations)}))).catch(ce.e)}_reportDurationsTelemetry(G){this._telemetryGate++%230==0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(G)}),this._logService.debug("suggest.durations.json",G)})}static _createSuggestFilter(G){const Z=new Set;"none"===G.getOption(100)&&Z.add(27);const ne=G.getOption(105);return ne.showMethods||Z.add(0),ne.showFunctions||Z.add(1),ne.showConstructors||Z.add(2),ne.showFields||Z.add(3),ne.showVariables||Z.add(4),ne.showClasses||Z.add(5),ne.showStructs||Z.add(6),ne.showInterfaces||Z.add(7),ne.showModules||Z.add(8),ne.showProperties||Z.add(9),ne.showEvents||Z.add(10),ne.showOperators||Z.add(11),ne.showUnits||Z.add(12),ne.showValues||Z.add(13),ne.showConstants||Z.add(14),ne.showEnums||Z.add(15),ne.showEnumMembers||Z.add(16),ne.showKeywords||Z.add(17),ne.showWords||Z.add(18),ne.showColors||Z.add(19),ne.showFiles||Z.add(20),ne.showReferences||Z.add(21),ne.showColors||Z.add(22),ne.showFolders||Z.add(23),ne.showTypeParameters||Z.add(24),ne.showSnippets||Z.add(27),ne.showUsers||Z.add(25),ne.showIssues||Z.add(26),{itemKind:Z,showDeprecated:ne.showDeprecated}}_onNewContext(G){if(this._context)if(G.lineNumber===this._context.lineNumber)if(Object(St.y)(G.leadingLineContent)===Object(St.y)(this._context.leadingLineContent)){if(G.columnthis._context.leadingWord.startColumn){const G=new Set(ze.d.all(this._editor.getModel()));for(let Z of this._completionModel.allProvider)G.delete(Z);const Z=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,G,{items:Z,clipboardText:this._completionModel.clipboardText})}else if(G.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==G.leadingWord.word.length){const{incomplete:G}=this._completionModel,Z=this._completionModel.adopt(G);this.trigger({auto:2===this._state,shy:!1,triggerKind:2},!0,G,{items:Z,clipboardText:this._completionModel.clipboardText})}else{let Z=this._completionModel.lineContext,ne=!1;if(this._completionModel.lineContext={leadingLineContent:G.leadingLineContent,characterCountDelta:G.column-this._context.column},0===this._completionModel.items.length){if(suggestModel_LineContext.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,ne&&0===G.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:ne})}}else this.cancel();else this.cancel()}};Dt=suggestModel_decorate([suggestModel_param(1,kt.a),suggestModel_param(2,Lt.a),suggestModel_param(3,Tt.a),suggestModel_param(4,At.b),suggestModel_param(5,ht.b),suggestModel_param(6,it.a)],Dt);ne(7564),ne(1667),ne(4149);var Et=ne(6),jt=ne(447),It=ne(319),Nt=ne(50),Rt=ne(13),zt=ne(416),qt=ne(997),Wt=ne(379),Bt=ne(67),Ft=ne(537);class resizable_ResizableHTMLElement{constructor(){let G;this._onDidWillResize=new vt.b,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new vt.b,this.onDidResize=this._onDidResize.event,this._sashListener=new me.b,this._size=new Et.b(0,0),this._minSize=new Et.b(0,0),this._maxSize=new Et.b(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Ft.b(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Ft.b(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Ft.b(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:Ft.a.North}),this._southSash=new Ft.b(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:Ft.a.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let Z=0,ne=0;this._sashListener.add(vt.c.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{void 0===G&&(this._onDidWillResize.fire(),G=this._size,Z=0,ne=0)})),this._sashListener.add(vt.c.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{void 0!==G&&(G=void 0,Z=0,ne=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(ie=>{G&&(ne=ie.currentX-ie.startX,this.layout(G.height+Z,G.width+ne),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(ie=>{G&&(ne=-(ie.currentX-ie.startX),this.layout(G.height+Z,G.width+ne),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(ie=>{G&&(Z=-(ie.currentY-ie.startY),this.layout(G.height+Z,G.width+ne),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(ie=>{G&&(Z=ie.currentY-ie.startY,this.layout(G.height+Z,G.width+ne),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(vt.c.any(this._eastSash.onDidReset,this._westSash.onDidReset)(G=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(vt.c.any(this._northSash.onDidReset,this._southSash.onDidReset)(G=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(G,Z,ne,ie){this._northSash.state=G?3:0,this._eastSash.state=Z?3:0,this._southSash.state=ne?3:0,this._westSash.state=ie?3:0}layout(G=this.size.height,Z=this.size.width){const{height:ne,width:ie}=this._minSize,{height:se,width:ce}=this._maxSize;G=Math.max(ne,Math.min(se,G)),Z=Math.max(ie,Math.min(ce,Z));const fe=new Et.b(Z,G);Et.b.equals(fe,this._size)||(this.domNode.style.height=G+"px",this.domNode.style.width=Z+"px",this._size=fe,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(G){this._maxSize=G}get maxSize(){return this._maxSize}set minSize(G){this._minSize=G}get minSize(){return this._minSize}set preferredSize(G){this._preferredSize=G}get preferredSize(){return this._preferredSize}}var suggestWidgetDetails_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestWidgetDetails_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};function canExpandCompletionItem(G){return!!G&&Boolean(G.completion.documentation||G.completion.detail&&G.completion.detail!==G.completion.label)}let Ht=class SuggestDetailsWidget{constructor(G,Z){this._editor=G,this._onDidClose=new vt.b,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new vt.b,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new me.b,this._renderDisposeable=new me.b,this._borderWidth=1,this._size=new Et.b(330,0),this.domNode=Et.a(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=Z.createInstance(qt.a,{editor:G}),this._body=Et.a(".body"),this._scrollbar=new zt.a(this._body,{}),Et.q(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Et.q(this._body,Et.a(".header")),this._close=Et.q(this._header,Et.a("span"+Bt.b.close.cssSelector)),this._close.title=ut.a("details.close","Close"),this._type=Et.q(this._header,Et.a("p.type")),this._docs=Et.q(this._body,Et.a("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(41)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const G=this._editor.getOptions(),Z=G.get(41),ne=Z.fontFamily,ie=G.get(106)||Z.fontSize,se=G.get(107)||Z.lineHeight,ce=Z.fontWeight,fe=ie+"px",me=se+"px";this.domNode.style.fontSize=fe,this.domNode.style.lineHeight=me,this.domNode.style.fontWeight=ce,this.domNode.style.fontFeatureSettings=Z.fontFeatureSettings,this._type.style.fontFamily=ne,this._close.style.height=me,this._close.style.width=me}getLayoutInfo(){const G=this._editor.getOption(107)||this._editor.getOption(41).lineHeight,Z=this._borderWidth;return{lineHeight:G,borderWidth:Z,borderHeight:2*Z,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=ut.a("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(G,Z){var ne,ie;this._renderDisposeable.clear();let{detail:se,documentation:ce}=G.completion;if(Z){let Z="";Z+=`score: ${G.score[0]}\n`,Z+=`prefix: ${null!==(ne=G.word)&&void 0!==ne?ne:"(no prefix)"}\n`,Z+=`word: ${G.completion.filterText?G.completion.filterText+" (filterText)":G.textLabel}\n`,Z+=`distance: ${G.distance} (localityBonus-setting)\n`,Z+=`index: ${G.idx}, based on ${G.completion.sortText&&`sortText: "${G.completion.sortText}"`||"label"}\n`,Z+=`commit_chars: ${null===(ie=G.completion.commitCharacters)||void 0===ie?void 0:ie.join("")}\n`,ce=(new Wt.a).appendCodeblock("empty",Z),se="Provider: "+G.provider._debugDisplayName}if(Z||canExpandCompletionItem(G)){if(this.domNode.classList.remove("no-docs","no-type"),se){const G=se.length>1e5?se.substr(0,1e5)+"…":se;this._type.textContent=G,this._type.title=G,Et.W(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(G))}else Et.t(this._type),this._type.title="",Et.K(this._type),this.domNode.classList.add("no-type");if(Et.t(this._docs),"string"==typeof ce)this._docs.classList.remove("markdown-docs"),this._docs.textContent=ce;else if(ce){this._docs.classList.add("markdown-docs"),Et.t(this._docs);const G=this._markdownRenderer.render(ce);this._docs.appendChild(G.element),this._renderDisposeable.add(G),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=G=>{G.preventDefault(),G.stopPropagation()},this._close.onclick=G=>{G.preventDefault(),G.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(G,Z){const ne=new Et.b(G,Z);Et.b.equals(ne,this._size)||(this._size=ne,Et.X(this.domNode,G,Z)),this._scrollbar.scanDomNode()}scrollDown(G=8){this._body.scrollTop+=G}scrollUp(G=8){this._body.scrollTop-=G}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(G){this._borderWidth=G}get borderWidth(){return this._borderWidth}};Ht=suggestWidgetDetails_decorate([suggestWidgetDetails_param(1,Je.a)],Ht);class suggestWidgetDetails_SuggestDetailsOverlay{constructor(G,Z){let ne,ie;this.widget=G,this._editor=Z,this._disposables=new me.b,this._added=!1,this._resizable=new resizable_ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(G.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let se=0,ce=0;this._disposables.add(this._resizable.onDidWillResize(()=>{ne=this._topLeft,ie=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(G=>{if(ne&&ie){this.widget.layout(G.dimension.width,G.dimension.height);let Z=!1;G.west&&(ce=ie.width-G.dimension.width,Z=!0),G.north&&(se=ie.height-G.dimension.height,Z=!0),Z&&this._applyTopLeft({top:ne.top+se,left:ne.left+ce})}G.done&&(ne=void 0,ie=void 0,se=0,ce=0,this._userSize=G.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var G;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(G=this._userSize)&&void 0!==G?G:this.widget.size)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(G=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),G&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(G){var Z;const ne=Et.D(G);this._anchorBox=ne,this._placeAtAnchor(this._anchorBox,null!==(Z=this._userSize)&&void 0!==Z?Z:this.widget.size)}_placeAtAnchor(G,Z){const ne=Et.z(document.body),ie=this.widget.getLayoutInfo();let se,ce,fe,me,ge=new Et.b(220,2*ie.lineHeight),Ce=0,Se=G.top,Me=G.top+G.height-ie.borderHeight,ke=ne.width-(G.left+G.width+ie.borderWidth+ie.horizontalPadding);Ce=-ie.borderWidth+G.left+G.width,me=!0,se=new Et.b(ke,ne.height-G.top-ie.borderHeight-ie.verticalPadding),ce=se.with(void 0,G.top+G.height-ie.borderHeight-ie.verticalPadding),Z.width>ke&&(G.left>ke&&(ke=G.left-ie.borderWidth-ie.horizontalPadding,me=!1,Ce=Math.max(ie.horizontalPadding,G.left-Z.width-ie.borderWidth),se=se.with(ke),ce=se.with(void 0,ce.height)),G.width>1.3*ke&&ne.height-(G.top+G.height)>G.height&&(ke=G.width,Ce=G.left,Se=-ie.borderWidth+G.top+G.height,se=new Et.b(G.width-ie.borderHeight,ne.height-G.top-G.height-ie.verticalPadding),ce=se.with(void 0,G.top-ie.verticalPadding),ge=ge.with(se.width)));let xe,De=Z.height,Ie=Math.max(se.height,ce.height);De>Ie&&(De=Ie),De<=se.height?(fe=!0,xe=se):(fe=!1,xe=ce),this._applyTopLeft({left:Ce,top:fe?Se:Me-De}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!fe,me,fe,!me),this._resizable.minSize=ge,this._resizable.maxSize=xe,this._resizable.layout(De,Math.min(xe.width,Z.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(G){this._topLeft=G,this.getDomNode().style.left=this._topLeft.left+"px",this.getDomNode().style.top=this._topLeft.top+"px"}}var $t=ne(535),Vt=ne(1354),Yt=ne(92),suggestWidgetStatus_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestWidgetStatus_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class suggestWidgetStatus_StatusBarViewItem extends Vt.a{updateLabel(){const G=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!G)return super.updateLabel();this.label&&(this.label.textContent=Object(ut.a)("ddd","{0} ({1})",this._action.label,suggestWidgetStatus_StatusBarViewItem.symbolPrintEnter(G)))}static symbolPrintEnter(G){var Z;return null===(Z=G.getLabel())||void 0===Z?void 0:Z.replace(/\benter\b/gi,"⏎")}}let Ut=class SuggestWidgetStatus{constructor(G,Z,ne,ie){this._menuService=ne,this._contextKeyService=ie,this._menuDisposables=new me.b,this.element=Et.q(G,Et.a(".suggest-status-bar"));const actionViewItemProvider=G=>G instanceof Yt.c?Z.createInstance(suggestWidgetStatus_StatusBarViewItem,G,void 0):void 0;this._leftActions=new $t.a(this.element,{actionViewItemProvider:actionViewItemProvider}),this._rightActions=new $t.a(this.element,{actionViewItemProvider:actionViewItemProvider}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const G=this._menuService.createMenu(_t.g,this._contextKeyService),renderMenu=()=>{const Z=[],ne=[];for(let[ie,se]of G.getActions())"left"===ie?Z.push(...se):ne.push(...se);this._leftActions.clear(),this._leftActions.push(Z),this._rightActions.clear(),this._rightActions.push(ne)};this._menuDisposables.add(G.onDidChange(()=>renderMenu())),this._menuDisposables.add(G)}hide(){this._menuDisposables.clear()}};Ut=suggestWidgetStatus_decorate([suggestWidgetStatus_param(1,Je.a),suggestWidgetStatus_param(2,Yt.a),suggestWidgetStatus_param(3,ht.b)],Ut);var Kt,Gt=ne(1356),Zt=ne(143),Jt=ne(181),Qt=ne(776);function getIconClasses(G,Z,ne,ie){const se=ie===Kt.ROOT_FOLDER?["rootfolder-icon"]:ie===Kt.FOLDER?["folder-icon"]:["file-icon"];if(ne){let ce;if(ne.scheme===Zt.c.data){ce=Jt.a.parseMetaData(ne).get(Jt.a.META_DATA_LABEL)}else ce=cssEscape(Object(Jt.c)(ne).toLowerCase());if(ie===Kt.FOLDER)se.push(ce+"-name-folder-icon");else{if(ce){if(se.push(ce+"-name-file-icon"),ce.length<=255){const G=ce.split(".");for(let Z=1;Z=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestWidgetRenderer_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};function getAriaId(G){return"suggest-aria-id:"+G}const mn=Object(dn.b)("suggest-more-info",Bt.b.chevronRight,ut.a("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),_n=new((on=class ColorExtractor{extract(G,Z){if(G.textLabel.match(ColorExtractor._regexStrict))return Z[0]=G.textLabel,!0;if(G.completion.detail&&G.completion.detail.match(ColorExtractor._regexStrict))return Z[0]=G.completion.detail,!0;if("string"==typeof G.completion.documentation){const ne=ColorExtractor._regexRelaxed.exec(G.completion.documentation);if(ne&&(0===ne.index||ne.index+ne[0].length===G.completion.documentation.length))return Z[0]=ne[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,on._regexStrict=new RegExp(`^${on._regexRelaxed.source}$`,"i"),on);let gn=class ItemRenderer{constructor(G,Z,ne,ie){this._editor=G,this._modelService=Z,this._modeService=ne,this._themeService=ie,this._onDidToggleDetails=new vt.b,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(G){const Z=Object.create(null);Z.disposables=new me.b,Z.root=G,Z.root.classList.add("show-file-icons"),Z.icon=Object(Et.q)(G,Object(Et.a)(".icon")),Z.colorspan=Object(Et.q)(Z.icon,Object(Et.a)("span.colorspan"));const ne=Object(Et.q)(G,Object(Et.a)(".contents")),ie=Object(Et.q)(ne,Object(Et.a)(".main"));Z.iconContainer=Object(Et.q)(ie,Object(Et.a)(".icon-label.codicon")),Z.left=Object(Et.q)(ie,Object(Et.a)("span.left")),Z.right=Object(Et.q)(ie,Object(Et.a)("span.right")),Z.iconLabel=new Gt.a(Z.left,{supportHighlights:!0,supportIcons:!0}),Z.disposables.add(Z.iconLabel),Z.parametersLabel=Object(Et.q)(Z.left,Object(Et.a)("span.signature-label")),Z.qualifierLabel=Object(Et.q)(Z.left,Object(Et.a)("span.qualifier-label")),Z.detailsLabel=Object(Et.q)(Z.right,Object(Et.a)("span.details-label")),Z.readMore=Object(Et.q)(Z.right,Object(Et.a)("span.readMore"+Nt.d.asCSSSelector(mn))),Z.readMore.title=ut.a("readMore","Read More");const configureFont=()=>{const G=this._editor.getOptions(),ne=G.get(41),se=ne.fontFamily,ce=ne.fontFeatureSettings,fe=G.get(106)||ne.fontSize,me=G.get(107)||ne.lineHeight,ge=ne.fontWeight,Ce=fe+"px",Se=me+"px";Z.root.style.fontSize=Ce,Z.root.style.fontWeight=ge,ie.style.fontFamily=se,ie.style.fontFeatureSettings=ce,ie.style.lineHeight=Se,Z.icon.style.height=Se,Z.icon.style.width=Se,Z.readMore.style.height=Se,Z.readMore.style.width=Se};return configureFont(),Z.disposables.add(this._editor.onDidChangeConfiguration(G=>{(G.hasChanged(41)||G.hasChanged(106)||G.hasChanged(107))&&configureFont()})),Z}renderElement(G,Z,ne){const{completion:ie}=G;ne.root.id=getAriaId(Z),ne.colorspan.style.backgroundColor="";const ce={labelEscapeNewLines:!0,matches:Object(Ct.c)(G.score)};let fe=[];if(19===ie.kind&&_n.extract(G,fe))ne.icon.className="icon customcolor",ne.iconContainer.className="icon hide",ne.colorspan.style.backgroundColor=fe[0];else if(20===ie.kind&&this._themeService.getFileIconTheme().hasFileIcons){ne.icon.className="icon hide",ne.iconContainer.className="icon hide";const Z=getIconClasses(this._modelService,this._modeService,cn.a.from({scheme:"fake",path:G.textLabel}),Kt.FILE),se=getIconClasses(this._modelService,this._modeService,cn.a.from({scheme:"fake",path:ie.detail}),Kt.FILE);ce.extraClasses=Z.length>se.length?Z:se}else 23===ie.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(ne.icon.className="icon hide",ne.iconContainer.className="icon hide",ce.extraClasses=Object(se.k)([getIconClasses(this._modelService,this._modeService,cn.a.from({scheme:"fake",path:G.textLabel}),Kt.FOLDER),getIconClasses(this._modelService,this._modeService,cn.a.from({scheme:"fake",path:ie.detail}),Kt.FOLDER)])):(ne.icon.className="icon hide",ne.iconContainer.className="",ne.iconContainer.classList.add("suggest-icon",...Object(ze.I)(ie.kind).split(" ")));ie.tags&&ie.tags.indexOf(1)>=0&&(ce.extraClasses=(ce.extraClasses||[]).concat(["deprecated"]),ce.matches=[]),ne.iconLabel.setLabel(G.textLabel,void 0,ce),"string"==typeof ie.label?(ne.parametersLabel.textContent="",ne.detailsLabel.textContent=stripNewLines(ie.detail||""),ne.root.classList.add("string-label")):(ne.parametersLabel.textContent=stripNewLines(ie.label.detail||""),ne.detailsLabel.textContent=stripNewLines(ie.label.description||""),ne.root.classList.remove("string-label")),this._editor.getOption(105).showInlineDetails?Object(Et.W)(ne.detailsLabel):Object(Et.K)(ne.detailsLabel),canExpandCompletionItem(G)?(ne.right.classList.add("can-expand-details"),Object(Et.W)(ne.readMore),ne.readMore.onmousedown=G=>{G.stopPropagation(),G.preventDefault()},ne.readMore.onclick=G=>{G.stopPropagation(),G.preventDefault(),this._onDidToggleDetails.fire()}):(ne.right.classList.remove("can-expand-details"),Object(Et.K)(ne.readMore),ne.readMore.onmousedown=null,ne.readMore.onclick=null)}disposeTemplate(G){G.disposables.dispose()}};function stripNewLines(G){return G.replace(/\r\n|\r|\n/g,"")}gn=suggestWidgetRenderer_decorate([suggestWidgetRenderer_param(1,sn.a),suggestWidgetRenderer_param(2,at.a),suggestWidgetRenderer_param(3,Nt.b)],gn);var bn=ne(903),yn=ne(466),suggestWidget_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestWidget_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},suggestWidget_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const vn=Object(Rt.wc)("editorSuggestWidget.background",{dark:Rt.Y,light:Rt.Y,hc:Rt.Y},ut.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),wn=Object(Rt.wc)("editorSuggestWidget.border",{dark:Rt.Z,light:Rt.Z,hc:Rt.Z},ut.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Cn=Object(Rt.wc)("editorSuggestWidget.foreground",{dark:Rt.B,light:Rt.B,hc:Rt.B},ut.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),On=Object(Rt.wc)("editorSuggestWidget.selectedForeground",{dark:Rt.tc,light:Rt.tc,hc:Rt.tc},ut.a("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),Mn=Object(Rt.wc)("editorSuggestWidget.selectedIconForeground",{dark:Rt.uc,light:Rt.uc,hc:Rt.uc},ut.a("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),kn=Object(Rt.wc)("editorSuggestWidget.selectedBackground",{dark:Rt.sc,light:Rt.sc,hc:Rt.sc},ut.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),xn=Object(Rt.wc)("editorSuggestWidget.highlightForeground",{dark:Rt.Kb,light:Rt.Kb,hc:Rt.Kb},ut.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Tn=Object(Rt.wc)("editorSuggestWidget.focusHighlightForeground",{dark:Rt.Ib,light:Rt.Ib,hc:Rt.Ib},ut.a("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));class suggestWidget_PersistedWidgetSize{constructor(G,Z){this._service=G,this._key=`suggestWidget.size/${Z.getEditorType()}/${Z instanceof bn.a}`}restore(){var G;const Z=null!==(G=this._service.get(this._key,0))&&void 0!==G?G:"";try{const G=JSON.parse(Z);if(Et.b.is(G))return Et.b.lift(G)}catch(G){}}store(G){this._service.store(this._key,JSON.stringify(G),0,1)}reset(){this._service.remove(this._key,0)}}let Dn=class SuggestWidget{constructor(G,Z,ne,ie,se){this.editor=G,this._storageService=Z,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new $e.g,this._disposables=new me.b,this._onDidSelect=new vt.b,this._onDidFocus=new vt.b,this._onDidHide=new vt.b,this._onDidShow=new vt.b,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new vt.b,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new resizable_ResizableHTMLElement,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new suggestWidget_SuggestContentWidget(this,G),this._persistedSize=new suggestWidget_PersistedWidgetSize(Z,G);class ResizeState{constructor(G,Z,ne=!1,ie=!1){this.persistedSize=G,this.currentSize=Z,this.persistHeight=ne,this.persistWidth=ie}}let ce;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),ce=new ResizeState(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(G=>{var Z,ne,ie,se;if(this._resize(G.dimension.width,G.dimension.height),ce&&(ce.persistHeight=ce.persistHeight||!!G.north||!!G.south,ce.persistWidth=ce.persistWidth||!!G.east||!!G.west),G.done){if(ce){const{itemHeight:G,defaultSize:fe}=this.getLayoutInfo(),me=Math.round(G/2);let{width:ge,height:Ce}=this.element.size;(!ce.persistHeight||Math.abs(ce.currentSize.height-Ce)<=me)&&(Ce=null!==(ne=null===(Z=ce.persistedSize)||void 0===Z?void 0:Z.height)&&void 0!==ne?ne:fe.height),(!ce.persistWidth||Math.abs(ce.currentSize.width-ge)<=me)&&(ge=null!==(se=null===(ie=ce.persistedSize)||void 0===ie?void 0:ie.width)&&void 0!==se?se:fe.width),this._persistedSize.store(new Et.b(ge,Ce))}this._contentWidget.unlockPreference(),ce=void 0}})),this._messageElement=Et.q(this.element.domNode,Et.a(".message")),this._listElement=Et.q(this.element.domNode,Et.a(".tree"));const fe=se.createInstance(Ht,this.editor);fe.onDidClose(this.toggleDetails,this,this._disposables),this._details=new suggestWidgetDetails_SuggestDetailsOverlay(fe,this.editor);const applyIconStyle=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(105).showIcons);applyIconStyle();const ge=se.createInstance(gn,this.editor);this._disposables.add(ge),this._disposables.add(ge.onDidToggleDetails(()=>this.toggleDetails())),this._list=new jt.c("SuggestWidget",this._listElement,{getHeight:G=>this.getLayoutInfo().itemHeight,getTemplateId:G=>"suggestion"},[ge],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:G=>{if(G.isResolved&&this._isDetailsVisible()){const{documentation:Z,detail:ne}=G.completion,ie=St.w("{0}{1}",ne||"",Z?"string"==typeof Z?Z:Z.value:"");return ut.a("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",G.textLabel,ie)}return G.textLabel},getWidgetAriaLabel:()=>ut.a("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this._status=se.createInstance(Ut,this.element.domNode);const applyStatusBarStyle=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(105).showStatusBar);applyStatusBarStyle(),this._disposables.add(Object(It.b)(this._list,ie,{listInactiveFocusBackground:kn,listInactiveFocusOutline:Rt.b})),this._disposables.add(ie.onDidColorThemeChange(G=>this._onThemeChange(G))),this._onThemeChange(ie.getColorTheme()),this._disposables.add(this._list.onMouseDown(G=>this._onListMouseDownOrTap(G))),this._disposables.add(this._list.onTap(G=>this._onListMouseDownOrTap(G))),this._disposables.add(this._list.onDidChangeSelection(G=>this._onListSelection(G))),this._disposables.add(this._list.onDidChangeFocus(G=>this._onListFocus(G))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(G=>{G.hasChanged(105)&&(applyStatusBarStyle(),applyIconStyle())})),this._ctxSuggestWidgetVisible=_t.b.Visible.bindTo(ne),this._ctxSuggestWidgetDetailsVisible=_t.b.DetailsVisible.bindTo(ne),this._ctxSuggestWidgetMultipleSuggestions=_t.b.MultipleSuggestions.bindTo(ne),this._disposables.add(Et.o(this._details.widget.domNode,"keydown",G=>{this._onDetailsKeydown.fire(G)})),this._disposables.add(this.editor.onMouseDown(G=>this._onEditorMouseDown(G)))}dispose(){var G;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(G=this._loadingTimeout)||void 0===G||G.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(G){this._details.widget.domNode.contains(G.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(G.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(G){void 0!==G.element&&void 0!==G.index&&(G.browserEvent.preventDefault(),G.browserEvent.stopPropagation(),this._select(G.element,G.index))}_onListSelection(G){G.elements.length&&this._select(G.elements[0],G.indexes[0])}_select(G,Z){const ne=this._completionModel;ne&&(this._onDidSelect.fire({item:G,index:Z,model:ne}),this.editor.focus())}_onThemeChange(G){const Z=G.getColor(vn);Z&&(this.element.domNode.style.backgroundColor=Z.toString(),this._messageElement.style.backgroundColor=Z.toString(),this._details.widget.domNode.style.backgroundColor=Z.toString());const ne=G.getColor(wn);ne&&(this.element.domNode.style.borderColor=ne.toString(),this._messageElement.style.borderColor=ne.toString(),this._status.element.style.borderTopColor=ne.toString(),this._details.widget.domNode.style.borderColor=ne.toString(),this._detailsBorderColor=ne.toString());const ie=G.getColor(Rt.db);ie&&(this._detailsFocusBorderColor=ie.toString()),this._details.widget.borderWidth="hc"===G.type?2:1}_onListFocus(G){var Z;if(this._ignoreFocusEvents)return;if(!G.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),void this.editor.setAriaOptions({activeDescendant:void 0});if(!this._completionModel)return;const ne=G.elements[0],ie=G.indexes[0];ne!==this._focusedItem&&(null===(Z=this._currentSuggestionDetails)||void 0===Z||Z.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=ne,this._list.reveal(ie),this._currentSuggestionDetails=Object($e.h)(G=>suggestWidget_awaiter(this,void 0,void 0,(function*(){const Z=Object($e.i)(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250);G.onCancellationRequested(()=>Z.dispose());const ie=yield ne.resolve(G);return Z.dispose(),ie}))),this._currentSuggestionDetails.then(()=>{ie>=this._list.length||ne!==this._list.element(ie)||(this._ignoreFocusEvents=!0,this._list.splice(ie,1,[ne]),this._list.setFocus([ie]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:getAriaId(ie)}))}).catch(ce.e)),this._onDidFocus.fire({item:ne,index:ie,model:this._completionModel})}_setState(G){if(this._state!==G)switch(this._state=G,this.element.domNode.classList.toggle("frozen",4===G),this.element.domNode.classList.remove("message"),G){case 0:Et.K(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=SuggestWidget.LOADING_MESSAGE,Et.K(this._listElement,this._status.element),Et.W(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=SuggestWidget.NO_SUGGESTIONS_MESSAGE,Et.K(this._listElement,this._status.element),Et.W(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:case 4:Et.K(this._messageElement),Et.W(this._listElement,this._status.element),this._show();break;case 5:Et.K(this._messageElement),Et.W(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(G,Z){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!G,this._isAuto||(this._loadingTimeout=Object($e.i)(()=>this._setState(1),Z)))}showSuggestions(G,Z,ne,ie){var se,ce;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(se=this._loadingTimeout)||void 0===se||se.dispose(),null===(ce=this._currentSuggestionDetails)||void 0===ce||ce.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==G&&(this._completionModel=G),ne&&2!==this._state&&0!==this._state)return void this._setState(4);const fe=this._completionModel.items.length,me=0===fe;if(this._ctxSuggestWidgetMultipleSuggestions.set(fe>1),me)return this._setState(ie?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(ne?4:3),this._list.reveal(Z,0),this._list.setFocus([Z]),this._layout(this.element.size),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._detailsFocusBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsFocusBorderColor))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!canExpandCompletionItem(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(G){this._details.show(),G?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var G;null===(G=this._loadingTimeout)||void 0===G||G.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const Z=this._persistedSize.restore(),ne=Math.ceil(4.3*this.getLayoutInfo().itemHeight);Z&&Z.heightge&&(me=ge);const Ce=this._completionModel?this._completionModel.stats.pLabelLen*ce.typicalHalfwidthCharacterWidth:me,Se=ce.statusBarHeight+this._list.contentHeight+ce.borderHeight,Me=ce.itemHeight+ce.statusBarHeight,ke=Et.D(this.editor.getDomNode()),xe=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),De=ke.top+xe.top+xe.height,Ie=Math.min(se.height-De-ce.verticalPadding,Se),Re=Math.min(ke.top+xe.top-ce.verticalPadding,Se);let ze=Math.min(Math.max(Re,Ie)+ce.borderHeight,Se);fe===(null===(Z=this._cappedHeight)||void 0===Z?void 0:Z.capped)&&(fe=this._cappedHeight.wanted),feze&&(fe=ze);const $e=100;fe>Ie||this._forceRenderingAbove&&Re>$e?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),ze=Re):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),ze=Ie),this.element.preferredSize=new Et.b(Ce,ce.defaultSize.height),this.element.maxSize=new Et.b(ge,ze),this.element.minSize=new Et.b(220,Me),this._cappedHeight=fe===Se?{wanted:null!==(ie=null===(ne=this._cappedHeight)||void 0===ne?void 0:ne.wanted)&&void 0!==ie?ie:G.height,capped:fe}:void 0}this._resize(me,fe)}_resize(G,Z){const{width:ne,height:ie}=this.element.maxSize;G=Math.min(ne,G),Z=Math.min(ie,Z);const{statusBarHeight:se}=this.getLayoutInfo();this._list.layout(Z-se,G),this._listElement.style.height=Z-se+"px",this.element.layout(Z,G),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode)}getLayoutInfo(){const G=this.editor.getOption(41),Z=Object(yn.b)(this.editor.getOption(107)||G.lineHeight,8,1e3),ne=this.editor.getOption(105).showStatusBar&&2!==this._state&&1!==this._state?Z:0,ie=this._details.widget.borderWidth,se=2*ie;return{itemHeight:Z,statusBarHeight:ne,borderWidth:ie,borderHeight:se,typicalHalfwidthCharacterWidth:G.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Et.b(430,ne+12*Z+se)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(G){this._storageService.store("expandSuggestionDocs",G,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Dn.LOADING_MESSAGE=ut.a("suggestWidget.loading","Loading..."),Dn.NO_SUGGESTIONS_MESSAGE=ut.a("suggestWidget.noSuggestions","No suggestions."),Dn=suggestWidget_decorate([suggestWidget_param(1,Re.a),suggestWidget_param(2,ht.b),suggestWidget_param(3,Nt.b),suggestWidget_param(4,Je.a)],Dn);class suggestWidget_SuggestContentWidget{constructor(G,Z){this._widget=G,this._editor=Z,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:G,width:Z}=this._widget.element.size,{borderWidth:ne,horizontalPadding:ie}=this._widget.getLayoutInfo();return new Et.b(Z+2*ne+ie,G+2*ne)}afterRender(G){this._widget._afterRender(G)}setPreference(G){this._preferenceLocked||(this._preference=G)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(G){this._position=G}}Object(Nt.f)((G,Z)=>{const ne=G.getColor(xn);ne&&Z.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${ne}; }`);const ie=G.getColor(Tn);ne&&Z.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight { color: ${ie}; }`);const se=G.getColor(Cn);se&&Z.addRule(`.monaco-editor .suggest-widget, .monaco-editor .suggest-details { color: ${se}; }`);const ce=G.getColor(On);ce&&Z.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused { color: ${ce}; }`);const fe=G.getColor(Mn);fe&&Z.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon { color: ${fe}; }`);const me=G.getColor(Rt.Jc);me&&Z.addRule(`.monaco-editor .suggest-details a { color: ${me}; }`);const ge=G.getColor(Rt.Hc);ge&&Z.addRule(`.monaco-editor .suggest-details code { background-color: ${ge}; }`)});var wordContextKey_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},wordContextKey_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let En=class WordContextKey{constructor(G,Z){this._editor=G,this._enabled=!1,this._ckAtEnd=WordContextKey.AtEnd.bindTo(Z),this._configListener=this._editor.onDidChangeConfiguration(G=>G.hasChanged(110)&&this._update()),this._update()}dispose(){var G;this._configListener.dispose(),null===(G=this._selectionListener)||void 0===G||G.dispose(),this._ckAtEnd.reset()}_update(){const G="on"===this._editor.getOption(110);if(this._enabled!==G)if(this._enabled=G,this._enabled){const checkForWordEnd=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const G=this._editor.getModel(),Z=this._editor.getSelection(),ne=G.getWordAtPosition(Z.getStartPosition());ne?this._ckAtEnd.set(ne.endColumn===Z.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(checkForWordEnd),checkForWordEnd()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};En.AtEnd=new ht.c("atEndOfWord",!1),En=wordContextKey_decorate([wordContextKey_param(1,ht.b)],En);var jn=ne(54),Pn=ne(577);class suggestCommitCharacters_CommitCharacterController{constructor(G,Z,ne){this._disposables=new me.b,this._disposables.add(Z.onDidShow(()=>this._onItem(Z.getFocusedItem()))),this._disposables.add(Z.onDidFocus(this._onItem,this)),this._disposables.add(Z.onDidHide(this.reset,this)),this._disposables.add(G.onWillType(ie=>{if(this._active&&!Z.isFrozen()){const Z=ie.charCodeAt(ie.length-1);this._active.acceptCharacters.has(Z)&&G.getOption(0)&&ne(this._active.item)}}))}_onItem(G){if(!G||!Object(se.n)(G.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===G.item)return;const Z=new Pn.b;for(const ne of G.item.completion.commitCharacters)ne.length>0&&Z.add(ne.charCodeAt(0));this._active={acceptCharacters:Z,item:G}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class suggestOvertypingCapturer_OvertypingCapturer{constructor(G,Z){this._disposables=new me.b,this._lastOvertyped=[],this._empty=!0,this._disposables.add(G.onWillType(()=>{if(!this._empty)return;if(!G.hasModel())return;const Z=G.getSelections(),ne=Z.length;let ie=!1;for(let G=0;GsuggestOvertypingCapturer_OvertypingCapturer._maxSelectionLength)return;this._lastOvertyped[G]={value:se.getValueInRange(ne),multiline:ne.startLineNumber!==ne.endLineNumber}}this._empty=!1})),this._disposables.add(Z.onDidCancel(G=>{this._empty||G.retrigger||(this._empty=!0)}))}getLastOvertypedInfo(G){if(!this._empty&&G>=0&&G=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},suggestController_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class suggestController_LineSuffix{constructor(G,Z){this._model=G,this._position=Z;if(G.getLineMaxColumn(Z.lineNumber)!==Z.column){const ne=G.getOffsetAt(Z),ie=G.getPositionAt(ne+1);this._marker=G.deltaDecorations([],[{range:Me.a.fromPositions(Z,ie),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(G){if(this._model.isDisposed()||this._position.lineNumber!==G.lineNumber)return 0;if(this._marker){const Z=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(Z.getStartPosition())-this._model.getOffsetAt(G)}return this._model.getLineMaxColumn(G.lineNumber)-G.column}}let Bn=class SuggestController{constructor(G,Z,ne,ie,se,ce){this._memoryService=Z,this._commandService=ne,this._contextKeyService=ie,this._instantiationService=se,this._logService=ce,this._lineSuffix=new me.d,this._toDispose=new me.b,this.editor=G,this.model=se.createInstance(Dt,this.editor);const ge=_t.b.InsertMode.bindTo(ie);ge.set(G.getOption(105).insertMode),this.model.onDidTrigger(()=>ge.set(G.getOption(105).insertMode)),this.widget=this._toDispose.add(new $e.b(()=>{const G=this._instantiationService.createInstance(Dn,this.editor);this._toDispose.add(G),this._toDispose.add(G.onDidSelect(G=>this._insertSuggestion(G,0),this));const Z=new suggestCommitCharacters_CommitCharacterController(this.editor,G,G=>this._insertSuggestion(G,2));this._toDispose.add(Z),this._toDispose.add(this.model.onDidSuggest(G=>{0===G.completionModel.items.length&&Z.reset()}));const ne=_t.b.MakesTextEdit.bindTo(this._contextKeyService),ie=_t.b.HasInsertAndReplaceRange.bindTo(this._contextKeyService),se=_t.b.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(me.i)(()=>{ne.reset(),ie.reset(),se.reset()})),this._toDispose.add(G.onDidFocus(({item:G})=>{const Z=this.editor.getPosition(),ce=G.editStart.column,fe=Z.column;let me=!0;if(!("smart"!==this.editor.getOption(1)||2!==this.model.state||G.completion.command||G.completion.additionalTextEdits||4&G.completion.insertTextRules||fe-ce!==G.completion.insertText.length)){me=this.editor.getModel().getValueInRange({startLineNumber:Z.lineNumber,startColumn:ce,endLineNumber:Z.lineNumber,endColumn:fe})!==G.completion.insertText}ne.set(me),ie.set(!Nn.a.equals(G.editInsertEnd,G.editReplaceEnd)),se.set(Boolean(G.provider.resolveCompletionItem)||Boolean(G.completion.documentation)||G.completion.detail!==G.completion.label)})),this._toDispose.add(G.onDetailsKeyDown(G=>{G.toKeybinding().equals(new fe.e(!0,!1,!1,!1,33))||qn.f&&G.toKeybinding().equals(new fe.e(!1,!1,!1,!0,33))?G.stopPropagation():G.toKeybinding().isModifierKey()||this.editor.focus()})),G})),this._overtypingCapturer=this._toDispose.add(new $e.b(()=>this._toDispose.add(new suggestOvertypingCapturer_OvertypingCapturer(this.editor,this.model)))),this._alternatives=this._toDispose.add(new $e.b(()=>this._toDispose.add(new yt(this.editor,this._contextKeyService)))),this._toDispose.add(se.createInstance(En,G)),this._toDispose.add(this.model.onDidTrigger(G=>{this.widget.value.showTriggered(G.auto,G.shy?250:50),this._lineSuffix.value=new suggestController_LineSuffix(this.editor.getModel(),G.position)})),this._toDispose.add(this.model.onDidSuggest(G=>{if(!G.shy){let Z=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),G.completionModel.items);this.widget.value.showSuggestions(G.completionModel,Z,G.isFrozen,G.auto)}})),this._toDispose.add(this.model.onDidCancel(G=>{G.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let Ce=_t.b.AcceptSuggestionsOnEnter.bindTo(ie),updateFromConfig=()=>{const G=this.editor.getOption(1);Ce.set("on"===G||"smart"===G)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>updateFromConfig())),updateFromConfig()}static get(G){return G.getContribution(SuggestController.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(G,Z){if(!G||!G.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const ne=this.editor.getModel(),ie=ne.getAlternativeVersionId(),{item:se}=G,fe=[],me=new Mt.b;1&Z||this.editor.pushUndoStop();const Ce=this.getOverwriteInfo(se,Boolean(8&Z));if(this._memoryService.memorize(ne,this.editor.getPosition(),se),Array.isArray(se.completion.additionalTextEdits)){const G=ge.c.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",se.completion.additionalTextEdits.map(G=>Se.a.replace(Me.a.lift(G.range),G.text))),G.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!se.isResolved){const G=new Wn.a(!0);let ie;const ce=ne.onDidChangeContent(G=>{if(G.isFlush)return me.cancel(),void ce.dispose();for(let Z of G.changes){const G=Me.a.getEndPosition(Z.range);ie&&!Nn.a.isBefore(G,ie)||(ie=G)}});let Ce=Z;Z|=2;let ke=!1,xe=this.editor.onWillType(()=>{xe.dispose(),ke=!0,2&Ce||this.editor.pushUndoStop()});fe.push(se.resolve(me.token).then(()=>{if(!se.completion.additionalTextEdits||me.token.isCancellationRequested)return!1;if(ie&&se.completion.additionalTextEdits.some(G=>Nn.a.isBefore(ie,Me.a.getStartPosition(G.range))))return!1;ke&&this.editor.pushUndoStop();const G=ge.c.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",se.completion.additionalTextEdits.map(G=>Se.a.replace(Me.a.lift(G.range),G.text))),G.restoreRelativeVerticalPositionOfCursor(this.editor),!ke&&2&Ce||this.editor.pushUndoStop(),!0}).then(Z=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",G.elapsed(),Z),ce.dispose(),xe.dispose()}))}let{insertText:ke}=se.completion;4&se.completion.insertTextRules||(ke=De.c.escape(ke)),xe.SnippetController2.get(this.editor).insert(ke,{overwriteBefore:Ce.overwriteBefore,overwriteAfter:Ce.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&se.completion.insertTextRules),clipboardText:G.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&Z||this.editor.pushUndoStop(),se.completion.command?se.completion.command.id===suggestController_TriggerSuggestAction.id?this.model.trigger({auto:!0,shy:!1},!0):(fe.push(this._commandService.executeCommand(se.completion.command.id,...se.completion.command.arguments?[...se.completion.command.arguments]:[]).catch(ce.e)),this.model.cancel()):this.model.cancel(),4&Z&&this._alternatives.value.set(G,G=>{for(me.cancel();ne.canUndo();){ie!==ne.getAlternativeVersionId()&&ne.undo(),this._insertSuggestion(G,3|(8&Z?8:0));break}}),this._alertCompletionItem(se),Promise.all(fe).finally(()=>{this.model.clear(),me.dispose()})}getOverwriteInfo(G,Z){Object(jn.c)(this.editor.hasModel());let ne="replace"===this.editor.getOption(105).insertMode;Z&&(ne=!ne);const ie=G.position.column-G.editStart.column,se=(ne?G.editReplaceEnd.column:G.editInsertEnd.column)-G.position.column;return{overwriteBefore:ie+(this.editor.getPosition().column-G.position.column),overwriteAfter:se+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(G){if(Object(se.n)(G.completion.additionalTextEdits)){let Z=ut.a("aria.alert.snippet","Accepting '{0}' made {1} additional edits",G.textLabel,G.completion.additionalTextEdits.length);Object(ie.a)(Z)}}triggerSuggest(G){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,G),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(G){if(!this.editor.hasModel())return;const Z=this.editor.getPosition(),fallback=()=>{Z.equals(this.editor.getPosition())&&this._commandService.executeCommand(G.fallback)},makesTextEdit=G=>{if(4&G.completion.insertTextRules||G.completion.additionalTextEdits)return!0;const Z=this.editor.getPosition(),ne=G.editStart.column,ie=Z.column;if(ie-ne!==G.completion.insertText.length)return!0;return this.editor.getModel().getValueInRange({startLineNumber:Z.lineNumber,startColumn:ne,endLineNumber:Z.lineNumber,endColumn:ie})!==G.completion.insertText};vt.c.once(this.model.onDidTrigger)(G=>{let Z=[];vt.c.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(me.f)(Z),fallback()},void 0,Z),this.model.onDidSuggest(({completionModel:G})=>{if(Object(me.f)(Z),0===G.items.length)return void fallback();const ne=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),G.items),ie=G.items[ne];makesTextEdit(ie)?(this.editor.pushUndoStop(),this._insertSuggestion({index:ne,item:ie,model:G},7)):fallback()},void 0,Z)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(Z.lineNumber,0),this.editor.focus()}acceptSelectedSuggestion(G,Z){const ne=this.widget.value.getFocusedItem();let ie=0;G&&(ie|=4),Z&&(ie|=8),this._insertSuggestion(ne,ie)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.value.stopForceRenderingAbove()}};Bn.ID="editor.contrib.suggestController",Bn=suggestController_decorate([suggestController_param(1,ct),suggestController_param(2,dt.b),suggestController_param(3,ht.b),suggestController_param(4,Je.a),suggestController_param(5,At.b)],Bn);class suggestController_TriggerSuggestAction extends Ce.b{constructor(){super({id:suggestController_TriggerSuggestAction.id,label:ut.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:ht.a.and(ke.a.writable,ke.a.hasCompletionItemProvider),kbOpts:{kbExpr:ke.a.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(G,Z){const ne=Bn.get(Z);ne&&ne.triggerSuggest()}}suggestController_TriggerSuggestAction.id="editor.action.triggerSuggest",Object(Ce.l)(Bn.ID,Bn),Object(Ce.j)(suggestController_TriggerSuggestAction);const Hn=Ce.c.bindToContribution(Bn.get);Object(Ce.k)(new Hn({id:"acceptSelectedSuggestion",precondition:_t.b.Visible,handler(G){G.acceptSelectedSuggestion(!0,!1)}})),ft.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:ht.a.and(_t.b.Visible,ke.a.textInputFocus),primary:2,weight:190}),ft.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:ht.a.and(_t.b.Visible,ke.a.textInputFocus,_t.b.AcceptSuggestionsOnEnter,_t.b.MakesTextEdit),primary:3,weight:190}),Yt.d.appendMenuItem(_t.g,{command:{id:"acceptSelectedSuggestion",title:ut.a("accept.insert","Insert")},group:"left",order:1,when:_t.b.HasInsertAndReplaceRange.toNegated()}),Yt.d.appendMenuItem(_t.g,{command:{id:"acceptSelectedSuggestion",title:ut.a("accept.insert","Insert")},group:"left",order:1,when:ht.a.and(_t.b.HasInsertAndReplaceRange,_t.b.InsertMode.isEqualTo("insert"))}),Yt.d.appendMenuItem(_t.g,{command:{id:"acceptSelectedSuggestion",title:ut.a("accept.replace","Replace")},group:"left",order:1,when:ht.a.and(_t.b.HasInsertAndReplaceRange,_t.b.InsertMode.isEqualTo("replace"))}),Object(Ce.k)(new Hn({id:"acceptAlternativeSelectedSuggestion",precondition:ht.a.and(_t.b.Visible,ke.a.textInputFocus),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:1027,secondary:[1026]},handler(G){G.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:_t.g,group:"left",order:2,when:ht.a.and(_t.b.HasInsertAndReplaceRange,_t.b.InsertMode.isEqualTo("insert")),title:ut.a("accept.replace","Replace")},{menuId:_t.g,group:"left",order:2,when:ht.a.and(_t.b.HasInsertAndReplaceRange,_t.b.InsertMode.isEqualTo("replace")),title:ut.a("accept.insert","Insert")}]})),dt.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(Ce.k)(new Hn({id:"hideSuggestWidget",precondition:_t.b.Visible,handler:G=>G.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:9,secondary:[1033]}})),Object(Ce.k)(new Hn({id:"selectNextSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(Ce.k)(new Hn({id:"selectNextPageSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:12,secondary:[2060]}})),Object(Ce.k)(new Hn({id:"selectLastSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectLastSuggestion()})),Object(Ce.k)(new Hn({id:"selectPrevSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(Ce.k)(new Hn({id:"selectPrevPageSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:11,secondary:[2059]}})),Object(Ce.k)(new Hn({id:"selectFirstSuggestion",precondition:ht.a.and(_t.b.Visible,_t.b.MultipleSuggestions),handler:G=>G.selectFirstSuggestion()})),Object(Ce.k)(new Hn({id:"toggleSuggestionDetails",precondition:_t.b.Visible,handler:G=>G.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:_t.g,group:"right",order:1,when:ht.a.and(_t.b.DetailsVisible,_t.b.CanResolve),title:ut.a("detail.more","show less")},{menuId:_t.g,group:"right",order:1,when:ht.a.and(_t.b.DetailsVisible.toNegated(),_t.b.CanResolve),title:ut.a("detail.less","show more")}]})),Object(Ce.k)(new Hn({id:"toggleExplainMode",precondition:_t.b.Visible,handler:G=>G.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object(Ce.k)(new Hn({id:"toggleSuggestionFocus",precondition:_t.b.Visible,handler:G=>G.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(Ce.k)(new Hn({id:"insertBestCompletion",precondition:ht.a.and(ke.a.textInputFocus,ht.a.equals("config.editor.tabCompletion","on"),En.AtEnd,_t.b.Visible.toNegated(),yt.OtherSuggestions.toNegated(),xe.SnippetController2.InSnippetMode.toNegated()),handler:(G,Z)=>{G.triggerSuggestAndAcceptBest(Object(jn.j)(Z)?Object.assign({fallback:"tab"},Z):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(Ce.k)(new Hn({id:"insertNextSuggestion",precondition:ht.a.and(ke.a.textInputFocus,ht.a.equals("config.editor.tabCompletion","on"),yt.OtherSuggestions,_t.b.Visible.toNegated(),xe.SnippetController2.InSnippetMode.toNegated()),handler:G=>G.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:2}})),Object(Ce.k)(new Hn({id:"insertPrevSuggestion",precondition:ht.a.and(ke.a.textInputFocus,ht.a.equals("config.editor.tabCompletion","on"),yt.OtherSuggestions,_t.b.Visible.toNegated(),xe.SnippetController2.InSnippetMode.toNegated()),handler:G=>G.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:ke.a.textInputFocus,primary:1026}})),Object(Ce.j)(class extends Ce.b{constructor(){super({id:"editor.action.resetSuggestSize",label:ut.a("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(G,Z){Bn.get(Z).resetWidgetSize()}})},1366:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return zt}));var ie=ne(4),se=ne(51),ce=ne(10),fe=ne(127),me=ne(60),ge=ne(26),Ce=ne(156),Se=ne(375),Me=ne(320),ke=(ne(7579),ne(6)),xe=ne(44),De=ne(19),Ie=ne(143),Re=ne(181),ze=ne(903),$e=ne(12),Je=ne(117),it=ne(417),ot=ne(1356),at=ne(1676),st=ne(820),ct=ne(50),ut=ne(319),dt=ne(1191),ht=ne(175),ft=ne(253),_t=ne(909),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let yt=class DataSource{constructor(G){this._resolverService=G}hasChildren(G){return G instanceof Me.c||G instanceof Me.a}getChildren(G){if(G instanceof Me.c)return G.groups;if(G instanceof Me.a)return G.resolve(this._resolverService).then(G=>G.children);throw new Error("bad tree")}};yt=__decorate([__param(0,it.a)],yt);class referencesTree_Delegate{getHeight(){return 23}getTemplateId(G){return G instanceof Me.a?Ct.id:OneReferenceRenderer.id}}let vt=class StringRepresentationProvider{constructor(G){this._keybindingService=G}getKeyboardNavigationLabel(G){var Z;if(G instanceof Me.b){const ne=null===(Z=G.parent.getPreview(G))||void 0===Z?void 0:Z.preview(G.range);if(ne)return ne.value}return Object(Re.b)(G.uri)}};vt=__decorate([__param(0,ht.a)],vt);class referencesTree_IdentityProvider{getId(G){return G instanceof Me.b?G.id:G.uri}}let wt=class FileReferencesTemplate extends ce.a{constructor(G,Z,ne){super(),this._uriLabel=Z;const ie=document.createElement("div");ie.classList.add("reference-file"),this.file=this._register(new ot.a(ie,{supportHighlights:!0})),this.badge=new at.a(ke.q(ie,ke.a(".count"))),this._register(Object(ut.a)(this.badge,ne)),G.appendChild(ie)}set(G,Z){let ne=Object(Re.d)(G.uri);this.file.setLabel(Object(dt.a)(G.uri),this._uriLabel.getUriLabel(ne,{relative:!0}),{title:this._uriLabel.getUriLabel(G.uri),matches:Z});const se=G.children.length;this.badge.setCount(se),se>1?this.badge.setTitleFormat(Object(ie.a)("referencesCount","{0} references",se)):this.badge.setTitleFormat(Object(ie.a)("referenceCount","{0} reference",se))}};wt=__decorate([__param(1,st.a),__param(2,ct.b)],wt);let Ct=class FileReferencesRenderer{constructor(G){this._instantiationService=G,this.templateId=FileReferencesRenderer.id}renderTemplate(G){return this._instantiationService.createInstance(wt,G)}renderElement(G,Z,ne){ne.set(G.element,Object(ft.c)(G.filterData))}disposeTemplate(G){G.dispose()}};Ct.id="FileReferencesRenderer",Ct=__decorate([__param(0,me.a)],Ct);class referencesTree_OneReferenceTemplate{constructor(G){this.label=new _t.a(G,!1)}set(G,Z){var ne;const ie=null===(ne=G.parent.getPreview(G))||void 0===ne?void 0:ne.preview(G.range);if(ie&&ie.value){const{value:G,highlight:ne}=ie;Z&&!ft.a.isDefault(Z)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(G,Object(ft.c)(Z))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(G,[ne]))}else this.label.set(`${Object(Re.b)(G.uri)}:${G.range.startLineNumber+1}:${G.range.startColumn+1}`)}}class OneReferenceRenderer{constructor(){this.templateId=OneReferenceRenderer.id}renderTemplate(G){return new referencesTree_OneReferenceTemplate(G)}renderElement(G,Z,ne){ne.set(G.element,G.filterData)}disposeTemplate(){}}OneReferenceRenderer.id="OneReferenceRenderer";class referencesTree_AccessibilityProvider{getWidgetAriaLabel(){return Object(ie.a)("treeAriaLabel","References")}getAriaLabel(G){return G.ariaMessage}}var St=ne(649),Mt=ne(13),kt=ne(224),xt=ne(1363),Lt=ne(540),referencesWidget_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},referencesWidget_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class referencesWidget_DecorationsManager{constructor(G,Z){this._editor=G,this._model=Z,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new ce.b,this._callOnModelChange=new ce.b,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const G=this._editor.getModel();if(G)for(let Z of this._model.references)if(Z.uri.toString()===G.uri.toString())return void this._addDecorations(Z.parent)}_addDecorations(G){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const Z=[],ne=[];for(let ie=0,se=G.children.length;ie{G.equals(9)&&(this._keybindingService.dispatchEvent(G,G.target),G.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(referencesWidget_ReferencesTree,"ReferencesWidget",this._treeContainer,new referencesTree_Delegate,[this._instantiationService.createInstance(Ct),this._instantiationService.createInstance(OneReferenceRenderer)],this._instantiationService.createInstance(yt),Z),this._splitView.addView({onDidChange:De.c.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:G=>{this._preview.layout({height:this._dim.height,width:G})}},xt.a.Distribute),this._splitView.addView({onDidChange:De.c.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:G=>{this._treeContainer.style.height=this._dim.height+"px",this._treeContainer.style.width=G+"px",this._tree.layout(this._dim.height,G)}},xt.a.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let onEvent=(G,Z)=>{G instanceof Me.b&&("show"===Z&&this._revealReference(G,!1),this._onDidSelectReference.fire({element:G,kind:Z,source:"tree"}))};this._tree.onDidOpen(G=>{G.sideBySide?onEvent(G.element,"side"):G.editorOptions.pinned?onEvent(G.element,"goto"):onEvent(G.element,"show")}),ke.K(this._treeContainer)}_onWidth(G){this._dim&&this._doLayoutBody(this._dim.height,G)}_doLayoutBody(G,Z){super._doLayoutBody(G,Z),this._dim=new ke.b(Z,G),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(Z),this._splitView.resizeView(0,Z*this.layoutData.ratio)}setSelection(G){return this._revealReference(G,!0).then(()=>{this._model&&(this._tree.setSelection([G]),this._tree.setFocus([G]))})}setModel(G){return this._disposeOnNewModel.clear(),this._model=G,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=ie.a("noResults","No results"),ke.W(this._messageContainer),Promise.resolve(void 0)):(ke.K(this._messageContainer),this._decorationsManager=new referencesWidget_DecorationsManager(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(G=>this._tree.rerender(G))),this._disposeOnNewModel.add(this._preview.onMouseDown(G=>{const{event:Z,target:ne}=G;if(2!==Z.detail)return;const ie=this._getFocusedReference();ie&&this._onDidSelectReference.fire({element:{uri:ie.uri,range:ne.range},kind:Z.ctrlKey||Z.metaKey||Z.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),ke.W(this._treeContainer),ke.W(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[G]=this._tree.getFocus();return G instanceof Me.b?G:G instanceof Me.a&&G.children.length>0?G.children[0]:void 0}revealReference(G){return __awaiter(this,void 0,void 0,(function*(){yield this._revealReference(G,!1),this._onDidSelectReference.fire({element:G,kind:"goto",source:"tree"})}))}_revealReference(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(this._revealedReference===G)return;this._revealedReference=G,G.uri.scheme!==Ie.c.inMemory?this.setTitle(Object(Re.c)(G.uri),this._uriLabel.getUriLabel(Object(Re.d)(G.uri))):this.setTitle(ie.a("peekView.alternateTitle","References"));const ne=this._textModelResolverService.createModelReference(G.uri);this._tree.getInput()===G.parent||(Z&&this._tree.reveal(G.parent),yield this._tree.expand(G.parent)),this._tree.reveal(G);const se=yield ne;if(!this._model)return void se.dispose();Object(ce.f)(this._previewModelReference);const fe=se.object;if(fe){const Z=this._preview.getModel()===fe.textEditorModel?0:1,ne=$e.a.lift(G.range).collapseToStart();this._previewModelReference=se,this._preview.setModel(fe.textEditorModel),this._preview.setSelection(ne),this._preview.revealRangeInCenter(ne,Z)}else this._preview.setModel(this._previewNotAvailableMessage),se.dispose()}))}};Tt=referencesWidget_decorate([referencesWidget_param(3,ct.b),referencesWidget_param(4,it.a),referencesWidget_param(5,me.a),referencesWidget_param(6,kt.a),referencesWidget_param(7,st.a),referencesWidget_param(8,Lt.a),referencesWidget_param(9,ht.a)],Tt),Object(ct.f)((G,Z)=>{const ne=G.getColor(kt.m);ne&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${ne}; }`);const ie=G.getColor(kt.h);ie&&Z.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${ie}; }`);const se=G.getColor(kt.i);se&&Z.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${se}; box-sizing: border-box; }`);const ce=G.getColor(Mt.b);ce&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${ce}; box-sizing: border-box; }`);const fe=G.getColor(kt.j);fe&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${fe}; }`);const me=G.getColor(kt.l);me&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${me}; }`);const ge=G.getColor(kt.k);ge&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${ge}; }`);const Ce=G.getColor(kt.n);Ce&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${Ce}; }`);const Se=G.getColor(kt.o);Se&&Z.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${Se} !important; }`);const Me=G.getColor(kt.f);Me&&Z.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: ${Me};}`);const ke=G.getColor(kt.g);ke&&Z.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: ${ke};}`)});var At=ne(34),Dt=ne(193),Et=ne(57),jt=ne(378),It=ne(165),Nt=ne(98),referencesController_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},referencesController_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},referencesController_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const Rt=new ge.c("referenceSearchVisible",!1,ie.a("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let zt=class ReferencesController{constructor(G,Z,ne,ie,se,fe,me,ge){this._defaultTreeKeyboardSupport=G,this._editor=Z,this._editorService=ie,this._notificationService=se,this._instantiationService=fe,this._storageService=me,this._configurationService=ge,this._disposables=new ce.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Rt.bindTo(ne)}static get(G){return G.getContribution(ReferencesController.ID)}dispose(){var G,Z;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(G=this._widget)||void 0===G||G.dispose(),null===(Z=this._model)||void 0===Z||Z.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(G,Z,ne){let se;if(this._widget&&(se=this._widget.position),this.closeWidget(),se&&G.containsPosition(se))return;this._peekMode=ne,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const ce=class LayoutData{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(G){let Z,ne;try{const ie=JSON.parse(G);Z=ie.ratio,ne=ie.heightInLines}catch(G){}return{ratio:Z||.7,heightInLines:ne||18}}}.fromJSON(this._storageService.get("peekViewLayout",0,"{}"));this._widget=this._instantiationService.createInstance(Tt,this._editor,this._defaultTreeKeyboardSupport,ce),this._widget.setTitle(ie.a("labelLoading","Loading...")),this._widget.show(G),this._disposables.add(this._widget.onDidClose(()=>{Z.cancel(),this._widget&&(this._storageService.store("peekViewLayout",JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(G=>{let{element:Z,kind:ie}=G;if(Z)switch(ie){case"open":"editor"===G.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(Z,!1,!1);break;case"side":this.openReference(Z,!0,!1);break;case"goto":ne?this._gotoReference(Z):this.openReference(Z,!1,!0)}}));const fe=++this._requestIdPool;Z.then(Z=>{var ne;if(fe===this._requestIdPool&&this._widget)return null===(ne=this._model)||void 0===ne||ne.dispose(),this._model=Z,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(ie.a("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let Z=this._editor.getModel().uri,ne=new At.a(G.startLineNumber,G.startColumn),se=this._model.nearestReference(Z,ne);if(se)return this._widget.setSelection(se).then(()=>{this._widget&&"editor"===this._editor.getOption(75)&&this._widget.focusOnPreviewEditor()})}});Z.dispose()},G=>{this._notificationService.error(G)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(G){return referencesController_awaiter(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const Z=this._widget.position;if(!Z)return;const ne=this._model.nearestReference(this._editor.getModel().uri,Z);if(!ne)return;const ie=this._model.nextOrPreviousReference(ne,G),se=this._editor.hasTextFocus(),ce=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(ie),yield this._gotoReference(ie),se?this._editor.focus():this._widget&&ce&&this._widget.focusOnPreviewEditor()}))}revealReference(G){return referencesController_awaiter(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(G))}))}closeWidget(G=!0){var Z,ne;null===(Z=this._widget)||void 0===Z||Z.dispose(),null===(ne=this._model)||void 0===ne||ne.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,G&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(G){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const Z=$e.a.lift(G.range).collapseToStart();return this._editorService.openCodeEditor({resource:G.uri,options:{selection:Z}},this._editor).then(G=>{var ne;if(this._ignoreModelChangeEvent=!1,G&&this._widget)if(this._editor===G)this._widget.show(Z),this._widget.focusOnReferenceTree();else{const ie=ReferencesController.get(G),se=this._model.clone();this.closeWidget(),G.focus(),ie.toggleWidget(Z,Object(Et.h)(G=>Promise.resolve(se)),null!==(ne=this._peekMode)&&void 0!==ne&&ne)}else this.closeWidget()},G=>{this._ignoreModelChangeEvent=!1,Object(se.e)(G)})}openReference(G,Z,ne){Z||this.closeWidget();const{uri:ie,range:se}=G;this._editorService.openCodeEditor({resource:ie,options:{selection:se,pinned:ne}},this._editor,Z)}};function withController(G,Z){const ne=Object(kt.d)(G);if(!ne)return;let ie=zt.get(ne);ie&&Z(ie)}zt.ID="editor.contrib.referencesController",zt=referencesController_decorate([referencesController_param(2,ge.b),referencesController_param(3,fe.a),referencesController_param(4,Dt.a),referencesController_param(5,me.a),referencesController_param(6,Se.a),referencesController_param(7,Ce.a)],zt),jt.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(It.a)(2089,60),when:ge.a.or(Rt,kt.b.inPeekEditor),handler(G){withController(G,G=>{G.changeFocusBetweenPreviewAndReferences()})}}),jt.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:ge.a.or(Rt,kt.b.inPeekEditor),handler(G){withController(G,G=>{G.goToNextOrPreviousReference(!0)})}}),jt.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:ge.a.or(Rt,kt.b.inPeekEditor),handler(G){withController(G,G=>{G.goToNextOrPreviousReference(!1)})}}),Nt.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),Nt.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),Nt.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),Nt.a.registerCommand("closeReferenceSearch",G=>withController(G,G=>G.closeWidget())),jt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:ge.a.and(kt.b.inPeekEditor,ge.a.not("config.editor.stablePeek"))}),jt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:ge.a.and(Rt,ge.a.not("config.editor.stablePeek"))}),jt.a.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:ge.a.and(Rt,St.e),handler(G){var Z;const ne=null===(Z=G.get(St.a).lastFocusedList)||void 0===Z?void 0:Z.getFocus();Array.isArray(ne)&&ne[0]instanceof Me.b&&withController(G,G=>G.revealReference(ne[0]))}}),jt.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:ge.a.and(Rt,St.e),handler(G){var Z;const ne=null===(Z=G.get(St.a).lastFocusedList)||void 0===Z?void 0:Z.getFocus();Array.isArray(ne)&&ne[0]instanceof Me.b&&withController(G,G=>G.openReference(ne[0],!0,!0))}}),Nt.a.registerCommand("openReference",G=>{var Z;const ne=null===(Z=G.get(St.a).lastFocusedList)||void 0===Z?void 0:Z.getFocus();Array.isArray(ne)&&ne[0]instanceof Me.b&&withController(G,G=>G.openReference(ne[0],!1,!0))})},1367:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return isSemanticTokens})),ne.d(Z,"d",(function(){return isSemanticTokensEdits})),ne.d(Z,"b",(function(){return getDocumentSemanticTokens})),ne.d(Z,"a",(function(){return getDocumentRangeSemanticTokensProvider}));var ie=ne(103),se=ne(51),ce=ne(94),fe=ne(35),me=ne(187),ge=ne(98),Ce=ne(54),Se=ne(250),Me=ne(46);function encodeSemanticTokensDto(G){const Z=new Uint32Array(function encodeSemanticTokensDtoSize(G){let Z=0;if(Z+=2,"full"===G.type)Z+=1+G.data.length;else{Z+=1,Z+=3*G.deltas.length;for(const ne of G.deltas)ne.data&&(Z+=ne.data.length)}return Z}(G));let ne=0;if(Z[ne++]=G.id,"full"===G.type)Z[ne++]=1,Z[ne++]=G.data.length,Z.set(G.data,ne),ne+=G.data.length;else{Z[ne++]=2,Z[ne++]=G.deltas.length;for(const ie of G.deltas)Z[ne++]=ie.start,Z[ne++]=ie.deleteCount,ie.data?(Z[ne++]=ie.data.length,Z.set(ie.data,ne),ne+=ie.data.length):Z[ne++]=0}return function toLittleEndianBuffer(G){const Z=new Uint8Array(G.buffer,G.byteOffset,4*G.length);return Me.e()||function reverseEndianness(G){for(let Z=0,ne=G.length;Z0?Z[0]:null}function getDocumentRangeSemanticTokensProvider(G){const Z=fe.k.ordered(G);return Z.length>0?Z[0]:null}ge.a.registerCommand("_provideDocumentSemanticTokensLegend",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne]=Z;Object(Ce.c)(ne instanceof ce.a);const ie=G.get(me.a).getModel(ne);if(!ie)return;const se=_getDocumentSemanticTokensProvider(ie);return se?se.getLegend():G.get(ge.b).executeCommand("_provideDocumentRangeSemanticTokensLegend",ne)}))),ge.a.registerCommand("_provideDocumentSemanticTokens",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne]=Z;Object(Ce.c)(ne instanceof ce.a);const fe=G.get(me.a).getModel(ne);if(!fe)return;const Se=getDocumentSemanticTokens(fe,null,ie.a.None);if(!Se)return G.get(ge.b).executeCommand("_provideDocumentRangeSemanticTokens",ne,fe.getFullModelRange());const{provider:Me,request:ke}=Se;let xe;try{xe=yield ke}catch(G){return void Object(se.f)(G)}if(!xe||!isSemanticTokens(xe))return;const De=encodeSemanticTokensDto({id:0,type:"full",data:xe.data});return xe.resultId&&Me.releaseDocumentSemanticTokens(xe.resultId),De}))),ge.a.registerCommand("_provideDocumentRangeSemanticTokensLegend",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne]=Z;Object(Ce.c)(ne instanceof ce.a);const ie=G.get(me.a).getModel(ne);if(!ie)return;const se=getDocumentRangeSemanticTokensProvider(ie);return se?se.getLegend():void 0}))),ge.a.registerCommand("_provideDocumentRangeSemanticTokens",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne,fe]=Z;Object(Ce.c)(ne instanceof ce.a),Object(Ce.c)(ke.a.isIRange(fe));const ge=G.get(me.a).getModel(ne);if(!ge)return;const Se=getDocumentRangeSemanticTokensProvider(ge);if(!Se)return;let Me;try{Me=yield Se.provideDocumentRangeSemanticTokens(ge,ke.a.lift(fe),ie.a.None)}catch(G){return void Object(se.f)(G)}return Me&&isSemanticTokens(Me)?encodeSemanticTokensDto({id:0,type:"full",data:Me.data}):void 0})))},14:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Command})),ne.d(Z,"e",(function(){return MultiCommand})),ne.d(Z,"c",(function(){return EditorCommand})),ne.d(Z,"b",(function(){return EditorAction})),ne.d(Z,"f",(function(){return MultiEditorAction})),ne.d(Z,"n",(function(){return registerModelAndPositionCommand})),ne.d(Z,"o",(function(){return registerModelCommand})),ne.d(Z,"k",(function(){return registerEditorCommand})),ne.d(Z,"j",(function(){return registerEditorAction})),ne.d(Z,"p",(function(){return registerMultiEditorAction})),ne.d(Z,"m",(function(){return registerInstantiatedEditorAction})),ne.d(Z,"l",(function(){return registerEditorContribution})),ne.d(Z,"d",(function(){return ie})),ne.d(Z,"i",(function(){return $e})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it}));var ie,se=ne(4),ce=ne(94),fe=ne(127),me=ne(34),ge=ne(187),Ce=ne(417),Se=ne(92),Me=ne(98),ke=ne(26),xe=ne(378),De=ne(180),Ie=ne(574),Re=ne(54),ze=ne(352);class Command{constructor(G){this.id=G.id,this.precondition=G.precondition,this._kbOpts=G.kbOpts,this._menuOpts=G.menuOpts,this._description=G.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const G=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const Z of G){let G=Z.kbExpr;this.precondition&&(G=G?ke.a.and(G,this.precondition):this.precondition);const ne={id:this.id,weight:Z.weight,args:Z.args,when:G,primary:Z.primary,secondary:Z.secondary,win:Z.win,linux:Z.linux,mac:Z.mac};xe.a.registerKeybindingRule(ne)}}Me.a.registerCommand({id:this.id,handler:(G,Z)=>this.runCommand(G,Z),description:this._description})}_registerMenuItem(G){Se.d.appendMenuItem(G.menuId,{group:G.group,command:{id:this.id,title:G.title,icon:G.icon,precondition:this.precondition},when:G.when,order:G.order})}}class MultiCommand extends Command{constructor(){super(...arguments),this._implementations=[]}addImplementation(G,Z,ne){return this._implementations.push({priority:G,name:Z,implementation:ne}),this._implementations.sort((G,Z)=>Z.priority-G.priority),{dispose:()=>{for(let G=0;G{if(G.get(ke.b).contextMatchesRules(Object(Re.o)(this.precondition)))return this.runEditorCommand(G,ie,Z)})}}class EditorAction extends EditorCommand{constructor(G){super(EditorAction.convertOptions(G)),this.label=G.label,this.alias=G.alias}static convertOptions(G){let Z;function withDefaults(Z){return Z.menuId||(Z.menuId=Se.b.EditorContext),Z.title||(Z.title=G.label),Z.when=ke.a.and(G.precondition,Z.when),Z}return Z=Array.isArray(G.menuOpts)?G.menuOpts:G.menuOpts?[G.menuOpts]:[],Array.isArray(G.contextMenuOpts)?Z.push(...G.contextMenuOpts.map(withDefaults)):G.contextMenuOpts&&Z.push(withDefaults(G.contextMenuOpts)),G.menuOpts=Z,G}runEditorCommand(G,Z,ne){return this.reportTelemetry(G,Z),this.run(G,Z,ne||{})}reportTelemetry(G,Z){G.get(Ie.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class MultiEditorAction extends EditorAction{constructor(){super(...arguments),this._implementations=[]}addImplementation(G,Z){return this._implementations.push([G,Z]),this._implementations.sort((G,Z)=>Z[0]-G[0]),{dispose:()=>{for(let G=0;Gnew Promise((ie,ce)=>{try{ie(Z(G.object.textEditorModel,me.a.lift(se),ne.slice(2)))}catch(G){ce(G)}}).finally(()=>{G.dispose()}))}))}function registerModelCommand(G,Z){Me.a.registerCommand(G,(function(G,...ne){const[ie]=ne;Object(Re.c)(ce.a.isUri(ie));const se=G.get(ge.a).getModel(ie);return se?Z(se,...ne.slice(1)):G.get(Ce.a).createModelReference(ie).then(G=>new Promise((ie,se)=>{try{ie(Z(G.object.textEditorModel,ne.slice(1)))}catch(G){se(G)}}).finally(()=>{G.dispose()}))}))}function registerEditorCommand(G){return EditorContributionRegistry.INSTANCE.registerEditorCommand(G),G}function registerEditorAction(G){const Z=new G;return EditorContributionRegistry.INSTANCE.registerEditorAction(Z),Z}function registerMultiEditorAction(G){return EditorContributionRegistry.INSTANCE.registerEditorAction(G),G}function registerInstantiatedEditorAction(G){EditorContributionRegistry.INSTANCE.registerEditorAction(G)}function registerEditorContribution(G,Z){EditorContributionRegistry.INSTANCE.registerEditorContribution(G,Z)}!function(G){G.getEditorCommand=function getEditorCommand(G){return EditorContributionRegistry.INSTANCE.getEditorCommand(G)},G.getEditorActions=function getEditorActions(){return EditorContributionRegistry.INSTANCE.getEditorActions()},G.getEditorContributions=function getEditorContributions(){return EditorContributionRegistry.INSTANCE.getEditorContributions()},G.getSomeEditorContributions=function getSomeEditorContributions(G){return EditorContributionRegistry.INSTANCE.getEditorContributions().filter(Z=>G.indexOf(Z.id)>=0)},G.getDiffEditorContributions=function getDiffEditorContributions(){return EditorContributionRegistry.INSTANCE.getDiffEditorContributions()}}(ie||(ie={}));class EditorContributionRegistry{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(G,Z){this.editorContributions.push({id:G,ctor:Z})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(G){G.register(),this.editorActions.push(G)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(G){G.register(),this.editorCommands[G.id]=G}getEditorCommand(G){return this.editorCommands[G]||null}}function registerCommand(G){return G.register(),G}EditorContributionRegistry.INSTANCE=new EditorContributionRegistry,De.a.add("editor.contributions",EditorContributionRegistry.INSTANCE);const $e=registerCommand(new MultiCommand({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:Se.b.MenubarEditMenu,group:"1_do",title:se.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:Se.b.CommandPalette,group:"",title:se.a("undo","Undo"),order:1}]}));registerCommand(new ProxyCommand($e,{id:"default:undo",precondition:void 0}));const Je=registerCommand(new MultiCommand({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:Se.b.MenubarEditMenu,group:"1_do",title:se.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:Se.b.CommandPalette,group:"",title:se.a("redo","Redo"),order:1}]}));registerCommand(new ProxyCommand(Je,{id:"default:redo",precondition:void 0}));const it=registerCommand(new MultiCommand({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:Se.b.MenubarSelectionMenu,group:"1_basic",title:se.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:Se.b.CommandPalette,group:"",title:se.a("selectAll","Select All"),order:1}]}))},143:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return ie})),ne.d(Z,"b",(function(){return fe})),ne.d(Z,"a",(function(){return me}));var ie,se=ne(94),ce=ne(46);!function(G){G.inMemory="inmemory",G.vscode="vscode",G.internal="private",G.walkThrough="walkThrough",G.walkThroughSnippet="walkThroughSnippet",G.http="http",G.https="https",G.file="file",G.mailto="mailto",G.untitled="untitled",G.data="data",G.command="command",G.vscodeRemote="vscode-remote",G.vscodeRemoteResource="vscode-remote-resource",G.userData="vscode-userdata",G.vscodeCustomEditor="vscode-custom-editor",G.vscodeNotebook="vscode-notebook",G.vscodeNotebookCell="vscode-notebook-cell",G.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",G.vscodeNotebookCellOutput="vscode-notebook-cell-output",G.vscodeInteractive="vscode-interactive",G.vscodeInteractiveInput="vscode-interactive-input",G.vscodeSettings="vscode-settings",G.vscodeWorkspaceTrust="vscode-workspace-trust",G.vscodeTerminal="vscode-terminal",G.webviewPanel="webview-panel",G.vscodeWebview="vscode-webview",G.extension="extension",G.vscodeFileResource="vscode-file",G.tmp="tmp"}(ie||(ie={}));const fe=new class RemoteAuthoritiesImpl{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(G){this._preferredWebSchema=G}rewrite(G){if(this._delegate)return this._delegate(G);const Z=G.authority;let ne=this._hosts[Z];ne&&-1!==ne.indexOf(":")&&(ne=`[${ne}]`);const fe=this._ports[Z],me=this._connectionTokens[Z];let ge="path="+encodeURIComponent(G.path);return"string"==typeof me&&(ge+="&tkn="+encodeURIComponent(me)),se.a.from({scheme:ce.i?this._preferredWebSchema:ie.vscodeRemoteResource,authority:`${ne}:${fe}`,path:"/vscode-remote-resource",query:ge})}};const me=new class FileAccessImpl{constructor(){this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(G,Z,ne){const se=this.toUri(G,Z);if(se.scheme===ie.vscodeRemote)return fe.rewrite(se);let me=!1;return ce.g&&(ne||ce.h)&&se.scheme===ie.file&&(me=!0),se.scheme===ie.file&&"function"==typeof ce.b.importScripts&&"vscode-file://vscode-app"===ce.b.origin&&(me=!0),me?se.with({scheme:ie.vscodeFileResource,authority:se.authority||this.FALLBACK_AUTHORITY,query:null,fragment:null}):se}toUri(G,Z){return se.a.isUri(G)?G:se.a.parse(Z.toUrl(G))}}},1503:function(G,Z,ne){"use strict";var ie,se=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,fe=Object.getOwnPropertyNames,me=Object.prototype.hasOwnProperty,ge={};((G,Z)=>{for(var ne in Z)se(G,ne,{get:Z[ne],enumerable:!0})})(ge,{default:()=>Ce}),G.exports=(ie=ge,((G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let ge of fe(Z))me.call(G,ge)||ge===ne||se(G,ge,{get:()=>Z[ge],enumerable:!(ie=ce(Z,ge))||ie.enumerable});return G})(se({},"__esModule",{value:!0}),ie));var Ce={"excerpt-command":{isList:!1,args:[{key:"maxterms",valueType:"int"},{key:"maxlines",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"abstract-command":{isList:!1,args:[{key:"maxterms",valueType:"int"},{key:"maxlines",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"accum-command":{isList:!1,args:[],functions:[],keywords:["AS"],other:["field","field"],list:[]},"addcoltotals-command":{isList:!1,args:[{key:"labelfield",valueType:"field"},{key:"label",valueType:"string"}],functions:[],keywords:[],other:["field-list"],list:[]},"addinfo-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"addtotals-command":{isList:!1,args:[{key:"row",valueType:"bool"},{key:"col",valueType:"bool"},{key:"labelfield",valueType:"field"},{key:"label",valueType:"string"},{key:"fieldname",valueType:"field"}],functions:[],keywords:[],other:["field-list"],list:[]},"af-command":{isList:!1,args:[{key:"classfield",valueType:"field"}],functions:[],keywords:[],other:[],list:[]},"analyzefields-command":{isList:!1,args:[{key:"classfield",valueType:"field"}],functions:[],keywords:[],other:[],list:[]},"anomalies-command":{isList:!1,args:[{key:"threshold",valueType:"num"},{key:"labelonly",valueType:"bool"},{key:"normalize",valueType:"bool"},{key:"maxvalues",valueType:"int"},{key:"field",valueType:"field"},{key:"denylist",valueType:"filename"},{key:"denylistthreshold",valueType:"num"}],functions:[],keywords:["by"],other:["field-list"],list:[]},"anomalousvalue-command":{isList:!1,args:[{key:"minsupcount",valueType:"int"},{key:"maxanofreq",valueType:"num"},{key:"minsupfreq",valueType:"num"},{key:"minnormfreq",valueType:"num"},{key:"action",valueType:""},{key:"pthresh",valueType:"num"}],functions:[],keywords:[],other:["field-list"],list:[]},"anomalydetection-command":{isList:!1,args:[{key:"method",valueType:""},{key:"action",valueType:""},{key:"action",valueType:""},{key:"pthresh",valueType:"num"},{key:"cutoff",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"append-command":{isList:!1,args:[{key:"extendtimerange",valueType:"bool"},{key:"maxtime",valueType:"int"},{key:"maxout",valueType:"int"},{key:"timeout",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"appendcols-command":{isList:!1,args:[{key:"override",valueType:"bool"},{key:"extendtimerange",valueType:"bool"},{key:"maxtime",valueType:"int"},{key:"maxout",valueType:"int"},{key:"timeout",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"appendpipe-command":{isList:!1,args:[{key:"run_in_preview",valueType:"bool"}],functions:[],keywords:[],other:["subpipeline"],list:[]},"archivebuckets-command":{isList:!1,args:[{key:"forcerun",valueType:""},{key:"retries",valueType:""}],functions:[],keywords:[],other:[],list:[]},"arules-command":{isList:!1,args:[{key:"sup",valueType:"int"},{key:"conf",valueType:"num"}],functions:[],keywords:[],other:["fields"],list:[]},"associate-command":{isList:!1,args:[{key:"supcnt",valueType:"int"},{key:"supfreq",valueType:"num"},{key:"improv",valueType:"num"}],functions:[],keywords:[],other:["field-list"],list:[]},"audit-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"ar-command":{isList:!1,args:[{key:"p",valueType:""}],functions:[],keywords:["AS"],other:["field","field:newfield"],list:[]},"autoregress-command":{isList:!1,args:[{key:"p",valueType:""}],functions:[],keywords:["AS"],other:["field","field:newfield"],list:[]},"bucket-command":{isList:!1,args:[{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""}],functions:[],keywords:["as"],other:["field","field"],list:[]},"discretize-command":{isList:!1,args:[{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""}],functions:[],keywords:["as"],other:["field","field"],list:[]},"bin-command":{isList:!1,args:[{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""}],functions:[],keywords:["as"],other:["field","field"],list:[]},"bucketdir-command":{isList:!1,args:[{key:"pathfield",valueType:"field"},{key:"sizefield",valueType:"field"},{key:"maxcount",valueType:"int"},{key:"countfield",valueType:"field"},{key:"sep",valueType:"char"}],functions:[],keywords:[],other:[],list:[]},"chart-command":{isList:!1,args:[{key:"sep",valueType:"string"},{key:"format",valueType:"string"},{key:"cont",valueType:"bool"},{key:"limit",valueType:"chart-limit-opt"},{key:"agg",valueType:"stats-agg-term"},{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""},{key:"usenull",valueType:"bool"},{key:"useother",valueType:"bool"},{key:"nullstr",valueType:"string"},{key:"otherstr",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"sparkline",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"range",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"distinct_count",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"mode",parenOptional:!1},{name:"median",parenOptional:!1},{name:"earliest",parenOptional:!1},{name:"first",parenOptional:!1},{name:"last",parenOptional:!1},{name:"latest",parenOptional:!1},{name:"list",parenOptional:!1},{name:"values",parenOptional:!1},{name:"range",parenOptional:!1},{name:"estdc",parenOptional:!1},{name:"estdc_error",parenOptional:!1},{name:"earliest_time",parenOptional:!1},{name:"latest_time",parenOptional:!1},{name:"rate",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","BY","where","OVER"],other:["field","num","string","wc-field","int","|"],list:[]},"slc-command":{isList:!1,args:[{key:"t",valueType:"num"},{key:"delims",valueType:"string"},{key:"showcount",valueType:"bool"},{key:"countfield",valueType:"field"},{key:"labelfield",valueType:"field"},{key:"field",valueType:"field"},{key:"labelonly",valueType:"bool"},{key:"match",valueType:""}],functions:[],keywords:[],other:[],list:[]},"cluster-command":{isList:!1,args:[{key:"t",valueType:"num"},{key:"delims",valueType:"string"},{key:"showcount",valueType:"bool"},{key:"countfield",valueType:"field"},{key:"labelfield",valueType:"field"},{key:"field",valueType:"field"},{key:"labelonly",valueType:"bool"},{key:"match",valueType:""}],functions:[],keywords:[],other:[],list:[]},"cofilter-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"collapse-command":{isList:!1,args:[{key:"chunksize",valueType:"num"},{key:"force",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"stash-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"addtime",valueType:"bool"},{key:"file",valueType:"string"},{key:"spool",valueType:"bool"},{key:"marker",valueType:"string"},{key:"testmode",valueType:"bool"},{key:"run_in_preview",valueType:"bool"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"},{key:"uselb",valueType:"bool"},{key:"output_format",valueType:""}],functions:[],keywords:[],other:[],list:[]},"summaryindex-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"addtime",valueType:"bool"},{key:"file",valueType:"string"},{key:"spool",valueType:"bool"},{key:"marker",valueType:"string"},{key:"testmode",valueType:"bool"},{key:"run_in_preview",valueType:"bool"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"},{key:"uselb",valueType:"bool"},{key:"output_format",valueType:""}],functions:[],keywords:[],other:[],list:[]},"sumindex-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"addtime",valueType:"bool"},{key:"file",valueType:"string"},{key:"spool",valueType:"bool"},{key:"marker",valueType:"string"},{key:"testmode",valueType:"bool"},{key:"run_in_preview",valueType:"bool"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"},{key:"uselb",valueType:"bool"},{key:"output_format",valueType:""}],functions:[],keywords:[],other:[],list:[]},"collect-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"addtime",valueType:"bool"},{key:"file",valueType:"string"},{key:"spool",valueType:"bool"},{key:"marker",valueType:"string"},{key:"testmode",valueType:"bool"},{key:"run_in_preview",valueType:"bool"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"},{key:"uselb",valueType:"bool"},{key:"output_format",valueType:""}],functions:[],keywords:[],other:[],list:[]},"concurrency-command":{isList:!1,args:[{key:"duration",valueType:"field"},{key:"start",valueType:"field"},{key:"output",valueType:"field"}],functions:[],keywords:[],other:[],list:[]},"counttable-command":{isList:!1,args:[{key:"maxrows",valueType:"int"},{key:"maxcols",valueType:"int"},{key:"mincolcover",valueType:"num"},{key:"minrowcover",valueType:"num"},{key:"usetotal",valueType:"bool"},{key:"totalstr",valueType:"field"}],functions:[],keywords:[],other:["field","field"],list:[]},"ctable-command":{isList:!1,args:[{key:"maxrows",valueType:"int"},{key:"maxcols",valueType:"int"},{key:"mincolcover",valueType:"num"},{key:"minrowcover",valueType:"num"},{key:"usetotal",valueType:"bool"},{key:"totalstr",valueType:"field"}],functions:[],keywords:[],other:["field","field"],list:[]},"contingency-command":{isList:!1,args:[{key:"maxrows",valueType:"int"},{key:"maxcols",valueType:"int"},{key:"mincolcover",valueType:"num"},{key:"minrowcover",valueType:"num"},{key:"usetotal",valueType:"bool"},{key:"totalstr",valueType:"field"}],functions:[],keywords:[],other:["field","field"],list:[]},"convert-command":{isList:!1,args:[{key:"timeformat",valueType:"string"}],functions:[{name:"auto",parenOptional:!0},{name:"dur2sec",parenOptional:!1},{name:"mstime",parenOptional:!1},{name:"memk",parenOptional:!1},{name:"none",parenOptional:!1},{name:"num",parenOptional:!1},{name:"rmunit",parenOptional:!1},{name:"rmcomma",parenOptional:!1},{name:"ctime",parenOptional:!1},{name:"mktime",parenOptional:!1}],keywords:["as"],other:["wc-field","wc-field"],list:[]},"copyresults-command":{isList:!1,args:[{key:"dest",valueType:"string"},{key:"sid",valueType:"string"}],functions:[],keywords:[],other:[],list:[]},"correlate-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"createrss-command":{isList:!1,args:[{key:"path",valueType:"string"},{key:"name",valueType:"string"},{key:"link",valueType:"string"},{key:"descr",valueType:"string"},{key:"count",valueType:"int"},{key:"graceful",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"datamodel-command":{isList:!1,args:[{key:"allow_old_summaries",valueType:"bool"},{key:"summariesonly",valueType:"bool"},{key:"strict_fields",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"dbinspect-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"span",valueType:""},{key:"timeformat",valueType:"string"},{key:"corruptonly",valueType:"bool"},{key:"bucketstate",valueType:"bucketstate-type"}],functions:[],keywords:[],other:[],list:[]},"debug-command":{isList:!1,args:[{key:"cmd",valueType:"debug-method"},{key:"param1",valueType:"string"},{key:"param2",valueType:"string"}],functions:[],keywords:[],other:["string"],list:[]},"dedup-command":{isList:!1,args:[{key:"keepevents",valueType:"bool"},{key:"keepempty",valueType:"bool"},{key:"consecutive",valueType:"bool"}],functions:[],keywords:["sortby"],other:["int","field-list","field"],list:[]},"delete-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"delta-command":{isList:!1,args:[{key:"p",valueType:"int"}],functions:[],keywords:["as"],other:["field","field:newfield"],list:[]},"dfsjob-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"diff-command":{isList:!1,args:[{key:"position1",valueType:"int"},{key:"position2",valueType:"int"},{key:"attribute",valueType:"string"},{key:"diffheader",valueType:"bool"},{key:"context",valueType:"bool"},{key:"maxlen",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"dispatch-command":{isList:!1,args:[{key:"ttl",valueType:"num"},{key:"maxresults",valueType:"num"},{key:"maxtime",valueType:"num"},{key:"id",valueType:"string"},{key:"spawn_process",valueType:"bool"},{key:"label",valueType:"string"},{key:"start_time",valueType:"num"},{key:"end_time",valueType:"num"}],functions:[],keywords:[],other:["string","search-pipeline"],list:[]},"dump-command":{isList:!1,args:[{key:"basefilename",valueType:"string"},{key:"rollsize",valueType:"num"},{key:"compress",valueType:"int"},{key:"format",valueType:"string"},{key:"fields",valueType:"comma-delimited-string"}],functions:[],keywords:[],other:[],list:[]},"editinfo-command":{isList:!1,args:[{key:"keyset",valueType:""},{key:"starttime",valueType:""},{key:"endtime",valueType:""},{key:"msg_error",valueType:""},{key:"msg_warn",valueType:""},{key:"msg_info",valueType:""},{key:"msg_debug",valueType:""}],functions:[],keywords:[],other:[],list:[]},"erex-command":{isList:!1,args:[{key:"examples",valueType:"erex-examples"},{key:"counterexamples",valueType:"erex-examples"},{key:"fromfield",valueType:"field"},{key:"maxtrainers",valueType:"int"}],functions:[],keywords:[],other:["field"],list:[]},"eval-command":{isList:!1,args:[],functions:[{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR"],other:["field","num","string"],list:[]},"eventcount-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"summarize",valueType:"bool"},{key:"report_size",valueType:"bool"},{key:"list_vix",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"eventstats-command":{isList:!1,args:[{key:"allnum",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by"],other:["field","num","string","wc-field","field-list"],list:[]},"kv-command":{isList:!1,args:[{key:"segment",valueType:"bool"},{key:"reload",valueType:"bool"},{key:"kvdelim",valueType:"string"},{key:"pairdelim",valueType:"string"},{key:"limit",valueType:"int"},{key:"maxchars",valueType:"int"},{key:"mv_add",valueType:"bool"},{key:"clean_keys",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"extract-command":{isList:!1,args:[{key:"segment",valueType:"bool"},{key:"reload",valueType:"bool"},{key:"kvdelim",valueType:"string"},{key:"pairdelim",valueType:"string"},{key:"limit",valueType:"int"},{key:"maxchars",valueType:"int"},{key:"mv_add",valueType:"bool"},{key:"clean_keys",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"fieldformat-command":{isList:!1,args:[],functions:[{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR"],other:["field","num","string"],list:[]},"fields-command":{isList:!1,args:[],functions:[],keywords:[],other:["wc-field-list"],list:[]},"fieldsummary-command":{isList:!1,args:[{key:"maxvals",valueType:"num"}],functions:[],keywords:[],other:["wc-field-list"],list:[]},"test-command":{isList:!1,args:[],functions:[],keywords:[],other:["filename"],list:[]},"file-command":{isList:!1,args:[],functions:[],keywords:[],other:["filename"],list:[]},"filldown-command":{isList:!1,args:[],functions:[],keywords:[],other:["wc-field-list"],list:[]},"fillnull-command":{isList:!1,args:[{key:"value",valueType:"string"}],functions:[],keywords:[],other:["field-list"],list:[]},"findkeywords-command":{isList:!1,args:[{key:"labelfield",valueType:"field"},{key:"dedup",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"findtypes-command":{isList:!1,args:[{key:"max",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"folderize-command":{isList:!1,args:[{key:"attr",valueType:"string"},{key:"sep",valueType:"string"},{key:"size",valueType:"string"},{key:"minfolders",valueType:"int"},{key:"maxfolders",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"foreach-command":{isList:!1,args:[{key:"fieldstr",valueType:"string"},{key:"matchstr",valueType:"string"},{key:"matchseg1",valueType:"string"},{key:"matchseg2",valueType:"string"},{key:"matchseg3",valueType:"string"}],functions:[],keywords:[],other:["wc-field","string"],list:[]},"format-command":{isList:!1,args:[{key:"quote",valueType:"bool"},{key:"mvsep",valueType:""},{key:"maxresults",valueType:"int"}],functions:[],keywords:[],other:["double-quoted-string","row end"],list:[]},"from-command":{isList:!0,args:[],functions:[],keywords:[],other:["ws","string"],list:["datamodel","savedsearch","inputlookup","federated"]},"gauge-command":{isList:!1,args:[],functions:[],keywords:[],other:["num","field","num","field"],list:[]},"gentimes-command":{isList:!1,args:[{key:"start",valueType:"timestamp"},{key:"end",valueType:"timestamp"},{key:"increment",valueType:"increment"}],functions:[],keywords:[],other:[],list:[]},"geom-command":{isList:!1,args:[{key:"allFeatures",valueType:"bool"},{key:"featureIdField",valueType:"string"},{key:"gen",valueType:"num"},{key:"min_x",valueType:"num"},{key:"min_y",valueType:"num"},{key:"max_x",valueType:"num"},{key:"max_y",valueType:"num"}],functions:[],keywords:[],other:["string"],list:[]},"geomfilter-command":{isList:!1,args:[{key:"min_x",valueType:"num"},{key:"min_y",valueType:"num"},{key:"max_x",valueType:"num"},{key:"max_y",valueType:"num"}],functions:[],keywords:[],other:[],list:[]},"geostats-command":{isList:!1,args:[{key:"translatetoxy",valueType:"bool"},{key:"latfield",valueType:"string"},{key:"longfield",valueType:"string"},{key:"outputlatfield",valueType:"string"},{key:"outputlongfield",valueType:"string"},{key:"globallimit",valueType:"int"},{key:"locallimit",valueType:"int"},{key:"binspanlat",valueType:"float"},{key:"binspanlong",valueType:""},{key:"maxzoomlevel",valueType:"int"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by"],other:["field","num","string","wc-field","field-list"],list:[]},"head-command":{isList:!1,args:[{key:"limit",valueType:"int"},{key:"null",valueType:"bool"},{key:"keeplast",valueType:"bool"}],functions:[{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR"],other:["int","field","num","string"],list:[]},"hilite-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"highlight-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"history-command":{isList:!1,args:[{key:"events",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"iconify-command":{isList:!1,args:[],functions:[],keywords:[],other:["field-list"],list:[]},"ingestpreview-command":{isList:!1,args:[{key:"meta_mode",valueType:"string"},{key:"ingest_processor",valueType:"string"},{key:"emit_copy_pastable",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"inputcsv-command":{isList:!1,args:[{key:"dispatch",valueType:"bool"},{key:"append",valueType:"bool"},{key:"strict",valueType:"bool"},{key:"start",valueType:"int"},{key:"max",valueType:"int"},{key:"events",valueType:"bool"}],functions:[],keywords:["WHERE"],other:["filename","string:search-query"],list:[]},"inputlookup-command":{isList:!1,args:[{key:"append",valueType:"bool"},{key:"start",valueType:"int"},{key:"max",valueType:"int"}],functions:[],keywords:["where"],other:["filename","string:tablename","string:search-query"],list:[]},"internalinputcsv-command":{isList:!1,args:[],functions:[],keywords:[],other:["filename"],list:[]},"iplocation-command":{isList:!1,args:[{key:"prefix",valueType:"string"},{key:"allfields",valueType:"bool"},{key:"lang",valueType:"string"}],functions:[],keywords:[],other:["field"],list:[]},"join-command":{isList:!1,args:[{key:"type",valueType:""},{key:"usetime",valueType:"bool"},{key:"earlier",valueType:"bool"},{key:"overwrite",valueType:"bool"},{key:"max",valueType:"int"},{key:"return_multivalue",valueType:"bool"},{key:"left",valueType:"leftalias"},{key:"right",valueType:"rightalias"}],functions:[],keywords:["WHERE"],other:["field-list","string","field"],list:[]},"jsontxn-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"kmeans-command":{isList:!1,args:[{key:"reps",valueType:"int"},{key:"maxiters",valueType:"int"},{key:"t",valueType:"num"},{key:"k",valueType:""},{key:"cfield",valueType:"field"},{key:"dt",valueType:""},{key:"showcentroid",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"kvform-command":{isList:!1,args:[{key:"form",valueType:"string"},{key:"field",valueType:"field"}],functions:[],keywords:[],other:[],list:[]},"loadjob-command":{isList:!1,args:[{key:"savedsearch",valueType:""},{key:"events",valueType:"bool"},{key:"job_delegate",valueType:"string"},{key:"artifact_offset",valueType:"int"},{key:"ignore_running",valueType:"bool"},{key:"wait_until_finished",valueType:"bool"},{key:"wait_timeout",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"localize-command":{isList:!1,args:[{key:"maxpause",valueType:""},{key:"timeafter",valueType:""},{key:"timebefore",valueType:""}],functions:[],keywords:[],other:[],list:[]},"localop-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"lookup-command":{isList:!1,args:[{key:"local",valueType:"bool"},{key:"update",valueType:"bool"},{key:"event_time_field",valueType:"string"}],functions:[],keywords:["as","OUTPUT|OUTPUTNEW","as"],other:["string:lookup-table-name","field:lookup","field:local","field:dest","field:local-dest"],list:[]},"makecontinuous-command":{isList:!1,args:[{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""}],functions:[],keywords:[],other:["field"],list:[]},"makejson-command":{isList:!1,args:[{key:"output",valueType:"string"}],functions:[],keywords:[],other:["wc-field-list"],list:[]},"makemv-command":{isList:!1,args:[{key:"delim",valueType:"string"},{key:"tokenizer",valueType:""},{key:"allowempty",valueType:"bool"},{key:"setsv",valueType:"bool"}],functions:[],keywords:[],other:["field"],list:[]},"makeresults-command":{isList:!1,args:[{key:"count",valueType:"int"},{key:"annotate",valueType:"bool"},{key:"splunk_server",valueType:"string"},{key:"splunk_server_group",valueType:"string"}],functions:[],keywords:[],other:[],list:[]},"map-command":{isList:!1,args:[{key:"search",valueType:""},{key:"maxsearches",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"mcatalog-command":{isList:!1,args:[{key:"prestats",valueType:"bool"},{key:"append",valueType:"bool"},{key:"timeformat",valueType:"string"},{key:"earliest",valueType:"time_modifier"},{key:"_index_earliest",valueType:"time_modifier"},{key:"starttime",valueType:"string"},{key:"startdaysago",valueType:"int"},{key:"startminutesago",valueType:"int"},{key:"starthoursago",valueType:"int"},{key:"startmonthsago",valueType:"int"},{key:"starttimeu",valueType:"num"},{key:"latest",valueType:"time_modifier"},{key:"_index_latest",valueType:"time_modifier"},{key:"endtime",valueType:"string"},{key:"enddaysago",valueType:"int"},{key:"endminutesago",valueType:"int"},{key:"endhoursago",valueType:"int"},{key:"endmonthsago",valueType:"int"},{key:"endtimeu",valueType:"num"},{key:"searchtimespanhours",valueType:"int"},{key:"searchtimespanminutes",valueType:"int"},{key:"searchtimespandays",valueType:"int"},{key:"searchtimespanmonths",valueType:"int"},{key:"daysago",valueType:"int"},{key:"minutesago",valueType:"int"},{key:"hoursago",valueType:"int"},{key:"monthsago",valueType:"int"},{key:"savedsearch",valueType:"string"},{key:"savedsplunk",valueType:"string"}],functions:[],keywords:["as","WHERE","IN","BY|GROUPBY"],other:["field","string","boolean-operator-not","term","num","boolean-operator-or","boolean-operator-and","field-list"],list:[]},"mcollect-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"file",valueType:"string"},{key:"split",valueType:"true|false|allnums"},{key:"spool",valueType:"bool"},{key:"prefix_field",valueType:"string"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"},{key:"marker",valueType:"string"}],functions:[],keywords:[],other:["field-list"],list:[]},"metadata-command":{isList:!1,args:[{key:"type",valueType:"metadata-type"},{key:"index",valueType:"string"},{key:"splunk_server",valueType:"wc-string"},{key:"splunk_server_group",valueType:"wc-string"},{key:"datatype",valueType:"metric|event"}],functions:[],keywords:[],other:[],list:[]},"metasearch-command":{isList:!1,args:[{key:"timeformat",valueType:"string"},{key:"earliest",valueType:"time_modifier"},{key:"_index_earliest",valueType:"time_modifier"},{key:"starttime",valueType:"string"},{key:"startdaysago",valueType:"int"},{key:"startminutesago",valueType:"int"},{key:"starthoursago",valueType:"int"},{key:"startmonthsago",valueType:"int"},{key:"starttimeu",valueType:"num"},{key:"latest",valueType:"time_modifier"},{key:"_index_latest",valueType:"time_modifier"},{key:"endtime",valueType:"string"},{key:"enddaysago",valueType:"int"},{key:"endminutesago",valueType:"int"},{key:"endhoursago",valueType:"int"},{key:"endmonthsago",valueType:"int"},{key:"endtimeu",valueType:"num"},{key:"searchtimespanhours",valueType:"int"},{key:"searchtimespanminutes",valueType:"int"},{key:"searchtimespandays",valueType:"int"},{key:"searchtimespanmonths",valueType:"int"},{key:"daysago",valueType:"int"},{key:"minutesago",valueType:"int"},{key:"hoursago",valueType:"int"},{key:"monthsago",valueType:"int"},{key:"savedsearch",valueType:"string"},{key:"savedsplunk",valueType:"string"}],functions:[],keywords:["IN"],other:["string","field","boolean-operator-not","term","num","boolean-operator-or","boolean-operator-and"],list:[]},"meventcollect-command":{isList:!1,args:[{key:"index",valueType:"string"},{key:"split",valueType:"bool"},{key:"spool",valueType:"bool"},{key:"prefix_field",valueType:"string"},{key:"host",valueType:"string"},{key:"source",valueType:"string"},{key:"sourcetype",valueType:"string"}],functions:[],keywords:[],other:["field-list"],list:[]},"msearch-command":{isList:!1,args:[{key:"filter",valueType:"string"},{key:"index",valueType:"string"},{key:"splunk_server",valueType:"wc-string"},{key:"splunk_server_group",valueType:"wc-string"},{key:"earliest",valueType:"mpreview-time-specifier"},{key:"latest",valueType:"mpreview-time-specifier"},{key:"chunk_size",valueType:"int"},{key:"target_per_timeseries",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"mpreview-command":{isList:!1,args:[{key:"filter",valueType:"string"},{key:"index",valueType:"string"},{key:"splunk_server",valueType:"wc-string"},{key:"splunk_server_group",valueType:"wc-string"},{key:"earliest",valueType:"mpreview-time-specifier"},{key:"latest",valueType:"mpreview-time-specifier"},{key:"chunk_size",valueType:"int"},{key:"target_per_timeseries",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"mrollup-command":{isList:!1,args:[{key:"source",valueType:"string"},{key:"target",valueType:"string"},{key:"file",valueType:"string"},{key:"span",valueType:"string:timespan"},{key:"aggregate",valueType:""},{key:"dimension-list",valueType:""},{key:"dimension-list-type",valueType:""},{key:"metric-list",valueType:""},{key:"metric-list-type",valueType:""},{key:"metric-overrides",valueType:""},{key:"app",valueType:"string"}],functions:[],keywords:[],other:[],list:[]},"mstats-command":{isList:!1,args:[{key:"chart",valueType:"bool"},{key:"chart.limit",valueType:"chart-limit-opt"},{key:"chart.agg",valueType:"stats-agg-term"},{key:"chart.usenull",valueType:"bool"},{key:"chart.useother",valueType:"bool"},{key:"chart.nullstr",valueType:"string"},{key:"chart.otherstr",valueType:"string"},{key:"prestats",valueType:"bool"},{key:"append",valueType:"bool"},{key:"backfill",valueType:"bool"},{key:"update_period",valueType:"int"},{key:"fillnull_value",valueType:"string"},{key:"chunk_size",valueType:"int"},{key:"timeformat",valueType:"string"},{key:"earliest",valueType:"time_modifier"},{key:"_index_earliest",valueType:"time_modifier"},{key:"starttime",valueType:"string"},{key:"startdaysago",valueType:"int"},{key:"startminutesago",valueType:"int"},{key:"starthoursago",valueType:"int"},{key:"startmonthsago",valueType:"int"},{key:"starttimeu",valueType:"num"},{key:"latest",valueType:"time_modifier"},{key:"_index_latest",valueType:"time_modifier"},{key:"endtime",valueType:"string"},{key:"enddaysago",valueType:"int"},{key:"endminutesago",valueType:"int"},{key:"endhoursago",valueType:"int"},{key:"endmonthsago",valueType:"int"},{key:"endtimeu",valueType:"num"},{key:"searchtimespanhours",valueType:"int"},{key:"searchtimespanminutes",valueType:"int"},{key:"searchtimespandays",valueType:"int"},{key:"searchtimespanmonths",valueType:"int"},{key:"daysago",valueType:"int"},{key:"minutesago",valueType:"int"},{key:"hoursago",valueType:"int"},{key:"monthsago",valueType:"int"},{key:"savedsearch",valueType:"string"},{key:"savedsplunk",valueType:"string"},{key:"span",valueType:"string:timespan"},{key:"every",valueType:"string:timespan"}],functions:[{name:"rate_avg",parenOptional:!1},{name:"rate_sum",parenOptional:!1}],keywords:["as","WHERE","IN","BY|GROUPBY"],other:["metric_name","string","stats-func-value","field","boolean-operator-not","term","num","boolean-operator-or","boolean-operator-and","field-list"],list:[]},"multikv-command":{isList:!1,args:[{key:"conf",valueType:"stanza_name"},{key:"copyattrs",valueType:"bool"},{key:"forceheader",valueType:"int"},{key:"multitable",valueType:"bool"},{key:"noheader",valueType:"bool"},{key:"rmorig",valueType:"bool"}],functions:[],keywords:["fields","filter"],other:["field-list"],list:[]},"multisearch-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"mvcombine-command":{isList:!1,args:[{key:"delim",valueType:"string"}],functions:[],keywords:[],other:["field"],list:[]},"mvexpand-command":{isList:!1,args:[{key:"limit",valueType:"int"}],functions:[],keywords:[],other:["field"],list:[]},"newseriesfilter-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"nokv-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"nomv-command":{isList:!1,args:[],functions:[],keywords:[],other:["field"],list:[]},"outlierfilter-command":{isList:!1,args:[{key:"action",valueType:""},{key:"param",valueType:"num"},{key:"uselower",valueType:"bool"},{key:"mark",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"outlier-command":{isList:!1,args:[{key:"action",valueType:""},{key:"param",valueType:"num"},{key:"uselower",valueType:"bool"},{key:"mark",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"outputcsv-command":{isList:!1,args:[{key:"append",valueType:"bool"},{key:"create_empty",valueType:"bool"},{key:"override_if_empty",valueType:""},{key:"dispatch",valueType:"bool"},{key:"usexml",valueType:"bool"},{key:"singlefile",valueType:"bool"}],functions:[],keywords:[],other:["filename"],list:[]},"outputlookup-command":{isList:!1,args:[{key:"append",valueType:"bool"},{key:"create_empty",valueType:"bool"},{key:"override_if_empty",valueType:""},{key:"max",valueType:"int"},{key:"key_field",valueType:"field"},{key:"createinapp",valueType:"bool"},{key:"create_context",valueType:"string"},{key:"output_format",valueType:"string"}],functions:[],keywords:[],other:["filename","string:tablename"],list:[]},"outputraw-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"outputrawr-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"outputtelemetry-command":{isList:!1,args:[{key:"input",valueType:"string"},{key:"type",valueType:"string"},{key:"component",valueType:"string"},{key:"support",valueType:"bool"},{key:"anonymous",valueType:"bool"},{key:"license",valueType:"bool"},{key:"optinrequired",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"outputtext-command":{isList:!1,args:[{key:"usexml",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"overlap-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"pivot-command":{isList:!1,args:[],functions:[],keywords:[],other:["datamodel-name","object-name","pivot-element"],list:[]},"predict-command":{isList:!1,args:[{key:"algorithm",valueType:""},{key:"correlate",valueType:"field"},{key:"future_timespan",valueType:"num"},{key:"holdback",valueType:"num"},{key:"period",valueType:"num"},{key:"upper\\d+",valueType:"field"},{key:"lower\\d+",valueType:"field"},{key:"suppress",valueType:"field"}],functions:[],keywords:["as"],other:["field-list","field"],list:[]},"preview-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"prjob-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"rangemap-command":{isList:!1,args:[{key:"field",valueType:"field"},{key:"default",valueType:"string"}],functions:[],keywords:[],other:["string","num"],list:[]},"rare-command":{isList:!1,args:[{key:"showcount",valueType:"bool"},{key:"showperc",valueType:"bool"},{key:"limit",valueType:"int"},{key:"countfield",valueType:"string"},{key:"percentfield",valueType:"string"},{key:"useother",valueType:"bool"},{key:"otherstr",valueType:"string"}],functions:[],keywords:["by"],other:["field-list"],list:[]},"rawstats-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"redistribute-command":{isList:!1,args:[{key:"dfs",valueType:""},{key:"num_of_reducers",valueType:"int"}],functions:[],keywords:["by"],other:["field-list"],list:[]},"regex-command":{isList:!1,args:[],functions:[],keywords:[],other:["field","string"],list:[]},"relevancy-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"reltime-command":{isList:!1,args:[{key:"timefield",valueType:"field-list"},{key:"prefix",valueType:"string"}],functions:[],keywords:[],other:[],list:[]},"rename-command":{isList:!1,args:[],functions:[],keywords:["as"],other:["wc-field","wc-field"],list:[]},"replace-command":{isList:!1,args:[],functions:[],keywords:["with","in"],other:["wc-str","wc-str","field-list"],list:[]},"require-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"rest-command":{isList:!1,args:[{key:"count",valueType:"int"},{key:"strict",valueType:"bool"},{key:"splunk_server",valueType:"string"},{key:"splunk_server_group",valueType:"string"},{key:"timeout",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"return-command":{isList:!1,args:[],functions:[],keywords:[],other:["int:count","field:alias","field","field","field"],list:[]},"reverse-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"rex-command":{isList:!1,args:[{key:"field",valueType:"field"},{key:"max_match",valueType:"int"},{key:"offset_field",valueType:"string"},{key:"mode",valueType:""}],functions:[],keywords:[],other:["string","sed-expression"],list:[]},"rtorder-command":{isList:!1,args:[{key:"discard",valueType:"bool"},{key:"buffer_span",valueType:"span-length"},{key:"max_buffer_size",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"runshellscript-command":{isList:!1,args:[],functions:[],keywords:[],other:["script-filename","result-count","search-terms","search-string","savedsearch-name","description","results-url","deprecated-arg","search-id"],list:[]},"macro-command":{isList:!1,args:[{key:"nosubstitution",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"savedsplunk-command":{isList:!1,args:[{key:"nosubstitution",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"savedsearch-command":{isList:!1,args:[{key:"nosubstitution",valueType:"bool"}],functions:[],keywords:[],other:["string"],list:[]},"run-command":{isList:!1,args:[{key:"maxinputs",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"script-command":{isList:!1,args:[{key:"maxinputs",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"scrub-command":{isList:!1,args:[{key:"public-terms",valueType:"filename"},{key:"private-terms",valueType:"filename"},{key:"name-terms",valueType:"filename"},{key:"dictionary",valueType:"filename"},{key:"timeconfig",valueType:"filename"},{key:"namespace",valueType:"string"}],functions:[],keywords:[],other:[],list:[]},"search-command":{isList:!1,args:[{key:"timeformat",valueType:"string"},{key:"earliest",valueType:"time_modifier"},{key:"_index_earliest",valueType:"time_modifier"},{key:"starttime",valueType:"string"},{key:"startdaysago",valueType:"int"},{key:"startminutesago",valueType:"int"},{key:"starthoursago",valueType:"int"},{key:"startmonthsago",valueType:"int"},{key:"starttimeu",valueType:"num"},{key:"latest",valueType:"time_modifier"},{key:"_index_latest",valueType:"time_modifier"},{key:"endtime",valueType:"string"},{key:"enddaysago",valueType:"int"},{key:"endminutesago",valueType:"int"},{key:"endhoursago",valueType:"int"},{key:"endmonthsago",valueType:"int"},{key:"endtimeu",valueType:"num"},{key:"searchtimespanhours",valueType:"int"},{key:"searchtimespanminutes",valueType:"int"},{key:"searchtimespandays",valueType:"int"},{key:"searchtimespanmonths",valueType:"int"},{key:"daysago",valueType:"int"},{key:"minutesago",valueType:"int"},{key:"hoursago",valueType:"int"},{key:"monthsago",valueType:"int"},{key:"savedsearch",valueType:"string"},{key:"savedsplunk",valueType:"string"}],functions:[],keywords:["IN"],other:["string","field","boolean-operator-not","term","num","boolean-operator-or","boolean-operator-and"],list:[]},"searchtxn-command":{isList:!1,args:[{key:"max_terms",valueType:"int"},{key:"use_disjunct",valueType:"bool"},{key:"eventsonly",valueType:"bool"}],functions:[],keywords:[],other:["string","search-string"],list:[]},"report-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"select-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"selfjoin-command":{isList:!1,args:[{key:"overwrite",valueType:"bool"},{key:"max",valueType:"int"},{key:"keepsingle",valueType:"int"}],functions:[],keywords:[],other:["field-list"],list:[]},"sendalert-command":{isList:!1,args:[{key:"results_link",valueType:"url"},{key:"results_path",valueType:"path"},{key:"param.",valueType:"value"}],functions:[],keywords:[],other:["string"],list:[]},"sendemail-command":{isList:!1,args:[{key:"to",valueType:"email_list"},{key:"from",valueType:"email_list"},{key:"cc",valueType:"email_list"},{key:"bcc",valueType:"email_list"},{key:"subject",valueType:"string"},{key:"message",valueType:"string"},{key:"footer",valueType:"string"},{key:"sendresults",valueType:"bool"},{key:"inline",valueType:"bool"},{key:"format",valueType:""},{key:"sendcsv",valueType:"bool"},{key:"sendpdf",valueType:"bool"},{key:"pdfview",valueType:"string"},{key:"paperorientation",valueType:""},{key:"papersize",valueType:""},{key:"priority",valueType:""},{key:"server",valueType:"string"},{key:"graceful",valueType:"bool"},{key:"content_type",valueType:""},{key:"width_sort_columns",valueType:"bool"},{key:"use_ssl",valueType:"bool"},{key:"use_tls",valueType:"bool"},{key:"maxinputs",valueType:"int"},{key:"maxtime",valueType:""}],functions:[],keywords:[],other:[],list:[]},"set-command":{isList:!1,args:[],functions:[],keywords:["union|diff|intersect"],other:["string"],list:[]},"setfields-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"shape-command":{isList:!1,args:[{key:"maxvalues",valueType:"int"},{key:"maxresolution",valueType:"int"}],functions:[],keywords:[],other:["field"],list:[]},"showargs-command":{isList:!1,args:[],functions:[],keywords:[],other:["string"],list:[]},"sichart-command":{isList:!1,args:[{key:"sep",valueType:"string"},{key:"format",valueType:"string"},{key:"cont",valueType:"bool"},{key:"limit",valueType:"chart-limit-opt"},{key:"agg",valueType:"stats-agg-term"},{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""},{key:"usenull",valueType:"bool"},{key:"useother",valueType:"bool"},{key:"nullstr",valueType:"string"},{key:"otherstr",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"sparkline",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"range",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"distinct_count",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"mode",parenOptional:!1},{name:"median",parenOptional:!1},{name:"earliest",parenOptional:!1},{name:"first",parenOptional:!1},{name:"last",parenOptional:!1},{name:"latest",parenOptional:!1},{name:"list",parenOptional:!1},{name:"values",parenOptional:!1},{name:"range",parenOptional:!1},{name:"estdc",parenOptional:!1},{name:"estdc_error",parenOptional:!1},{name:"earliest_time",parenOptional:!1},{name:"latest_time",parenOptional:!1},{name:"rate",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","BY","where","OVER"],other:["field","num","string","wc-field","int","|"],list:[]},"sirare-command":{isList:!1,args:[{key:"showcount",valueType:"bool"},{key:"showperc",valueType:"bool"},{key:"limit",valueType:"int"},{key:"countfield",valueType:"string"},{key:"percentfield",valueType:"string"},{key:"useother",valueType:"bool"},{key:"otherstr",valueType:"string"}],functions:[],keywords:["by"],other:["field-list"],list:[]},"sistats-command":{isList:!1,args:[{key:"partitions",valueType:"num"},{key:"allnum",valueType:"bool"},{key:"delim",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"sparkline",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"range",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by"],other:["field","num","string","wc-field","int","field-list"],list:[]},"sitimechart-command":{isList:!1,args:[{key:"sep",valueType:"string"},{key:"format",valueType:"string"},{key:"fixedrange",valueType:"bool"},{key:"partial",valueType:"bool"},{key:"cont",valueType:"bool"},{key:"limit",valueType:"chart-limit-opt"},{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""},{key:"usenull",valueType:"bool"},{key:"useother",valueType:"bool"},{key:"nullstr",valueType:"string"},{key:"otherstr",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"distinct_count",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"mode",parenOptional:!1},{name:"median",parenOptional:!1},{name:"earliest",parenOptional:!1},{name:"first",parenOptional:!1},{name:"last",parenOptional:!1},{name:"latest",parenOptional:!1},{name:"list",parenOptional:!1},{name:"values",parenOptional:!1},{name:"range",parenOptional:!1},{name:"estdc",parenOptional:!1},{name:"estdc_error",parenOptional:!1},{name:"earliest_time",parenOptional:!1},{name:"latest_time",parenOptional:!1},{name:"rate",parenOptional:!1},{name:"per_second",parenOptional:!1},{name:"per_minute",parenOptional:!1},{name:"per_hour",parenOptional:!1},{name:"per_day",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by","where"],other:["field","num","string","wc-field","int","|"],list:[]},"sitop-command":{isList:!1,args:[{key:"showcount",valueType:"bool"},{key:"showperc",valueType:"bool"},{key:"limit",valueType:"int"},{key:"countfield",valueType:"string"},{key:"percentfield",valueType:"string"},{key:"useother",valueType:"bool"},{key:"otherstr",valueType:"string"}],functions:[],keywords:["by"],other:["int","field-list"],list:[]},"sort-command":{isList:!1,args:[],functions:[],keywords:[],other:["int","field"],list:[]},"spath-command":{isList:!1,args:[{key:"output",valueType:"field"},{key:"path",valueType:"datapath"},{key:"input",valueType:"field"}],functions:[],keywords:[],other:["datapath"],list:[]},"stats-command":{isList:!1,args:[{key:"partitions",valueType:"num"},{key:"allnum",valueType:"bool"},{key:"delim",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"sparkline",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"range",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by"],other:["field","num","string","wc-field","int","field-list"],list:[]},"strcat-command":{isList:!1,args:[{key:"allrequired",valueType:"bool"}],functions:[],keywords:[],other:["field","double-quoted-string","field"],list:[]},"streamedcsv-command":{isList:!1,args:[{key:"chunk",valueType:"int"}],functions:[],keywords:[],other:["string"],list:[]},"streamstats-command":{isList:!1,args:[{key:"reset_on_change",valueType:"bool"},{key:"reset_before",valueType:""},{key:"reset_after",valueType:""},{key:"current",valueType:"bool"},{key:"window",valueType:"int"},{key:"time_window",valueType:"span-length"},{key:"global",valueType:"bool"},{key:"allnum",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by"],other:["field","num","string","wc-field","field-list"],list:[]},"surrounding-command":{isList:!1,args:[{key:"id",valueType:"event-id"},{key:"timebefore",valueType:"int"},{key:"timeafter",valueType:"int"},{key:"searchkeys",valueType:"key-list"},{key:"readlevel",valueType:"readlevel-int"}],functions:[],keywords:[],other:["int:maxresults","string"],list:[]},"table-command":{isList:!1,args:[],functions:[],keywords:[],other:["wc-field-list"],list:[]},"tagcreate-command":{isList:!1,args:[],functions:[],keywords:[],other:["tag","field-and-value-list"],list:[]},"tagdelete-command":{isList:!1,args:[],functions:[],keywords:[],other:["tag","field-and-value-list"],list:[]},"tags-command":{isList:!1,args:[{key:"outputfield",valueType:"field"},{key:"inclname",valueType:"bool"},{key:"inclvalue",valueType:"bool"},{key:"allowed_tags",valueType:"string"}],functions:[],keywords:[],other:["field"],list:[]},"tagset-command":{isList:!1,args:[],functions:[],keywords:[],other:["field-and-value","tag-list"],list:[]},"tail-command":{isList:!1,args:[],functions:[],keywords:[],other:["int"],list:[]},"timechart-command":{isList:!1,args:[{key:"sep",valueType:"string"},{key:"format",valueType:"string"},{key:"fixedrange",valueType:"bool"},{key:"partial",valueType:"bool"},{key:"cont",valueType:"bool"},{key:"limit",valueType:"chart-limit-opt"},{key:"bins",valueType:"int"},{key:"minspan",valueType:""},{key:"span",valueType:""},{key:"start",valueType:"num"},{key:"end",valueType:"num"},{key:"aligntime",valueType:""},{key:"usenull",valueType:"bool"},{key:"useother",valueType:"bool"},{key:"nullstr",valueType:"string"},{key:"otherstr",valueType:"string"},{key:"dedup_splitvals",valueType:"bool"}],functions:[{name:"c",parenOptional:!0},{name:"count",parenOptional:!0},{name:"dc",parenOptional:!0},{name:"distinct_count",parenOptional:!0},{name:"mean",parenOptional:!0},{name:"avg",parenOptional:!0},{name:"stdev",parenOptional:!0},{name:"stdevp",parenOptional:!0},{name:"var",parenOptional:!0},{name:"varp",parenOptional:!0},{name:"sum",parenOptional:!0},{name:"sumsq",parenOptional:!0},{name:"min",parenOptional:!0},{name:"max",parenOptional:!0},{name:"mode",parenOptional:!0},{name:"median",parenOptional:!0},{name:"earliest",parenOptional:!0},{name:"first",parenOptional:!0},{name:"last",parenOptional:!0},{name:"latest",parenOptional:!0},{name:"list",parenOptional:!0},{name:"values",parenOptional:!0},{name:"range",parenOptional:!0},{name:"estdc",parenOptional:!0},{name:"estdc_error",parenOptional:!0},{name:"earliest_time",parenOptional:!0},{name:"latest_time",parenOptional:!0},{name:"rate",parenOptional:!0},{name:"eval",parenOptional:!1},{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1},{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"distinct_count",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"mode",parenOptional:!1},{name:"median",parenOptional:!1},{name:"earliest",parenOptional:!1},{name:"first",parenOptional:!1},{name:"last",parenOptional:!1},{name:"latest",parenOptional:!1},{name:"list",parenOptional:!1},{name:"values",parenOptional:!1},{name:"range",parenOptional:!1},{name:"estdc",parenOptional:!1},{name:"estdc_error",parenOptional:!1},{name:"earliest_time",parenOptional:!1},{name:"latest_time",parenOptional:!1},{name:"rate",parenOptional:!1},{name:"per_second",parenOptional:!1},{name:"per_minute",parenOptional:!1},{name:"per_hour",parenOptional:!1},{name:"per_day",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR","as","by","where"],other:["field","num","string","wc-field","int","|"],list:[]},"timewrap-command":{isList:!1,args:[{key:"align",valueType:""},{key:"series",valueType:""},{key:"time_format",valueType:"str"}],functions:[],keywords:[],other:["int"],list:[]},"tojson-command":{isList:!1,args:[{key:"fill_null",valueType:"bool"},{key:"include_internal",valueType:"bool"}],functions:[{name:"auto",parenOptional:!0},{name:"num",parenOptional:!0},{name:"str",parenOptional:!0},{name:"bool",parenOptional:!0},{name:"json",parenOptional:!0},{name:"none",parenOptional:!0}],keywords:[],other:["wc-field","output_field","default_type"],list:[]},"common-command":{isList:!1,args:[{key:"showcount",valueType:"bool"},{key:"showperc",valueType:"bool"},{key:"limit",valueType:"int"},{key:"countfield",valueType:"string"},{key:"percentfield",valueType:"string"},{key:"useother",valueType:"bool"},{key:"otherstr",valueType:"string"}],functions:[],keywords:["by"],other:["int","field-list"],list:[]},"top-command":{isList:!1,args:[{key:"showcount",valueType:"bool"},{key:"showperc",valueType:"bool"},{key:"limit",valueType:"int"},{key:"countfield",valueType:"string"},{key:"percentfield",valueType:"string"},{key:"useother",valueType:"bool"},{key:"otherstr",valueType:"string"}],functions:[],keywords:["by"],other:["int","field-list"],list:[]},"transam-command":{isList:!1,args:[{key:"name",valueType:"transaction-name"},{key:"maxspan",valueType:""},{key:"maxpause",valueType:""},{key:"maxevents",valueType:"int"},{key:"startswith",valueType:"transam-filter-string"},{key:"endswith",valueType:"transam-filter-string"},{key:"connected",valueType:"bool"},{key:"unifyends",valueType:"bool"},{key:"keeporphans",valueType:"bool"},{key:"maxopentxn",valueType:"int"},{key:"maxopenevents",valueType:"int"},{key:"keepevicted",valueType:"bool"},{key:"delim",valueType:"string"},{key:"mvlist",valueType:""},{key:"nullstr",valueType:"string"},{key:"mvraw",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"transaction-command":{isList:!1,args:[{key:"name",valueType:"transaction-name"},{key:"maxspan",valueType:""},{key:"maxpause",valueType:""},{key:"maxevents",valueType:"int"},{key:"startswith",valueType:"transam-filter-string"},{key:"endswith",valueType:"transam-filter-string"},{key:"connected",valueType:"bool"},{key:"unifyends",valueType:"bool"},{key:"keeporphans",valueType:"bool"},{key:"maxopentxn",valueType:"int"},{key:"maxopenevents",valueType:"int"},{key:"keepevicted",valueType:"bool"},{key:"delim",valueType:"string"},{key:"mvlist",valueType:""},{key:"nullstr",valueType:"string"},{key:"mvraw",valueType:"bool"}],functions:[],keywords:[],other:["field-list"],list:[]},"transpose-command":{isList:!1,args:[{key:"column_name",valueType:"string"},{key:"header_field",valueType:"field"},{key:"include_empty",valueType:"bool"}],functions:[],keywords:[],other:["int"],list:[]},"trendline-command":{isList:!1,args:[],functions:[{name:"sma\\d+",parenOptional:!1},{name:"ema\\d+",parenOptional:!1},{name:"wma\\d+",parenOptional:!1}],keywords:["as"],other:["field","field"],list:[]},"tscollect-command":{isList:!1,args:[{key:"namespace",valueType:"string"},{key:"squashcase",valueType:"bool"},{key:"keepresults",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"tstats-command":{isList:!1,args:[{key:"prestats",valueType:"bool"},{key:"local",valueType:"bool"},{key:"append",valueType:"bool"},{key:"summariesonly",valueType:"bool"},{key:"include_reduced_buckets",valueType:"bool"},{key:"allow_old_summaries",valueType:"bool"},{key:"chunk_size",valueType:"int"},{key:"fillnull_value",valueType:"string"},{key:"sid",valueType:"string:tscollect-job-id"},{key:"datamodel",valueType:""},{key:"timeformat",valueType:"string"},{key:"earliest",valueType:"time_modifier"},{key:"_index_earliest",valueType:"time_modifier"},{key:"starttime",valueType:"string"},{key:"startdaysago",valueType:"int"},{key:"startminutesago",valueType:"int"},{key:"starthoursago",valueType:"int"},{key:"startmonthsago",valueType:"int"},{key:"starttimeu",valueType:"num"},{key:"latest",valueType:"time_modifier"},{key:"_index_latest",valueType:"time_modifier"},{key:"endtime",valueType:"string"},{key:"enddaysago",valueType:"int"},{key:"endminutesago",valueType:"int"},{key:"endhoursago",valueType:"int"},{key:"endmonthsago",valueType:"int"},{key:"endtimeu",valueType:"num"},{key:"searchtimespanhours",valueType:"int"},{key:"searchtimespanminutes",valueType:"int"},{key:"searchtimespandays",valueType:"int"},{key:"searchtimespanmonths",valueType:"int"},{key:"daysago",valueType:"int"},{key:"minutesago",valueType:"int"},{key:"hoursago",valueType:"int"},{key:"monthsago",valueType:"int"},{key:"savedsearch",valueType:"string"},{key:"savedsplunk",valueType:"string"},{key:"span",valueType:"string:timespan"}],functions:[{name:"c",parenOptional:!1},{name:"count",parenOptional:!1},{name:"dc",parenOptional:!1},{name:"distinct_count",parenOptional:!1},{name:"mean",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"stdev",parenOptional:!1},{name:"stdevp",parenOptional:!1},{name:"var",parenOptional:!1},{name:"varp",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"sumsq",parenOptional:!1},{name:"min",parenOptional:!1},{name:"max",parenOptional:!1},{name:"mode",parenOptional:!1},{name:"median",parenOptional:!1},{name:"earliest",parenOptional:!1},{name:"first",parenOptional:!1},{name:"last",parenOptional:!1},{name:"latest",parenOptional:!1},{name:"list",parenOptional:!1},{name:"values",parenOptional:!1},{name:"range",parenOptional:!1},{name:"estdc",parenOptional:!1},{name:"estdc_error",parenOptional:!1},{name:"earliest_time",parenOptional:!1},{name:"latest_time",parenOptional:!1},{name:"rate",parenOptional:!1}],keywords:["as","FROM","WHERE","IN","by|GROUPBY"],other:["field","string","string:namespace","boolean-operator-not","term","num","boolean-operator-or","boolean-operator-and","field","field"],list:[]},"typeahead-command":{isList:!1,args:[{key:"prefix",valueType:"string"},{key:"count",valueType:"int"},{key:"max_time",valueType:"int"},{key:"index",valueType:"string"},{key:"starttimeu",valueType:"num"},{key:"endtimeu",valueType:"num"},{key:"collapse",valueType:"bool"}],functions:[],keywords:[],other:[],list:[]},"typelearner-command":{isList:!1,args:[{key:"maxlen",valueType:"int"}],functions:[],keywords:[],other:["field"],list:[]},"typer-command":{isList:!1,args:[{key:"eventtypes",valueType:"string"},{key:"maxlen",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"union-command":{isList:!1,args:[{key:"extendtimerange",valueType:"bool"},{key:"maxtime",valueType:"int"},{key:"maxout",valueType:"int"},{key:"timeout",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"uniq-command":{isList:!1,args:[],functions:[],keywords:[],other:[],list:[]},"untable-command":{isList:!1,args:[],functions:[],keywords:[],other:["field"],list:[]},"walklex-command":{isList:!1,args:[{key:"type",valueType:"walklex-type"},{key:"prefix",valueType:""},{key:"index",valueType:"string"},{key:"splunk_server",valueType:"wc-string"},{key:"splunk_server_group",valueType:"wc-string"}],functions:[],keywords:[],other:[],list:[]},"where-command":{isList:!1,args:[],functions:[{name:"abs",parenOptional:!1},{name:"avg",parenOptional:!1},{name:"case",parenOptional:!1},{name:"ceiling",parenOptional:!1},{name:"ceil",parenOptional:!1},{name:"cidrmatch",parenOptional:!1},{name:"coalesce",parenOptional:!1},{name:"commands",parenOptional:!1},{name:"exact",parenOptional:!1},{name:"exp",parenOptional:!1},{name:"false",parenOptional:!1},{name:"floor",parenOptional:!1},{name:"if",parenOptional:!1},{name:"ifnull",parenOptional:!1},{name:"isbool",parenOptional:!1},{name:"isint",parenOptional:!1},{name:"isnotnull",parenOptional:!1},{name:"isnull",parenOptional:!1},{name:"isnum",parenOptional:!1},{name:"isstr",parenOptional:!1},{name:"len",parenOptional:!1},{name:"like",parenOptional:!1},{name:"ln",parenOptional:!1},{name:"log",parenOptional:!1},{name:"lookup",parenOptional:!1},{name:"lower",parenOptional:!1},{name:"match",parenOptional:!1},{name:"max",parenOptional:!1},{name:"md5",parenOptional:!1},{name:"min",parenOptional:!1},{name:"mvappend",parenOptional:!1},{name:"mvcount",parenOptional:!1},{name:"mvdedup",parenOptional:!1},{name:"mvindex",parenOptional:!1},{name:"mvfilter",parenOptional:!1},{name:"mvfind",parenOptional:!1},{name:"mvjoin",parenOptional:!1},{name:"mvmap",parenOptional:!1},{name:"mvrange",parenOptional:!1},{name:"mvsort",parenOptional:!1},{name:"mvzip",parenOptional:!1},{name:"now",parenOptional:!1},{name:"null",parenOptional:!1},{name:"nullif",parenOptional:!1},{name:"pi",parenOptional:!1},{name:"pow",parenOptional:!1},{name:"random",parenOptional:!1},{name:"relative_time",parenOptional:!1},{name:"replace",parenOptional:!1},{name:"round",parenOptional:!1},{name:"searchmatch",parenOptional:!1},{name:"sha1",parenOptional:!1},{name:"sha256",parenOptional:!1},{name:"sha512",parenOptional:!1},{name:"sigfig",parenOptional:!1},{name:"spath",parenOptional:!1},{name:"split",parenOptional:!1},{name:"sqrt",parenOptional:!1},{name:"strftime",parenOptional:!1},{name:"strptime",parenOptional:!1},{name:"substr",parenOptional:!1},{name:"sum",parenOptional:!1},{name:"time",parenOptional:!1},{name:"tostring",parenOptional:!1},{name:"trim",parenOptional:!1},{name:"ltrim",parenOptional:!1},{name:"rtrim",parenOptional:!1},{name:"true",parenOptional:!1},{name:"typeof",parenOptional:!1},{name:"upper",parenOptional:!1},{name:"urldecode",parenOptional:!1},{name:"validate",parenOptional:!1},{name:"tonumber",parenOptional:!1},{name:"acos",parenOptional:!1},{name:"acosh",parenOptional:!1},{name:"asin",parenOptional:!1},{name:"asinh",parenOptional:!1},{name:"atan",parenOptional:!1},{name:"atan2",parenOptional:!1},{name:"atanh",parenOptional:!1},{name:"cos",parenOptional:!1},{name:"cosh",parenOptional:!1},{name:"hypot",parenOptional:!1},{name:"sin",parenOptional:!1},{name:"sinh",parenOptional:!1},{name:"tan",parenOptional:!1},{name:"tanh",parenOptional:!1},{name:"json_array_to_mv",parenOptional:!1},{name:"mv_to_json_array",parenOptional:!1},{name:"json_append",parenOptional:!1},{name:"json_extend",parenOptional:!1},{name:"json_extract_exact",parenOptional:!1},{name:"json_set_exact",parenOptional:!1}],keywords:["LIKE","AND|OR|XOR"],other:["field","num","string"],list:[]},"x11-command":{isList:!1,args:[],functions:[{name:"mult",parenOptional:!1},{name:"add",parenOptional:!1}],keywords:["as"],other:["field","field"],list:[]},"xmlkv-command":{isList:!1,args:[{key:"maxinputs",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"xmlunescape-command":{isList:!1,args:[{key:"maxinputs",valueType:"int"}],functions:[],keywords:[],other:[],list:[]},"xpath-command":{isList:!1,args:[{key:"field",valueType:"field"},{key:"outfield",valueType:"field"},{key:"default",valueType:"string"}],functions:[],keywords:[],other:["string:xpath"],list:[]},"maketable-command":{isList:!1,args:[{key:"grouped",valueType:"bool"},{key:"sep",valueType:"string"},{key:"format",valueType:"string"}],functions:[],keywords:[],other:["field"],list:[]},"xyseries-command":{isList:!1,args:[{key:"grouped",valueType:"bool"},{key:"sep",valueType:"string"},{key:"format",valueType:"string"}],functions:[],keywords:[],other:["field"],list:[]}}},151:function(G,Z,ne){"use strict";var ie;ne.d(Z,"a",(function(){return ie})),function(G){G.is=function is(G){return G&&"object"==typeof G&&"function"==typeof G[Symbol.iterator]};const Z=Object.freeze([]);G.empty=function empty(){return Z},G.single=function*single(G){yield G},G.from=function from(G){return G||Z},G.isEmpty=function isEmpty(G){return!G||!0===G[Symbol.iterator]().next().done},G.first=function first(G){return G[Symbol.iterator]().next().value},G.some=function some(G,Z){for(const ne of G)if(Z(ne))return!0;return!1},G.find=function find(G,Z){for(const ne of G)if(Z(ne))return ne},G.filter=function*filter(G,Z){for(const ne of G)Z(ne)&&(yield ne)},G.map=function*map(G,Z){let ne=0;for(const ie of G)yield Z(ie,ne++)},G.concat=function*concat(...G){for(const Z of G)for(const G of Z)yield G},G.concatNested=function*concatNested(G){for(const Z of G)for(const G of Z)yield G},G.reduce=function reduce(G,Z,ne){let ie=ne;for(const ne of G)ie=Z(ie,ne);return ie},G.slice=function*slice(G,Z,ne=G.length){for(Z<0&&(Z+=G.length),ne<0?ne+=G.length:ne>G.length&&(ne=G.length);Zse}]},G.equals=function equals(G,Z,ne=((G,Z)=>G===Z)){const ie=G[Symbol.iterator](),se=Z[Symbol.iterator]();for(;;){const G=ie.next(),Z=se.next();if(G.done!==Z.done)return!1;if(G.done)return!0;if(!ne(G.value,Z.value))return!1}}}(ie||(ie={}))},1528:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(1096));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},1534:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSortedTabbableElements=getSortedTabbableElements,Z.isTabKey=isTabKey,Z.handleTab=function handleTab(G,Z){if(!G.contains(document.activeElement))return null;if(!isTabKey(Z))return null;var ne=getSortedTabbableElements(G);if(0===ne.length)return document.activeElement===G?(Z.preventDefault(),G):null;var ie=Z&&Z.target||G.querySelector(":focus"),se=ne.indexOf(ie);-1===se&&(se=Z.shiftKey?0:ne.length-1);Z.shiftKey?ne.unshift(ne.pop()):ne.push(ne.shift());return Z.preventDefault(),ne[se].focus(),ne[se]},Z.takeFocus=function takeFocus(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(867),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},1535:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(1536)}})},1536:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=192)}({1:function(G,Z){G.exports=ne(2)},192:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Me})),ne.d(Z,"AnimationToggleContext",(function(){return me})),ne.d(Z,"AnimationToggleProvider",(function(){return xe})),ne.d(Z,"useAnimationToggle",(function(){return ge}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=se.a.createContext(!0);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},1543:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=174)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},12:function(G,Z){G.exports=ne(738)},145:function(G,Z){G.exports=ne(2513)},174:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return on})),ne.d(Z,"Item",(function(){return Vt})),ne.d(Z,"Heading",(function(){return ht})),ne.d(Z,"Divider",(function(){return Je})),ne.d(Z,"MenuContext",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(5),ge=ne.n(me),Ce=ne(21),Se=ne(31),Me=ne(7),ke=ne(48),xe=ne.n(ke),De=ne(3),Ie=ne.n(De),Re=ne(0),ze=Ie.a.div.withConfig({displayName:"DividerStyles__Styled",componentId:"l3zfh3-0"})(["border-top:1px solid ",";",""],Object(Re.pick)({enterprise:Re.variables.borderColor,prisma:Re.variables.neutral200}),Object(Re.pick)({prisma:{comfortable:Object(De.css)(["margin:8px 0;"]),compact:Object(De.css)(["margin:6px 0;"])}})),$e=Object(ie.createContext)({role:"menu"});function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var dt={children:fe.a.node,title:fe.a.bool,outerStyle:fe.a.object};function Heading(G){var Z=G.children,ne=G.title,ce=G.outerStyle,fe=_objectWithoutProperties(G,["children","title","outerStyle"]),me=Object(ie.useContext)($e).role,ge="prisma"===st()().family?se.a.createElement(ut,Heading_extends({as:ne?"h4":"h5",style:ce,"data-test":"heading"},fe),Z):se.a.createElement(ot.a,Heading_extends({style:_objectSpread(_objectSpread({},ce),{},{margin:0}),level:ne?4:"ss","data-test":"heading"},fe),Z);return se.a.createElement(ct,{"aria-hidden":"listbox"===me},ge)}Heading.propTypes=dt,Heading.filterConsecutive=!0,Heading.filterLast=!0,Heading.as="Heading";var ht=Heading,ft=ne(23),_t=ne.n(ft),yt=ne(145),vt=ne.n(yt),wt=ne(78),Ct=ne.n(wt),St=ne(97),Mt=ne.n(St),kt=ne(38),xt=ne.n(kt),Lt=ne(25),Tt=ne(96),At=ne.n(Tt),Dt=ne(65),Et=ne.n(Dt),jt=ne(4),It=Object(jt._)("Open externally"),Nt=Object(De.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),Rt=Ie()(Et.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-1turs2s-0"})([""," margin:0 0 0 3px;"],Nt),zt=Ie()(At.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-1turs2s-1"})([""," margin:0 0 0 4px;"],Nt);var qt=function External(){var G=Object(Re.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(Rt,{screenReaderText:It}):se.a.createElement(zt,{"aria-label":It,height:ne,width:ne},se.a.createElement("title",null,It))},Wt=ne(10),Bt=ne(91);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Item_extends(){return(Item_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Qt={children:fe.a.node,controlledExternally:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),retainFocus:fe.a.bool,stopScrollPropagation:fe.a.bool};function Menu(G){var Z=G.children,ne=G.controlledExternally,ce=G.elementRef,fe=G.retainFocus,me=G.stopScrollPropagation,ke=Menu_objectWithoutProperties(G,["children","controlledExternally","elementRef","retainFocus","stopScrollPropagation"]),De=Object(ie.useContext)($e).role,Ie=void 0===De?"menu":De,Re=Object(ie.useContext)(Ce.PopoverContext).retainFocus,ze=xe()(),Je=!0;null!=fe?Je=fe:null!=Re&&(Je=Re);var it,ot=se.a.useRef(0),at=[],st=0,ct=!1,ut=!1,dt=!1,ht=Object(ie.useCallback)((function(G,Z){var ne=Z.itemKey;null!=ne&&(ot.current=ne)}),[]),ft=ie.Children.toArray(Z).filter(ie.isValidElement).reduce((function(G,Z,ie,ce){if("Divider"===Z.type.as&&0===G.length)return G;if(("Heading"===Z.type.as||"Divider"===Z.type.as)&&!Z.props.title&&Z.type.filterConsecutive&&ce.length>ie+1){var fe=ce[ie+1];if("Heading"===fe.type.as||"Divider"===fe.type.as)return G}if(("Divider"===Z.type.as||"Heading"===Z.type.as)&&ie===ce.length-1)return G;if("Divider"!==Z.type.as&&"Heading"!==Z.type.as&&"string"!=typeof Z.type){var me=se.a.createRef();at.push(me),null!=it||"disabled"in Z.props&&Z.props.disabled||(it=st),ot.current===st&&"disabled"in Z.props&&Z.props.disabled&&(ct=!0),"selected"in Z.props&&Z.props.selected&&(ut=!0,"disabled"in Z.props&&!Z.props.disabled&&(dt=!0));var ge=ne||ot.current!==st?-1:void 0;return G.push(se.a.cloneElement(Z,{itemKey:st,onFocus:ht,preventFocus:ne,ref:function ref(G){Object(Wt.a)(Z.ref,G),Object(Wt.a)(me,G)},tabIndex:ge})),st+=1,G}return G.push(Z),G}),[]);it===ot.current||ut&&!dt||!ct||null==it||(ot.current=it,ze());var _t={"data-test":"menu",onKeyDown:function handleKeyDown(G){var Z,ne,ie,se=Object(Me.keycode)(G.nativeEvent),ce=ot.current;("down"===se||Je&&Object(Se.isTabKey)(G)?Z=Object(Jt.a)(at,ce,ce+1):"up"===se||Je&&Object(Se.isTabKey)(G)&&G.shiftKey?Z=Object(Jt.b)(at,ce,ce-1):"home"===se?Z=Object(Jt.a)(at,ce,0):"end"===se&&(Z=Object(Jt.b)(at,ce,at.length-1)),null!=Z)&&(null===(ne=Z.current)||void 0===ne||null===(ie=ne.focus)||void 0===ie||ie.call(ne),G.preventDefault())},role:Ie,tabIndex:null!=it||ne?void 0:0};return me?se.a.createElement(Zt,Menu_extends({},_t,{elementRef:ce,stopScrollPropagation:!0},ge()(ke,"tagName")),ft):se.a.createElement(Gt,Menu_extends({},_t,{ref:ce},ke),ft)}Menu.propTypes=Qt,Menu.defaultProps={stopScrollPropagation:!1},Menu.Item=Vt,Menu.Divider=Je,Menu.Heading=ht;var on=Menu},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(866)},23:function(G,Z){G.exports=ne(78)},25:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(1534)},38:function(G,Z){G.exports=ne(2514)},39:function(G,Z){G.exports=ne(2516)},4:function(G,Z){G.exports=ne(2519)},48:function(G,Z){G.exports=ne(2520)},5:function(G,Z){G.exports=ne(41)},60:function(G,Z,ne){"use strict";function getNextListItem(G,Z,ne){for(var ie=0;ie0;ie-=1){var se,ce=(ie+ne)%G.length;if(!0!==(null===(se=G[ce].current)||void 0===se?void 0:se.props.disabled))return G[ce]}return G[Z]}ne.d(Z,"a",(function(){return getNextListItem})),ne.d(Z,"b",(function(){return getPrevListItem}))},65:function(G,Z){G.exports=ne(2521)},7:function(G,Z){G.exports=ne(867)},70:function(G,Z){G.exports=ne(1533)},78:function(G,Z){G.exports=ne(2522)},80:function(G,Z){G.exports=ne(2523)},89:function(G,Z){G.exports=ne(2524)},91:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie=function scrollIntoViewIfNeeded(G){if(G){var Z=G.offsetParent;Z&&(Z.scrollTop+Z.clientHeightG.offsetTop&&(Z.scrollTop=G.offsetTop))}}},96:function(G,Z){G.exports=ne(2525)},97:function(G,Z){G.exports=ne(1544)}})},1544:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=47)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(1111)},4:function(G,Z){G.exports=ne(1112)},47:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Check}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zconsole.error("Conflict in default settings: "+G))}return G}},1618:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.findErrorMessage=findErrorMessage,Z.handleResponse=function handleResponse(G){return function(Z){return(0,se.default)([].concat(G),Z.status)?204===Z.status?null:Z.json():Promise.reject(Z)}},Z.handleError=function handleError(G){return function(Z){var ne=null;try{ne=Z.json()}catch(Z){return Promise.reject(new Error(G))}return ne.then((function(Z){var ne=findErrorMessage(Z);return ne?Promise.reject(new Error(ne.text)):Promise.reject(new Error(G))}))}},Z.defaultFetchInit=void 0;var ie=_interopRequireDefault(ne(70)),se=_interopRequireDefault(ne(65));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce={method:"GET",credentials:"include",headers:{"X-Splunk-Form-Key":ne(695).CSRFToken,"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"}};function findErrorMessage(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.messages;if(Array.isArray(Z))return(0,ie.default)(Z,(function(G){var Z=G.type;return"ERROR"===Z||"FATAL"===Z||"risky_command"===Z}))}Z.defaultFetchInit=ce},1619:function(G,Z,ne){const{MAX_SAFE_COMPONENT_LENGTH:ie,MAX_SAFE_BUILD_LENGTH:se,MAX_LENGTH:ce}=ne(2002),fe=ne(2003),me=(Z=G.exports={}).re=[],ge=Z.safeRe=[],Ce=Z.src=[],Se=Z.t={};let Me=0;const ke=[["\\s",1],["\\d",ce],["[a-zA-Z0-9-]",se]],createToken=(G,Z,ne)=>{const ie=(G=>{for(const[Z,ne]of ke)G=G.split(Z+"*").join(`${Z}{0,${ne}}`).split(Z+"+").join(`${Z}{1,${ne}}`);return G})(Z),se=Me++;fe(G,se,Z),Se[G]=se,Ce[se]=Z,me[se]=new RegExp(Z,ne?"g":void 0),ge[se]=new RegExp(ie,ne?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${Ce[Se.NUMERICIDENTIFIER]})\\.(${Ce[Se.NUMERICIDENTIFIER]})\\.(${Ce[Se.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${Ce[Se.NUMERICIDENTIFIERLOOSE]})\\.(${Ce[Se.NUMERICIDENTIFIERLOOSE]})\\.(${Ce[Se.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${Ce[Se.NUMERICIDENTIFIER]}|${Ce[Se.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${Ce[Se.NUMERICIDENTIFIERLOOSE]}|${Ce[Se.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${Ce[Se.PRERELEASEIDENTIFIER]}(?:\\.${Ce[Se.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${Ce[Se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Ce[Se.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),createToken("BUILD",`(?:\\+(${Ce[Se.BUILDIDENTIFIER]}(?:\\.${Ce[Se.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${Ce[Se.MAINVERSION]}${Ce[Se.PRERELEASE]}?${Ce[Se.BUILD]}?`),createToken("FULL",`^${Ce[Se.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${Ce[Se.MAINVERSIONLOOSE]}${Ce[Se.PRERELEASELOOSE]}?${Ce[Se.BUILD]}?`),createToken("LOOSE",`^${Ce[Se.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",Ce[Se.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),createToken("XRANGEIDENTIFIER",Ce[Se.NUMERICIDENTIFIER]+"|x|X|\\*"),createToken("XRANGEPLAIN",`[v=\\s]*(${Ce[Se.XRANGEIDENTIFIER]})(?:\\.(${Ce[Se.XRANGEIDENTIFIER]})(?:\\.(${Ce[Se.XRANGEIDENTIFIER]})(?:${Ce[Se.PRERELEASE]})?${Ce[Se.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${Ce[Se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ce[Se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Ce[Se.XRANGEIDENTIFIERLOOSE]})(?:${Ce[Se.PRERELEASELOOSE]})?${Ce[Se.BUILD]}?)?)?`),createToken("XRANGE",`^${Ce[Se.GTLT]}\\s*${Ce[Se.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${Ce[Se.GTLT]}\\s*${Ce[Se.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ie}})(?:\\.(\\d{1,${ie}}))?(?:\\.(\\d{1,${ie}}))?`),createToken("COERCE",Ce[Se.COERCEPLAIN]+"(?:$|[^\\d])"),createToken("COERCEFULL",Ce[Se.COERCEPLAIN]+`(?:${Ce[Se.PRERELEASE]})?`+`(?:${Ce[Se.BUILD]})?(?:$|[^\\d])`),createToken("COERCERTL",Ce[Se.COERCE],!0),createToken("COERCERTLFULL",Ce[Se.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${Ce[Se.LONETILDE]}\\s+`,!0),Z.tildeTrimReplace="$1~",createToken("TILDE",`^${Ce[Se.LONETILDE]}${Ce[Se.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${Ce[Se.LONETILDE]}${Ce[Se.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${Ce[Se.LONECARET]}\\s+`,!0),Z.caretTrimReplace="$1^",createToken("CARET",`^${Ce[Se.LONECARET]}${Ce[Se.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${Ce[Se.LONECARET]}${Ce[Se.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${Ce[Se.GTLT]}\\s*(${Ce[Se.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${Ce[Se.GTLT]}\\s*(${Ce[Se.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${Ce[Se.GTLT]}\\s*(${Ce[Se.LOOSEPLAIN]}|${Ce[Se.XRANGEPLAIN]})`,!0),Z.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${Ce[Se.XRANGEPLAIN]})\\s+-\\s+(${Ce[Se.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${Ce[Se.XRANGEPLAINLOOSE]})\\s+-\\s+(${Ce[Se.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},1620:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=240)}({1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(2863)},240:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"legacyRefMode",(function(){return ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(15),Se=ne.n(Ce),Me=(ne(90),ne(71)),ke=ne.n(Me),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(8),$e=ne(7),Je=ne(21),it=ne.n(Je),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;ne=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},1622:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.StyledFromControl=Z.StyledApplyContainer=Z.FlexControlGroup=Z.StyledCGWrapper=Z.StyledError=void 0;var se,ce,fe,me,ge,Ce=ie(ne(2873)),Se=ie(ne(3)),Me=ie(ne(1157)),ke=ne(240);const xe=Se.default.div(se||(se=(0,Ce.default)(["\n padding: 0 ",";\n"])),ke.variables.spacingLarge);Z.StyledError=xe;const De=Se.default.div(ce||(ce=(0,Ce.default)(["\n display: flex;\n padding: "," "," 0;\n\n "," + & {\n padding-top: 0;\n }\n"])),ke.variables.spacingSmall,ke.variables.spacingLarge,xe);Z.StyledCGWrapper=De;const Ie=(0,Se.default)(Me.default)(fe||(fe=(0,Ce.default)(["\n & {\n flex: 1;\n }\n\n &:first-child {\n margin-top: 0;\n padding-right: ",";\n }\n"])),ke.variables.spacingLarge);Z.FlexControlGroup=Ie;const Re=Se.default.div(me||(me=(0,Ce.default)(["\n text-align: right;\n padding: 0 "," ",";\n\n & > button {\n min-width: 100px;\n }\n"])),ke.variables.spacingLarge,ke.variables.spacingLarge);Z.StyledApplyContainer=Re;const ze=Se.default.div(ge||(ge=(0,Ce.default)(["\n display: flex;\n margin-bottom: ",";\n"])),ke.variables.spacingSmall);Z.StyledFromControl=ze},1623:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=19)}({0:function(G,Z){G.exports=ne(0)},10:function(G,Z){G.exports=ne(105)},19:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(10),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(6),ke=ne.n(Me);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},1624:function(G,Z,ne){"use strict";(function(ie){var se=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ce,fe=se(ne(324)),me=se(ne(17)),ge=se(ne(18)),Ce=se(ne(30)),Se=se(ne(21)),Me=se(ne(22)),ke=se(ne(20)),xe=se(ne(11)),De=se(ne(9)),Ie=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),Re=se(ne(2)),ze=se(ne(97)),$e=se(ne(112)),Je=se(ne(63)),it=se(ne(88)),ot=se(ne(3)),at=ne(5),st=ne(16),ct=se(ne(56)),ut=se(ne(33)),dt=se(ne(82)),ht=se(ne(132)),ft=ne(784),_t=se(ne(7693)),yt=ne(100),vt=ne(93),wt=ne(129);function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function _createSuper(G){var Z=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(G){return!1}}();return function _createSuperInternal(){var ne,ie=(0,ke.default)(G);if(Z){var se=(0,ke.default)(this).constructor;ne=Reflect.construct(ie,arguments,se)}else ne=ie.apply(this,arguments);return(0,Me.default)(this,ne)}}var Ct=(0,ot.default)(dt.default)(ce||(ce=(0,De.default)(["\n\twidth: 100%;\n"]))),St=function(G){(0,Se.default)(DrilldownSelector,G);var Z,ne,se=_createSuper(DrilldownSelector);function DrilldownSelector(G){var Z;return(0,me.default)(this,DrilldownSelector),Z=se.call(this,G),(0,xe.default)((0,Ce.default)(Z),"onChangeOption",function(){var G=(0,fe.default)((function*(G,ne){var{value:ie=""}=ne,{options:se,onChange:ce,type:fe}=Z.props;ce({url:yield Z.getObjectAccessURL(ie),newTab:se.newTab,type:fe,key:ie}),Z.setState({value:ie,preSelectedObject:[]})}));return function(Z,ne){return G.apply(this,arguments)}}()),(0,xe.default)((0,Ce.default)(Z),"onChangeCheckbox",()=>{var{options:G,onChange:ne}=Z.props;ne({url:G.url,newTab:!G.newTab,type:G.type,key:G.key})}),(0,xe.default)((0,Ce.default)(Z),"handlePreSelectedObjectFetch",()=>{var{options:G,type:ne,objectFetchURL:se,formattedData:ce,label:fe}=Z.props;if(G.type===ne&&G.key){var me=se(G.key);me&&(Z.setState({preSelectedIsLoading:!0}),ie(me).then((0,ft.handleResponse)(200)).then(G=>{var ne=ce(G)||[],ie=(0,it.default)(ne)?ne:[ne];Z.setState({preSelectedIsLoading:!1,preSelectedObject:ie})}).catch(ne=>{var ie=fe.substring(0,fe.length-1),se=(0,st.sprintf)((0,at.gettext)("Could not preselect the saved %(formattedLabel)s with key %(id)s. Object may not exist or may have been deleted."),{formattedLabel:ie.toLowerCase(),id:G.key});(0,wt.handleError)(ne,se).then(G=>{Z.setState({preSelectedIsLoading:!1,preSelectedObject:[],objectFetchErrorMsg:G})})}))}}),(0,xe.default)((0,Ce.default)(Z),"handleObjectListFetch",G=>{var{objectListFetchURL:ne,objectListCountFetchURL:se,formattedData:ce,label:fe}=Z.props,me=G||"",ge=ne(me);if(ge){var Ce=[];Z.setState({isLoading:!0});var Se=ie(ge).then((0,ft.handleResponse)(200));if(Ce.push(Se),se){var Me=ie(se(me)).then((0,ft.handleResponse)(200)).then(G=>G.count);Ce.push(Me)}Promise.all(Ce).then(G=>{var ne,ie,[se,fe]=G,me=ce(se)||[],ge=null!==(ne=null==se||null===(ie=se.paging)||void 0===ie?void 0:ie.total)&&void 0!==ne?ne:fe;Z.setState({isLoading:!1,objects:me,totalCount:ge})}).catch(G=>{var ne=(0,st.sprintf)((0,at.gettext)("Failed to load the %(formattedLabel)s."),{formattedLabel:fe.toLowerCase()});(0,wt.handleError)(G,ne).then(G=>{Z.setState({isLoading:!1,objectListFetchErrorMsg:G})})})}}),(0,xe.default)((0,Ce.default)(Z),"onFilterChange",(0,ze.default)((G,ne)=>{var{keyword:ie}=ne;Z.handleObjectListFetch(ie)},yt.DEFAULT_DEBOUNCE_DELAY)),(0,xe.default)((0,Ce.default)(Z),"getObjectConfig",G=>{var{objects:ne}=Z.state,ie=ne.filter(Z=>Z._key===G);return ie.length?ie[0]:null}),(0,xe.default)((0,Ce.default)(Z),"createOption",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Ie.default.createElement(dt.default.Option,{"data-test-itsi":"drilldown-option-select-option","data-test-value":G.identifying_name,label:G.title,value:G._key,key:Z?"selected":G._key,hidden:!!Z,truncate:!0})})),(0,xe.default)((0,Ce.default)(Z),"generateOptions",()=>{var G,{value:ne,isLoading:ie,preSelectedObject:se,objects:ce}=Z.state;if(se&&se.length){var fe=se[0];if(fe._key&&fe.title){var me={_key:fe._key,title:fe.title};G=Z.createOption(me,!0)}}else if(ne){var ge=Z.getObjectConfig(ne);ge&&(G=Z.createOption(ge,!0))}if(ie)return G;var Ce=ce.map(G=>Z.createOption(G));return G&&Ce.push(G),Ce}),(0,xe.default)((0,Ce.default)(Z),"getCurrentValue",()=>{var{value:G,preSelectedObject:ne}=Z.state,ie=G;return ne&&ne.length&&ne[0]._key&&(ie=ne[0]._key),ie}),Z.state={value:"",preSelectedIsLoading:!1,isLoading:!1,objectFetchErrorMsg:"",objectListFetchErrorMsg:"",preSelectedObject:[],objects:[],totalCount:0},Z}return(0,ge.default)(DrilldownSelector,[{key:"componentDidMount",value:function componentDidMount(){this.handlePreSelectedObjectFetch(),this.handleObjectListFetch()}},{key:"getTimerangeConfig",value:(ne=(0,fe.default)((function*(){var G,Z={},{dashboardApiRef:ne}=this.props;if(null!=ne&&null!==(G=ne.dashboard)&&void 0!==G&&G.props){var{selectedItems:ie}=ne.dashboard.props;if(ie&&ie.length){var se=yield ne.takeSnapshot();if(se){var ce=ie[0].id,fe=(0,$e.default)(se,["snapshotDefinition","defaults"],{}),me=(0,$e.default)(se,["snapshotDefinition","dataSources"],{}),ge=_t.default.flattenDataSources(me,fe),Ce=(0,$e.default)(se,["snapshotDefinition","visualizations",ce,"dataSources","primary"]),Se=(0,$e.default)(fe,["dataSources","global","options","queryParameters"]);if(Ce){var Me=(0,$e.default)(ge,[Ce,"options","queryParameters"]);Me&&((0,Je.default)(Me,"earliest")&&(Z.earliest=Me.earliest),(0,Je.default)(Me,"latest")&&(Z.latest=Me.latest))}else Se&&((0,Je.default)(Se,"earliest")&&(Z.earliest=Se.earliest),(0,Je.default)(Se,"latest")&&(Z.latest=Se.latest))}}}return Z})),function getTimerangeConfig(){return ne.apply(this,arguments)})},{key:"getObjectAccessURL",value:(Z=(0,fe.default)((function*(G){var{objectAccessURL:Z}=this.props;return Z(this.getObjectConfig(G),yield this.getTimerangeConfig())})),function getObjectAccessURL(G){return Z.apply(this,arguments)})},{key:"render",value:function render(){var{label:G,helpText:Z,options:ne,error:ie}=this.props,{isLoading:se,preSelectedIsLoading:ce,objectFetchErrorMsg:fe,objectListFetchErrorMsg:me,totalCount:ge}=this.state,Ce=null!==ie,Se=this.getCurrentValue(),Me=this.generateOptions(),ke=ce?(0,at.gettext)("Loading..."):(0,at.gettext)("Select..."),xe=(0,st.sprintf)((0,at.gettext)("No %(formattedLabel)s found."),{formattedLabel:G.toLowerCase().replace("kpi ","KPI ")});return Ie.default.createElement("div",(0,vt.createITSITestHook)(DrilldownSelector.name),me?Ie.default.createElement(ut.default,{"data-test-itsi":"object-list-fetch-error-message",type:"error"},me):Ie.default.createElement(ct.default,{controlsLayout:"none","data-test-itsi":"gt-drilldown-selector",labelPosition:"top",label:G,help:Z,error:Ce},Ie.default.createElement(Ct,{inline:!0,"data-test-itsi":"drilldown-option-select",disabled:ce,filter:"controlled",value:Se,animateLoading:!0,error:Ce,placeholder:ke,loadingMessage:(0,at.gettext)("Loading options..."),footerMessage:!se&&(0,st.sprintf)((0,at.gettext)("Showing %(numberOfOptions)d of %(totalNumberOfOptions)d options"),{numberOfOptions:Me.length,totalNumberOfOptions:ge}),noOptionsMessage:xe,onChange:this.onChangeOption,onFilterChange:this.onFilterChange,isLoadingOptions:se},Me),fe&&Ie.default.createElement(ut.default,{"data-test-itsi":"drilldown-selector-error-message",type:"error"},fe)),Ie.default.createElement(ht.default,{"data-test-itsi":"drilldown-open-in-new-tab-switch",onClick:this.onChangeCheckbox,selected:!!ne.newTab,appearance:"checkbox"},(0,at.gettext)("Open in new tab")))}}]),DrilldownSelector}(Ie.Component);St.propTypes={type:Re.default.string.isRequired,label:Re.default.string,helpText:Re.default.string,dashboardApiRef:Re.default.object,formattedData:Re.default.func,objectFetchURL:Re.default.func.isRequired,objectListFetchURL:Re.default.func.isRequired,objectListCountFetchURL:Re.default.func,objectAccessURL:Re.default.func.isRequired,options:Re.default.shape({url:Re.default.string,newTab:Re.default.bool,type:Re.default.string,key:Re.default.string}),onChange:Re.default.func.isRequired,error:Re.default.any},St.defaultProps={label:"",helpText:"",dashboardApiRef:{},formattedData:G=>G,options:{url:"",newTab:!0,objType:"",type:"",key:""},error:null,objectListCountFetchURL:null};var Mt=St;Z.default=Mt,G.exports=Z.default}).call(this,ne(189))},1625:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__objRest=(G,Z)=>{var ne={};for(var ie in G)ke.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&Se)for(var ie of Se(G))Z.indexOf(ie)<0&&xe.call(G,ie)&&(ne[ie]=G[ie]);return ne},__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),__async=(G,Z,ne)=>new Promise((ie,se)=>{var fulfilled=G=>{try{step(ne.next(G))}catch(G){se(G)}},rejected=G=>{try{step(ne.throw(G))}catch(G){se(G)}},step=G=>G.done?ie(G.value):Promise.resolve(G.value).then(fulfilled,rejected);step((ne=ne.apply(G,Z)).next())}),De={};__export(De,{ActionsGroup:()=>ActionsGroup_default,Charts:()=>Charts_default,CollapsibleToolbar:()=>Wt,Config:()=>Config_default,ContentExport:()=>ContentExport_default,ControlGroup:()=>ControlGroup_default,Data:()=>Data_default,EditingGroup:()=>EditingGroup_default,EditorGroup:()=>EditorGroup_default,EditorsControlGroup:()=>EditorsControlGroup_default,EmptyVisualization:()=>EmptyVisualization_default,ExportDashboardButton:()=>ExportDashboardButton_default,Fullscreen:()=>Fullscreen_default,GridLineSwitch:()=>GridLineSwitch_default,HelpButton:()=>HelpButton_default,HistoryGroup:()=>HistoryGroup_default,IconButton:()=>IconButton_default,IconGallery:()=>IconGallery_default,Image:()=>Image_default,ImageGallery:()=>ImageGallery_default2,Inputs:()=>Inputs_default,Item:()=>Bt,ItemGroup:()=>ItemGroup_default,Markdown:()=>Markdown_default,ModeSwitch:()=>ModeSwitch_default,PopoverItemButton:()=>PopoverItemButton_default,Redo:()=>Redo_default,Shapes:()=>Shapes_default,SidebarControlGroup:()=>SidebarControlGroup_default,Source:()=>Source_default,Toolbar:()=>mn,Undo:()=>Undo_default,VisualizationGroup:()=>VisualizationGroup_default,Zoom:()=>Zoom_default,default:()=>mn}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(0));__reExport(Ie,ne(0));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(3));__reExport($e,ne(3));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(4164));__reExport(ot,ne(4164));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(4178));__reExport(ct,ne(4178));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(443));__reExport(ht,ne(443));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(2894));__reExport(yt,ne(2894));var wt="default"in vt?vt.default:vt,Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(4179));__reExport(Ct,ne(4179));var Mt="default"in St?St.default:St,kt={};__export(kt,{default:()=>Lt});var xt=__toESM(ne(390));__reExport(kt,ne(390));var Lt="default"in xt?xt.default:xt,Tt={};__export(Tt,{default:()=>Dt});var At=__toESM(ne(391));__reExport(Tt,ne(391));var Dt="default"in At?At.default:At,Et=it.div` display: flex; align-items: center; position: absolute; right: 0; z-index: 6; height: ${48}px; background-color: ${Tt.customThemeVariables.toolbarBackgroundColor}; color: ${ht.variables.contentColorDefault}; box-shadow: ${ht.variables.overlayShadow}; border-radius: 0 0 0 20px; `,jt=it(dt)` border-right: ${({open:G})=>G?"solid":"none"}; border-width: 0 1px 0 0; border-color: ${ht.variables.interactiveColorBorder}; `,It=it.div` display: flex; padding: 2px 4px 2px 8px; `,Nt=$e.css` transition-duration: 0.2s; transition-timing-function: ease-in-out; `,Rt=it(st)` // To get specific enough to override the default Button styling && { // We shrink the button a bit when the toolbar is expanded since it // switches to a circle button and needs a bit more space to breath height: ${({expanded:G})=>G?"44px":"48px"}; width: ${({expanded:G})=>G?"44px":"48px"}; margin: ${({expanded:G})=>G?"0 4px 0 4px":"0"}; padding: 0; border: none; box-shadow: none; background-color: ${Tt.customThemeVariables.toolbarBackgroundColor}; border-radius: ${G=>G.expanded?"40px":"0 0 0 20px"}; transition-property: border-radius, height, width, margin-right; ${Nt} } `,zt=it(wt)` transform: ${G=>G.expanded?"rotate(0)":"rotate(180deg)"}; transition-property: transform; ${Nt} `,qt=Object.freeze({}),CollapsibleToolbar=({preset:G=qt,dashboardApi:Z,initialExpanded:ne=!0,mode:ie="view",toolbarItems:se=[]})=>{const[ce,fe]=(0,Ie.useState)(ne),me=(0,Ie.useCallback)(()=>fe(G=>!G),[]),ge=(0,kt.useSelector)(kt.selectLayoutType),Ce=(0,Ie.useMemo)(()=>se.map(ne=>(0,Ie.cloneElement)(ne,{mode:ie,preset:G,layoutType:ge,dashboardApi:Z,borders:!1})),[se,ie,G,Z,ge]),Se=(0,Ie.useMemo)(()=>ze.createElement(zt,{expanded:ce,screenReaderText:ce?(0,Ct._)("Expanded"):(0,Ct._)("Collapsed")}),[ce]);return ze.createElement(Et,{"data-test":"dashboard-toolbar"},ze.createElement(jt,{animation:"slideFromRight",open:ce},ze.createElement(It,{"data-test":"toolbar-items"},Ce)),ze.createElement(Rt,{"data-test":"expand-button",expanded:ce,onClick:me,icon:Se,"data-clickable":!0}))};CollapsibleToolbar.displayName="CollapsibleToolbar";var Wt=CollapsibleToolbar,Bt=it.div` padding: 0px 2px; `,Ft={borderRadius:"4px"},IconButton_default=G=>{var Z=G,{icon:ne,disabled:ie=!1,onClick:se,label:ce,testLabel:fe,selected:me=!1}=Z,ge=__objRest(Z,["icon","disabled","onClick","label","testLabel","selected"]);return ze.createElement(Bt,__spreadValues({},ge),ze.createElement(st,{"data-selected":me,selected:me,onClick:se,disabled:ie,appearance:"pill",icon:ne,label:ce,"data-test":fe,"data-clickable":!0,style:Ft}))},Ht=it.div.attrs({"data-test":"toolbar-item-group"})` border-style: solid; border-color: ${ht.variables.interactiveColorBorder}; // Only show the right border to prevent overlapping border-width: ${G=>G.borders?"0 1px 0 0":0}; display: flex; flex-direction: row; padding: 0px 10px; `,ItemGroup_default=G=>{var Z=G,{children:ne,borders:ie=!0}=Z,se=__objRest(Z,["children","borders"]);const ce=ze.Children.map(ne,G=>G&&ze.cloneElement(G,se));return ze.createElement(Ht,{borders:ie},ce)},$t=it.div` text-align: center; vertical-align: middle; text-decoration: none; white-space: nowrap; flex-grow: 1; min-width: 0; max-width: 100%; padding: 6px 16px; border-radius: 4px; display: flex; &:hover { background-color: ${(0,ht.pick)({enterprise:{light:ht.variables.gray92,dark:ht.variables.gray45},prisma:ht.variables.interactiveColorOverlayHover})}; cursor: pointer; } &:active { background-color: ${(0,ht.pick)({enterprise:{light:ht.variables.gray80,dark:ht.variables.gray45},prisma:ht.variables.interactiveColorOverlayActive})}; } `,Vt=it.span` display: flex; flex-direction: row; justify-content: left; align-items: center; max-width: 100%; `,Yt=it.span` display: inline-block; padding-right: 8px; `,Ut=it.span` text-overflow: ellipsis; overflow: hidden; flex: 0 1 auto; `,PopoverItemButton_default=G=>{var Z=G,{icon:ne,onClick:ie,label:se,testLabel:ce}=Z,fe=__objRest(Z,["icon","onClick","label","testLabel"]);return ze.createElement(Bt,__spreadValues({},fe),ze.createElement($t,{onClick:ie,"data-test":ce,"data-clickable":!0},ze.createElement(Vt,null,ne&&ze.createElement(Yt,null,ne),se&&ze.createElement(Ut,{"data-test":"label"},se))))},Kt={};__export(Kt,{default:()=>Zt});var Gt=__toESM(ne(2888));__reExport(Kt,ne(2888));var Zt="default"in Gt?Gt.default:Gt,Jt={};__export(Jt,{default:()=>on});var Qt=__toESM(ne(4180));__reExport(Jt,ne(4180));var on="default"in Qt?Qt.default:Qt,sn=it.div` ${(0,Kt.reset)("flex")}; justify-content: space-between; background-color: ${Jt.customThemeVariables.toolbarBackgroundColor}; color: ${ht.variables.contentColorDefault}; padding: 5px 5px 5px 8px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: ${Jt.customThemeVariables.toolbarBorderColor}; flex-wrap: wrap; flex-shrink: 0; `,cn=it.div` flex-grow: 1; display: flex; flex-direction: row; `,dn=it.div` flex-basis: auto; display: flex; flex-direction: row; `,Toolbar=({activePanel:G,dashboardApi:Z,mode:ne,preset:ie,toolbarItems:se})=>{const ce=(0,kt.useSelector)(kt.selectLayoutType),fe=(0,Ie.useCallback)(G=>{null==Z||Z.replaceDefinition({definition:G})},[Z]),me=(0,Ie.useCallback)(se=>{const me={activePanel:G,dashboardApi:Z,layoutType:ce,mode:ne,preset:ie,onDefinitionChange:fe};return se.map(G=>ze.cloneElement(G,me))},[G,Z,ce,ne,ie,fe]),ge=(0,Ie.useMemo)(()=>{const G=se.filter(G=>{var Z;return"right"!==(null==(Z=G.props)?void 0:Z.align)});return me(G)},[se,me]),Ce=(0,Ie.useMemo)(()=>{const G=se.filter(G=>{var Z;return"right"===(null==(Z=G.props)?void 0:Z.align)});return me(G)},[se,me]);return se.length?ze.createElement(sn,{"data-test":"dashboard-toolbar"},ze.createElement(cn,{key:"left-align-items","data-test":"left-align-items"},ge),ze.createElement(dn,{key:"right-align-items","data-test":"right-align-items"},Ce)):null};Toolbar.displayName="Toolbar";var mn=Toolbar,_n={};__export(_n,{default:()=>bn});var gn=__toESM(ne(2032));__reExport(_n,ne(2032));var bn="default"in gn?gn.default:gn,yn={};__export(yn,{default:()=>wn});var vn=__toESM(ne(4181));__reExport(yn,ne(4181));var wn="default"in vn?vn.default:vn,Cn={};__export(Cn,{default:()=>Mn});var On=__toESM(ne(389));__reExport(Cn,ne(389));var Mn="default"in On?On.default:On,kn={};__export(kn,{default:()=>Tn});var xn=__toESM(ne(301));__reExport(kn,ne(301));var Tn="default"in xn?xn.default:xn,Dn={};__export(Dn,{default:()=>jn});var En=__toESM(ne(412));__reExport(Dn,ne(412));var jn="default"in En?En.default:En,useDropdown_default=({isContentClickClose:G=!0})=>{const[Z,ne]=(0,Ie.useState)(!1),ie=(0,Ie.useRef)(!1),se=(0,Ie.useCallback)(({reason:Z})=>{("contentClick"!==Z||G)&&("escapeKey"===Z&&ie.current||ne(!1))},[G]);return{isOpen:Z,handleRequestOpen:(0,Ie.useCallback)(()=>{ne(!0)},[]),handleRequestClose:se,handleForceClose:(0,Ie.useCallback)(()=>{ne(!1)},[]),setHasChildModal:(0,Ie.useCallback)(G=>{ie.current=G},[])}},Pn=it(wn).attrs(({maxHeight:G})=>({style:{maxHeight:null!=G?G:void 0}}))` overflow-y: auto; `,Nn=ze.createElement(ze.Fragment,null,ze.createElement(Cn.AddChartDropdown,{size:"20px"}),ze.createElement(Cn.DropdownIcon,{size:"20px",screenReaderText:""})),qn={borderRadius:"4px",maxWidth:"50px"},Wn=[],Charts_default=({dashboardApi:G,preset:Z})=>{const{showNewDataForViz:ne=!0}=(0,kn.useFeatureFlags)(),ie=(0,Dn.useDashboardProfiler)(),{family:se}=(0,ht.useSplunkTheme)(),{handleForceClose:ce,handleRequestClose:fe,handleRequestOpen:me,isOpen:ge}=useDropdown_default({isContentClickClose:!1}),Ce=(0,Ie.useMemo)(()=>ze.createElement(st,{"data-test":"charts-button","data-clickable":!0,appearance:"pill",icon:Nn,style:qn}),[]),Se=(0,Ie.useMemo)(()=>new Tt.VisualizationFilter(Z).taxonomy,[Z]),Me=(0,Ie.useCallback)(({type:Z,options:se})=>()=>{null==ie||ie.startTimer({timerName:Dn.VIZ_ADD_EVENT}),(0,kt.batch)(()=>{null==G||G.createVisualization({visualizationDefinition:{type:Z,options:se}}),ne&&(null==G||G.openPanel({activePanel:"connectData",panelProps:{bindingType:"primary",from:{activePanel:"config"}}}))}),ce()},[G,ie,ne,ce]),ke=(0,Ie.useMemo)(()=>(({taxonomy:G,handleCreateVisualization:Z})=>G.reduce((G,{visualizations:ne,category:ie})=>{const se=ne.filter(G=>G.includeInToolbar);return 0===se.length?G:(G.push(ze.createElement(wn.Divider,{key:"menu-divider-"+ie})),G.concat(se.map(G=>{const{label:ne,type:ie,initialOptions:se}=G,ce=G.icon;if(!ie)return null;const fe=Z({type:ie,options:se});return ze.createElement(wn.Item,{"data-test":`add-${ie}-button`,"data-test-clickable":!0,onClick:fe,icon:!!ce&&ze.createElement(ce,{size:"18px"}),key:`add-${ie}-button`},ne)})))},[]))({taxonomy:Se,handleCreateVisualization:Me}),[Se,Me]),xe=(0,Ie.useCallback)(({maxHeight:G})=>ze.createElement(ht.SplunkThemeProvider,{density:"enterprise"===se?"comfortable":"compact"},ze.createElement(Pn,{maxHeight:G,"data-test":"add-chart-menu"},ke)),[se,ke]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:Wn,onRequestClose:fe,onRequestOpen:me,open:ge,toggle:Ce},xe))},Bn=ze.createElement(Cn.Configuration,{size:"24px",screenReaderText:(0,Ct._)("Configuration")}),Config_default=({dashboardApi:G})=>{const Z=null==G?void 0:G.getOpenedPanel(),ne=!!Z&&"dataOverview"!==Z,ie=(0,Ie.useCallback)(()=>{ne?null==G||G.closePanel():null==G||G.openPanel({activePanel:"config"})},[G,ne]);return ze.createElement(IconButton_default,{selected:ne,testLabel:"config-button",onClick:ie,icon:Bn})},ContentExport_default=({disabled:G,onClick:Z})=>ze.createElement(IconButton_default,{testLabel:"content-export-button",onClick:Z,disabled:!!G,icon:ze.createElement(Cn.ContentExport,{size:"24px"})}),Hn=ze.createElement(Cn.DataInput,{size:"24px",screenReaderText:(0,Ct._)("Data source overview")}),Data_default=({dashboardApi:G})=>{const Z="dataOverview"===(null==G?void 0:G.getOpenedPanel()),ne=(0,Ie.useCallback)(()=>{Z?G.closePanel():(null==G||G.selectVisualization([]),null==G||G.openPanel({activePanel:"dataOverview"}))},[Z,G]);return ze.createElement(IconButton_default,{selected:Z,testLabel:"data-button",onClick:ne,icon:Hn})},$n={};__export($n,{default:()=>Un});var Vn=__toESM(ne(4184));__reExport($n,ne(4184));var Un="default"in Vn?Vn.default:Vn,EmptyVisualization_default=({dashboardApi:G})=>{const Z=(0,Ie.useCallback)(()=>__async(void 0,null,(function*(){null==G||G.createVisualization({visualizationDefinition:{type:"splunk.rectangle",options:{fillColor:"transparent",strokeColor:"transparent"}}}),null==G||G.openPanel({activePanel:"config"})})),[G]);return ze.createElement(IconButton_default,{testLabel:"empty-viz-button",onClick:Z,icon:ze.createElement(Un,{size:"18px",screenReaderText:(0,Ct._)("Add rectangle")})})},Kn={};__export(Kn,{default:()=>Gn});var Xn=__toESM(ne(24));__reExport(Kn,ne(24));var Gn="default"in Xn?Xn.default:Xn,Zn={};__export(Zn,{default:()=>Qn});var Jn=__toESM(ne(138));__reExport(Zn,ne(138));var Qn="default"in Jn?Jn.default:Jn,er={};__export(er,{default:()=>nr});var tr=__toESM(ne(4185));__reExport(er,ne(4185));var nr="default"in tr?tr.default:tr,rr={};__export(rr,{default:()=>ar});var ir=__toESM(ne(4186));__reExport(rr,ne(4186));var ar="default"in ir?ir.default:ir,sr={};__export(sr,{default:()=>ur});var lr=__toESM(ne(509));__reExport(sr,ne(509));var ur="default"in lr?lr.default:lr,dr={};__export(dr,{default:()=>fr});var pr=__toESM(ne(4187));__reExport(dr,ne(4187));var fr="default"in pr?pr.default:pr,mr={};__export(mr,{default:()=>gr});var _r=__toESM(ne(4188));__reExport(mr,ne(4188));var gr="default"in _r?_r.default:_r,yr={borderBottom:"none"},vr={paddingTop:0,paddingBottom:0,width:"600px"},wr={borderTop:"none"},Cr={fontSize:"12px"},ExportModal=({open:G,onRequestClose:Z,onConfirm:ne})=>ze.createElement(fr,{"data-open":G,open:G,onRequestClose:Z,divider:"none"},ze.createElement(fr.Header,{icon:ze.createElement(ar,{height:"100%",width:"100%"}),title:(0,Ct._)("Your dashboard is still loading"),style:yr}),ze.createElement(fr.Body,{style:vr},ze.createElement(gr,null,(0,Ct._)("Some visualizations will be incomplete or inaccurate. Are you sure you want to continue?")),ze.createElement(gr,{style:Cr},(0,Ct._)("Note: For any visualizations depending on real-time data, accuracy will be dependent on the progress of the search."))),ze.createElement(fr.Footer,{style:wr},ze.createElement("div",null,ze.createElement(st,{key:"cancel-export-button","data-clickable":!0,"data-test":"cancel-export-button",label:(0,Ct._)("Cancel"),appearance:"secondary",onClick:Z}),ze.createElement(st,{key:"confirm-export-button","data-clickable":!0,"data-test":"confirm-export-button",label:(0,Ct._)("Continue Anyway"),appearance:"primary",onClick:ne})))),ExportSelect=({appearance:G,onClick:Z})=>{const ne=(0,Ie.useMemo)(()=>ze.createElement(st,{icon:ze.createElement(nr,null),key:"export-dashboard-button","data-clickable":!0,"data-test":"export-dashboard-button",label:(0,Ct._)("Download"),appearance:G||"secondary",isMenu:!0}),[G]),ie=(0,Ie.useCallback)(()=>{Z("PNG")},[Z]),se=(0,Ie.useCallback)(()=>{Z("PDF")},[Z]);return ze.createElement(bn,{toggle:ne},ze.createElement(wn,null,ze.createElement(wn.Item,{onClick:ie,"data-test":"export-png"},"PNG"),ze.createElement(wn.Item,{onClick:se,"data-test":"export-pdf"},"PDF")))},ExportDashboardButton_default=({createToast:G,dashboardApi:Z,appearance:ne="secondary"})=>{const[ie,se]=(0,Ie.useState)(null),[ce,fe]=(0,Ie.useState)(!1),me=(0,Ie.useContext)(Dn.TelemetryContext),ge=(0,Ie.useCallback)(ne=>{setTimeout(()=>__async(void 0,null,(function*(){try{yield(0,Zn.exportDashboardToFile)({fileType:ne,dashboardTitle:null==Z?void 0:Z.getDashboardTitle(),dashboardHeaderDomNode:null==Z?void 0:Z.getHeaderDomElement(),dashboardInputsDomNode:null==Z?void 0:Z.getInputsDomElement(),dashboardCanvasDomNode:null==Z?void 0:Z.getCanvasDomElement(),scale:1.5,showToast:Z=>{G({message:Z,type:sr.TOAST_TYPES.WARNING})}}),G({message:(0,Ct._)("Your download has started"),type:sr.TOAST_TYPES.SUCCESS}),me.emit({pageAction:"dashboard.export",source:"toolbar",event:"dashboard.export_success",metadata:{fileType:ne}})}catch(Z){Z instanceof Error&&(G({message:(0,Ct._)("Error encountered while downloading"),type:sr.TOAST_TYPES.ERROR}),me.emit({pageAction:"dashboard.export",source:"toolbar",event:"dashboard.export_failure",metadata:{fileType:ne},error:Z.message}))}})),750)},[G,Z,me]),Ce=(0,Kn.debounce)(Z=>{G({message:(0,Ct._)("Preparing download..."),type:sr.TOAST_TYPES.INFO}),ge(Z)},250),Se=(0,Ie.useCallback)(G=>{null==Z||Z.selectVisualization(),(null==Z?void 0:Z.hasRunningSearches())?(se(G),fe(!0)):Ce(G)},[Z,Ce]),Me=(0,Ie.useCallback)(()=>{Ce(ie),fe(!1)},[ie,Ce]),ke=(0,Ie.useCallback)(()=>{fe(!1)},[]);return ze.createElement(ze.Fragment,null,ze.createElement(ExportSelect,{appearance:ne,onClick:Se}),ze.createElement(ExportModal,{open:ce,onRequestClose:ke,onConfirm:Me}))},Fullscreen_default=({dashboardApi:G})=>{const Z=!!(0,kt.useSelector)(kt.selectFullscreenElement),ne=(0,Ie.useCallback)(()=>{null==G||G.enterFullscreen()},[G]);return ze.createElement(IconButton_default,{testLabel:"fullscreen-button",onClick:ne,disabled:Z,icon:ze.createElement(Cn.Fullscreen,{size:"24px"})})},Or={};__export(Or,{default:()=>Mr});var Sr=__toESM(ne(2895));__reExport(Or,ne(2895));var Mr="default"in Sr?Sr.default:Sr,kr=it.div` display: flex; align-items: center; flex-direction: row; margin-right: 10px; `,xr=it.div` margin-right: 10px; color: ${ht.variables.contentColorDefault}; font-weight: ${(0,ht.pick)({enterprise:400,prisma:500})}; `,Lr=it.div` border-left-width: 1px; border-left-style: solid; border-left-color: ${ht.variables.interactiveColorBorder}; width: 1px; margin-right: 10px; `,GridLineSwitch_default=({dashboardApi:G,mode:Z,showSeparator:ne,layoutType:ie})=>{var se;const ce=null!=(se=(0,kt.useSelector)(kt.selectAreGridLinesEnabled))&&se,fe=(0,Ie.useCallback)(()=>{null==G||G.toggleGridLines(!ce)},[G,ce]),me=(0,Ie.useMemo)(()=>ne?ze.createElement(Lr,{key:"item-separator"}):null,[ne]);return G&&"edit"===Z&&"grid"!==ie?ze.createElement(ze.Fragment,null,ze.createElement(kr,{key:"grid-line-switch"},ze.createElement(xr,null,(0,Ct._)("Gridlines")),ze.createElement(Mr,{onClick:fe,selected:ce,selectedLabel:(0,Ct._)("Gridlines displayed"),unselectedLabel:(0,Ct._)("Gridlines not displayed"),appearance:"toggle","data-test":"gridline-toggle","data-clickable":!0})),me):null},Tr=it.div` display: flex; padding: 5px; `,Ar=ze.createElement(ze.Fragment,null,ze.createElement(Cn.AddIconDropdown,{size:"20px"}),ze.createElement(Cn.DropdownIcon,{size:"20px",screenReaderText:""})),Dr={borderRadius:"4px",maxWidth:"50px"},Er=[],IconGallery_default=({dashboardApi:G})=>{const{handleForceClose:Z,handleRequestClose:ne,handleRequestOpen:ie,setHasChildModal:se,isOpen:ce}=useDropdown_default({isContentClickClose:!1}),fe=(0,Ie.useMemo)(()=>ze.createElement(st,{"data-test":"icon-gallery-button","data-clickable":!0,appearance:"pill",icon:Ar,style:Dr}),[]),me=(0,Ie.useCallback)(ne=>__async(void 0,null,(function*(){null==G||G.createVisualization({visualizationDefinition:{type:"splunk.singlevalueicon",options:{showValue:!1,icon:ne}}}),null==G||G.openPanel({activePanel:"config"}),Z()})),[G,Z]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:Er,onRequestClose:ne,onRequestOpen:ie,open:ce,toggle:fe},ze.createElement(Tr,{"data-test":"icon-menu","data-open":ce},ze.createElement(Tt.IconGallery,{onClick:me,setHasChildModal:se}))))},jr=[],HelpIcon=()=>ze.createElement(ze.Fragment,null,ze.createElement(Cn.Help,{size:"20px",screenReaderText:(0,Ct._)("Help links")}),ze.createElement(Cn.DropdownIcon,{size:"20px",screenReaderText:""})),Pr=ze.createElement(st,{appearance:"pill","data-clickable":!0,"data-test":"help-button",icon:ze.createElement(HelpIcon,null),style:{borderRadius:"4px",maxWidth:"50px"}}),HelpButton_default=({helpLinks:G=[]})=>{const{handleRequestClose:Z,handleRequestOpen:ne,isOpen:ie}=useDropdown_default({isContentClickClose:!0}),se=(0,Ie.useMemo)(()=>0===G.length?[ze.createElement(wn.Item,{"data-test":"no-links-provided",key:"no-links-provided",disabled:!0},(0,Ct._)("No Links"))]:G.map(G=>{const{label:Z="",description:ne="",url:ie}=G,se=Z.replace(/\s/g,"");return ze.createElement(wn.Item,{"data-test":"help-link","data-test-clickable":!0,to:ie,description:ne,key:"help-link-"+se,openInNewContext:!0},Z)}),[G]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:jr,onRequestClose:Z,onRequestOpen:ne,open:ie,toggle:Pr},ze.createElement(wn,null,se)))},Image_default=({dashboardApi:G})=>{const Z=(0,Ie.useCallback)(()=>__async(void 0,null,(function*(){null==G||G.createVisualization({visualizationDefinition:{type:"splunk.image",options:{preserveAspectRatio:!0}}}),null==G||G.openPanel({activePanel:"config"})})),[G]);return ze.createElement(IconButton_default,{testLabel:"image-button",onClick:Z,icon:ze.createElement(Cn.AddImage,{size:"24px",screenReaderText:(0,Ct._)("Add image")})})},Ir={};__export(Ir,{default:()=>Rr});var Nr=__toESM(ne(4189));__reExport(Ir,ne(4189));var Rr="default"in Nr?Nr.default:Nr,zr=it.div` display: flex; padding: 5px; `,qr=ze.createElement(ze.Fragment,null,ze.createElement(Cn.AddImage,{size:"24px",screenReaderText:(0,Ct._)("Add image")}),ze.createElement(Cn.DropdownIcon,{size:"24px",screenReaderText:""})),Wr={borderRadius:"4px",maxWidth:"50px"},Br=[],ImageGallery_default2=({dashboardApi:G})=>{const{handleForceClose:Z,handleRequestClose:ne,handleRequestOpen:ie,setHasChildModal:se,isOpen:ce}=useDropdown_default({isContentClickClose:!1}),fe=(0,Ie.useMemo)(()=>ze.createElement(st,{"data-test":"image-gallery-button","data-clickable":!0,appearance:"pill",icon:qr,style:Wr}),[]),me=(0,Ie.useCallback)(ne=>__async(void 0,null,(function*(){null==G||G.createVisualization({visualizationDefinition:{type:"splunk.image",options:{preserveAspectRatio:!0,src:ne}}}),null==G||G.openPanel({activePanel:"config"}),Z()})),[G,Z]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:Br,onRequestClose:ne,onRequestOpen:ie,open:ce,toggle:fe},ze.createElement(zr,null,ze.createElement(Rr,{onClick:me,setHasChildModal:se}))))},Fr={};__export(Fr,{default:()=>$r});var Hr=__toESM(ne(312));__reExport(Fr,ne(312));var $r="default"in Hr?Hr.default:Hr,Vr={borderRadius:"4px",maxWidth:"50px"},Yr=[],AddInputIcon=()=>ze.createElement(ze.Fragment,null,ze.createElement(Cn.Input,{size:"20px",screenReaderText:(0,Ct._)("Add input")}),ze.createElement(Cn.DropdownIcon,{size:"20px",screenReaderText:""})),Ur=Object.freeze({}),Inputs_default=({dashboardApi:G,preset:Z=Ur})=>{const{handleRequestClose:ne,handleRequestOpen:ie,isOpen:se}=useDropdown_default({isContentClickClose:!0}),ce=(0,Ie.useMemo)(()=>ze.createElement(st,{appearance:"pill","data-clickable":!0,"data-test":"inputs-button",icon:ze.createElement(AddInputIcon,null),style:Vr}),[]),fe=(0,Ie.useCallback)(({type:Z,defaultConfig:ne={},tokenPrefix:ie="token"})=>()=>{if(!G)return;const se=__spreadProps(__spreadValues({},ne),{type:Z,options:__spreadProps(__spreadValues({},ne.options),{token:Fr.DashboardDefinition.fromJSON(null==G?void 0:G.getDefinition()).nextTokenId(ie)})});G.addInput(se),G.openPanel({activePanel:"config"})},[G]),me=(0,Ie.useMemo)(()=>{const G=[],ne=null==Z?void 0:Z.inputs;return(0,Kn.each)(ne,(Z,ne)=>{const{baseShape:ie={},label:se=(0,Ct._)(ne+" Input"),description:ce="",tokenPrefix:me="token",includeInToolbar:ge=!0,icon:Ce=Cn.Input}=Z.config||{};ge&&G.push(ze.createElement(wn.Item,{"data-test":`add-${ne}-button`,"data-test-clickable":!0,onClick:fe({type:ne,defaultConfig:ie,tokenPrefix:me}),icon:ze.createElement(Ce,{size:"24px"}),description:ce,key:`add-${ne}-button`},se))}),0===G.length&&G.push(ze.createElement(wn.Item,{"data-test":"no-inputs-in-preset",key:"no-inputs-in-preset",disabled:!0},(0,Ct._)("No Inputs"))),G},[fe,Z]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:Yr,onRequestClose:ne,onRequestOpen:ie,open:se,toggle:ce},ze.createElement(wn,null,me)))},Markdown_default=({dashboardApi:G})=>{const Z=(0,Ie.useCallback)(()=>{null==G||G.createVisualization({visualizationDefinition:{type:"splunk.markdown",options:{markdown:""}}}),null==G||G.openPanel({activePanel:"config"})},[G]);return ze.createElement(IconButton_default,{testLabel:"markdown-button",onClick:Z,icon:ze.createElement(Cn.Markdown,{size:"24px",screenReaderText:(0,Ct._)("Add markdown text")})})},ModeSwitch_default=({mode:G,dashboardApi:Z,appearance:ne=("edit"===G?"secondary":"primary")})=>{const ie="edit"===G?(0,Ct._)("View"):(0,Ct._)("Edit"),se=("edit"===G?"view":"edit")+"-button",ce=(0,Ie.useCallback)(()=>{Z&&Z.switchMode("edit"===G?"view":"edit")},[G,Z]);return ze.createElement(Bt,null,ze.createElement(st,{key:G+"-button","data-clickable":!0,"data-test":se,inline:!1,label:ie,appearance:ne,onClick:ce}))},Kr=ze.createElement(Cn.Redo,{size:"24px"}),Redo_default=({dashboardApi:G})=>{const Z=(0,Dn.useTelemetryApi)(),[ne,ie]=(0,Ie.useState)(()=>{var Z;return null!=(Z=null==G?void 0:G.canRedo())&&Z}),se=(0,Ie.useCallback)(()=>{var Z;ie(null!=(Z=null==G?void 0:G.canRedo())&&Z)},[G]);(0,Ie.useEffect)(()=>{var Z;return(null==(Z=null==G?void 0:G.dashboard)?void 0:Z.historyManager)?G.dashboard.historyManager.subscribe({onAdd:se,onUndo:se,onRedo:se}):()=>{}},[G,se]);const ce=(0,Ie.useCallback)(()=>{G&&(Z.emit(__spreadProps(__spreadValues({pageAction:"udf.redo"},G.compareRedoDiff()),{metadata:{}})),G.redo())},[G,Z]);return ze.createElement(IconButton_default,{testLabel:"redo-button",onClick:ce,disabled:!ne,icon:Kr})},Xr={};__export(Xr,{default:()=>Zr});var Gr=__toESM(ne(4190));__reExport(Xr,ne(4190));var Zr="default"in Gr?Gr.default:Gr,Jr={};__export(Jr,{default:()=>ei});var Qr=__toESM(ne(4191));__reExport(Jr,ne(4191));var ei="default"in Qr?Qr.default:Qr,ti=it.div` display: flex; flex-direction: column; padding: 8px 4px; background-color: ${ht.variables.backgroundColorDialog}; border-radius: 4px; `,ni=ze.createElement(ze.Fragment,null,ze.createElement(Cn.AddShapeDropdown,{size:"20px"}),ze.createElement(Cn.DropdownIcon,{size:"20px",screenReaderText:""})),ri={borderRadius:"4px",maxWidth:"50px"},ii=[],oi=ze.createElement(Zr,{size:1,screenReaderText:(0,Ct._)("Ellipse")}),ai=ze.createElement(Un,{size:1,screenReaderText:(0,Ct._)("Rectangle")}),si=ze.createElement(ei,{size:1,screenReaderText:(0,Ct._)("Line")}),Shapes_default=({dashboardApi:G,layoutType:Z})=>{const ne="absolute"===Z,{handleRequestClose:ie,handleRequestOpen:se,isOpen:ce}=useDropdown_default({isContentClickClose:!0}),fe=(0,Ie.useMemo)(()=>ze.createElement(st,{appearance:"pill","data-clickable":!0,"data-test":"shapes-button",icon:ni,style:ri}),[]),me=(0,Ie.useCallback)((Z,ne)=>()=>{null==G||G.createVisualization({visualizationDefinition:Z,layoutItemType:ne}),null==G||G.openPanel({activePanel:"config"})},[G]);return ze.createElement(Bt,null,ze.createElement(bn,{focusToggleReasons:ii,onRequestClose:ie,onRequestOpen:se,open:ce,toggle:fe},ze.createElement(ti,{"data-test":"shapes-dropdown-children-container"},ze.createElement(PopoverItemButton_default,{testLabel:"ellipse-button",onClick:me({type:"splunk.ellipse"}),icon:oi,label:(0,Ct._)("Ellipse")}),ze.createElement(PopoverItemButton_default,{testLabel:"rectangle-button",onClick:me({type:"splunk.rectangle"}),icon:ai,label:(0,Ct._)("Rectangle")}),ne&&ze.createElement(PopoverItemButton_default,{testLabel:"line-button",onClick:me({type:"abslayout.line"},"line"),icon:si,label:(0,Ct._)("Line")}))))},Source_default=({disabled:G,onClick:Z})=>ze.createElement(IconButton_default,{testLabel:"source-button",onClick:Z,disabled:void 0!==G&&G,icon:ze.createElement(Cn.Source,{size:"24px"})}),li=ze.createElement(Cn.Undo,{size:"24px"}),Undo_default=({dashboardApi:G})=>{const Z=(0,Dn.useTelemetryApi)(),[ne,ie]=(0,Ie.useState)(()=>{var Z;return null!=(Z=null==G?void 0:G.canUndo())&&Z}),se=(0,Ie.useCallback)(()=>{var Z;ie(null!=(Z=null==G?void 0:G.canUndo())&&Z)},[G]);(0,Ie.useEffect)(()=>{var Z;return(null==(Z=null==G?void 0:G.dashboard)?void 0:Z.historyManager)?G.dashboard.historyManager.subscribe({onAdd:se,onUndo:se,onRedo:se}):()=>{}},[G,se]);const ce=(0,Ie.useCallback)(()=>{G&&(Z.emit(__spreadProps(__spreadValues({pageAction:"udf.undo"},G.compareUndoDiff()),{metadata:{}})),G.undo())},[G,Z]);return ze.createElement(IconButton_default,{testLabel:"undo-button",onClick:ce,disabled:!ne,icon:li})},ci=[25,50,100,150,200],ui=it.div` min-width: 96px; margin-right: ${(0,ht.pick)({enterprise:0,prisma:"10px"})}; `,di={width:"200px"},Zoom_default=({dashboardApi:G,showSeparator:Z=!0,appearance:ne="default",mode:ie="view"})=>{const{family:se}=(0,ht.useSplunkTheme)(),[ce,fe]=(0,Ie.useState)(100),[me,ge]=(0,Ie.useState)(null),Ce=(0,Dn.useTelemetryApi)(),Se=(0,Ie.useCallback)(G=>{G&&fe(Math.round(100*G))},[]),Me=(0,Ie.useMemo)(()=>(0,Kn.debounce)(Ce.emit.bind(Ce),500),[Ce]);(0,Ie.useEffect)(()=>{Me({pageAction:"dashboard.zoom",source:"toolbar",event:"dashboard.zoom_level_change",metadata:{scale:ce,scaleType:me,mode:ie}})},[ce,me,Me,ie]),(0,Ie.useEffect)(()=>{let Z;return function waitZoomObservable(){return __async(this,null,(function*(){const ne=yield null==G?void 0:G.getZoomLevel();ne&&(Z=ne.subscribe({next:Se}))}))}(),()=>{Z&&Z.unsubscribe()}},[G,Se]);const ke=(0,Ie.useMemo)(()=>Z?ze.createElement(Lr,{key:"item-separator"}):null,[Z]),xe=(0,Ie.useMemo)(()=>({width:"enterprise"===se?"86px":"110px"}),[se]),De=(0,Ie.useCallback)(()=>{ge(null),null==G||G.zoomOut()},[G]),Re=(0,Ie.useCallback)(()=>{ge(null),null==G||G.zoomIn()},[G]),$e=(0,Ie.useCallback)(Z=>()=>{fe(Z),ge(null),null==G||G.setScale(Z/100)},[G]),Je=(0,Ie.useCallback)(()=>{ge("fit"),null==G||G.fitToWidth(1/0)},[G]),it=(0,Ie.useCallback)(()=>{ge("auto"),null==G||G.fitToWidth(1)},[G]),{handleRequestClose:ot,handleRequestOpen:at,isOpen:ct}=useDropdown_default({isContentClickClose:!0}),ut=ze.createElement(st,{"data-clickable":!0,label:ce+"%","data-test":"zoom-dropdown-button",style:xe,appearance:ne,isMenu:!0}),dt=(0,Ie.useMemo)(()=>(0,Zn.isMac)(),[]),ft=(0,Ie.useMemo)(()=>{const G=ci.map(G=>ze.createElement(wn.Item,{"data-test":G+"-percent",onClick:$e(G),key:G,selectable:!0,selected:ce===G&&!me},G+"%"));return[ze.createElement(wn.Item,{"data-test":"auto",onClick:it,key:"auto",selectable:!0,selected:"auto"===me},(0,Ct._)("Auto")),ze.createElement(wn.Item,{"data-test":"fit-to-width",onClick:Je,key:"fit-to-width",description:dt?(0,Ct._)("Ctrl Cmd 0"):(0,Ct._)("Ctrl Alt 0"),descriptionPosition:"right",selectable:!0,selected:"fit"===me},(0,Ct._)("Fit")),ze.createElement(wn.Divider,{key:"menu-divider-1"}),...G,ze.createElement(wn.Divider,{key:"menu-divider-2"}),ze.createElement(wn.Item,{"data-test":"zoom-in",onClick:Re,key:"zoom-in",description:dt?(0,Ct._)("Ctrl Cmd ="):(0,Ct._)("Ctrl Alt ="),descriptionPosition:"right",selectable:!0},(0,Ct._)("Zoom in")),ze.createElement(wn.Item,{"data-test":"zoom-out",onClick:De,key:"zoom-out",description:dt?(0,Ct._)("Ctrl Cmd -"):(0,Ct._)("Ctrl Alt -"),descriptionPosition:"right",selectable:!0},(0,Ct._)("Zoom out"))]},[$e,Je,it,De,Re,me,ce,dt]);return ze.createElement(ze.Fragment,null,ze.createElement(ui,null,ze.createElement(bn,{onRequestClose:ot,onRequestOpen:at,open:ct,toggle:ut},ze.createElement(wn,{style:di,retainFocus:!1},ft))),ke)},pi={width:"180px"},ActionsGroup_default=({children:G})=>{const{handleRequestClose:Z,handleRequestOpen:ne,isOpen:ie}=useDropdown_default({isContentClickClose:!0}),se=ze.createElement(st,{"data-clickable":!0,label:(0,Ct._)("Actions"),"data-test":"actions-dropdown-button",isMenu:!0,appearance:"pill"});return ze.createElement(bn,{onRequestClose:Z,onRequestOpen:ne,open:ie,toggle:se},ze.createElement(wn,{style:pi},G))},ControlGroup_default=G=>ze.createElement(ItemGroup_default,__spreadValues({},G),ze.createElement(Fullscreen_default,null)),EditingGroup_default=G=>{const{enableModeSwitch:Z=!0,mode:ne="view",borders:ie=!0,layoutType:se}=G,ce=(0,Ie.useMemo)(()=>Z?ze.createElement(ModeSwitch_default,{mode:ne}):null,[Z,ne]),fe=(0,Ie.useMemo)(()=>"absolute"===se?[ze.createElement(Zoom_default,{key:"zoom",showSeparator:ie})]:null,[se,ie]);return ze.createElement(ItemGroup_default,__spreadProps(__spreadValues({},G),{borders:!1}),ze.createElement(GridLineSwitch_default,{showSeparator:Z&&ie}),fe,ce)},EditorGroup_default=G=>{var Z;return ze.createElement(ItemGroup_default,__spreadValues({borders:!1},G),ze.createElement(Source_default,{onClick:null!=(Z=G.sourceButtonOnClick)?Z:Zn.noop}))},EditorsControlGroup_default=G=>{var Z;return ze.createElement(ItemGroup_default,__spreadValues({borders:!1},G),ze.createElement(Config_default,null),ze.createElement(Data_default,null),ze.createElement(Source_default,{onClick:null!=(Z=G.sourceButtonOnClick)?Z:Zn.noop}))},HistoryGroup_default=G=>ze.createElement(ItemGroup_default,__spreadValues({},G),ze.createElement(Undo_default,null),ze.createElement(Redo_default,null)),SidebarControlGroup_default=G=>ze.createElement(ItemGroup_default,__spreadValues({},G),ze.createElement(Config_default,null),ze.createElement(Data_default,null)),VisualizationGroup_default=G=>{const Z=(0,Ie.useMemo)(()=>"grid"===G.layoutType?[ze.createElement(Charts_default,{key:"charts"}),ze.createElement(Inputs_default,{key:"inputs"}),ze.createElement(EmptyVisualization_default,{key:"empty-viz"}),ze.createElement(Image_default,{key:"images"}),ze.createElement(Markdown_default,{key:"markdown"})]:[ze.createElement(Charts_default,{key:"charts"}),ze.createElement(Inputs_default,{key:"inputs"}),ze.createElement(IconGallery_default,{key:"icon-gallery"}),ze.createElement(Shapes_default,{key:"shapes"}),ze.createElement(Image_default,{key:"images"}),ze.createElement(Markdown_default,{key:"markdown"})],[G.layoutType]);return ze.createElement(ItemGroup_default,__spreadValues({},G),Z)}},1626:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},1627:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},165:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return me})),ne.d(Z,"a",(function(){return KeyChord})),ne.d(Z,"f",(function(){return createKeybinding})),ne.d(Z,"e",(function(){return SimpleKeybinding})),ne.d(Z,"d",(function(){return ResolvedKeybindingPart})),ne.d(Z,"c",(function(){return ResolvedKeybinding}));var ie=ne(51);class KeyCodeStrMap{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(G,Z){this._keyCodeToStr[G]=Z,this._strToKeyCode[Z.toLowerCase()]=G}keyCodeToStr(G){return this._keyCodeToStr[G]}strToKeyCode(G){return this._strToKeyCode[G.toLowerCase()]||0}}const se=new KeyCodeStrMap,ce=new KeyCodeStrMap,fe=new KeyCodeStrMap;var me;function KeyChord(G,Z){return(G|(65535&Z)<<16>>>0)>>>0}function createKeybinding(G,Z){if(0===G)return null;const ne=(65535&G)>>>0,ie=(4294901760&G)>>>16;return new ChordKeybinding(0!==ie?[createSimpleKeybinding(ne,Z),createSimpleKeybinding(ie,Z)]:[createSimpleKeybinding(ne,Z)])}function createSimpleKeybinding(G,Z){const ne=!!(2048&G),ie=!!(256&G);return new SimpleKeybinding(2===Z?ie:ne,!!(1024&G),!!(512&G),2===Z?ne:ie,255&G)}!function(){function define(G,Z,ne=Z,ie=ne){se.define(G,Z),ce.define(G,ne),fe.define(G,ie)}define(0,"unknown"),define(1,"Backspace"),define(2,"Tab"),define(3,"Enter"),define(4,"Shift"),define(5,"Ctrl"),define(6,"Alt"),define(7,"PauseBreak"),define(8,"CapsLock"),define(9,"Escape"),define(10,"Space"),define(11,"PageUp"),define(12,"PageDown"),define(13,"End"),define(14,"Home"),define(15,"LeftArrow","Left"),define(16,"UpArrow","Up"),define(17,"RightArrow","Right"),define(18,"DownArrow","Down"),define(19,"Insert"),define(20,"Delete"),define(21,"0"),define(22,"1"),define(23,"2"),define(24,"3"),define(25,"4"),define(26,"5"),define(27,"6"),define(28,"7"),define(29,"8"),define(30,"9"),define(31,"A"),define(32,"B"),define(33,"C"),define(34,"D"),define(35,"E"),define(36,"F"),define(37,"G"),define(38,"H"),define(39,"I"),define(40,"J"),define(41,"K"),define(42,"L"),define(43,"M"),define(44,"N"),define(45,"O"),define(46,"P"),define(47,"Q"),define(48,"R"),define(49,"S"),define(50,"T"),define(51,"U"),define(52,"V"),define(53,"W"),define(54,"X"),define(55,"Y"),define(56,"Z"),define(57,"Meta"),define(58,"ContextMenu"),define(59,"F1"),define(60,"F2"),define(61,"F3"),define(62,"F4"),define(63,"F5"),define(64,"F6"),define(65,"F7"),define(66,"F8"),define(67,"F9"),define(68,"F10"),define(69,"F11"),define(70,"F12"),define(71,"F13"),define(72,"F14"),define(73,"F15"),define(74,"F16"),define(75,"F17"),define(76,"F18"),define(77,"F19"),define(78,"NumLock"),define(79,"ScrollLock"),define(80,";",";","OEM_1"),define(81,"=","=","OEM_PLUS"),define(82,",",",","OEM_COMMA"),define(83,"-","-","OEM_MINUS"),define(84,".",".","OEM_PERIOD"),define(85,"/","/","OEM_2"),define(86,"`","`","OEM_3"),define(110,"ABNT_C1"),define(111,"ABNT_C2"),define(87,"[","[","OEM_4"),define(88,"\\","\\","OEM_5"),define(89,"]","]","OEM_6"),define(90,"'","'","OEM_7"),define(91,"OEM_8"),define(92,"OEM_102"),define(93,"NumPad0"),define(94,"NumPad1"),define(95,"NumPad2"),define(96,"NumPad3"),define(97,"NumPad4"),define(98,"NumPad5"),define(99,"NumPad6"),define(100,"NumPad7"),define(101,"NumPad8"),define(102,"NumPad9"),define(103,"NumPad_Multiply"),define(104,"NumPad_Add"),define(105,"NumPad_Separator"),define(106,"NumPad_Subtract"),define(107,"NumPad_Decimal"),define(108,"NumPad_Divide")}(),function(G){G.toString=function toString(G){return se.keyCodeToStr(G)},G.fromString=function fromString(G){return se.strToKeyCode(G)},G.toUserSettingsUS=function toUserSettingsUS(G){return ce.keyCodeToStr(G)},G.toUserSettingsGeneral=function toUserSettingsGeneral(G){return fe.keyCodeToStr(G)},G.fromUserSettings=function fromUserSettings(G){return ce.strToKeyCode(G)||fe.strToKeyCode(G)}}(me||(me={}));class SimpleKeybinding{constructor(G,Z,ne,ie,se){this.ctrlKey=G,this.shiftKey=Z,this.altKey=ne,this.metaKey=ie,this.keyCode=se}equals(G){return this.ctrlKey===G.ctrlKey&&this.shiftKey===G.shiftKey&&this.altKey===G.altKey&&this.metaKey===G.metaKey&&this.keyCode===G.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new ChordKeybinding([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class ChordKeybinding{constructor(G){if(0===G.length)throw Object(ie.b)("parts");this.parts=G}}class ResolvedKeybindingPart{constructor(G,Z,ne,ie,se,ce){this.ctrlKey=G,this.shiftKey=Z,this.altKey=ne,this.metaKey=ie,this.keyLabel=se,this.keyAriaLabel=ce}}class ResolvedKeybinding{}},166:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return deepClone})),ne.d(Z,"c",(function(){return deepFreeze})),ne.d(Z,"a",(function(){return cloneAndChange})),ne.d(Z,"f",(function(){return mixin})),ne.d(Z,"d",(function(){return equals})),ne.d(Z,"e",(function(){return getOrDefault}));var ie=ne(54);function deepClone(G){if(!G||"object"!=typeof G)return G;if(G instanceof RegExp)return G;const Z=Array.isArray(G)?[]:{};return Object.keys(G).forEach(ne=>{G[ne]&&"object"==typeof G[ne]?Z[ne]=deepClone(G[ne]):Z[ne]=G[ne]}),Z}function deepFreeze(G){if(!G||"object"!=typeof G)return G;const Z=[G];for(;Z.length>0;){const G=Z.shift();Object.freeze(G);for(const ne in G)if(se.call(G,ne)){const ie=G[ne];"object"!=typeof ie||Object.isFrozen(ie)||Z.push(ie)}}return G}const se=Object.prototype.hasOwnProperty;function cloneAndChange(G,Z){return function _cloneAndChange(G,Z,ne){if(Object(ie.m)(G))return G;const ce=Z(G);if(void 0!==ce)return ce;if(Object(ie.f)(G)){const ie=[];for(const se of G)ie.push(_cloneAndChange(se,Z,ne));return ie}if(Object(ie.j)(G)){if(ne.has(G))throw new Error("Cannot clone recursive data-structure");ne.add(G);const ie={};for(let ce in G)se.call(G,ce)&&(ie[ce]=_cloneAndChange(G[ce],Z,ne));return ne.delete(G),ie}return G}(G,Z,new Set)}function mixin(G,Z,ne=!0){return Object(ie.j)(G)?(Object(ie.j)(Z)&&Object.keys(Z).forEach(se=>{se in G?ne&&(Object(ie.j)(G[se])&&Object(ie.j)(Z[se])?mixin(G[se],Z[se],ne):G[se]=Z[se]):G[se]=Z[se]}),G):Z}function equals(G,Z){if(G===Z)return!0;if(null==G||null==Z)return!1;if(typeof G!=typeof Z)return!1;if("object"!=typeof G)return!1;if(Array.isArray(G)!==Array.isArray(Z))return!1;let ne,ie;if(Array.isArray(G)){if(G.length!==Z.length)return!1;for(ne=0;nePromise.resolve(ie.provideDocumentColors(G,Z)).then(G=>{if(Array.isArray(G))for(let Z of G)ne.push({colorInfo:Z,provider:ie})}));return Promise.all(ie).then(()=>ne)}function getColorPresentations(G,Z,ne,ie){return Promise.resolve(ne.provideColorPresentations(G,Z,ie))}Ce.a.registerCommand("_executeDocumentColorProvider",(function(G,...Z){const[ne]=Z;if(!(ne instanceof ce.a))throw Object(se.b)();const fe=G.get(ge.a).getModel(ne);if(!fe)throw Object(se.b)();const Ce=[],Se=me.c.ordered(fe).reverse().map(G=>Promise.resolve(G.provideDocumentColors(fe,ie.a.None)).then(G=>{if(Array.isArray(G))for(let Z of G)Ce.push({range:Z.range,color:[Z.color.red,Z.color.green,Z.color.blue,Z.color.alpha]})}));return Promise.all(Se).then(()=>Ce)})),Ce.a.registerCommand("_executeColorPresentationProvider",(function(G,...Z){const[ne,Ce]=Z,{uri:Se,range:Me}=Ce;if(!(Se instanceof ce.a&&Array.isArray(ne)&&4===ne.length&&fe.a.isIRange(Me)))throw Object(se.b)();const[ke,xe,De,Ie]=ne,Re=G.get(ge.a).getModel(Se);if(!Re)throw Object(se.b)();const ze={range:Me,color:{red:ke,green:xe,blue:De,alpha:Ie}},$e=[],Je=me.c.ordered(Re).reverse().map(G=>Promise.resolve(G.provideColorPresentations(Re,ze,ie.a.None)).then(G=>{Array.isArray(G)&&$e.push(...G)}));return Promise.all(Je).then(()=>$e)}))},1673:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return AtomicTabMoveOperations}));var ie=ne(71);class AtomicTabMoveOperations{static whitespaceVisibleColumn(G,Z,ne){const se=G.length;let ce=0,fe=-1,me=-1;for(let ge=0;gece.c,tokenize2:(G,Z,ne,ie)=>Object(ce.e)(0,G,ne,ie)};function tokenizeToString(G,Z=fe){return function _tokenizeToString(G,Z){let ne='
',ce=ie.R(G),fe=Z.getInitialState();for(let G=0,me=ce.length;G0&&(ne+="
");let ge=Z.tokenize2(me,!0,fe,0);se.a.convertToEndOffset(ge.tokens,me.length);let Ce=new se.a(ge.tokens,me).inflate(),Se=0;for(let G=0,Z=Ce.getCount();G${ie.t(me.substring(Se,se))}`,Se=se}fe=ge.endState}return ne+="
",ne}(G,Z||fe)}function tokenizeLineToHTML(G,Z,ne,ie,se,ce,fe){let me="
",ge=ie,Ce=0;for(let Se=0,Me=Z.getCount();Se0;)ke+=fe?" ":" ",G--;break;case 60:ke+="<";break;case 62:ke+=">";break;case 38:ke+="&";break;case 0:ke+="�";break;case 65279:case 8232:case 8233:case 133:ke+="�";break;case 13:ke+="​";break;case 32:ke+=fe?" ":" ";break;default:ke+=String.fromCharCode(Z)}}if(me+=`${ke}`,Me>se||ge>=se)break}return me+="
",me}},1675:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return parse}));var ie=ne(250),se=ne(94);function parse(G){let Z=JSON.parse(G);return Z=function revive(G,Z=0){if(!G||Z>200)return G;if("object"==typeof G){switch(G.$mid){case 1:return se.a.revive(G);case 2:return new RegExp(G.source,G.flags)}if(G instanceof ie.a||G instanceof Uint8Array)return G;if(Array.isArray(G))for(let ne=0;neie.a.replace(se.a.lift(G.range),G.text))):G.executeEdits("formatEditsCommand",ce.map(G=>ie.a.replaceMove(se.a.lift(G.range),G.text))),ne&&G.pushUndoStop()}}},1678:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return SemanticTokensProviderStyling})),ne.d(Z,"b",(function(){return toMultilineTokens2}));var ie=ne(35),se=ne(352),ce=ne(539);class SemanticTokensProviderStyling{constructor(G,Z,ne){this._legend=G,this._themeService=Z,this._logService=ne,this._hashTable=new HashTable,this._hasWarnedOverlappingTokens=!1}getMetadata(G,Z,ne){const ce=this._hashTable.get(G,Z,ne.id);let fe;if(ce)fe=ce.metadata,this._logService.getLevel()===se.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${G} / ${Z}: foreground ${ie.E.getForeground(fe)}, fontStyle ${ie.E.getFontStyle(fe).toString(2)}`);else{let ce=this._legend.tokenTypes[G];const me=[];if(ce){let G=Z;for(let Z=0;G>0&&Z>=1;G>0&&this._logService.getLevel()===se.c.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${Z.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),me.push("not-in-legend"));const ie=this._themeService.getColorTheme().getTokenStyleMetadata(ce,me,ne.language);if(void 0===ie)fe=2147483647;else{if(fe=0,void 0!==ie.italic){fe|=1|(ie.italic?1:0)<<11}if(void 0!==ie.bold){fe|=2|(ie.bold?2:0)<<11}if(void 0!==ie.underline){fe|=4|(ie.underline?4:0)<<11}if(ie.foreground){fe|=8|ie.foreground<<14}0===fe&&(fe=2147483647)}}else this._logService.getLevel()===se.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${G} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),fe=2147483647,ce="not-in-legend";this._hashTable.add(G,Z,ne.id,fe),this._logService.getLevel()===se.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${G} (${ce}) / ${Z} (${me.join(" ")}): foreground ${ie.E.getForeground(fe)}, fontStyle ${ie.E.getFontStyle(fe).toString(2)}`)}return fe}warnOverlappingSemanticTokens(G,Z){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${G}, column ${Z}`))}}function toMultilineTokens2(G,Z,ne){const ie=G.data,se=G.data.length/5|0,fe=Math.max(Math.ceil(se/1024),400),me=[];let ge=0,Ce=1,Se=0;for(;geG&&0===ie[5*Z];)Z--;if(Z-1===G){let G=Me;for(;G+1me&&(Z.warnOverlappingSemanticTokens(fe,me+1),Re=this._growCount){const G=this._elements;this._currentLengthIndex++,this._currentLength=HashTable._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};function MODEL_ID(G){return G.toString()}function computeModelSha1(G){const Z=new $e.a,ne=G.createSnapshot();let ie;for(;ie=ne.read();)Z.update(ie);return Z.digest()}class ModelData{constructor(G,Z,ne){this._modelEventListeners=new se.b,this.model=G,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(G.onWillDispose(()=>Z(G))),this._modelEventListeners.add(G.onDidChangeLanguage(Z=>ne(G,Z)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(G){this._disposeLanguageSelection(),this._languageSelection=G,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(G.languageIdentifier)),this.model.setMode(G.languageIdentifier)}}const st=ce.d||ce.f?1:2;class DisposedModelInfo{constructor(G,Z,ne,ie,se,ce,fe,me){this.uri=G,this.initialUndoRedoSnapshot=Z,this.time=ne,this.sharesUndoRedoStack=ie,this.heapSize=se,this.sha1=ce,this.versionId=fe,this.alternativeVersionId=me}}let ct=class ModelServiceImpl extends se.a{constructor(G,Z,ne,se,ce){super(),this._configurationService=G,this._resourcePropertiesService=Z,this._themeService=ne,this._logService=se,this._undoRedoService=ce,this._onModelAdded=this._register(new ie.b),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new ie.b),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new ie.b),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new SemanticStyling(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new SemanticColoringFeature(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(G,Z){let ne=me.d.tabSize;if(G.editor&&void 0!==G.editor.tabSize){const Z=parseInt(G.editor.tabSize,10);isNaN(Z)||(ne=Z),ne<1&&(ne=1)}let ie=ne;if(G.editor&&void 0!==G.editor.indentSize&&"tabSize"!==G.editor.indentSize){const Z=parseInt(G.editor.indentSize,10);isNaN(Z)||(ie=Z),ie<1&&(ie=1)}let se=me.d.insertSpaces;G.editor&&void 0!==G.editor.insertSpaces&&(se="false"!==G.editor.insertSpaces&&Boolean(G.editor.insertSpaces));let ce=st;const fe=G.eol;"\r\n"===fe?ce=2:"\n"===fe&&(ce=1);let ge=me.d.trimAutoWhitespace;G.editor&&void 0!==G.editor.trimAutoWhitespace&&(ge="false"!==G.editor.trimAutoWhitespace&&Boolean(G.editor.trimAutoWhitespace));let Ce=me.d.detectIndentation;G.editor&&void 0!==G.editor.detectIndentation&&(Ce="false"!==G.editor.detectIndentation&&Boolean(G.editor.detectIndentation));let Se=me.d.largeFileOptimizations;return G.editor&&void 0!==G.editor.largeFileOptimizations&&(Se="false"!==G.editor.largeFileOptimizations&&Boolean(G.editor.largeFileOptimizations)),{isForSimpleWidget:Z,tabSize:ne,indentSize:ie,insertSpaces:se,detectIndentation:Ce,defaultEOL:ce,trimAutoWhitespace:ge,largeFileOptimizations:Se}}_getEOL(G,Z){if(G)return this._resourcePropertiesService.getEOL(G,Z);const ne=this._configurationService.getValue("files.eol",{overrideIdentifier:Z});return ne&&"string"==typeof ne&&"auto"!==ne?ne:3===ce.a||2===ce.a?"\n":"\r\n"}_shouldRestoreUndoStack(){const G=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof G||G}getCreationOptions(G,Z,ne){let ie=this._modelCreationOptionsByLanguageAndResource[G+Z];if(!ie){const se=this._configurationService.getValue("editor",{overrideIdentifier:G,resource:Z}),ce=this._getEOL(Z,G);ie=ModelServiceImpl._readModelOptions({editor:se,eol:ce},ne),this._modelCreationOptionsByLanguageAndResource[G+Z]=ie}return ie}_updateModelOptions(){const G=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const Z=Object.keys(this._models);for(let ne=0,ie=Z.length;neG){const Z=[];for(this._disposedModels.forEach(G=>{G.sharesUndoRedoStack||Z.push(G)}),Z.sort((G,Z)=>G.time-Z.time);Z.length>0&&this._disposedModelsHeapSize>G;){const G=Z.shift();this._removeDisposedModel(G.uri),null!==G.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(G.initialUndoRedoSnapshot)}}}_createModelData(G,Z,ne,ie){const se=this.getCreationOptions(Z.language,ne,ie),ce=new ge.b(G,se,Z,ne,this._undoRedoService);if(ne&&this._disposedModels.has(MODEL_ID(ne))){const G=this._removeDisposedModel(ne),Z=this._undoRedoService.getElements(ne),ie=computeModelSha1(ce)===G.sha1;if(ie||G.sharesUndoRedoStack){for(const G of Z.past)Object(Je.b)(G)&&G.matchesResource(ne)&&G.setModel(ce);for(const G of Z.future)Object(Je.b)(G)&&G.matchesResource(ne)&&G.setModel(ce);this._undoRedoService.setElementsValidFlag(ne,!0,G=>Object(Je.b)(G)&&G.matchesResource(ne)),ie&&(ce._overwriteVersionId(G.versionId),ce._overwriteAlternativeVersionId(G.alternativeVersionId),ce._overwriteInitialUndoRedoSnapshot(G.initialUndoRedoSnapshot))}else null!==G.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(G.initialUndoRedoSnapshot)}const fe=MODEL_ID(ce.uri);if(this._models[fe])throw new Error("ModelService: Cannot add model because it already exists!");const me=new ModelData(ce,G=>this._onWillDispose(G),(G,Z)=>this._onDidChangeLanguage(G,Z));return this._models[fe]=me,me}createModel(G,Z,ne,ie=!1){let se;return Z?(se=this._createModelData(G,Z.languageIdentifier,ne,ie),this.setMode(se.model,Z)):se=this._createModelData(G,Se.b,ne,ie),this._onModelAdded.fire(se.model),se.model}setMode(G,Z){if(!Z)return;const ne=this._models[MODEL_ID(G.uri)];ne&&ne.setLanguage(Z)}getModels(){const G=[],Z=Object.keys(this._models);for(let ne=0,ie=Z.length;ne0||Z.future.length>0){for(const ne of Z.past)Object(Je.b)(ne)&&ne.matchesResource(G.uri)&&(se=!0,ce+=ne.heapSize(G.uri),ne.setModel(G.uri));for(const ne of Z.future)Object(Je.b)(ne)&&ne.matchesResource(G.uri)&&(se=!0,ce+=ne.heapSize(G.uri),ne.setModel(G.uri))}}const fe=ModelServiceImpl.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(se)if(!ie&&ce>fe){const G=ne.model.getInitialUndoRedoSnapshot();null!==G&&this._undoRedoService.restoreSnapshot(G)}else this._ensureDisposedModelsHeapSize(fe-ce),this._undoRedoService.setElementsValidFlag(G.uri,!1,Z=>Object(Je.b)(Z)&&Z.matchesResource(G.uri)),this._insertDisposedModel(new DisposedModelInfo(G.uri,ne.model.getInitialUndoRedoSnapshot(),Date.now(),ie,ce,computeModelSha1(G),G.getVersionId(),G.getAlternativeVersionId()));else if(!ie){const G=ne.model.getInitialUndoRedoSnapshot();null!==G&&this._undoRedoService.restoreSnapshot(G)}delete this._models[Z],ne.dispose(),delete this._modelCreationOptionsByLanguageAndResource[G.getLanguageIdentifier().language+G.uri],this._onModelRemoved.fire(G)}_onDidChangeLanguage(G,Z){const ne=Z.oldLanguage,ie=G.getLanguageIdentifier().language,se=this.getCreationOptions(ne,G.uri,G.isForSimpleWidget),ce=this.getCreationOptions(ie,G.uri,G.isForSimpleWidget);ModelServiceImpl._setModelOptionsForModel(G,ce,se),this._onModelModeChanged.fire({model:G,oldModeId:ne})}};ct.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,ct=__decorate([__param(0,ke.a),__param(1,Me.b),__param(2,Ie.b),__param(3,Re.b),__param(4,ze.a)],ct);const ut="editor.semanticHighlighting";function isSemanticColoringEnabled(G,Z,ne){var ie;const se=null===(ie=ne.getValue(ut,{overrideIdentifier:G.getLanguageIdentifier().language,resource:G.uri}))||void 0===ie?void 0:ie.enabled;return"boolean"==typeof se?se:Z.getColorTheme().semanticHighlighting}class SemanticColoringFeature extends se.a{constructor(G,Z,ne,ie){super(),this._watchers=Object.create(null),this._semanticStyling=ie;const register=G=>{this._watchers[G.uri.toString()]=new ModelSemanticColoring(G,Z,this._semanticStyling)},deregister=(G,Z)=>{Z.dispose(),delete this._watchers[G.uri.toString()]},handleSettingOrThemeChange=()=>{for(let ie of G.getModels()){const G=this._watchers[ie.uri.toString()];isSemanticColoringEnabled(ie,Z,ne)?G||register(ie):G&&deregister(ie,G)}};this._register(G.onModelAdded(G=>{isSemanticColoringEnabled(G,Z,ne)&®ister(G)})),this._register(G.onModelRemoved(G=>{const Z=this._watchers[G.uri.toString()];Z&&deregister(G,Z)})),this._register(ne.onDidChangeConfiguration(G=>{G.affectsConfiguration(ut)&&handleSettingOrThemeChange()})),this._register(Z.onDidColorThemeChange(handleSettingOrThemeChange))}}class SemanticStyling extends se.a{constructor(G,Z){super(),this._themeService=G,this._logService=Z,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(G){return this._caches.has(G)||this._caches.set(G,new ot.a(G.getLegend(),this._themeService,this._logService)),this._caches.get(G)}}class SemanticTokensResponse{constructor(G,Z,ne){this._provider=G,this.resultId=Z,this.data=ne}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class ModelSemanticColoring extends se.a{constructor(G,Z,ne){super(),this._isDisposed=!1,this._model=G,this._semanticStyling=ne,this._fetchDocumentSemanticTokens=this._register(new xe.e(()=>this._fetchDocumentSemanticTokensNow(),ModelSemanticColoring.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const bindDocumentChangeListeners=()=>{Object(se.f)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const Z of Ce.l.all(G))"function"==typeof Z.onDidChange&&this._documentProvidersChangeListeners.push(Z.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};bindDocumentChangeListeners(),this._register(Ce.l.onDidChange(()=>{bindDocumentChangeListeners(),this._fetchDocumentSemanticTokens.schedule()})),this._register(Z.onDidColorThemeChange(G=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;const G=new De.b,Z=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,ne=Object(at.b)(this._model,Z,G.token);if(!ne)return void(this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1));const{provider:ie,request:se}=ne;this._currentDocumentRequestCancellationTokenSource=G;const ce=[],me=this._model.onDidChangeContent(G=>{ce.push(G)}),ge=this._semanticStyling.get(ie);se.then(G=>{this._currentDocumentRequestCancellationTokenSource=null,me.dispose(),this._setDocumentSemanticTokens(ie,G||null,ge,ce)},G=>{G&&(fe.d(G)||"string"==typeof G.message&&-1!==G.message.indexOf("busy"))||fe.e(G),this._currentDocumentRequestCancellationTokenSource=null,me.dispose(),ce.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _copy(G,Z,ne,ie,se){for(let ce=0;ce{ie.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule()};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)G&&Z&&G.releaseDocumentSemanticTokens(Z.resultId);else if(G&&ne){if(!Z)return this._model.setSemanticTokens(null,!0),void rescheduleIfNeeded();if(Object(at.d)(Z)){if(!se)return void this._model.setSemanticTokens(null,!0);if(0===Z.edits.length)Z={resultId:Z.resultId,data:se.data};else{let G=0;for(const ne of Z.edits)G+=(ne.data?ne.data.length:0)-ne.deleteCount;const ne=se.data,ie=new Uint32Array(ne.length+G);let ce=ne.length,fe=ie.length;for(let G=Z.edits.length-1;G>=0;G--){const se=Z.edits[G],me=ce-(se.start+se.deleteCount);me>0&&(ModelSemanticColoring._copy(ne,ce-me,ie,fe-me,me),fe-=me),se.data&&(ModelSemanticColoring._copy(se.data,0,ie,fe-se.data.length,se.data.length),fe-=se.data.length),ce=se.start}ce>0&&ModelSemanticColoring._copy(ne,0,ie,0,ce),Z={resultId:Z.resultId,data:ie}}}if(Object(at.c)(Z)){this._currentDocumentResponse=new SemanticTokensResponse(G,Z.resultId,Z.data);const se=Object(ot.b)(Z,ne,this._model.getLanguageIdentifier());if(ie.length>0)for(const G of ie)for(const Z of se)for(const ne of G.changes)Z.applyEdit(ne.range,ne.text);this._model.setSemanticTokens(se,!0)}else this._model.setSemanticTokens(null,!0);rescheduleIfNeeded()}else this._model.setSemanticTokens(null,!1)}}ModelSemanticColoring.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY=300},168:function(G,Z,ne){"use strict";ne.d(Z,"i",(function(){return me})),ne.d(Z,"j",(function(){return ge})),ne.d(Z,"g",(function(){return xe})),ne.d(Z,"f",(function(){return De})),ne.d(Z,"h",(function(){return Re})),ne.d(Z,"a",(function(){return ze})),ne.d(Z,"k",(function(){return $e})),ne.d(Z,"b",(function(){return it})),ne.d(Z,"n",(function(){return ot})),ne.d(Z,"e",(function(){return at})),ne.d(Z,"c",(function(){return st})),ne.d(Z,"d",(function(){return ct})),ne.d(Z,"m",(function(){return ut})),ne.d(Z,"l",(function(){return dt})),ne.d(Z,"o",(function(){return ft})),ne.d(Z,"p",(function(){return _t})),ne.d(Z,"q",(function(){return yt})),ne.d(Z,"r",(function(){return vt})),ne.d(Z,"u",(function(){return Ct})),ne.d(Z,"s",(function(){return St})),ne.d(Z,"v",(function(){return Mt})),ne.d(Z,"t",(function(){return kt}));var ie=ne(4),se=ne(44),ce=ne(13),fe=ne(50);const me=Object(ce.wc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},ie.a("lineHighlight","Background color for the highlight of line at the cursor position.")),ge=Object(ce.wc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},ie.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Ce=Object(ce.wc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},ie.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Se=Object(ce.wc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:ce.b},ie.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),Me=Object(ce.wc)("editor.symbolHighlightBackground",{dark:ce.x,light:ce.x,hc:null},ie.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),ke=Object(ce.wc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:ce.b},ie.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),xe=Object(ce.wc)("editorCursor.foreground",{dark:"#AEAFAD",light:se.a.black,hc:se.a.white},ie.a("caret","Color of the editor cursor.")),De=Object(ce.wc)("editorCursor.background",null,ie.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),Ie=Object(ce.wc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},ie.a("editorWhitespaces","Color of whitespace characters in the editor.")),Re=Object(ce.wc)("editorIndentGuide.background",{dark:Ie,light:Ie,hc:Ie},ie.a("editorIndentGuides","Color of the editor indentation guides.")),ze=Object(ce.wc)("editorIndentGuide.activeBackground",{dark:Ie,light:Ie,hc:Ie},ie.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),$e=Object(ce.wc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:se.a.white},ie.a("editorLineNumbers","Color of editor line numbers.")),Je=Object(ce.wc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:ce.b},ie.a("editorActiveLineNumber","Color of editor active line number"),!1,ie.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),it=Object(ce.wc)("editorLineNumber.activeForeground",{dark:Je,light:Je,hc:Je},ie.a("editorActiveLineNumber","Color of editor active line number")),ot=Object(ce.wc)("editorRuler.foreground",{dark:"#5A5A5A",light:se.a.lightgrey,hc:se.a.white},ie.a("editorRuler","Color of the editor rulers.")),at=Object(ce.wc)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},ie.a("editorCodeLensForeground","Foreground color of editor CodeLens")),st=Object(ce.wc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},ie.a("editorBracketMatchBackground","Background color behind matching brackets")),ct=Object(ce.wc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ce.h},ie.a("editorBracketMatchBorder","Color for matching brackets boxes")),ut=Object(ce.wc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},ie.a("editorOverviewRulerBorder","Color of the overview ruler border.")),dt=Object(ce.wc)("editorOverviewRuler.background",null,ie.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),ht=Object(ce.wc)("editorGutter.background",{dark:ce.r,light:ce.r,hc:ce.r},ie.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),ft=Object(ce.wc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:se.a.fromHex("#fff").transparent(.8)},ie.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),_t=Object(ce.wc)("editorUnnecessaryCode.opacity",{dark:se.a.fromHex("#000a"),light:se.a.fromHex("#0007"),hc:null},ie.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),yt=Object(ce.wc)("editorGhostText.border",{dark:null,light:null,hc:se.a.fromHex("#fff").transparent(.8)},ie.a("editorGhostTextBorder","Border color of ghost text in the editor.")),vt=Object(ce.wc)("editorGhostText.foreground",{dark:se.a.fromHex("#ffffff56"),light:se.a.fromHex("#0007"),hc:null},ie.a("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),wt=new se.a(new se.c(0,122,204,.6)),Ct=Object(ce.wc)("editorOverviewRuler.rangeHighlightForeground",{dark:wt,light:wt,hc:wt},ie.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),St=Object(ce.wc)("editorOverviewRuler.errorForeground",{dark:new se.a(new se.c(255,18,18,.7)),light:new se.a(new se.c(255,18,18,.7)),hc:new se.a(new se.c(255,50,50,1))},ie.a("overviewRuleError","Overview ruler marker color for errors.")),Mt=Object(ce.wc)("editorOverviewRuler.warningForeground",{dark:ce.X,light:ce.X,hc:ce.W},ie.a("overviewRuleWarning","Overview ruler marker color for warnings.")),kt=Object(ce.wc)("editorOverviewRuler.infoForeground",{dark:ce.M,light:ce.M,hc:ce.L},ie.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(fe.f)((G,Z)=>{const ne=G.getColor(ce.r);ne&&Z.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${ne}; }`);const ie=G.getColor(ce.B);ie&&Z.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${ie}; }`);const se=G.getColor(ht);se&&Z.addRule(`.monaco-editor .margin { background-color: ${se}; }`);const fe=G.getColor(Ce);fe&&Z.addRule(`.monaco-editor .rangeHighlight { background-color: ${fe}; }`);const me=G.getColor(Se);me&&Z.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===G.type?"dotted":"solid"} ${me}; }`);const ge=G.getColor(Me);ge&&Z.addRule(`.monaco-editor .symbolHighlight { background-color: ${ge}; }`);const xe=G.getColor(ke);xe&&Z.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===G.type?"dotted":"solid"} ${xe}; }`);const De=G.getColor(Ie);De&&(Z.addRule(`.monaco-editor .mtkw { color: ${De} !important; }`),Z.addRule(`.monaco-editor .mtkz { color: ${De} !important; }`))})},1680:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"getSelectionSearchString",(function(){return getSelectionSearchString})),ne.d(Z,"CommonFindController",(function(){return Zn})),ne.d(Z,"FindController",(function(){return Jn})),ne.d(Z,"StartFindAction",(function(){return Qn})),ne.d(Z,"StartFindWithSelectionAction",(function(){return findController_StartFindWithSelectionAction})),ne.d(Z,"MatchFindAction",(function(){return findController_MatchFindAction})),ne.d(Z,"NextMatchFindAction",(function(){return findController_NextMatchFindAction})),ne.d(Z,"PreviousMatchFindAction",(function(){return findController_PreviousMatchFindAction})),ne.d(Z,"SelectionMatchFindAction",(function(){return findController_SelectionMatchFindAction})),ne.d(Z,"NextSelectionMatchFindAction",(function(){return findController_NextSelectionMatchFindAction})),ne.d(Z,"PreviousSelectionMatchFindAction",(function(){return findController_PreviousSelectionMatchFindAction})),ne.d(Z,"StartFindReplaceAction",(function(){return er}));var ie=ne(4),se=ne(57),ce=ne(10),fe=ne(27),me=ne(14),ge=ne(23),Ce=ne(223),Se=ne(34),Me=ne(12),ke=ne(80),xe=ne(467),De=ne(194),Ie=ne(117),Re=ne(13),ze=ne(50);class findDecorations_FindDecorations{constructor(G){this._editor=G,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const G=this._findScopeDecorationIds.map(G=>this._editor.getModel().getDecorationRange(G)).filter(G=>!!G);if(G.length)return G}return null}getStartPosition(){return this._startPosition}setStartPosition(G){this._startPosition=G,this.setCurrentFindMatch(null)}_getDecorationIndex(G){const Z=this._decorations.indexOf(G);return Z>=0?Z+1:1}getCurrentMatchesPosition(G){let Z=this._editor.getModel().getDecorationsInRange(G);for(const G of Z){const Z=G.options;if(Z===findDecorations_FindDecorations._FIND_MATCH_DECORATION||Z===findDecorations_FindDecorations._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(G.id)}return 0}setCurrentFindMatch(G){let Z=null,ne=0;if(G)for(let ie=0,se=this._decorations.length;ie{if(null!==this._highlightedDecorationId&&(G.changeDecorationOptions(this._highlightedDecorationId,findDecorations_FindDecorations._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==Z&&(this._highlightedDecorationId=Z,G.changeDecorationOptions(this._highlightedDecorationId,findDecorations_FindDecorations._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(G.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==Z){let ne=this._editor.getModel().getDecorationRange(Z);if(ne.startLineNumber!==ne.endLineNumber&&1===ne.endColumn){let G=ne.endLineNumber-1,Z=this._editor.getModel().getLineMaxColumn(G);ne=new Me.a(ne.startLineNumber,ne.startColumn,G,Z)}this._rangeHighlightDecorationId=G.addDecoration(ne,findDecorations_FindDecorations._RANGE_HIGHLIGHT_DECORATION)}}),ne}set(G,Z){this._editor.changeDecorations(ne=>{let ie=findDecorations_FindDecorations._FIND_MATCH_DECORATION,se=[];if(G.length>1e3){ie=findDecorations_FindDecorations._FIND_MATCH_NO_OVERVIEW_DECORATION;const Z=this._editor.getModel().getLineCount(),ne=this._editor.getLayoutInfo().height/Z,ce=Math.max(2,Math.ceil(3/ne));let fe=G[0].range.startLineNumber,me=G[0].range.endLineNumber;for(let Z=1,ne=G.length;Z=ne.startLineNumber?ne.endLineNumber>me&&(me=ne.endLineNumber):(se.push({range:new Me.a(fe,1,me,1),options:findDecorations_FindDecorations._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),fe=ne.startLineNumber,me=ne.endLineNumber)}se.push({range:new Me.a(fe,1,me,1),options:findDecorations_FindDecorations._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let ce=new Array(G.length);for(let Z=0,ne=G.length;Zne.removeDecoration(G)),this._findScopeDecorationIds=[]),(null==Z?void 0:Z.length)&&(this._findScopeDecorationIds=Z.map(G=>ne.addDecoration(G,findDecorations_FindDecorations._FIND_SCOPE_DECORATION)))})}matchBeforePosition(G){if(0===this._decorations.length)return null;for(let Z=this._decorations.length-1;Z>=0;Z--){let ne=this._decorations[Z],ie=this._editor.getModel().getDecorationRange(ne);if(ie&&!(ie.endLineNumber>G.lineNumber)){if(ie.endLineNumberG.column))return ie}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(G){if(0===this._decorations.length)return null;for(let Z=0,ne=this._decorations.length;ZG.lineNumber)return ie;if(!(ie.startColumn0){let G=[];for(let Z=0;ZMe.a.compareRangesUsingStarts(G.range,Z.range));let ne=[],ie=G[0];for(let Z=1;Z0?Z[0].toUpperCase()+Z.substr(1):G[0][0].toUpperCase()!==G[0][0]&&Z.length>0?Z[0].toLowerCase()+Z.substr(1):Z}return Z}function validateSpecificSpecialCharacter(G,Z,ne){return-1!==G[0].indexOf(ne)&&-1!==Z.indexOf(ne)&&G[0].split(ne).length===Z.split(ne).length}function buildReplaceStringForSpecificSpecialCharacter(G,Z,ne){const ie=Z.split(ne),se=G[0].split(ne);let ce="";return ie.forEach((G,Z)=>{ce+=buildReplaceStringWithCasePreserved([se[Z]],G)+ne}),ce.slice(0,-1)}class StaticValueReplacePattern{constructor(G){this.staticValue=G,this.kind=0}}class DynamicPiecesReplacePattern{constructor(G){this.pieces=G,this.kind=1}}class replacePattern_ReplacePattern{constructor(G){G&&0!==G.length?1===G.length&&null!==G[0].staticValue?this._state=new StaticValueReplacePattern(G[0].staticValue):this._state=new DynamicPiecesReplacePattern(G):this._state=new StaticValueReplacePattern("")}static fromStaticValue(G){return new replacePattern_ReplacePattern([ReplacePiece.staticValue(G)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(G,Z){if(0===this._state.kind)return Z?buildReplaceStringWithCasePreserved(G,this._state.staticValue):this._state.staticValue;let ne="";for(let Z=0,ie=this._state.pieces.length;Z0){let G=[],Z=ie.caseOps.length,ne=0;for(let ce=0,fe=se.length;ce=Z){G.push(se.slice(ce));break}switch(ie.caseOps[ne]){case"U":G.push(se[ce].toUpperCase());break;case"u":G.push(se[ce].toUpperCase()),ne++;break;case"L":G.push(se[ce].toLowerCase());break;case"l":G.push(se[ce].toLowerCase()),ne++;break;default:G.push(se[ce])}}se=G.join("")}ne+=se}return ne}static _substitute(G,Z){if(null===Z)return"";if(0===G)return Z[0];let ne="";for(;G>0;){if(Gthis.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(G=>{3!==G.reason&&5!==G.reason&&6!==G.reason||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(G=>{this._ignoreModelContentChanged||(G.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(G=>this._onStateChanged(G))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(ce.f)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(G){if(!this._isDisposed&&this._editor.hasModel()&&(G.searchString||G.isReplaceRevealed||G.isRegex||G.wholeWord||G.matchCase||G.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{G.searchScope?this.research(G.moveCursor,this._state.searchScope):this.research(G.moveCursor)},240)):G.searchScope?this.research(G.moveCursor,this._state.searchScope):this.research(G.moveCursor)}}static _getSearchRange(G,Z){return Z||G.getFullModelRange()}research(G,Z){let ne=null;void 0!==Z?null!==Z&&(ne=Array.isArray(Z)?Z:[Z]):ne=this._decorations.getFindScopes(),null!==ne&&(ne=ne.map(G=>{if(G.startLineNumber!==G.endLineNumber){let Z=G.endLineNumber;return 1===G.endColumn&&(Z-=1),new Me.a(G.startLineNumber,1,Z,this._editor.getModel().getLineMaxColumn(Z))}return G}));let ie=this._findMatches(ne,!1,19999);this._decorations.set(ie,ne);const se=this._editor.getSelection();let ce=this._decorations.getCurrentMatchesPosition(se);if(0===ce&&ie.length>0){const G=Object(Je.i)(ie.map(G=>G.range),G=>Me.a.compareRangesUsingStarts(G,se)>=0);ce=G>0?G-1+1:ce}this._state.changeMatchInfo(ce,this._decorations.getCount(),void 0),G&&this._editor.getOption(33).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let G=this._decorations.getFindScope();return G&&this._editor.revealRangeInCenterIfOutsideViewport(G,0),!0}return!1}_setCurrentFindMatch(G){let Z=this._decorations.setCurrentFindMatch(G);this._state.changeMatchInfo(Z,this._decorations.getCount(),G),this._editor.setSelection(G),this._editor.revealRangeInCenterIfOutsideViewport(G,0)}_prevSearchPosition(G){let Z=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:ne,column:ie}=G,se=this._editor.getModel();return Z||1===ie?(1===ne?ne=se.getLineCount():ne--,ie=se.getLineMaxColumn(ne)):ie--,new Se.a(ne,ie)}_moveToPrevMatch(G,Z=!1){if(!this._state.canNavigateBack()){const Z=this._decorations.matchAfterPosition(G);return void(Z&&this._setCurrentFindMatch(Z))}if(this._decorations.getCount()<19999){let Z=this._decorations.matchBeforePosition(G);return Z&&Z.isEmpty()&&Z.getStartPosition().equals(G)&&(G=this._prevSearchPosition(G),Z=this._decorations.matchBeforePosition(G)),void(Z&&this._setCurrentFindMatch(Z))}if(this._cannotFind())return;let ne=this._decorations.getFindScope(),ie=findModel_FindModelBoundToEditorModel._getSearchRange(this._editor.getModel(),ne);ie.getEndPosition().isBefore(G)&&(G=ie.getEndPosition()),G.isBefore(ie.getStartPosition())&&(G=ie.getEndPosition());let{lineNumber:se,column:ce}=G,fe=this._editor.getModel(),me=new Se.a(se,ce),ge=fe.findPreviousMatch(this._state.searchString,me,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,!1);return ge&&ge.range.isEmpty()&&ge.range.getStartPosition().equals(me)&&(me=this._prevSearchPosition(me),ge=fe.findPreviousMatch(this._state.searchString,me,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,!1)),ge?Z||ie.containsRange(ge.range)?void this._setCurrentFindMatch(ge.range):this._moveToPrevMatch(ge.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(G){let Z=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:ne,column:ie}=G,se=this._editor.getModel();return Z||ie===se.getLineMaxColumn(ne)?(ne===se.getLineCount()?ne=1:ne++,ie=1):ie++,new Se.a(ne,ie)}_moveToNextMatch(G){if(!this._state.canNavigateForward()){const Z=this._decorations.matchBeforePosition(G);return void(Z&&this._setCurrentFindMatch(Z))}if(this._decorations.getCount()<19999){let Z=this._decorations.matchAfterPosition(G);return Z&&Z.isEmpty()&&Z.getStartPosition().equals(G)&&(G=this._nextSearchPosition(G),Z=this._decorations.matchAfterPosition(G)),void(Z&&this._setCurrentFindMatch(Z))}let Z=this._getNextMatch(G,!1,!0);Z&&this._setCurrentFindMatch(Z.range)}_getNextMatch(G,Z,ne,ie=!1){if(this._cannotFind())return null;let se=this._decorations.getFindScope(),ce=findModel_FindModelBoundToEditorModel._getSearchRange(this._editor.getModel(),se);ce.getEndPosition().isBefore(G)&&(G=ce.getStartPosition()),G.isBefore(ce.getStartPosition())&&(G=ce.getStartPosition());let{lineNumber:fe,column:me}=G,ge=this._editor.getModel(),Ce=new Se.a(fe,me),Me=ge.findNextMatch(this._state.searchString,Ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,Z);return ne&&Me&&Me.range.isEmpty()&&Me.range.getStartPosition().equals(Ce)&&(Ce=this._nextSearchPosition(Ce),Me=ge.findNextMatch(this._state.searchString,Ce,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,Z)),Me?ie||ce.containsRange(Me.range)?Me:this._getNextMatch(Me.range.getEndPosition(),Z,ne,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?function parseReplaceString(G){if(!G||0===G.length)return new replacePattern_ReplacePattern(null);let Z=[],ne=new ReplacePieceBuilder(G);for(let ie=0,se=G.length;ie=se)break;let ce=G.charCodeAt(ie);if(36===ce){ne.emitUnchanged(ie-1),ne.emitStatic("$",ie+1);continue}if(48===ce||38===ce){ne.emitUnchanged(ie-1),ne.emitMatchIndex(0,ie+1,Z),Z.length=0;continue}if(49<=ce&&ce<=57){let fe=ce-48;if(ie+1=se)break;let ce=G.charCodeAt(ie);switch(ce){case 92:ne.emitUnchanged(ie-1),ne.emitStatic("\\",ie+1);break;case 110:ne.emitUnchanged(ie-1),ne.emitStatic("\n",ie+1);break;case 116:ne.emitUnchanged(ie-1),ne.emitStatic("\t",ie+1);break;case 117:case 85:case 108:case 76:ne.emitUnchanged(ie-1),ne.emitStatic("",ie+1),Z.push(String.fromCharCode(ce))}}}return ne.finalize()}(this._state.replaceString):replacePattern_ReplacePattern.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let G=this._getReplacePattern(),Z=this._editor.getSelection(),ne=this._getNextMatch(Z.getStartPosition(),!0,!1);if(ne)if(Z.equalsRange(ne.range)){let ie=G.buildReplaceString(ne.matches,this._state.preserveCase),se=new Ce.a(Z,ie);this._executeEditorCommand("replace",se),this._decorations.setStartPosition(new Se.a(Z.startLineNumber,Z.startColumn+ie.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(ne.range)}_findMatches(G,Z,ne){const ie=(G||[null]).map(G=>findModel_FindModelBoundToEditorModel._getSearchRange(this._editor.getModel(),G));return this._editor.getModel().findMatches(this._state.searchString,ie,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,Z,ne)}replaceAll(){if(!this._hasMatches())return;const G=this._decorations.getFindScopes();null===G&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(G),this.research(!1)}_largeReplaceAll(){const G=new xe.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null).parseSearchRequest();if(!G)return;let Z=G.regex;if(!Z.multiline){let G="mu";Z.ignoreCase&&(G+="i"),Z.global&&(G+="g"),Z=new RegExp(Z.source,G)}const ne=this._editor.getModel(),ie=ne.getValue(1),se=ne.getFullModelRange(),ce=this._getReplacePattern();let fe;const me=this._state.preserveCase;fe=ce.hasReplacementPatterns||me?ie.replace(Z,(function(){return ce.buildReplaceString(arguments,me)})):ie.replace(Z,ce.buildReplaceString(null,me));let ge=new Ce.b(se,fe,this._editor.getSelection());this._executeEditorCommand("replaceAll",ge)}_regularReplaceAll(G){const Z=this._getReplacePattern();let ne=this._findMatches(G,Z.hasReplacementPatterns||this._state.preserveCase,1073741824),ie=[];for(let G=0,se=ne.length;GG.range),ie);this._executeEditorCommand("replaceAll",se)}selectAllMatches(){if(!this._hasMatches())return;let G=this._decorations.getFindScopes(),Z=this._findMatches(G,!1,1073741824).map(G=>new ke.a(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn)),ne=this._editor.getSelection();for(let G=0,ie=Z.length;G{this.checked=!this._checked,this._onChange.fire(!1),G.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,G=>{if(10===G.keyCode||3===G.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),void G.preventDefault();this._onKeyDown.fire(G)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(G){this._checked=G,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(G){G.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=G.inputActiveOptionBorder),G.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=G.inputActiveOptionForeground),G.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=G.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const Bt=ie.a("caseDescription","Match Case"),Ft=ie.a("wordsDescription","Match Whole Word"),Ht=ie.a("regexDescription","Use Regular Expression");class findInputCheckboxes_CaseSensitiveCheckbox extends checkbox_Checkbox{constructor(G){super({icon:qt.b.caseSensitive,title:Bt+G.appendTitle,isChecked:G.isChecked,inputActiveOptionBorder:G.inputActiveOptionBorder,inputActiveOptionForeground:G.inputActiveOptionForeground,inputActiveOptionBackground:G.inputActiveOptionBackground})}}class findInputCheckboxes_WholeWordsCheckbox extends checkbox_Checkbox{constructor(G){super({icon:qt.b.wholeWord,title:Ft+G.appendTitle,isChecked:G.isChecked,inputActiveOptionBorder:G.inputActiveOptionBorder,inputActiveOptionForeground:G.inputActiveOptionForeground,inputActiveOptionBackground:G.inputActiveOptionBackground})}}class findInputCheckboxes_RegexCheckbox extends checkbox_Checkbox{constructor(G){super({icon:qt.b.regex,title:Ht+G.appendTitle,isChecked:G.isChecked,inputActiveOptionBorder:G.inputActiveOptionBorder,inputActiveOptionForeground:G.inputActiveOptionForeground,inputActiveOptionBackground:G.inputActiveOptionBackground})}}class findOptionsWidget_FindOptionsWidget extends Nt.a{constructor(G,Z,ne,ie){super(),this._hideSoon=this._register(new se.e(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=G,this._state=Z,this._keybindingService=ne,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const ce=ie.getColorTheme().getColor(Re.hb),fe=ie.getColorTheme().getColor(Re.ib),me=ie.getColorTheme().getColor(Re.gb);this.caseSensitive=this._register(new findInputCheckboxes_CaseSensitiveCheckbox({appendTitle:this._keybindingLabelFor(kt),isChecked:this._state.matchCase,inputActiveOptionBorder:ce,inputActiveOptionForeground:fe,inputActiveOptionBackground:me})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new findInputCheckboxes_WholeWordsCheckbox({appendTitle:this._keybindingLabelFor(xt),isChecked:this._state.wholeWord,inputActiveOptionBorder:ce,inputActiveOptionForeground:fe,inputActiveOptionBackground:me})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new findInputCheckboxes_RegexCheckbox({appendTitle:this._keybindingLabelFor(Lt),isChecked:this._state.isRegex,inputActiveOptionBorder:ce,inputActiveOptionForeground:fe,inputActiveOptionBackground:me})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(G=>{let Z=!1;G.isRegex&&(this.regex.checked=this._state.isRegex,Z=!0),G.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,Z=!0),G.matchCase&&(this.caseSensitive.checked=this._state.matchCase,Z=!0),!this._state.isRevealed&&Z&&this._revealTemporarily()})),this._register(It.j(this._domNode,G=>this._onMouseOut())),this._register(It.i(this._domNode,"mouseover",G=>this._onMouseOver())),this._applyTheme(ie.getColorTheme()),this._register(ie.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(G){let Z=this._keybindingService.lookupKeybinding(G);return Z?` (${Z.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return findOptionsWidget_FindOptionsWidget.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(G){let Z={inputActiveOptionBorder:G.getColor(Re.hb),inputActiveOptionForeground:G.getColor(Re.ib),inputActiveOptionBackground:G.getColor(Re.gb)};this.caseSensitive.style(Z),this.wholeWords.style(Z),this.regex.style(Z)}}function effectiveOptionValue(G,Z){return 1===G||2!==G&&Z}findOptionsWidget_FindOptionsWidget.ID="editor.contrib.findOptionsWidget",Object(ze.f)((G,Z)=>{const ne=G.getColor(Re.Y);ne&&Z.addRule(`.monaco-editor .findOptionsWidget { background-color: ${ne}; }`);const ie=G.getColor(Re.ab);ie&&Z.addRule(`.monaco-editor .findOptionsWidget { color: ${ie}; }`);const se=G.getColor(Re.Mc);se&&Z.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${se}; }`);const ce=G.getColor(Re.h);ce&&Z.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${ce}; }`)});class findState_FindReplaceState extends ce.a{constructor(){super(),this._onFindReplaceStateChange=this._register(new zt.b),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return effectiveOptionValue(this._isRegexOverride,this._isRegex)}get wholeWord(){return effectiveOptionValue(this._wholeWordOverride,this._wholeWord)}get matchCase(){return effectiveOptionValue(this._matchCaseOverride,this._matchCase)}get preserveCase(){return effectiveOptionValue(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(G,Z,ne){let ie={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},se=!1;0===Z&&(G=0),G>Z&&(G=Z),this._matchesPosition!==G&&(this._matchesPosition=G,ie.matchesPosition=!0,se=!0),this._matchesCount!==Z&&(this._matchesCount=Z,ie.matchesCount=!0,se=!0),void 0!==ne&&(Me.a.equalsRange(this._currentMatch,ne)||(this._currentMatch=ne,ie.currentMatch=!0,se=!0)),se&&this._onFindReplaceStateChange.fire(ie)}change(G,Z,ne=!0){var ie;let se={moveCursor:Z,updateHistory:ne,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},ce=!1;const fe=this.isRegex,me=this.wholeWord,ge=this.matchCase,Ce=this.preserveCase;void 0!==G.searchString&&this._searchString!==G.searchString&&(this._searchString=G.searchString,se.searchString=!0,ce=!0),void 0!==G.replaceString&&this._replaceString!==G.replaceString&&(this._replaceString=G.replaceString,se.replaceString=!0,ce=!0),void 0!==G.isRevealed&&this._isRevealed!==G.isRevealed&&(this._isRevealed=G.isRevealed,se.isRevealed=!0,ce=!0),void 0!==G.isReplaceRevealed&&this._isReplaceRevealed!==G.isReplaceRevealed&&(this._isReplaceRevealed=G.isReplaceRevealed,se.isReplaceRevealed=!0,ce=!0),void 0!==G.isRegex&&(this._isRegex=G.isRegex),void 0!==G.wholeWord&&(this._wholeWord=G.wholeWord),void 0!==G.matchCase&&(this._matchCase=G.matchCase),void 0!==G.preserveCase&&(this._preserveCase=G.preserveCase),void 0!==G.searchScope&&((null===(ie=G.searchScope)||void 0===ie?void 0:ie.every(G=>{var Z;return null===(Z=this._searchScope)||void 0===Z?void 0:Z.some(Z=>!Me.a.equalsRange(Z,G))}))||(this._searchScope=G.searchScope,se.searchScope=!0,ce=!0)),void 0!==G.loop&&this._loop!==G.loop&&(this._loop=G.loop,se.loop=!0,ce=!0),this._isRegexOverride=void 0!==G.isRegexOverride?G.isRegexOverride:0,this._wholeWordOverride=void 0!==G.wholeWordOverride?G.wholeWordOverride:0,this._matchCaseOverride=void 0!==G.matchCaseOverride?G.matchCaseOverride:0,this._preserveCaseOverride=void 0!==G.preserveCaseOverride?G.preserveCaseOverride:0,fe!==this.isRegex&&(ce=!0,se.isRegex=!0),me!==this.wholeWord&&(ce=!0,se.wholeWord=!0),ge!==this.matchCase&&(ce=!0,se.matchCase=!0),Ce!==this.preserveCase&&(ce=!0,se.preserveCase=!0),ce&&this._onFindReplaceStateChange.fire(se)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=19999}}ne(7596);var $t=ne(215),Vt=ne(537),Yt=ne(51),Ut=ne(46),Kt=(ne(4151),ne(1355));const Gt=ie.a("defaultLabel","input");class findInput_FindInput extends Nt.a{constructor(G,Z,ne,ie){super(),this._showOptionButtons=ne,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new zt.b),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new zt.b),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new zt.b),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new zt.b),this._onKeyUp=this._register(new zt.b),this._onCaseSensitiveKeyDown=this._register(new zt.b),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new zt.b),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=Z,this.placeholder=ie.placeholder||"",this.validation=ie.validation,this.label=ie.label||Gt,this.inputActiveOptionBorder=ie.inputActiveOptionBorder,this.inputActiveOptionForeground=ie.inputActiveOptionForeground,this.inputActiveOptionBackground=ie.inputActiveOptionBackground,this.inputBackground=ie.inputBackground,this.inputForeground=ie.inputForeground,this.inputBorder=ie.inputBorder,this.inputValidationInfoBorder=ie.inputValidationInfoBorder,this.inputValidationInfoBackground=ie.inputValidationInfoBackground,this.inputValidationInfoForeground=ie.inputValidationInfoForeground,this.inputValidationWarningBorder=ie.inputValidationWarningBorder,this.inputValidationWarningBackground=ie.inputValidationWarningBackground,this.inputValidationWarningForeground=ie.inputValidationWarningForeground,this.inputValidationErrorBorder=ie.inputValidationErrorBorder,this.inputValidationErrorBackground=ie.inputValidationErrorBackground,this.inputValidationErrorForeground=ie.inputValidationErrorForeground;const se=ie.appendCaseSensitiveLabel||"",ce=ie.appendWholeWordsLabel||"",fe=ie.appendRegexLabel||"",me=ie.history||[],ge=!!ie.flexibleHeight,Ce=!!ie.flexibleWidth,Se=ie.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new Kt.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:me,flexibleHeight:ge,flexibleWidth:Ce,flexibleMaxHeight:Se})),this.regex=this._register(new findInputCheckboxes_RegexCheckbox({appendTitle:fe,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(G=>{this._onDidOptionChange.fire(G),!G&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(G=>{this._onRegexKeyDown.fire(G)})),this.wholeWords=this._register(new findInputCheckboxes_WholeWordsCheckbox({appendTitle:ce,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(G=>{this._onDidOptionChange.fire(G),!G&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new findInputCheckboxes_CaseSensitiveCheckbox({appendTitle:se,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(G=>{this._onDidOptionChange.fire(G),!G&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(G=>{this._onCaseSensitiveKeyDown.fire(G)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let Me=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,G=>{if(G.equals(15)||G.equals(17)||G.equals(9)){let Z=Me.indexOf(document.activeElement);if(Z>=0){let ne=-1;G.equals(17)?ne=(Z+1)%Me.length:G.equals(15)&&(ne=0===Z?Me.length-1:Z-1),G.equals(9)?(Me[Z].blur(),this.inputBox.focus()):ne>=0&&Me[ne].focus(),It.c.stop(G,!0)}}});let ke=document.createElement("div");ke.className="controls",ke.style.display=this._showOptionButtons?"block":"none",ke.appendChild(this.caseSensitive.domNode),ke.appendChild(this.wholeWords.domNode),ke.appendChild(this.regex.domNode),this.domNode.appendChild(ke),G&&G.appendChild(this.domNode),this._register(It.i(this.inputBox.inputElement,"compositionstart",G=>{this.imeSessionInProgress=!0})),this._register(It.i(this.inputBox.inputElement,"compositionend",G=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,G=>this._onKeyDown.fire(G)),this.onkeyup(this.inputBox.inputElement,G=>this._onKeyUp.fire(G)),this.oninput(this.inputBox.inputElement,G=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,G=>this._onMouseDown.fire(G))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(G){this.fixFocusOnOptionClickEnabled=G}setEnabled(G){G?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(G){this.inputBox.value!==G&&(this.inputBox.value=G)}style(G){this.inputActiveOptionBorder=G.inputActiveOptionBorder,this.inputActiveOptionForeground=G.inputActiveOptionForeground,this.inputActiveOptionBackground=G.inputActiveOptionBackground,this.inputBackground=G.inputBackground,this.inputForeground=G.inputForeground,this.inputBorder=G.inputBorder,this.inputValidationInfoBackground=G.inputValidationInfoBackground,this.inputValidationInfoForeground=G.inputValidationInfoForeground,this.inputValidationInfoBorder=G.inputValidationInfoBorder,this.inputValidationWarningBackground=G.inputValidationWarningBackground,this.inputValidationWarningForeground=G.inputValidationWarningForeground,this.inputValidationWarningBorder=G.inputValidationWarningBorder,this.inputValidationErrorBackground=G.inputValidationErrorBackground,this.inputValidationErrorForeground=G.inputValidationErrorForeground,this.inputValidationErrorBorder=G.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const G={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(G),this.wholeWords.style(G),this.caseSensitive.style(G);const Z={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Z)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(G){this.caseSensitive.checked=G}getWholeWords(){return this.wholeWords.checked}setWholeWords(G){this.wholeWords.checked=G}getRegex(){return this.regex.checked}setRegex(G){this.regex.checked=G,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}var Zt=ne(378);const Jt=ie.a("defaultLabel","input"),Qt=ie.a("label.preserveCaseCheckbox","Preserve Case");class replaceInput_PreserveCaseCheckbox extends checkbox_Checkbox{constructor(G){super({icon:qt.b.preserveCase,title:Qt+G.appendTitle,isChecked:G.isChecked,inputActiveOptionBorder:G.inputActiveOptionBorder,inputActiveOptionForeground:G.inputActiveOptionForeground,inputActiveOptionBackground:G.inputActiveOptionBackground})}}class replaceInput_ReplaceInput extends Nt.a{constructor(G,Z,ne,ie){super(),this._showOptionButtons=ne,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new zt.b),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new zt.b),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new zt.b),this._onInput=this._register(new zt.b),this._onKeyUp=this._register(new zt.b),this._onPreserveCaseKeyDown=this._register(new zt.b),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=Z,this.placeholder=ie.placeholder||"",this.validation=ie.validation,this.label=ie.label||Jt,this.inputActiveOptionBorder=ie.inputActiveOptionBorder,this.inputActiveOptionForeground=ie.inputActiveOptionForeground,this.inputActiveOptionBackground=ie.inputActiveOptionBackground,this.inputBackground=ie.inputBackground,this.inputForeground=ie.inputForeground,this.inputBorder=ie.inputBorder,this.inputValidationInfoBorder=ie.inputValidationInfoBorder,this.inputValidationInfoBackground=ie.inputValidationInfoBackground,this.inputValidationInfoForeground=ie.inputValidationInfoForeground,this.inputValidationWarningBorder=ie.inputValidationWarningBorder,this.inputValidationWarningBackground=ie.inputValidationWarningBackground,this.inputValidationWarningForeground=ie.inputValidationWarningForeground,this.inputValidationErrorBorder=ie.inputValidationErrorBorder,this.inputValidationErrorBackground=ie.inputValidationErrorBackground,this.inputValidationErrorForeground=ie.inputValidationErrorForeground;const se=ie.appendPreserveCaseLabel||"",ce=ie.history||[],fe=!!ie.flexibleHeight,me=!!ie.flexibleWidth,ge=ie.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new Kt.a(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:ce,flexibleHeight:fe,flexibleWidth:me,flexibleMaxHeight:ge})),this.preserveCase=this._register(new replaceInput_PreserveCaseCheckbox({appendTitle:se,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(G=>{this._onDidOptionChange.fire(G),!G&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(G=>{this._onPreserveCaseKeyDown.fire(G)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let Ce=[this.preserveCase.domNode];this.onkeydown(this.domNode,G=>{if(G.equals(15)||G.equals(17)||G.equals(9)){let Z=Ce.indexOf(document.activeElement);if(Z>=0){let ne=-1;G.equals(17)?ne=(Z+1)%Ce.length:G.equals(15)&&(ne=0===Z?Ce.length-1:Z-1),G.equals(9)?(Ce[Z].blur(),this.inputBox.focus()):ne>=0&&Ce[ne].focus(),It.c.stop(G,!0)}}});let Se=document.createElement("div");Se.className="controls",Se.style.display=this._showOptionButtons?"block":"none",Se.appendChild(this.preserveCase.domNode),this.domNode.appendChild(Se),G&&G.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,G=>this._onKeyDown.fire(G)),this.onkeyup(this.inputBox.inputElement,G=>this._onKeyUp.fire(G)),this.oninput(this.inputBox.inputElement,G=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,G=>this._onMouseDown.fire(G))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(G){G?this.enable():this.disable()}style(G){this.inputActiveOptionBorder=G.inputActiveOptionBorder,this.inputActiveOptionForeground=G.inputActiveOptionForeground,this.inputActiveOptionBackground=G.inputActiveOptionBackground,this.inputBackground=G.inputBackground,this.inputForeground=G.inputForeground,this.inputBorder=G.inputBorder,this.inputValidationInfoBackground=G.inputValidationInfoBackground,this.inputValidationInfoForeground=G.inputValidationInfoForeground,this.inputValidationInfoBorder=G.inputValidationInfoBorder,this.inputValidationWarningBackground=G.inputValidationWarningBackground,this.inputValidationWarningForeground=G.inputValidationWarningForeground,this.inputValidationWarningBorder=G.inputValidationWarningBorder,this.inputValidationErrorBackground=G.inputValidationErrorBackground,this.inputValidationErrorForeground=G.inputValidationErrorForeground,this.inputValidationErrorBorder=G.inputValidationErrorBorder,this.applyStyles()}applyStyles(){if(this.domNode){const G={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(G);const Z={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Z)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(G){this.preserveCase.checked=G}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(G){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=G,this.domNode.style.width=G+"px"}dispose(){super.dispose()}}var __decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};function getContextScopedWidget(G,Z){return G.getContext(document.activeElement).getValue(Z)}function createAndBindHistoryNavigationWidgetScopedContextKeyService(G,Z){const ne=function createWidgetScopedContextKeyService(G,Z){return G.createScoped(Z.target)}(G,Z);!function bindContextScopedWidget(G,Z,ne){new $e.c(ne,Z).bindTo(G)}(ne,Z,"historyNavigationWidget");return{scopedContextKeyService:ne,historyNavigationEnablement:new $e.c("historyNavigationEnabled",!0).bindTo(ne)}}let on=class ContextScopedFindInput extends findInput_FindInput{constructor(G,Z,ne,ie,se=!1){super(G,Z,se,ne),this._register(createAndBindHistoryNavigationWidgetScopedContextKeyService(ie,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};on=__decorate([__param(3,$e.b)],on);let sn=class ContextScopedReplaceInput extends replaceInput_ReplaceInput{constructor(G,Z,ne,ie,se=!1){super(G,Z,se,ne),this._register(createAndBindHistoryNavigationWidgetScopedContextKeyService(ie,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};sn=__decorate([__param(3,$e.b)],sn),Zt.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:$e.a.and($e.a.has("historyNavigationWidget"),$e.a.equals("historyNavigationEnabled",!0)),primary:16,secondary:[528],handler:(G,Z)=>{const ne=getContextScopedWidget(G.get($e.b),"historyNavigationWidget");if(ne){ne.historyNavigator.showPreviousValue()}}}),Zt.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:$e.a.and($e.a.has("historyNavigationWidget"),$e.a.equals("historyNavigationEnabled",!0)),primary:18,secondary:[530],handler:(G,Z)=>{const ne=getContextScopedWidget(G.get($e.b),"historyNavigationWidget");if(ne){ne.historyNavigator.showNextValue()}}});var cn=ne(296),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const dn=Object(cn.b)("find-selection",qt.b.selection,ie.a("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),mn=Object(cn.b)("find-collapsed",qt.b.chevronRight,ie.a("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),_n=Object(cn.b)("find-expanded",qt.b.chevronDown,ie.a("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),gn=Object(cn.b)("find-replace",qt.b.replace,ie.a("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),bn=Object(cn.b)("find-replace-all",qt.b.replaceAll,ie.a("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),yn=Object(cn.b)("find-previous-match",qt.b.arrowUp,ie.a("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),vn=Object(cn.b)("find-next-match",qt.b.arrowDown,ie.a("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),wn=ie.a("label.find","Find"),Cn=ie.a("placeholder.find","Find"),On=ie.a("label.previousMatchButton","Previous Match"),Mn=ie.a("label.nextMatchButton","Next Match"),kn=ie.a("label.toggleSelectionFind","Find in Selection"),xn=ie.a("label.closeButton","Close"),Tn=ie.a("label.replace","Replace"),Dn=ie.a("placeholder.replace","Replace"),En=ie.a("label.replaceButton","Replace"),jn=ie.a("label.replaceAllButton","Replace All"),Pn=ie.a("label.toggleReplaceButton","Toggle Replace"),Nn=ie.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),qn=ie.a("label.matchesLocation","{0} of {1}"),Wn=ie.a("label.noResults","No results");let Bn=69;const Hn=Ut.f?256:2048;class FindWidgetViewZone{constructor(G){this.afterLineNumber=G,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function stopPropagationForMultiLineUpwards(G,Z,ne){const ie=!!Z.match(/\n/);ne&&ie&&ne.selectionStart>0&&G.stopPropagation()}function stopPropagationForMultiLineDownwards(G,Z,ne){const ie=!!Z.match(/\n/);ne&&ie&&ne.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(G=>this._onStateChanged(G))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(G=>{if(G.hasChanged(79)&&(this._codeEditor.getOption(79)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),G.hasChanged(129)&&this._tryUpdateWidgetWidth(),G.hasChanged(2)&&this.updateAccessibilitySupport(),G.hasChanged(33)){const G=this._codeEditor.getOption(33).addExtraSpaceOnTop;G&&!this._viewZone&&(this._viewZone=new FindWidgetViewZone(0),this._showViewZone()),!G&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>__awaiter(this,void 0,void 0,(function*(){if(this._isVisible){let G=yield this._controller.getGlobalBufferTerm();G&&G!==this._state.searchString&&(this._state.change({searchString:G},!1),this._findInput.select())}})))),this._findInputFocused=ot.bindTo(me),this._findFocusTracker=this._register(It.Y(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=at.bindTo(me),this._replaceFocusTracker=this._register(It.Y(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(33).addExtraSpaceOnTop&&(this._viewZone=new FindWidgetViewZone(0)),this._applyTheme(ge.getColorTheme()),this._register(ge.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(G=>{G.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return findWidget_FindWidget.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(G){if(G.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(G.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),G.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),G.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(79)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=It.I(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(G.isRevealed||G.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),G.isRegex&&this._findInput.setRegex(this._state.isRegex),G.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),G.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),G.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),G.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),G.searchString||G.matchesCount||G.matchesPosition){let G=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",G),this._updateMatchesCount(),this._updateButtons()}(G.searchString||G.currentMatch)&&this._layoutViewZone(),G.updateHistory&&this._delayedUpdateHistory(),G.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,Yt.e)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let G;if(this._matchesCount.style.minWidth=Bn+"px",this._state.matchesCount>=19999?this._matchesCount.title=Nn:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let Z=String(this._state.matchesCount);this._state.matchesCount>=19999&&(Z+="+");let ne=String(this._state.matchesPosition);"0"===ne&&(ne="?"),G=fe.w(qn,ne,Z)}else G=Wn;this._matchesCount.appendChild(document.createTextNode(G)),Object($t.a)(this._getAriaLabel(G,this._state.currentMatch,this._state.searchString)),Bn=Math.max(Bn,this._matchesCount.clientWidth)}_getAriaLabel(G,Z,ne){if(G===Wn)return""===ne?ie.a("ariaSearchNoResultEmpty","{0} found",G):ie.a("ariaSearchNoResult","{0} found for '{1}'",G,ne);if(Z){const se=ie.a("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",G,ne,Z.startLineNumber+":"+Z.startColumn),ce=this._codeEditor.getModel();if(ce&&Z.startLineNumber<=ce.getLineCount()&&Z.startLineNumber>=1){return`${ce.getLineContent(Z.startLineNumber)}, ${se}`}return se}return ie.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",G,ne)}_updateToggleSelectionFindButton(){let G=this._codeEditor.getSelection(),Z=!!G&&(G.startLineNumber!==G.endLineNumber||G.startColumn!==G.endColumn),ne=this._toggleSelectionFind.checked;this._isVisible&&(ne||Z)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let G=this._state.searchString.length>0,Z=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&G&&Z&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&G&&Z&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&G),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&G),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let ne=!this._codeEditor.getOption(79);this._toggleReplaceBtn.setEnabled(this._isVisible&&ne)}_reveal(){if(this._revealTimeouts.forEach(G=>{clearTimeout(G)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const G=this._codeEditor.getSelection();switch(this._codeEditor.getOption(33).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":const Z=!!G&&G.startLineNumber!==G.endLineNumber;this._toggleSelectionFind.checked=Z}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let Z=!0;if(this._codeEditor.getOption(33).seedSearchStringFromSelection&&G){const ne=this._codeEditor.getDomNode();if(ne){const ie=It.D(ne),se=this._codeEditor.getScrolledVisiblePosition(G.getStartPosition()),ce=ie.left+(se?se.left:0),fe=se?se.top:0;if(this._viewZone&&feG.startLineNumber&&(Z=!1);const ne=It.G(this._domNode).left;ce>ne&&(Z=!1);const se=this._codeEditor.getScrolledVisiblePosition(G.getEndPosition());ie.left+(se?se.left:0)>ne&&(Z=!1)}}}this._showViewZone(Z)}}_hide(G){this._revealTimeouts.forEach(G=>{clearTimeout(G)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),G&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(G){if(!this._codeEditor.getOption(33).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const Z=this._viewZone;void 0===this._viewZoneId&&Z&&this._codeEditor.changeViewZones(ne=>{Z.heightInPx=this._getHeight(),this._viewZoneId=ne.addZone(Z),this._codeEditor.setScrollTop(G||this._codeEditor.getScrollTop()+Z.heightInPx)})}_showViewZone(G=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(33).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new FindWidgetViewZone(0));const Z=this._viewZone;this._codeEditor.changeViewZones(ne=>{if(void 0!==this._viewZoneId){const ie=this._getHeight();if(ie===Z.heightInPx)return;let se=ie-Z.heightInPx;return Z.heightInPx=ie,ne.layoutZone(this._viewZoneId),void(G&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+se))}{let ie=this._getHeight();if(ie-=this._codeEditor.getOption(73).top,ie<=0)return;Z.heightInPx=ie,this._viewZoneId=ne.addZone(Z),G&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+ie)}})}_removeViewZone(){this._codeEditor.changeViewZones(G=>{void 0!==this._viewZoneId&&(G.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(G){let Z={inputActiveOptionBorder:G.getColor(Re.hb),inputActiveOptionBackground:G.getColor(Re.gb),inputActiveOptionForeground:G.getColor(Re.ib),inputBackground:G.getColor(Re.jb),inputForeground:G.getColor(Re.lb),inputBorder:G.getColor(Re.kb),inputValidationInfoBackground:G.getColor(Re.pb),inputValidationInfoForeground:G.getColor(Re.rb),inputValidationInfoBorder:G.getColor(Re.qb),inputValidationWarningBackground:G.getColor(Re.sb),inputValidationWarningForeground:G.getColor(Re.ub),inputValidationWarningBorder:G.getColor(Re.tb),inputValidationErrorBackground:G.getColor(Re.mb),inputValidationErrorForeground:G.getColor(Re.ob),inputValidationErrorBorder:G.getColor(Re.nb)};this._findInput.style(Z),this._replaceInput.style(Z),this._toggleSelectionFind.style(Z)}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!It.N(this._domNode))return;const G=this._codeEditor.getLayoutInfo();if(G.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const Z=G.width,ne=G.minimap.minimapWidth;let ie=!1,se=!1,ce=!1;if(this._resized){if(It.I(this._domNode)>419)return this._domNode.style.maxWidth=Z-28-ne-15+"px",void(this._replaceInput.width=It.I(this._findInput.domNode))}if(447+ne>=Z&&(se=!0),447+ne-Bn>=Z&&(ce=!0),447+ne-Bn>=Z+50&&(ie=!0),this._domNode.classList.toggle("collapsed-find-widget",ie),this._domNode.classList.toggle("narrow-find-widget",ce),this._domNode.classList.toggle("reduced-find-widget",se),ce||ie||(this._domNode.style.maxWidth=Z-28-ne-15+"px"),this._resized){this._findInput.inputBox.layout();let G=this._findInput.inputBox.element.clientWidth;G>0&&(this._replaceInput.width=G)}else this._isReplaceVisible&&(this._replaceInput.width=It.I(this._findInput.domNode))}_getHeight(){let G=0;return G+=4,G+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(G+=4,G+=this._replaceInput.inputBox.height+2),G+=4,G}_tryUpdateHeight(){const G=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==G)&&(this._cachedHeight=G,this._domNode.style.height=G+"px",!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let G=this._codeEditor.getSelections();G.map(G=>{1===G.endColumn&&G.endLineNumber>G.startLineNumber&&(G=G.setEndPosition(G.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(G.endLineNumber-1)));const Z=this._state.currentMatch;return G.startLineNumber===G.endLineNumber||Me.a.equalsRange(G,Z)?null:G}).filter(G=>!!G),G.length&&this._state.change({searchScope:G},!0)}}_onFindInputMouseDown(G){G.middleButton&&G.stopPropagation()}_onFindInputKeyDown(G){return G.equals(3|Hn)?(this._findInput.inputBox.insertAtCursor("\n"),void G.preventDefault()):G.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void G.preventDefault()):G.equals(2066)?(this._codeEditor.focus(),void G.preventDefault()):G.equals(16)?stopPropagationForMultiLineUpwards(G,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):G.equals(18)?stopPropagationForMultiLineDownwards(G,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(G){return G.equals(3|Hn)?(Ut.j&&Ut.g&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(ie.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store("ctrlEnterReplaceAll.windows.donotask",!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),void G.preventDefault()):G.equals(2)?(this._findInput.focusOnCaseSensitive(),void G.preventDefault()):G.equals(1026)?(this._findInput.focus(),void G.preventDefault()):G.equals(2066)?(this._codeEditor.focus(),void G.preventDefault()):G.equals(16)?stopPropagationForMultiLineUpwards(G,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):G.equals(18)?stopPropagationForMultiLineDownwards(G,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(G){return 0}_keybindingLabelFor(G){let Z=this._keybindingService.lookupKeybinding(G);return Z?` (${Z.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new on(null,this._contextViewProvider,{width:221,label:wn,placeholder:Cn,appendCaseSensitiveLabel:this._keybindingLabelFor(kt),appendWholeWordsLabel:this._keybindingLabelFor(xt),appendRegexLabel:this._keybindingLabelFor(Lt),validation:G=>{if(0===G.length||!this._findInput.getRegex())return null;try{return new RegExp(G,"gu"),null}catch(G){return{content:G.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(G=>this._onFindInputKeyDown(G))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(G=>{G.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),G.preventDefault())})),this._register(this._findInput.onRegexKeyDown(G=>{G.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),G.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(G=>{this._tryUpdateHeight()&&this._showViewZone()})),Ut.d&&this._register(this._findInput.onMouseDown(G=>this._onFindInputMouseDown(G))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new findWidget_SimpleButton({label:On+this._keybindingLabelFor(vt),icon:yn,onTrigger:()=>{this._codeEditor.getAction(vt).run().then(void 0,Yt.e)}})),this._nextBtn=this._register(new findWidget_SimpleButton({label:Mn+this._keybindingLabelFor(yt),icon:vn,onTrigger:()=>{this._codeEditor.getAction(yt).run().then(void 0,Yt.e)}}));let G=document.createElement("div");G.className="find-part",G.appendChild(this._findInput.domNode);const Z=document.createElement("div");Z.className="find-actions",G.appendChild(Z),Z.appendChild(this._matchesCount),Z.appendChild(this._prevBtn.domNode),Z.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new checkbox_Checkbox({icon:dn,title:kn+this._keybindingLabelFor(Tt),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let G=this._codeEditor.getSelections();G.map(G=>(1===G.endColumn&&G.endLineNumber>G.startLineNumber&&(G=G.setEndPosition(G.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(G.endLineNumber-1))),G.isEmpty()?null:G)).filter(G=>!!G),G.length&&this._state.change({searchScope:G},!0)}}else this._state.change({searchScope:null},!0)})),Z.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new findWidget_SimpleButton({label:xn+this._keybindingLabelFor(Mt),icon:cn.c,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:G=>{G.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),G.preventDefault())}})),Z.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new sn(null,void 0,{label:Tn,placeholder:Dn,appendPreserveCaseLabel:this._keybindingLabelFor(At),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(G=>this._onReplaceInputKeyDown(G))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(G=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(G=>{G.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),G.preventDefault())})),this._replaceBtn=this._register(new findWidget_SimpleButton({label:En+this._keybindingLabelFor(Dt),icon:gn,onTrigger:()=>{this._controller.replace()},onKeyDown:G=>{G.equals(1026)&&(this._closeBtn.focus(),G.preventDefault())}})),this._replaceAllBtn=this._register(new findWidget_SimpleButton({label:jn+this._keybindingLabelFor(Et),icon:bn,onTrigger:()=>{this._controller.replaceAll()}}));let ne=document.createElement("div");ne.className="replace-part",ne.appendChild(this._replaceInput.domNode);const ie=document.createElement("div");ie.className="replace-actions",ne.appendChild(ie),ie.appendChild(this._replaceBtn.domNode),ie.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new findWidget_SimpleButton({label:Pn,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=It.I(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(G),this._domNode.appendChild(ne),this._resizeSash=new Vt.b(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let se=419;this._register(this._resizeSash.onDidStart(()=>{se=It.I(this._domNode)})),this._register(this._resizeSash.onDidChange(G=>{this._resized=!0;let Z=se+G.startX-G.currentX;if(Z<419)return;Z>(parseFloat(It.A(this._domNode).maxWidth)||0)||(this._domNode.style.width=Z+"px",this._isReplaceVisible&&(this._replaceInput.width=It.I(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const G=It.I(this._domNode);if(G<419)return;let Z=419;if(!this._resized||419===G){const G=this._codeEditor.getLayoutInfo();Z=G.width-28-G.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=Z+"px",this._isReplaceVisible&&(this._replaceInput.width=It.I(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const G=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==G)}}findWidget_FindWidget.ID="editor.contrib.findWidget";class findWidget_SimpleButton extends Nt.a{constructor(G){super(),this._opts=G;let Z="button";this._opts.className&&(Z=Z+" "+this._opts.className),this._opts.icon&&(Z=Z+" "+ze.d.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=Z,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,G=>{this._opts.onTrigger(),G.preventDefault()}),this.onkeydown(this._domNode,G=>{if(G.equals(10)||G.equals(3))return this._opts.onTrigger(),void G.preventDefault();this._opts.onKeyDown&&this._opts.onKeyDown(G)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(G){this._domNode.classList.toggle("disabled",!G),this._domNode.setAttribute("aria-disabled",String(!G)),this._domNode.tabIndex=G?0:-1}setExpanded(G){this._domNode.setAttribute("aria-expanded",String(!!G)),G?(this._domNode.classList.remove(...ze.d.asClassNameArray(mn)),this._domNode.classList.add(...ze.d.asClassNameArray(_n))):(this._domNode.classList.remove(...ze.d.asClassNameArray(_n)),this._domNode.classList.add(...ze.d.asClassNameArray(mn)))}}Object(ze.f)((G,Z)=>{const addBackgroundColorRule=(G,ne)=>{ne&&Z.addRule(`.monaco-editor ${G} { background-color: ${ne}; }`)};addBackgroundColorRule(".findMatch",G.getColor(Re.x)),addBackgroundColorRule(".currentFindMatch",G.getColor(Re.v)),addBackgroundColorRule(".findScope",G.getColor(Re.z));addBackgroundColorRule(".find-widget",G.getColor(Re.Y));const ne=G.getColor(Re.Mc);ne&&Z.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${ne}; }`);const ie=G.getColor(Re.y);ie&&Z.addRule(`.monaco-editor .findMatch { border: 1px ${"hc"===G.type?"dotted":"solid"} ${ie}; box-sizing: border-box; }`);const se=G.getColor(Re.w);se&&Z.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${se}; padding: 1px; box-sizing: border-box; }`);const ce=G.getColor(Re.A);ce&&Z.addRule(`.monaco-editor .findScope { border: 1px ${"hc"===G.type?"dashed":"solid"} ${ce}; }`);const fe=G.getColor(Re.h);fe&&Z.addRule(`.monaco-editor .find-widget { border: 1px solid ${fe}; }`);const me=G.getColor(Re.ab);me&&Z.addRule(`.monaco-editor .find-widget { color: ${me}; }`);const ge=G.getColor(Re.cb);ge&&Z.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${ge}; }`);const Ce=G.getColor(Re.bb);if(Ce)Z.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${Ce}; }`);else{const ne=G.getColor(Re.Z);ne&&Z.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${ne}; }`)}const Se=G.getColor(Re.db);Se&&Z.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${Se}; }`)});var $n=ne(92),Vn=ne(576),Un=ne(341),Kn=ne(175),Xn=ne(375),Gn=ne(193),findController_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},findController_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},findController_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function getSelectionSearchString(G,Z="single",ne=!1){if(!G.hasModel())return null;const ie=G.getSelection();if("single"===Z&&ie.startLineNumber===ie.endLineNumber||"multiple"===Z)if(ie.isEmpty()){const Z=G.getConfiguredWordAtPosition(ie.getStartPosition());if(Z&&!1===ne)return Z.word}else if(G.getModel().getValueLengthInRange(ie)<524288)return G.getModel().getValueInRange(ie);return null}let Zn=class CommonFindController extends ce.a{constructor(G,Z,ne,ie){super(),this._editor=G,this._findWidgetVisible=it.bindTo(Z),this._contextKeyService=Z,this._storageService=ne,this._clipboardService=ie,this._updateHistoryDelayer=new se.a(500),this._state=this._register(new findState_FindReplaceState),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(G=>this._onStateChanged(G))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let G=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),G&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(33).loop})}))}get editor(){return this._editor}static get(G){return G.getContribution(CommonFindController.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(G){this.saveQueryState(G),G.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),G.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(G){G.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),G.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),G.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),G.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!ot.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let G=this._editor.getSelections();G.map(G=>(1===G.endColumn&&G.endLineNumber>G.startLineNumber&&(G=G.setEndPosition(G.endLineNumber-1,this._editor.getModel().getLineMaxColumn(G.endLineNumber-1))),G.isEmpty()?null:G)).filter(G=>!!G),G.length&&this._state.change({searchScope:G},!0)}}setSearchString(G){this._state.isRegex&&(G=fe.u(G)),this._state.change({searchString:G},!1)}highlightFindOptions(G=!1){}_start(G){return findController_awaiter(this,void 0,void 0,(function*(){if(this.disposeModel(),!this._editor.hasModel())return;let Z={isRevealed:!0};if("single"===G.seedSearchStringFromSelection){let ne=getSelectionSearchString(this._editor,G.seedSearchStringFromSelection,G.seedSearchStringFromNonEmptySelection);ne&&(this._state.isRegex?Z.searchString=fe.u(ne):Z.searchString=ne)}else if("multiple"===G.seedSearchStringFromSelection&&!G.updateSearchScope){let ne=getSelectionSearchString(this._editor,G.seedSearchStringFromSelection);ne&&(Z.searchString=ne)}if(!Z.searchString&&G.seedSearchStringFromGlobalClipboard){let G=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;G&&(Z.searchString=G)}if(G.forceRevealReplace?Z.isReplaceRevealed=!0:this._findWidgetVisible.get()||(Z.isReplaceRevealed=!1),G.updateSearchScope){let G=this._editor.getSelections();G.some(G=>!G.isEmpty())&&(Z.searchScope=G)}Z.loop=G.loop,this._state.change(Z,!1),this._model||(this._model=new findModel_FindModelBoundToEditorModel(this._editor,this._state))}))}start(G){return this._start(G)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return findController_awaiter(this,void 0,void 0,(function*(){return this._editor.getOption(33).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(G){this._editor.getOption(33).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(G)}};Zn.ID="editor.contrib.findController",Zn=findController_decorate([findController_param(1,$e.b),findController_param(2,Xn.a),findController_param(3,Vn.a)],Zn);let Jn=class FindController extends Zn{constructor(G,Z,ne,ie,se,ce,fe,me){super(G,ne,fe,me),this._contextViewService=Z,this._keybindingService=ie,this._themeService=se,this._notificationService=ce,this._widget=null,this._findOptionsWidget=null}_start(G){const Z=Object.create(null,{_start:{get:()=>super._start}});return findController_awaiter(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();const ne=this._editor.getSelection();let ie=!1;switch(this._editor.getOption(33).autoFindInSelection){case"always":ie=!0;break;case"never":ie=!1;break;case"multiline":ie=!!ne&&ne.startLineNumber!==ne.endLineNumber}G.updateSearchScope=ie,yield Z._start.call(this,G),this._widget&&(2===G.shouldFocus?this._widget.focusReplaceInput():1===G.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(G=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!G?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new findWidget_FindWidget(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new findOptionsWidget_FindOptionsWidget(this._editor,this._state,this._keybindingService,this._themeService))}};Jn=findController_decorate([findController_param(1,Un.b),findController_param(2,$e.b),findController_param(3,Kn.a),findController_param(4,ze.b),findController_param(5,Gn.a),findController_param(6,Xn.a),findController_param(7,Vn.a)],Jn);const Qn=Object(me.p)(new me.f({id:ft,label:ie.a("startFindAction","Find"),alias:"Find",precondition:$e.a.or(ge.a.focus,$e.a.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:$n.b.MenubarEditMenu,group:"3_find",title:ie.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Qn.addImplementation(0,(G,Z,ne)=>{const ie=Zn.get(Z);return!!ie&&ie.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==Z.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===Z.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:Z.getOption(33).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:Z.getOption(33).loop})});class findController_StartFindWithSelectionAction extends me.b{constructor(){super({id:_t,label:ie.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(G,Z){return findController_awaiter(this,void 0,void 0,(function*(){let G=Zn.get(Z);G&&(yield G.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:Z.getOption(33).loop}),G.setGlobalBufferTerm(G.getState().searchString))}))}}class findController_MatchFindAction extends me.b{run(G,Z){return findController_awaiter(this,void 0,void 0,(function*(){let G=Zn.get(Z);G&&!this._run(G)&&(yield G.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===G.getState().searchString.length&&"never"!==Z.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===Z.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:Z.getOption(33).loop}),this._run(G))}))}}class findController_NextMatchFindAction extends findController_MatchFindAction{constructor(){super({id:yt,label:ie.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:ge.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:$e.a.and(ge.a.focus,ot),primary:3,weight:100}]})}_run(G){return!!G.moveToNextMatch()&&(G.editor.pushUndoStop(),!0)}}class findController_PreviousMatchFindAction extends findController_MatchFindAction{constructor(){super({id:vt,label:ie.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:ge.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:$e.a.and(ge.a.focus,ot),primary:1027,weight:100}]})}_run(G){return G.moveToPrevMatch()}}class findController_SelectionMatchFindAction extends me.b{run(G,Z){return findController_awaiter(this,void 0,void 0,(function*(){let G=Zn.get(Z);if(!G)return;const ne="selection"===Z.getOption(33).seedSearchStringFromSelection;let ie=null;"never"!==Z.getOption(33).seedSearchStringFromSelection&&(ie=getSelectionSearchString(Z,"single",ne)),ie&&G.setSearchString(ie),this._run(G)||(yield G.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==Z.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:ne,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:Z.getOption(33).loop}),this._run(G))}))}}class findController_NextSelectionMatchFindAction extends findController_SelectionMatchFindAction{constructor(){super({id:wt,label:ie.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:ge.a.focus,primary:2109,weight:100}})}_run(G){return G.moveToNextMatch()}}class findController_PreviousSelectionMatchFindAction extends findController_SelectionMatchFindAction{constructor(){super({id:Ct,label:ie.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:ge.a.focus,primary:3133,weight:100}})}_run(G){return G.moveToPrevMatch()}}const er=Object(me.p)(new me.f({id:St,label:ie.a("startReplace","Replace"),alias:"Replace",precondition:$e.a.or(ge.a.focus,$e.a.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:$n.b.MenubarEditMenu,group:"3_find",title:ie.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));er.addImplementation(0,(G,Z,ne)=>{if(!Z.hasModel()||Z.getOption(79))return!1;const ie=Zn.get(Z);if(!ie)return!1;const se=Z.getSelection(),ce=ie.isFindInputFocused(),fe=!se.isEmpty()&&se.startLineNumber===se.endLineNumber&&"never"!==Z.getOption(33).seedSearchStringFromSelection&&!ce,me=ce||fe?2:1;return ie.start({forceRevealReplace:!0,seedSearchStringFromSelection:fe?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===Z.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==Z.getOption(33).seedSearchStringFromSelection,shouldFocus:me,shouldAnimate:!0,updateSearchScope:!1,loop:Z.getOption(33).loop})}),Object(me.l)(Zn.ID,Jn),Object(me.j)(findController_StartFindWithSelectionAction),Object(me.j)(findController_NextMatchFindAction),Object(me.j)(findController_PreviousMatchFindAction),Object(me.j)(findController_NextSelectionMatchFindAction),Object(me.j)(findController_PreviousSelectionMatchFindAction);const tr=me.c.bindToContribution(Zn.get);Object(me.k)(new tr({id:Mt,precondition:it,handler:G=>G.closeFindWidget(),kbOpts:{weight:105,kbExpr:$e.a.and(ge.a.focus,$e.a.not("isComposing")),primary:9,secondary:[1033]}})),Object(me.k)(new tr({id:kt,precondition:void 0,handler:G=>G.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:st.primary,mac:st.mac,win:st.win,linux:st.linux}})),Object(me.k)(new tr({id:xt,precondition:void 0,handler:G=>G.toggleWholeWords(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:ct.primary,mac:ct.mac,win:ct.win,linux:ct.linux}})),Object(me.k)(new tr({id:Lt,precondition:void 0,handler:G=>G.toggleRegex(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:ut.primary,mac:ut.mac,win:ut.win,linux:ut.linux}})),Object(me.k)(new tr({id:Tt,precondition:void 0,handler:G=>G.toggleSearchScope(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:dt.primary,mac:dt.mac,win:dt.win,linux:dt.linux}})),Object(me.k)(new tr({id:At,precondition:void 0,handler:G=>G.togglePreserveCase(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:ht.primary,mac:ht.mac,win:ht.win,linux:ht.linux}})),Object(me.k)(new tr({id:Dt,precondition:it,handler:G=>G.replace(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:3094}})),Object(me.k)(new tr({id:Dt,precondition:it,handler:G=>G.replace(),kbOpts:{weight:105,kbExpr:$e.a.and(ge.a.focus,at),primary:3}})),Object(me.k)(new tr({id:Et,precondition:it,handler:G=>G.replaceAll(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:2563}})),Object(me.k)(new tr({id:Et,precondition:it,handler:G=>G.replaceAll(),kbOpts:{weight:105,kbExpr:$e.a.and(ge.a.focus,at),primary:void 0,mac:{primary:2051}}})),Object(me.k)(new tr({id:jt,precondition:it,handler:G=>G.selectAllMatches(),kbOpts:{weight:105,kbExpr:ge.a.focus,primary:515}}))},175:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("keybindingService")},180:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce}));var ie=ne(54),se=ne(1362);const ce=new class RegistryImpl{constructor(){this.data=new Map}add(G,Z){se.a(ie.k(G)),se.a(ie.j(Z)),se.a(!this.data.has(G),"There is already an extension with this id"),this.data.set(G,Z)}as(G){return this.data.get(G)||null}}},181:function(G,Z,ne){"use strict";ne.d(Z,"i",(function(){return originalFSPath})),ne.d(Z,"e",(function(){return ge})),ne.d(Z,"f",(function(){return Ce})),ne.d(Z,"c",(function(){return Se})),ne.d(Z,"b",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"g",(function(){return xe})),ne.d(Z,"h",(function(){return De})),ne.d(Z,"j",(function(){return Ie})),ne.d(Z,"a",(function(){return Re}));var ie=ne(1190),se=ne(210),ce=ne(94),fe=ne(27),me=ne(143);function originalFSPath(G){return Object(ce.b)(G,!0)}const ge=new class ExtUri{constructor(G){this._ignorePathCasing=G}compare(G,Z,ne=!1){return G===Z?0:Object(fe.f)(this.getComparisonKey(G,ne),this.getComparisonKey(Z,ne))}isEqual(G,Z,ne=!1){return G===Z||!(!G||!Z)&&this.getComparisonKey(G,ne)===this.getComparisonKey(Z,ne)}getComparisonKey(G,Z=!1){return G.with({path:this._ignorePathCasing(G)?G.path.toLowerCase():void 0,fragment:Z?null:void 0}).toString()}joinPath(G,...Z){return ce.a.joinPath(G,...Z)}basenameOrAuthority(G){return Me(G)||G.authority}basename(G){return se.e.basename(G.path)}dirname(G){if(0===G.path.length)return G;let Z;return G.scheme===me.c.file?Z=ce.a.file(se.b(originalFSPath(G))).path:(Z=se.e.dirname(G.path),G.authority&&Z.length&&47!==Z.charCodeAt(0)&&(console.error(`dirname("${G.toString})) resulted in a relative path`),Z="/")),G.with({path:Z})}normalizePath(G){if(!G.path.length)return G;let Z;return Z=G.scheme===me.c.file?ce.a.file(se.d(originalFSPath(G))).path:se.e.normalize(G.path),G.with({path:Z})}resolvePath(G,Z){if(G.scheme===me.c.file){const ne=ce.a.file(se.g(originalFSPath(G),Z));return G.with({authority:ne.authority,path:ne.path})}return Z=ie.d(Z),G.with({path:se.e.resolve(G.path,Z)})}}(()=>!1),Ce=ge.isEqual.bind(ge),Se=ge.basenameOrAuthority.bind(ge),Me=ge.basename.bind(ge),ke=ge.dirname.bind(ge),xe=ge.joinPath.bind(ge),De=ge.normalizePath.bind(ge),Ie=ge.resolvePath.bind(ge);var Re;!function(G){G.META_DATA_LABEL="label",G.META_DATA_DESCRIPTION="description",G.META_DATA_SIZE="size",G.META_DATA_MIME="mime",G.parseMetaData=function parseMetaData(Z){const ne=new Map;Z.path.substring(Z.path.indexOf(";")+1,Z.path.lastIndexOf(";")).split(";").forEach(G=>{const[Z,ie]=G.split(":");Z&&ie&&ne.set(Z,ie)});const ie=Z.path.substring(0,Z.path.indexOf(";"));return ie&&ne.set(G.META_DATA_MIME,ie),ne}}(Re||(Re={}))},187:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se})),ne.d(Z,"b",(function(){return shouldSynchronizeModel}));var ie=ne(60);const se=Object(ie.c)("modelService");function shouldSynchronizeModel(G){return!G.isTooLargeForSyncing()&&!G.isForSimpleWidget}},188:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie})),ne.d(Z,"c",(function(){return se})),ne.d(Z,"b",(function(){return ce})),ne.d(Z,"e",(function(){return fe})),ne.d(Z,"d",(function(){return me})),ne.d(Z,"f",(function(){return ge})),ne.d(Z,"h",(function(){return Ce})),ne.d(Z,"i",(function(){return Se})),ne.d(Z,"g",(function(){return Me}));var ie,se,ce,fe,me,ge,Ce,Se,Me,ke=ne(4);!function(G){G.noSelection=ke.a("noSelection","No selection"),G.singleSelectionRange=ke.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),G.singleSelection=ke.a("singleSelection","Line {0}, Column {1}"),G.multiSelectionRange=ke.a("multiSelectionRange","{0} selections ({1} characters selected)"),G.multiSelection=ke.a("multiSelection","{0} selections"),G.emergencyConfOn=ke.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),G.openingDocs=ke.a("openingDocs","Now opening the Editor Accessibility documentation page."),G.readonlyDiffEditor=ke.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),G.editableDiffEditor=ke.a("editableDiffEditor"," in a pane of a diff editor."),G.readonlyEditor=ke.a("readonlyEditor"," in a read-only code editor"),G.editableEditor=ke.a("editableEditor"," in a code editor"),G.changeConfigToOnMac=ke.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),G.changeConfigToOnWinLinux=ke.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),G.auto_on=ke.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),G.auto_off=ke.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),G.tabFocusModeOnMsg=ke.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),G.tabFocusModeOnMsgNoKb=ke.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),G.tabFocusModeOffMsg=ke.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),G.tabFocusModeOffMsgNoKb=ke.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),G.openDocMac=ke.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),G.openDocWinLinux=ke.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),G.outroMsg=ke.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),G.showAccessibilityHelpAction=ke.a("showAccessibilityHelpAction","Show Accessibility Help")}(ie||(ie={})),function(G){G.inspectTokensAction=ke.a("inspectTokens","Developer: Inspect Tokens")}(se||(se={})),function(G){G.gotoLineActionLabel=ke.a("gotoLineActionLabel","Go to Line/Column...")}(ce||(ce={})),function(G){G.helpQuickAccessActionLabel=ke.a("helpQuickAccess","Show all Quick Access Providers")}(fe||(fe={})),function(G){G.quickCommandActionLabel=ke.a("quickCommandActionLabel","Command Palette"),G.quickCommandHelp=ke.a("quickCommandActionHelp","Show And Run Commands")}(me||(me={})),function(G){G.quickOutlineActionLabel=ke.a("quickOutlineActionLabel","Go to Symbol..."),G.quickOutlineByCategoryActionLabel=ke.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(ge||(ge={})),function(G){G.editorViewAccessibleLabel=ke.a("editorViewAccessibleLabel","Editor content"),G.accessibilityHelpMessage=ke.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(Ce||(Ce={})),function(G){G.toggleHighContrast=ke.a("toggleHighContrast","Toggle High Contrast Theme")}(Se||(Se={})),function(G){G.bulkEditServiceSummary=ke.a("bulkEditServiceSummary","Made {0} edits in {1} files")}(Me||(Me={}))},19:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return ie})),ne.d(Z,"b",(function(){return Emitter})),ne.d(Z,"e",(function(){return PauseableEmitter})),ne.d(Z,"a",(function(){return DebounceEmitter})),ne.d(Z,"d",(function(){return EventBufferer})),ne.d(Z,"f",(function(){return Relay}));var ie,se=ne(51),ce=ne(10),fe=ne(376),me=ne(607);!function(G){function once(G){return(Z,ne=null,ie)=>{let se,ce=!1;return se=G(G=>{if(!ce)return se?se.dispose():ce=!0,Z.call(ne,G)},null,ie),ce&&se.dispose(),se}}function map(G,Z){return snapshot((ne,ie=null,se)=>G(G=>ne.call(ie,Z(G)),null,se))}function forEach(G,Z){return snapshot((ne,ie=null,se)=>G(G=>{Z(G),ne.call(ie,G)},null,se))}function filter(G,Z){return snapshot((ne,ie=null,se)=>G(G=>Z(G)&&ne.call(ie,G),null,se))}function reduce(G,Z,ne){let ie=ne;return map(G,G=>(ie=Z(ie,G),ie))}function snapshot(G){let Z;const ne=new Emitter({onFirstListenerAdd(){Z=G(ne.fire,ne)},onLastListenerRemove(){Z.dispose()}});return ne.event}function debounce(G,Z,ne=100,ie=!1,se){let ce,fe=void 0,me=void 0,ge=0;const Ce=new Emitter({leakWarningThreshold:se,onFirstListenerAdd(){ce=G(G=>{ge++,fe=Z(fe,G),ie&&!me&&(Ce.fire(fe),fe=void 0),clearTimeout(me),me=setTimeout(()=>{const G=fe;fe=void 0,me=void 0,(!ie||ge>1)&&Ce.fire(G),ge=0},ne)})},onLastListenerRemove(){ce.dispose()}});return Ce.event}function latch(G,Z=((G,Z)=>G===Z)){let ne,ie=!0;return filter(G,G=>{const se=ie||!Z(G,ne);return ie=!1,ne=G,se})}G.None=()=>ce.a.None,G.once=once,G.map=map,G.forEach=forEach,G.filter=filter,G.signal=function signal(G){return G},G.any=function any(...G){return(Z,ne=null,ie)=>Object(ce.e)(...G.map(G=>G(G=>Z.call(ne,G),null,ie)))},G.reduce=reduce,G.debounce=debounce,G.latch=latch,G.split=function split(Z,ne){return[G.filter(Z,ne),G.filter(Z,G=>!ne(G))]},G.buffer=function buffer(G,Z=!1,ne=[]){let ie=ne.slice(),se=G(G=>{ie?ie.push(G):ce.fire(G)});const flush=()=>{ie&&ie.forEach(G=>ce.fire(G)),ie=null},ce=new Emitter({onFirstListenerAdd(){se||(se=G(G=>ce.fire(G)))},onFirstListenerDidAdd(){ie&&(Z?setTimeout(flush):flush())},onLastListenerRemove(){se&&se.dispose(),se=null}});return ce.event};class ChainableEvent{constructor(G){this.event=G}map(G){return new ChainableEvent(map(this.event,G))}forEach(G){return new ChainableEvent(forEach(this.event,G))}filter(G){return new ChainableEvent(filter(this.event,G))}reduce(G,Z){return new ChainableEvent(reduce(this.event,G,Z))}latch(){return new ChainableEvent(latch(this.event))}debounce(G,Z=100,ne=!1,ie){return new ChainableEvent(debounce(this.event,G,Z,ne,ie))}on(G,Z,ne){return this.event(G,Z,ne)}once(G,Z,ne){return once(this.event)(G,Z,ne)}}G.chain=function chain(G){return new ChainableEvent(G)},G.fromNodeEventEmitter=function fromNodeEventEmitter(G,Z,ne=(G=>G)){const fn=(...G)=>ie.fire(ne(...G)),ie=new Emitter({onFirstListenerAdd:()=>G.on(Z,fn),onLastListenerRemove:()=>G.removeListener(Z,fn)});return ie.event},G.fromDOMEventEmitter=function fromDOMEventEmitter(G,Z,ne=(G=>G)){const fn=(...G)=>ie.fire(ne(...G)),ie=new Emitter({onFirstListenerAdd:()=>G.addEventListener(Z,fn),onLastListenerRemove:()=>G.removeEventListener(Z,fn)});return ie.event},G.toPromise=function toPromise(G){return new Promise(Z=>once(G)(Z))}}(ie||(ie={}));class EventProfiling{constructor(G){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${G}_${EventProfiling._idPool++}`}start(G){this._stopWatch=new me.a(!0),this._listenerCount=G}stop(){if(this._stopWatch){const G=this._stopWatch.elapsed();this._elapsedOverall+=G,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${G.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}EventProfiling._idPool=0;class Emitter{constructor(G){var Z;this._disposed=!1,this._options=G,this._leakageMon=void 0,this._perfMon=(null===(Z=this._options)||void 0===Z?void 0:Z._profName)?new EventProfiling(this._options._profName):void 0}get event(){return this._event||(this._event=(G,Z,ne)=>{var ie;this._listeners||(this._listeners=new fe.a);const se=this._listeners.isEmpty();se&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const me=this._listeners.push(Z?[G,Z]:G);se&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,G,Z);const ge=null===(ie=this._leakageMon)||void 0===ie?void 0:ie.check(this._listeners.size),Ce=Object(ce.i)(()=>{if(ge&&ge(),!this._disposed&&(me(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}});return ne instanceof ce.b?ne.add(Ce):Array.isArray(ne)&&ne.push(Ce),Ce}),this._event}fire(G){var Z,ne;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new fe.a);for(let Z of this._listeners)this._deliveryQueue.push([Z,G]);for(null===(Z=this._perfMon)||void 0===Z||Z.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[G,Z]=this._deliveryQueue.shift();try{"function"==typeof G?G.call(void 0,Z):G[0].call(G[1],Z)}catch(G){Object(se.e)(G)}}null===(ne=this._perfMon)||void 0===ne||ne.stop()}}dispose(){var G,Z,ne,ie,se;this._disposed||(this._disposed=!0,null===(G=this._listeners)||void 0===G||G.clear(),null===(Z=this._deliveryQueue)||void 0===Z||Z.clear(),null===(ie=null===(ne=this._options)||void 0===ne?void 0:ne.onLastListenerRemove)||void 0===ie||ie.call(ne),null===(se=this._leakageMon)||void 0===se||se.dispose())}}class PauseableEmitter extends Emitter{constructor(G){super(G),this._isPaused=0,this._eventQueue=new fe.a,this._mergeFn=null==G?void 0:G.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){const G=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(G))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(G){this._listeners&&(0!==this._isPaused?this._eventQueue.push(G):super.fire(G))}}class DebounceEmitter extends PauseableEmitter{constructor(G){var Z;super(G),this._delay=null!==(Z=G.delay)&&void 0!==Z?Z:100}fire(G){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(G)}}class EventBufferer{constructor(){this.buffers=[]}wrapEvent(G){return(Z,ne,ie)=>G(G=>{const ie=this.buffers[this.buffers.length-1];ie?ie.push(()=>Z.call(ne,G)):Z.call(ne,G)},void 0,ie)}bufferEvents(G){const Z=[];this.buffers.push(Z);const ne=G();return this.buffers.pop(),Z.forEach(G=>G()),ne}}class Relay{constructor(){this.listening=!1,this.inputEvent=ie.None,this.inputEventListener=ce.a.None,this.emitter=new Emitter({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(G){this.inputEvent=G,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=G(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},193:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce})),ne.d(Z,"b",(function(){return NoOpNotification}));var ie=ne(235),se=ne(60);ie.a;const ce=Object(se.c)("notificationService");class NoOpNotification{}},194:function(G,Z,ne){"use strict";var ie,se;ne.d(Z,"d",(function(){return ie})),ne.d(Z,"c",(function(){return se})),ne.d(Z,"e",(function(){return TextModelResolvedOptions})),ne.d(Z,"b",(function(){return FindMatch})),ne.d(Z,"f",(function(){return ValidAnnotatedEditOperation})),ne.d(Z,"a",(function(){return ApplyEditsResult})),function(G){G[G.Left=1]="Left",G[G.Center=2]="Center",G[G.Right=4]="Right",G[G.Full=7]="Full"}(ie||(ie={})),function(G){G[G.Inline=1]="Inline",G[G.Gutter=2]="Gutter"}(se||(se={}));class TextModelResolvedOptions{constructor(G){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|G.tabSize),this.indentSize=0|G.tabSize,this.insertSpaces=Boolean(G.insertSpaces),this.defaultEOL=0|G.defaultEOL,this.trimAutoWhitespace=Boolean(G.trimAutoWhitespace)}equals(G){return this.tabSize===G.tabSize&&this.indentSize===G.indentSize&&this.insertSpaces===G.insertSpaces&&this.defaultEOL===G.defaultEOL&&this.trimAutoWhitespace===G.trimAutoWhitespace}createChangeEvent(G){return{tabSize:this.tabSize!==G.tabSize,indentSize:this.indentSize!==G.indentSize,insertSpaces:this.insertSpaces!==G.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==G.trimAutoWhitespace}}}class FindMatch{constructor(G,Z){this._findMatchBrand=void 0,this.range=G,this.matches=Z}}class ValidAnnotatedEditOperation{constructor(G,Z,ne,ie,se,ce){this.identifier=G,this.range=Z,this.text=ne,this.forceMoveMarkers=ie,this.isAutoWhitespaceEdit=se,this._isTracked=ce}}class ApplyEditsResult{constructor(G,Z,ne){this.reverseEdits=G,this.changes=Z,this.trimAutoWhitespaceLineNumbers=ne}}},196:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Action})),ne.d(Z,"b",(function(){return ActionRunner})),ne.d(Z,"d",(function(){return Separator})),ne.d(Z,"e",(function(){return SubmenuAction})),ne.d(Z,"c",(function(){return EmptySubmenuAction}));var ie=ne(4),se=ne(10),ce=ne(19),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class Action extends se.a{constructor(G,Z="",ne="",ie=!0,se){super(),this._onDidChange=this._register(new ce.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=G,this._label=Z,this._cssClass=ne,this._enabled=ie,this._actionCallback=se}get id(){return this._id}get label(){return this._label}set label(G){this._setLabel(G)}_setLabel(G){this._label!==G&&(this._label=G,this._onDidChange.fire({label:G}))}get tooltip(){return this._tooltip||""}set tooltip(G){this._setTooltip(G)}_setTooltip(G){this._tooltip!==G&&(this._tooltip=G,this._onDidChange.fire({tooltip:G}))}get class(){return this._cssClass}set class(G){this._setClass(G)}_setClass(G){this._cssClass!==G&&(this._cssClass=G,this._onDidChange.fire({class:G}))}get enabled(){return this._enabled}set enabled(G){this._setEnabled(G)}_setEnabled(G){this._enabled!==G&&(this._enabled=G,this._onDidChange.fire({enabled:G}))}get checked(){return this._checked}set checked(G){this._setChecked(G)}_setChecked(G){this._checked!==G&&(this._checked=G,this._onDidChange.fire({checked:G}))}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(G))}))}}class ActionRunner extends se.a{constructor(){super(...arguments),this._onBeforeRun=this._register(new ce.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new ce.b),this.onDidRun=this._onDidRun.event}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(!G.enabled)return;this._onBeforeRun.fire({action:G});let ne=void 0;try{yield this.runAction(G,Z)}catch(G){ne=G}this._onDidRun.fire({action:G,error:ne})}))}runAction(G,Z){return __awaiter(this,void 0,void 0,(function*(){yield G.run(Z)}))}}class Separator extends Action{constructor(G){super(Separator.ID,G,G?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Separator.ID="vs.actions.separator";class SubmenuAction{constructor(G,Z,ne,ie){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=G,this.label=Z,this.class=ie,this._actions=ne}get actions(){return this._actions}dispose(){}run(){return __awaiter(this,void 0,void 0,(function*(){}))}}class EmptySubmenuAction extends Action{constructor(){super(EmptySubmenuAction.ID,ie.a("submenu.empty","(empty)"),void 0,!1)}}EmptySubmenuAction.ID="vs.actions.empty"},2e3:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),__async=(G,Z,ne)=>new Promise((ie,se)=>{var fulfilled=G=>{try{step(ne.next(G))}catch(G){se(G)}},rejected=G=>{try{step(ne.throw(G))}catch(G){se(G)}},step=G=>G.done?ie(G.value):Promise.resolve(G.value).then(fulfilled,rejected);step((ne=ne.apply(G,Z)).next())}),De={};__export(De,{AbsoluteLayoutEditor:()=>AbsoluteLayoutEditor_default,AbsoluteLayoutItemEditor:()=>Hi,AlignmentEditor:()=>zi,CloudDataSourceEditors:()=>mn,CloudSearchEditor:()=>Qt,CombinedCodeIdEditor:()=>ko,CornerRadiusEditor:()=>CornerRadiusEditor,DataSourceEditors:()=>tr,DrilldownEditors:()=>Qr,DynamicEditorWrapper:()=>xi,DynamicTimeRangeConfigEditor:()=>DynamicTimeRangeConfigEditor_default,EnterpriseSavedSearchEditor:()=>Vn,EnterpriseSearchEditor:()=>Pn,FlyoutCodeEditor:()=>To,GridLayoutEditor:()=>GridLayoutEditor_default,LayoutEditors:()=>Ei,LayoutItemEditors:()=>$i,PositionAndSizeEditor:()=>Fi,SimpleSourceEditor:()=>ho,StaticTimeRangeConfigEditor:()=>StaticTimeRangeConfigEditor_default,TestDataSourceEditor:()=>dn}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(0));__reExport(Ie,ne(0));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(2));__reExport($e,ne(2));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(24));__reExport(ot,ne(24));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(138));__reExport(ct,ne(138));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(4070));__reExport(ht,ne(4070));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(391));__reExport(yt,ne(391));var wt="default"in vt?vt.default:vt,Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(4071));__reExport(Ct,ne(4071));var Mt="default"in St?St.default:St,kt={};__export(kt,{default:()=>Lt});var xt=__toESM(ne(301));__reExport(kt,ne(301));var Lt="default"in xt?xt.default:xt,Tt={};__export(Tt,{default:()=>Dt});var At=__toESM(ne(4083));__reExport(Tt,ne(4083));var Dt="default"in At?At.default:At,Et={};__export(Et,{default:()=>It});var jt=__toESM(ne(3));__reExport(Et,ne(3));var It="default"in jt?jt.default:jt,getTokensFromTimeRange=({earliest:G,latest:Z})=>{const ne=(0,ct.extractTokens)(null!=G?G:"").map(({name:G})=>G.split(".")[0]),ie=(0,ct.extractTokens)(null!=Z?Z:"").map(({name:G})=>G.split(".")[0]);return[ne[0],ie[0]]},Nt=It.div.attrs(()=>({"data-test":"time-range-type-value"}))` font-weight: bold; overflow: hidden; word-break: break-all; `,TimeRangeType=({earliest:G,latest:Z})=>{const ne=(0,kt.useDashboardApi)(),ie=(0,ct.hasTokens)(G)||(0,ct.hasTokens)(Z)?"dynamic":"static",se="static"===ie?(0,ct.createRangeLabel)(G,Z,{timeRangePresets:ct.defaultTimePreset,maxChars:0}):`${G} - ${Z}`;let ce;if("static"===ie)ce=(0,ht._)("Currently using static time range");else{const ie=getTokensFromTimeRange({earliest:G,latest:Z}),se=ne.getInputByToken(ie[0]),fe=(0,ot.get)(se,"title",null);ce=se?fe?ze.createElement(ze.Fragment,null,(0,ht._)("Currently using")," ",ze.createElement("b",{"data-test":"time-range-input-name"},fe)," ",(0,ht._)("input")):(0,ht._)("Currently using Untitled input"):`${(0,ht._)("Currently referencing")} $${ie[0]}$`}return ze.createElement("div",{"data-test":"time-range-type"},ze.createElement("div",{"data-test":"time-range-type-label"},ce),ze.createElement(Nt,null,se))};TimeRangeType.propTypes={earliest:it.string,latest:it.string},TimeRangeType.defaultProps={earliest:"-24h@h",latest:"now"};var Rt=TimeRangeType,zt={};__export(zt,{default:()=>Wt});var qt=__toESM(ne(1304));__reExport(zt,ne(1304));var Wt="default"in qt?qt.default:qt,Bt={};__export(Bt,{default:()=>Ht});var Ft=__toESM(ne(390));__reExport(Bt,ne(390));var Ht="default"in Ft?Ft.default:Ft,$t=It.span` font-style: ${G=>G.titleExists?"normal":"italic"}; `,getTimeStringFromToken=({tokenId:G,submittedTokens:Z,namespace:ne=ct.DEFAULT_TOKEN_NAMESPACE})=>{if(!G)return"";const{start:ie,end:se}=(0,ct.replaceTokensForObject)({start:`$${ne}:${G}.earliest$`,end:`$${ne}:${G}.latest$`},Z);return(0,ct.createRangeLabel)(ie,se,{presets:ct.defaultRealTimePreset,maxChars:0})},DynamicTimeRangeConfigEditor_default=({token:G,onChange:Z})=>{const ne=(0,kt.useDashboardApi)(),ie=(0,Ie.useCallback)((G,{value:ne})=>{Z(G,{earliest:`$${ne}.earliest$`,latest:`$${ne}.latest$`})},[Z]),se=ne.getDefinition(),ce=(0,Bt.useSelector)(Bt.selectSubmittedTokens),fe=(0,Ie.useMemo)(()=>{var G;return Object.entries(null!=(G=se.inputs)?G:{}).filter(([,G])=>"input.timerange"===G.type).map(([G,Z])=>{var ne,ie;return[G,Z,getTimeStringFromToken({tokenId:null==(ne=Z.options)?void 0:ne.token,submittedTokens:ce,namespace:null==(ie=Z.options)?void 0:ie.tokenNamespace})]})},[se.inputs,ce]);return ze.createElement(Wt,{"data-test":"time-range-input-select",onChange:ie,value:G,placeholder:(0,ht._)("Select Time Range Input..."),noOptionsMessage:(0,ht._)("No Inputs Available")},fe.map(([G,Z,ne])=>{var ie,se,ce,fe,me;const ge=null!=(ie=Z.title)?ie:(0,ht._)("Untitled"),Ce=(null==(se=Z.options)?void 0:se.token)?` (${null==(ce=Z.options)?void 0:ce.token})`:"";return ze.createElement(Wt.Option,{key:G,label:`${ge}${Ce}`,value:null!=(me=null==(fe=Z.options)?void 0:fe.token)?me:"",description:ne},ze.createElement($t,{titleExists:Boolean(Z.title)},ge),Ce)}))},Vt={};__export(Vt,{default:()=>Ut});var Yt=__toESM(ne(4091));__reExport(Vt,ne(4091));var Ut="default"in Yt?Yt.default:Yt,StaticTimeRangeConfigEditor_default=({earliest:G,latest:Z,onChange:ne,TimeRangeConnector:ie=ze.Fragment})=>{const[se,ce]=(0,Ie.useState)((0,ct.parse)(G)),[fe,me]=(0,Ie.useState)((0,ct.parse)(Z)),ge=(0,Ie.useCallback)(G=>{ce((0,ct.parse)(G))},[]),Ce=(0,Ie.useCallback)(G=>{me((0,ct.parse)(G))},[]);return ze.createElement(ie,null,ze.createElement(Ut,{presets:ct.defaultTimePreset,onChange:ne,earliest:G,latest:Z,parseEarliest:se,parseLatest:fe,onRequestParseEarliest:ge,onRequestParseLatest:Ce}))},Kt=It.div.attrs(()=>({"data-test":"time-range-type-value"}))` font-weight: bold; overflow: hidden; word-break: break-all; `,DefaultTimeRangeConfigEditor_default=({defaultEarliest:G,defaultLatest:Z})=>{const ne=(0,ct.hasTokens)(G)||(0,ct.hasTokens)(Z)?`${G} - ${Z}`:(0,ct.createRangeLabel)(G,Z,{presets:ct.defaultTimePreset,maxChars:0});return ze.createElement(Kt,null,(0,ht._)(ne))},Gt={dynamic:(0,ht._)("Time range set by interactive dashboard input"),static:(0,ht._)("Time range set by current data source"),default:(0,ht._)("Time range set by dashboard source default value"),custom:(0,ht._)("Time range set by custom source definition")},Zt={dynamic:void 0,static:void 0,default:(0,ht._)("Configure in source editor"),custom:(0,ht._)("Configure in source editor")},TimeRangeEditor_default=({earliest:G,latest:Z,defaultEarliest:ne="-24h@h",defaultLatest:ie="now",onChange:se,TimeRangeConnector:ce})=>{const fe=(0,kt.useDashboardApi)(),me=(0,Ie.useMemo)(()=>(({earliest:G,latest:Z,defaultEarliest:ne,defaultLatest:ie,dashboardApi:se})=>{if(void 0===G||void 0===Z)return{type:"default",earliest:ne,latest:ie};if(!(0,ct.hasTokens)(G)&&!(0,ct.hasTokens)(Z))return{type:"static",earliest:G,latest:Z};if(!(0,ct.hasTokens)(G)||!(0,ct.hasTokens)(Z))return{type:"custom",earliest:G,latest:Z};const[ce,fe]=getTokensFromTimeRange({earliest:G,latest:Z}),me=se.getInputByToken(ce);return ce===fe&&null!==me?{type:"dynamic",token:ce}:{type:"custom",earliest:G,latest:Z}})({earliest:G,latest:Z,defaultEarliest:ne,defaultLatest:ie,dashboardApi:fe}),[G,Z,ne,ie,fe]),ge=(0,Ie.useMemo)(()=>{var G;const Z=fe.getDefinition();return Object.values(null!=(G=Z.inputs)?G:{}).filter(G=>"input.timerange"===G.type)},[fe]),Ce=(0,Ie.useCallback)((G,{value:Z})=>{var ne,ie;if("dynamic"===Z){const Z=null!=(ie=null==(ne=ge[0].options)?void 0:ne.token)?ie:"";se(G,{earliest:`$${Z}.earliest$`,latest:`$${Z}.latest$`})}else"static"===Z?se(G,{earliest:"-24h@h",latest:"now"}):"default"===Z&&se(G,{earliest:void 0,latest:void 0})},[ge,se]),Se=(0,Ie.useMemo)(()=>{switch(me.type){case"dynamic":return ze.createElement(DynamicTimeRangeConfigEditor_default,{token:me.token,onChange:se});case"static":return ze.createElement(StaticTimeRangeConfigEditor_default,{earliest:me.earliest,latest:me.latest,onChange:se,TimeRangeConnector:ce});case"default":return ze.createElement(DefaultTimeRangeConfigEditor_default,{defaultEarliest:me.earliest,defaultLatest:me.latest});default:return ze.createElement(Rt,{earliest:me.earliest,latest:me.latest})}},[me,se,ce]);return ze.createElement("div",{"data-test":"time-range-editor"},ze.createElement(yt.ControlGroup,{label:"",labelPosition:"top",hideLabel:!0,help:Gt[me.type]},ze.createElement(Dt,{"data-test":"time-range-type-radio-bar",onChange:Ce,value:me.type},ze.createElement(Dt.Option,{label:"Input",value:"dynamic",disabled:0===ge.length}),ze.createElement(Dt.Option,{label:"Static",value:"static"}),ze.createElement(Dt.Option,{label:"Default",value:"default"}))),ze.createElement(yt.ControlGroup,{label:"",labelPosition:"top",hideLabel:!0,help:Zt[me.type],controlsLayout:"stack"},Se))},Jt=It.div` width: 100%; `,CloudSearchEditor=({defaultOptions:G,options:Z,onOptionsChange:ne,dataSourceId:ie})=>{const se=(0,yt.useSearchBNF)(),ce=(0,kt.useDataSourceContext)(),{enableDSModuleEditor:fe}=(0,kt.useFeatureFlags)(),me=(0,Ie.useCallback)((G,{value:ie})=>{ne(__spreadProps(__spreadValues({},Z),{query:ie}))},[Z,ne]),ge=(0,Ie.useCallback)(G=>{ne(__spreadProps(__spreadValues({},Z),{module:G.trim()}))},[Z,ne]),Ce=(0,Ie.useCallback)((G,ie)=>{ne(__spreadProps(__spreadValues({},Z),{queryParameters:__spreadValues(__spreadValues({},Z.queryParameters),ie)}))},[Z,ne]),{query:Se="",module:Me,queryParameters:ke={}}=Z,{query:xe="",queryParameters:De={}}=G,Re=(0,ot.isUndefined)(Me)?(null==ce?void 0:ce.defaultModule)||"":Me;return ze.createElement(Jt,null,ze.createElement(yt.Option,{"data-test":"ds-editor-search-option",label:(0,ht._)("Search with SPL2")},ze.createElement(Mt,{syntax:se,showLineNumbers:!1,minLines:4,value:Se||xe,onChange:me})),ze.createElement(yt.Separator,null),fe&&ze.createElement(ze.Fragment,null,ze.createElement(yt.Option,{"data-test":"ds-editor-module-option",label:(0,ht._)("Specify data source module")},ze.createElement(yt.TextEditor,{canClear:!0,placeholder:(0,ht._)("Default module used if no value specified."),value:Re,onValueChange:ge,uniqKey:ie})),ze.createElement(yt.Separator,null)),ze.createElement(yt.Option,{"data-test":"ds-editor-time-range-option",label:(0,ht._)("Time range")},ze.createElement(TimeRangeEditor_default,{earliest:ke.earliest,latest:ke.latest,defaultEarliest:De.earliest,defaultLatest:De.latest,onChange:Ce})),ze.createElement(yt.Separator,null))};CloudSearchEditor.propTypes={defaultOptions:it.object,options:it.object,onOptionsChange:it.func,dataSourceId:it.string},CloudSearchEditor.defaultProps={defaultOptions:{},options:{},onOptionsChange:ct.noop};var Qt=CloudSearchEditor,on={};__export(on,{default:()=>cn});var sn=__toESM(ne(978));__reExport(on,ne(978));var cn="default"in sn?sn.default:sn,TestDataSourceEditor=()=>ze.createElement(Jt,null,ze.createElement(yt.Option,{label:(0,ht._)("Mock data")},ze.createElement(cn,{type:"warning"},"No editor for mock data source")));TestDataSourceEditor.propTypes={meta:it.object,options:it.object,onOptionsChange:it.func},TestDataSourceEditor.defaultProps={meta:{},options:{},onOptionsChange:ct.noop};var dn=TestDataSourceEditor,mn={"ds.search":Qt,"ds.test":dn},_n={};__export(_n,{default:()=>bn});var gn=__toESM(ne(240));__reExport(_n,ne(240));var bn="default"in gn?gn.default:gn,yn={};__export(yn,{default:()=>wn});var vn=__toESM(ne(4102));__reExport(yn,ne(4102));var wn="default"in vn?vn.default:vn,Cn={};__export(Cn,{default:()=>Mn});var On=__toESM(ne(1305));__reExport(Cn,ne(1305));var Mn="default"in On?On.default:On,kn={};__export(kn,{default:()=>Tn});var xn=__toESM(ne(1153));__reExport(kn,ne(1153));var Tn="default"in xn?xn.default:xn,Dn={};__export(Dn,{default:()=>jn});var En=__toESM(ne(695));__reExport(Dn,ne(695));var jn="default"in En?En.default:En,OpenInSearch_default=({type:G,options:Z})=>{const ne=(0,Ie.useCallback)(()=>{var ne,ie,se,ce;const fe=`app/${Dn.app}/search`,me=null!=(ie=null==(ne=Z.queryParameters)?void 0:ne.earliest)?ie:"-24h@h",ge=null!=(ce=null==(se=Z.queryParameters)?void 0:se.latest)?ce:"now";switch(G){case"savedSearch":window.open((0,kn.createURL)(fe,{s:Z.ref}),"_blank");break;case"querySearch":window.open((0,kn.createURL)(fe,{earliest:me,latest:ge,q:Z.query}),"_blank")}},[Z,G]);return ze.createElement(Mn,{onClick:ne,openInNewContext:!0,"data-test":"open-in-search-link"},(0,ht._)("Open in search"))},EnterpriseSearchEditor=({options:G,onOptionsChange:Z,defaultOptions:ne,splunkTheme:ie})=>{const se=(0,yt.useSearchBNF)(),ce=(0,Ie.useMemo)(()=>(0,ot.debounce)((ne,{value:ie})=>{Z(__spreadProps(__spreadValues({},G),{query:ie}))},250),[G,Z]),fe=(0,Ie.useCallback)((ne,ie)=>{Z(__spreadProps(__spreadValues({},G),{queryParameters:__spreadValues(__spreadValues({},G.queryParameters),ie)}))},[G,Z]),{query:me="",queryParameters:ge={}}=G,{query:Ce="",queryParameters:Se={}}=ne,Me=(0,Bt.useSelector)(Bt.selectSubmittedTokens),ke=(0,Ie.useMemo)(()=>(0,ct.replaceTokensForObject)((0,ot.defaultsDeep)({},G,ne),Me),[Me,G,ne]),xe=(0,Ie.useMemo)(()=>ze.createElement(ze.Fragment,null,ze.createElement("span",null,(0,ht._)("SPL query")),ze.createElement(OpenInSearch_default,{options:ke,type:"querySearch"})),[ke]);return ze.createElement(Jt,null,ze.createElement(yt.Option,{label:xe},ze.createElement(Mt,{syntax:se,showLineNumbers:!1,minLines:4,value:me||Ce,onChange:ce,theme:ie.colorScheme})),ze.createElement(yt.Separator,null),ze.createElement(yt.Option,{"data-test":"ds-editor-time-range-option",label:(0,ht._)("Time range")},ze.createElement(TimeRangeEditor_default,{earliest:ge.earliest,latest:ge.latest,defaultEarliest:Se.earliest,defaultLatest:Se.latest,onChange:fe,TimeRangeConnector:wn})),ze.createElement(yt.Separator,null))};EnterpriseSearchEditor.propTypes={defaultOptions:it.object,options:it.object,onOptionsChange:it.func,splunkTheme:it.object},EnterpriseSearchEditor.defaultProps={defaultOptions:{},options:{},onOptionsChange:ct.noop,splunkTheme:{}};var Pn=(0,_n.withSplunkTheme)(EnterpriseSearchEditor),Nn={};__export(Nn,{default:()=>Wn});var qn=__toESM(ne(110));__reExport(Nn,ne(110));var Wn="default"in qn?qn.default:qn,Bn=It.div` display: flex; padding-top: 2px; `,Hn=It.div` width: 40%; font-weight: 500; `,$n=It.div` .disabled .ace_content { opacity: 1; } `,EnterpriseSavedSearchEditor=({options:G,dataSourceMetaData:Z})=>{const{author:ne,updated:ie,app:se,sharing:ce,isScheduled:fe,nextScheduledTime:me,earliestTime:ge="-24h@h",latestTime:Ce="now",savedSearchQuery:Se}=Z||{},Me=(0,yt.useSearchBNF)(),ke=(0,Ie.useMemo)(()=>{switch(ce){case"global":return(0,ht._)("Global");case"app":return(0,ht._)("App");case"user":return(0,ht._)("Private");default:return ce}},[ce]),xe=(0,Ie.useMemo)(()=>ie?Wn.newSplunkTime({time:ie}).fromNow():"",[ie]),De=(0,Ie.useMemo)(()=>ze.createElement(ze.Fragment,null,ze.createElement("span",null,(0,ht._)("SPL query")),ze.createElement(OpenInSearch_default,{options:G,type:"savedSearch"})),[G]);return ze.createElement(Jt,null,ze.createElement(yt.Option,{label:De},ze.createElement($n,null,ze.createElement(Mt,{syntax:Me,showLineNumbers:!1,minLines:4,value:Se,enabled:!1}))),!!Z&&ze.createElement(ze.Fragment,null,ze.createElement(yt.Separator,null),ze.createElement(yt.Option,{"data-test":"ds-editor-time-range-option",label:(0,ht._)("Time range")},ze.createElement(Rt,{earliest:ge,latest:Ce})),ze.createElement(yt.Separator,null),ze.createElement(yt.OptionContainer,{"data-test":"ds-editor-meta-data-option"},ze.createElement("div",{"data-test":"option-content"},ze.createElement(Bn,{"data-test":"saved-search-creator"},ze.createElement(Hn,null,(0,ht._)("Creator")),ne),ze.createElement(Bn,{"data-test":"saved-search-app"},ze.createElement(Hn,null,(0,ht._)("App")),se),ze.createElement(Bn,{"data-test":"saved-search-permissions"},ze.createElement(Hn,null,(0,ht._)("Permissions")),ke),!!ie&&ze.createElement(Bn,{"data-test":"saved-search-last-edited"},ze.createElement(Hn,null,(0,ht._)("Last edited")),ze.createElement("div",{title:ie},xe)),fe&&ze.createElement(Bn,{"data-test":"saved-search-schedule"},ze.createElement(Hn,null,(0,ht._)("Next scheduled time")),me)))))};EnterpriseSavedSearchEditor.propTypes={dataSourceMetaData:it.object,options:it.object},EnterpriseSavedSearchEditor.defaultProps={dataSourceMetaData:{},options:{}};var Vn=EnterpriseSavedSearchEditor,Un={};__export(Un,{default:()=>Xn});var Kn=__toESM(ne(458));__reExport(Un,ne(458));var Xn="default"in Kn?Kn.default:Kn,Gn={};__export(Gn,{default:()=>Jn});var Zn=__toESM(ne(312));__reExport(Gn,ne(312));var Jn="default"in Zn?Zn.default:Zn,Qn=It.div` .disabled .ace_content { opacity: 1; } `,noop4=()=>{},er=Object.freeze({}),getDsName=G=>G||(0,ht._)("Unnamed"),OpenInSearchLink=({completeSearch:G,query:Z})=>{const ne=(0,Bt.useSelector)(Bt.selectSubmittedTokens),ie=ne?(0,ct.replaceTokens)(Z,ne):Z,se=(0,Ie.useMemo)(()=>__spreadProps(__spreadValues({},G),{query:(0,Un.mergeSearches)(null==G?void 0:G.query,null!==ie?ie:void 0)}),[ie,G]);return ze.createElement(OpenInSearch_default,{type:"querySearch",options:se})},EnterpriseChainSearchEditor=({options:G=er,defaultOptions:{query:Z=""}=er,dataSourceId:ne="",onOptionsChange:ie=noop4,definition:se=er,dashboardApi:ce=er,dataSourceName:fe})=>{const{query:me,extend:ge=""}=G,Ce=(0,yt.useSearchBNF)(),Se=(()=>{let{chainSearches:G}=(0,kt.useDocumentationLinks)();if(!G){(0,ct.deprecated)('Missing the "chainSearches" documentation link');G="cloud"===(0,ot.get)(window,["__splunkd_partials__","/services/server/info","entry",0,"content","instance_type"])?"sds.chain.base":"sds.ent.chain"}return(0,kn.createDocsURL)(G)})(),Me=(0,Ie.useCallback)(()=>{window.open(Se)},[Se]),ke=(0,Ie.useCallback)((Z,{value:ne})=>{ie(__spreadProps(__spreadValues({},G),{query:ne}))},[G,ie]),xe=(0,Ie.useCallback)((Z,{value:ne})=>{ie(__spreadProps(__spreadValues({},G),{extend:ne}))},[ie,G]),De=(0,Ie.useMemo)(()=>Gn.DashboardDefinition.fromJSON(se),[se]),{baseSearches:Re,chainSearches:$e}=(0,Ie.useMemo)(()=>{const G=De.getBaseDataSources();return{baseSearches:(0,ot.pickBy)(G,(G,Z)=>{var ie,se;return!(null!=(se=null==(ie=G.options)?void 0:ie.extend)&&se)&&Z!==ne}),chainSearches:(0,ot.pickBy)(G,(G,Z)=>{var ie,se;const ce=null!=(se=null==(ie=null==G?void 0:G.options)?void 0:ie.extend)?se:"";return ce&&ce!==ne&&Z!==ne})}},[De,ne]),Je=(0,Ie.useCallback)(G=>ce.getDataSourceMetaData(G),[ce]),{earliest:it,latest:at}=(0,Un.getBaseTime)({definition:De,dataSourceId:ge,getMetaData:Je}),st=(0,Ie.useMemo)(()=>{var G,Z,ne;let ie=ge;const ce=[];for(;ie&&ce.length{const G=ce.getCompleteSearchQueryAndParameters(ge);return ze.createElement(ze.Fragment,null,ze.createElement("span",null,getDsName(st[0].name)),ze.createElement(OpenInSearchLink,{completeSearch:G,query:me}))},[st,ce,me,ge]),dt=(0,Ie.useMemo)(()=>st.map(({id:G,name:Z,options:ne},ie)=>{var se;let ce=null==ne?void 0:ne.query;ce||(ce=null==(se=Je(G))?void 0:se.savedSearchQuery);const fe=ze.createElement(Qn,{key:Z||"unnamed"+ie},ze.createElement(Mt,{placeholder:(0,ht._)("could not find parent SPL"),enabled:!1,syntax:Ce,showLineNumbers:!1,minLines:2,value:ce,autoFocus:!1})),me=getDsName(Z);return 0===ie?fe:ze.createElement(ze.Fragment,{key:me},ze.createElement(yt.OptionLabel,null,me),fe)}),[st,Ce,Je]),ft=(0,Ie.useMemo)(()=>fe?ze.createElement(yt.OptionLabel,null,fe):null,[fe]);return ze.createElement(Jt,null,ze.createElement(yt.Option,{"data-test":"ds-editor-search-option-extend",label:ze.createElement(ze.Fragment,null,ze.createElement("div",null,(0,ht._)("Parent search")),ze.createElement(Mn,{key:"learn-more",onClick:Me,"data-test":"learn-more-link",openInNewContext:!0},(0,ht._)("Learn more")))},ze.createElement("div",{"data-test":"option-content"},ze.createElement(Wt,{inline:!1,value:ge,onChange:xe},!(0,ot.isEmpty)(Re)&&ze.createElement(Wt.Heading,null,(0,ht._)("Searches")),(0,ot.map)(Re,(G,Z)=>{var ne;const ie="ds.savedSearch"===G.type?null==(ne=G.options)?void 0:ne.ref:G.name;return ze.createElement(Wt.Option,{key:Z,label:getDsName(ie),value:Z})}),!(0,ot.isEmpty)($e)&&ze.createElement(Wt.Heading,null,(0,ht._)("Chain Searches")),(0,ot.map)($e,(G,Z)=>ze.createElement(Wt.Option,{key:Z,label:getDsName(G.name),value:Z}))))),ze.createElement(yt.Option,{label:ut},dt,ft,ze.createElement(Mt,{syntax:Ce,showLineNumbers:!1,minLines:4,value:me||Z,onChange:ke})),ze.createElement(yt.Separator,null),ze.createElement(yt.Option,{"data-test":"ds-editor-time-range-option",label:(0,ht._)("Time range")},ze.createElement(Rt,{earliest:it,latest:at})),ze.createElement(yt.Separator,null))};EnterpriseChainSearchEditor.propTypes={defaultOptions:it.object,dataSourceId:it.string,options:it.object,onOptionsChange:it.func,definition:it.object,dashboardApi:it.object};var tr={"ds.search":Pn,"ds.savedSearch":Vn,"ds.test":dn,"ds.chain":EnterpriseChainSearchEditor},nr={};__export(nr,{default:()=>ir});var rr=__toESM(ne(1157));__reExport(nr,ne(1157));var ir="default"in rr?rr.default:rr,ar={};__export(ar,{default:()=>lr});var sr=__toESM(ne(2010));__reExport(ar,ne(2010));var lr="default"in sr?sr.default:sr,ur={};__export(ur,{default:()=>pr});var dr=__toESM(ne(1156));__reExport(ur,ne(1156));var pr="default"in dr?dr.default:dr,fr=It.div` padding: 0 15px; `,CustomUrlDrilldown=({options:G,onChange:Z,error:ne})=>{const ie=(0,ht._)("Use a relative URL or absolute URL, for example, /app/search/datasets, or https://www.splunk.com"),se=(0,Ie.useCallback)((ne,{value:ie=""})=>Z({url:ie.trim(),newTab:G.newTab}),[Z,G]),ce=(0,Ie.useCallback)(()=>Z({url:G.url,newTab:!G.newTab}),[Z,G]),fe=null!=ne;return ze.createElement(fr,null,ze.createElement(ir,{label:(0,ht._)("URL"),labelPosition:"top",help:ie,error:fe},ze.createElement(pr,{error:fe,multiline:!0,defaultValue:G.url,onChange:se})),ze.createElement(lr,{onClick:ce,selected:!!G.newTab,appearance:"checkbox"},(0,ht._)("Open in new tab")))};CustomUrlDrilldown.label=(0,ht._)("Link to custom URL"),CustomUrlDrilldown.areOptionsValid=(G={})=>(0,ct.isValidUrl)(G.url)||(0,ct.startsWithToken)(G.url)?null:(0,ht._)("Invalid URL"),CustomUrlDrilldown.propTypes={options:it.shape({url:it.string,newTab:it.bool}),onChange:it.func.isRequired,error:it.any},CustomUrlDrilldown.defaultProps={options:{url:"",newTab:!0}};var mr=CustomUrlDrilldown,_r={};__export(_r,{default:()=>yr});var gr=__toESM(ne(41));__reExport(_r,ne(41));var yr="default"in gr?gr.default:gr,vr={};__export(vr,{default:()=>Cr});var wr=__toESM(ne(4103));__reExport(vr,ne(4103));var Cr="default"in wr?wr.default:wr,Or={};__export(Or,{default:()=>Mr});var Sr=__toESM(ne(640));__reExport(Or,ne(640));var Mr="default"in Sr?Sr.default:Sr,kr={};__export(kr,{default:()=>Lr});var xr=__toESM(ne(4104));__reExport(kr,ne(4104));var Lr="default"in xr?xr.default:xr,Tr={};__export(Tr,{default:()=>Dr});var Ar=__toESM(ne(389));__reExport(Tr,ne(389));var Dr="default"in Ar?Ar.default:Ar,Er=It.div` margin-top: 10px; margin-left: 15px; margin-right: 15px; `,jr=[{value:"name",description:(0,ht._)("Field name of the value/location clicked")},{value:"value",description:(0,ht._)("Value of the location clicked")},{value:"row..value",description:(0,ht._)("Value in the specified series corresponding to the location clicked")}],Pr={},TokenValueEditor_default=G=>{const{tokenType:Z,value:ne,onChange:ie,hasError:se}=G,{availableDrilldownTokens:ce}=(0,kt.useDocumentationLinks)(),fe=(0,Ie.useMemo)(()=>ce?ze.createElement(Mn,{openInNewContext:!0,to:ce},(0,ht._)("See All Available Keys")):null,[ce]),me=(0,Ie.useCallback)((G,Z)=>ie(Z),[ie]),ge=(0,Ie.useCallback)(G=>ie(G),[ie]);return Array.isArray(ne)?null:"dynamic"===Z?ze.createElement(yt.ComboBoxEditor,{error:se,value:ne,onChange:me,footerMessage:fe,options:jr,placeholder:(0,ht._)("Choose an event key")}):ze.createElement(yt.TextEditor,{error:se,value:ne||"",onValueChange:ge,placeholder:(0,ht._)("Enter a value"),uniqKey:Pr})},Ir=(0,ht._)("Create a name for this token. This will be used to reference the token elsewhere in the dashboard with the $token_name$ syntax."),Nr=(0,ht._)("A predefined token captures information when a user clicks different visualization elements."),Rr=(0,ht._)("A static token value is set to a specific string that does not change."),zr=(0,ht._)("This token is used in a drilldown event for another visualization. Changing the default value applies to all places the token is used."),qr=(0,ht._)("A default value is stored as static text and will be used when there is no other value for the token."),Wr={},Br=It(ir)` flex: 1; // override the ControlGroup's style because it assumes the ControlGroups are stacked vertically but that's not the case here. &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } `,Fr=It.div` display: flex; justify-content: space-between; align-items: center; `,Hr=It.div` display: flex; justify-content: space-between; align-items: flex-start; `,$r=It.div` ${_n.mixins.reset("block")}; padding-left: 8px; padding-right: 8px; line-height: ${(0,_n.pick)({enterprise:"32px",prisma:"40px"})}; margin-top: ${(0,_n.pick)({enterprise:{comfortable:"32px",compact:"27px"},prisma:{comfortable:"29px",compact:"25px"}})}; `,Vr=It(Cr)` margin-bottom: 0; font-size: 1rem; `,Yr=It(Mr)` flex-grow: 0; `,Ur=It(Cr)` margin-top: 12px; `,cleanToken=({token:G,tokenType:Z,value:ne})=>{const ie=__spreadValues({},G);return"dynamic"===Z?(ie.key=ne,delete ie.value):(ie.value=ne,delete ie.key),ie},TokenEditor_default=({token:G,onTokenChange:Z,onDeleteToken:ne,error:ie,canSetTokens:se=[],defInstance:ce,selectedItemId:fe})=>{const{token:me,key:ge,value:Ce,defaultValue:Se}=G,Me=(0,kt.useFeatureFlags)(),ke=Array.isArray(se)&&se.includes("static"),xe=Array.isArray(se)&&se.includes("dynamic"),De=xe?(G=>void 0!==G.key?"dynamic":"static")(G):"static",Re="dynamic"===De,$e=Re?Nr:Rr,Je=Re?ge:Ce,it=(0,Ie.useMemo)(()=>{var G;return(null==(G=ce.getInputByToken(me))?void 0:G.title)||void 0},[ce,me]),ot=(0,Ie.useCallback)(ne=>{var ie;const se=(null==(ie=ce.getDefaultStaticTokens().default)?void 0:ie[ne])||Se;Z(__spreadProps(__spreadValues({},G),{defaultValue:se,token:ne}))},[ce,Se,Z,G]),at=(0,Ie.useCallback)(ne=>{Z(cleanToken({token:G,tokenType:De,value:ne}))},[De,G,Z]),st=(0,Ie.useCallback)(ne=>{ne!==Se&&Z(__spreadProps(__spreadValues({},G),{defaultValue:ne}))},[Se,Z,G]),ct=(0,Ie.useCallback)((ne,{value:ie})=>{const se="dynamic"===ie;Z(cleanToken({token:G,tokenType:se?"dynamic":"static",value:se&&!Array.isArray(G.value)?G.value:G.key}))},[G,Z]),ut=(0,Ie.useMemo)(()=>ze.createElement(Tr.Remove,{hideDefaultTooltip:!0,screenReaderText:(0,ht._)("Delete token"),size:"16px"}),[]),dt=(0,Ie.useMemo)(()=>{if(ce.getVisualizationIdsUsingToken(me).filter(G=>G!==fe).length>0&&!it)return zr},[ce,it,fe,me]),{family:ft}=(0,_n.useSplunkTheme)(),_t=it||!Se?"":Se;return ze.createElement("div",{"data-test":"token-editor"},ze.createElement(yt.Separator,null),ze.createElement(Er,null,ze.createElement(Fr,null,ze.createElement(Vr,{"data-test":"token-header"},(0,ht._)("Set token")," ",me?`(${me})`:null),ze.createElement(Yr,{"data-test":"delete-token",appearance:"enterprise"===ft?"pill":"secondary",icon:ut,onClick:ne})),ze.createElement(Wt,{value:De,onChange:ct},xe&&ze.createElement(Wt.Option,{label:(0,ht._)("Use predefined token"),value:"dynamic",key:"dynamic"}),ke&&ze.createElement(Wt.Option,{label:(0,ht._)("Enter static value"),value:"static",key:"static"})),ze.createElement(Ur,null,$e),ze.createElement(Hr,null,ze.createElement(Br,{key:me,"data-test":"token-name",label:(0,ht._)("Token name"),tooltip:Ir,labelPosition:"top",error:!!(null==ie?void 0:ie.tokenError),help:null==ie?void 0:ie.tokenError},ze.createElement(yt.TextEditor,{error:!!(null==ie?void 0:ie.tokenError),value:me,onValueChange:ot,uniqKey:Wr,placeholder:(0,ht._)("Create a name")})),ze.createElement($r,null,"="),ze.createElement(Br,{key:"token-value_"+me,"data-test":"token-value",label:(0,ht._)("Token value"),labelPosition:"top",error:!!(null==ie?void 0:ie.valueError),help:null==ie?void 0:ie.valueError},ze.createElement(TokenValueEditor_default,{tokenType:De,value:Je,onChange:at,hasError:!!(null==ie?void 0:ie.valueError)}))),Me.enableDefaultTokenUI&&"string"==typeof _t?ze.createElement(ir,{controlsLayout:"stack",key:`default-token-value_${Se||me}_${it}`,"data-test":"default-token-value",label:(0,ht._)("Default value"),tooltip:qr,labelPosition:"top",help:dt},ze.createElement(yt.TextEditor,{disabled:!!it,value:_t,onValueChange:st,placeholder:it?(vt=it,`${(0,ht._)("Set by")} '${vt}' ${(0,ht._)("input")}`):(0,ht._)("Enter a default value"),uniqKey:Wr})):null));var vt},TokensEditor_default=({tokens:G,onTokensChange:Z,error:ne,validate:ie,canSetTokens:se=[],defInstance:ce,selectedItemId:fe})=>{const me=(0,Ie.useRef)(G.map(()=>(0,ot.uniqueId)())),ge=(0,Ie.useCallback)(()=>{me.current=[...me.current,(0,ot.uniqueId)()],Z([...G,{token:"",key:""}])},[Z,G]),Ce=(0,Ie.useCallback)(ne=>ie=>{Z([...G.slice(0,ne),__spreadValues({},ie),...G.slice(ne+1)])},[Z,G]),Se=(0,Ie.useCallback)(ne=>()=>{const se=[...G.slice(0,ne),...G.slice(ne+1)];me.current=[...me.current.slice(0,ne),...me.current.slice(ne+1)],Z(se),ie(se)},[Z,G,ie]),Me=(0,Ie.useMemo)(()=>G.map((G,Z)=>{var ie;return ze.createElement(TokenEditor_default,{key:me.current[Z],token:G,onTokenChange:Ce(Z),onDeleteToken:Se(Z),error:null!=(ie=null==ne?void 0:ne[Z])?ie:null,canSetTokens:se,defInstance:ce,selectedItemId:fe})}),[G,Ce,Se,ne,se,ce,fe]),ke=(0,Ie.useMemo)(()=>ze.createElement(Lr,{hideDefaultTooltip:!0,screenReaderText:null}),[]);return ze.createElement(ze.Fragment,null,Me,ze.createElement(yt.Separator,null),ze.createElement(Er,null,ze.createElement(Mr,{"data-test":"add-token",appearance:"secondary",icon:ke,onClick:ge,label:(0,ht._)("Set another token")})))},Kr=(0,ht._)("Token value is empty or contains invalid characters."),Xr=(0,ht._)("Token value is empty or contains invalid characters."),Gr=(0,ht._)("Token name is duplicate."),Zr=It.span` font-weight: bold; `,Jr={tokens:[]},normalizeTokens=({token:G,key:Z,tokens:ne})=>G&&Z?[{token:G,key:Z}]:ne||[],areOptionsValid=(G={})=>{const{token:Z,key:ne,tokens:ie}=G,se=normalizeTokens({token:Z,key:ne,tokens:ie}),ce=new Set,fe=se.map(({token:G,key:Z,value:ne})=>{const ie=ce.has(G);ce.add(G);const se=ie?Gr:(0,ct.getTokenNameError)(G);let fe=null;return void 0!==Z?(G=>"string"!=typeof G||0===G.length||G.includes("$"))(Z)&&(fe=Kr):(G=>"string"!=typeof G||0===G.trim().length)(ne)&&(fe=Xr),{tokenError:se,valueError:fe}});return fe.filter(({tokenError:G,valueError:Z})=>null!=G||null!=Z).length>0?fe:null},SetToken=({options:G=Jr,onChange:Z,onError:ne,error:ie=null,canSetTokens:se=[],defInstance:ce,selectedItemId:fe})=>{const me=(0,Ie.useRef)(!0),ge=me.current;me.current=!1;const{token:Ce,key:Se,tokens:Me=(ge?[{token:"",key:""}]:Jr.tokens)}=G,ke=(0,Ie.useCallback)(G=>G.map(G=>{var Z;return(0,ct.isValidTokenValue)(G.defaultValue)||""===G.defaultValue?G:__spreadProps(__spreadValues({},G),{defaultValue:null==(Z=ce.getDefaultStaticTokens().default)?void 0:Z[G.token]})}),[ce]),xe=(0,Ie.useMemo)(()=>ke(normalizeTokens({token:Ce,key:Se,tokens:Me})),[ke,Ce,Se,Me]),De=(0,Ie.useCallback)(ne=>{Z(__spreadProps(__spreadValues({},yr(G,"token","key")),{tokens:ne}))},[Z,G]),Re=(0,Ie.useCallback)(G=>{ne(areOptionsValid({tokens:G}))},[ne]),{learnMoreSetTokens:$e}=(0,kt.useDocumentationLinks)(),Je=(0,Ie.useMemo)(()=>$e?ze.createElement(Cr,null,ze.createElement(Mn,{openInNewContext:!0,to:$e},(0,ht._)("Learn more"))):null,[$e]);return ze.createElement("div",{"data-test":"drilldown-editor-set-token"},ze.createElement(Er,null,ze.createElement(Cr,null,(0,ht._)("Tokens are used to configure interactivity in the dashboard.")),ze.createElement(Cr,null,(0,ht._)("For example: "),ze.createElement(Zr,null,"host = row.host.value")),Je),ze.createElement(TokensEditor_default,{tokens:xe,onTokensChange:De,validate:Re,error:ie,canSetTokens:se,defInstance:ce,selectedItemId:fe}))};SetToken.label=(0,ht._)("Set tokens"),SetToken.areOptionsValid=areOptionsValid;var Qr={"drilldown.customUrl":mr,"drilldown.setToken":SetToken},ei={};__export(ei,{default:()=>ni});var ti=__toESM(ne(1261));__reExport(ei,ne(1261));var ni="default"in ti?ti.default:ti,ri={ADD_SUBMIT_BUTTON:(0,ht._)("Add submit button"),SUBMIT_ON_LOAD:(0,ht._)("Submit on initial dashboard load"),SHOW_TITLE:(0,ht._)("Show title and description"),HELP_TEXT:(0,ht._)("Submit all inputs above the canvas simultaneously instead of per input interaction")},ii={label:(0,ht._)("Submit button options"),layout:[[{label:ri.ADD_SUBMIT_BUTTON,option:"submitButton",editor:"editor.toggle",editorProps:{help:ri.HELP_TEXT}}],[{label:ri.SUBMIT_ON_LOAD,option:"submitOnDashboardLoad",editor:"editor.toggle",showEditor:({options:G})=>G.submitButton}]]},oi=[{label:ri.SHOW_TITLE,option:"showTitleAndDescription",editor:"editor.toggle"}],ai={};__export(ai,{default:()=>li});var si=__toESM(ne(4105));__reExport(ai,ne(4105));var li="default"in si?si.default:si,ci={};__export(ci,{default:()=>di});var ui=__toESM(ne(4106));__reExport(ci,ne(4106));var di="default"in ui?ui.default:ui,pi={};__export(pi,{default:()=>fi});var hi=__toESM(ne(4128));__reExport(pi,ne(4128));var fi="default"in hi?hi.default:hi,mi={};__export(mi,{default:()=>gi});var _i=__toESM(ne(4135));__reExport(mi,ne(4135));var gi="default"in _i?_i.default:_i,bi={sizeType:{default:"contain"}},yi=[{label:(0,ht._)("Contain"),value:"contain"},{label:(0,ht._)("Custom"),value:"custom"},{label:(0,ht._)("Cover"),value:"cover"},{label:(0,ht._)("Original size"),value:"auto"}],vi=["auto","contain","cover"],BackgroundImageEditor=({name:G,value:Z,onChange:ne,label:ie=""})=>{const se=(0,kt.useImageRegistry)(),[ce,fe]=(0,Ie.useState)(""),[me,ge]=(0,Ie.useState)({width:0,height:0});(0,Ie.useEffect)(()=>{const fetchMeta=()=>__async(void 0,null,(function*(){const{dataUri:G}=yield(ne={registry:se,src:Z.src},__async(void 0,[ne],(function*({registry:G,src:Z}){if(G&&G.isResourceURL(Z)){const ne=yield G.getByURL(Z);return{dataUri:ne.dataURI,fileName:ne.metaData.name}}return{dataUri:Z,fileName:Z}})));var ne;fe(G)}));Z.src&&fetchMeta()},[se,Z.src]),(0,Ie.useEffect)(()=>{ce&&(()=>{__async(void 0,null,(function*(){const G=yield(G=>__async(void 0,null,(function*(){return new Promise(Z=>{const ne=new Image;ne.onload=()=>{Z({width:ne.width,height:ne.height})},ne.onerror=()=>{Z({width:0,height:0})},ne.src=G})})))(ce);ge(G)}))})()},[ce]);const Ce=(0,Ie.useMemo)(()=>Z.w||Z.h?"custom":vi.includes(Z.sizeType)?Z.sizeType:bi.sizeType.default,[Z]),Se=(0,Ie.useMemo)(()=>{const{x:G=0,y:ne=0,w:ie,h:se}=Z;return vi.includes(Ce)?{x:G,y:ne,w:me.width,h:me.height}:{x:G,y:ne,w:ie||me.width,h:se||me.height}},[Z,Ce,me]),Me=(0,Ie.useCallback)((ie,se,ce)=>{if("src"===se&&!ce)return ne(null,G,null);const fe=__spreadProps(__spreadValues(__spreadProps(__spreadValues({},Z),{sizeType:Ce}),Se),{[se]:ce});return"w"===se&&ce!==me.width&&(fe.sizeType="custom"),"h"===se&&ce!==me.height&&(fe.sizeType="custom"),"custom"!==fe.sizeType&&(delete fe.w,delete fe.h),"custom"===fe.sizeType&&delete fe.sizeType,ne(null,G,fe)},[G,Z,ne,Ce,me,Se]);return(0,Ie.useMemo)(()=>ze.createElement("div",{"data-test":"background-image-editor"},ze.createElement(di,{value:Z.src,name:"src",label:ie,onChange:Me}),Z.src&&ze.createElement(ze.Fragment,null,ze.createElement(fi,{value:Ce,label:"",onChange:Me,values:yi,itemSchema:bi.sizeType,name:"sizeType"}),ze.createElement(li,{gutter:5},(G=>"custom"===G||"auto"===G)(Ce)&&ze.createElement(li.Row,null,ze.createElement(li.Column,{span:6},ze.createElement(gi,{name:"w",value:Se.w,label:(0,ht._)("Image width"),onChange:Me,min:10})),ze.createElement(li.Column,{span:6},ze.createElement(gi,{name:"h",value:Se.h,label:(0,ht._)("Image height"),onChange:Me,min:10}))),ze.createElement(li.Row,null,ze.createElement(li.Column,{span:6},ze.createElement(gi,{name:"x",value:Se.x,label:(0,ht._)("X position"),onChange:Me,min:0})),ze.createElement(li.Column,{span:6},ze.createElement(gi,{name:"y",value:Se.y,label:(0,ht._)("Y position"),onChange:Me,min:0})))))),[Z.src,ie,Me,Ce,Se])};BackgroundImageEditor.propTypes={value:it.shape({sizeType:it.string,src:it.string,x:it.number,y:it.number,w:it.number,h:it.number}),onChange:it.func,name:it.string},BackgroundImageEditor.defaultProps={value:{},onChange:ct.noop};var wi=BackgroundImageEditor,Ci={};__export(Ci,{default:()=>Mi});var Oi=__toESM(ne(4137));__reExport(Ci,ne(4137));var Si,Mi="default"in Oi?Oi.default:Oi,ki=It.div` display: flex; justify-content: center; align-items: center; padding-top: 15px; `,xi=(Si=class extends Ie.Component{constructor(){super(),this.state={error:null}}static getDerivedStateFromError(G){return{error:G}}componentDidCatch(G,Z){console.error(G,Z)}render(){return this.state.error?ze.createElement(ze.Fragment,null,ze.createElement(ki,null,ze.createElement(cn,{type:"error"},this.state.error.message)),ze.createElement(yt.Separator,null)):ze.createElement(Mi,__spreadValues({},this.props))}},G=>{var Z;const{collapsibleState:ne,onCollapsibleOpen:ie,onCollapsibleClose:se}=null!=(Z=(0,kt.useSidebarContext)())?Z:{};return ze.createElement(Si,__spreadProps(__spreadValues({},G),{initialCollapsibleState:ne,onCollapsibleOpen:ie,onCollapsibleClose:se}))}),Li=[{label:(0,ht._)("Canvas"),layout:[[{label:(0,ht._)("Display mode"),option:"display",editor:"editor.radioBar",editorProps:{values:[{label:(0,ht._)("Auto"),value:"auto"},{label:(0,ht._)("Actual size"),value:"actual-size"},{label:(0,ht._)("Fit to width"),value:"fit-to-width"}]}}],[{label:(0,ht._)("Canvas width"),option:"width",editor:"editor.number",editorProps:{min:0}},{label:(0,ht._)("Canvas height"),option:"height",editor:"editor.number",editorProps:{min:0}}]]},{label:(0,ht._)("Background"),layout:[[{label:(0,ht._)("Background color"),option:"backgroundColor",editor:"editor.color",editorProps:{pickFromTheme:G=>yt.customThemeVariables.dashboardBackgroundColor({theme:G})}}],[{label:(0,ht._)("Background image"),option:"backgroundImage",editor:wi}]]},ii,{label:(0,ht._)("Preferences"),layout:[oi]}],Ti={},AbsoluteLayoutEditor_default=({options:G,onOptionsChange:Z})=>{const ne=(0,Ie.useCallback)(G=>{Z(G,{debounce:!0})},[Z]),ie=(0,Ie.useMemo)(()=>({options:G}),[G]);return ze.createElement(xi,{visualization:ie,onVisualizationChange:ne,dataContract:Ti,optionSchema:ei.AbsoluteLayoutOptionsSchema,editorLayout:Li})},Ai=[ii,{label:(0,ht._)("Preferences"),layout:[oi,[{label:(0,ht._)("Gutter size"),option:"gutterSize",editor:"editor.slider",editorProps:{min:8,max:16,step:1}}]]}],Di={},GridLayoutEditor_default=({options:G,onOptionsChange:Z})=>{const ne=(0,Ie.useCallback)(G=>{Z(G)},[Z]),ie=(0,Ie.useMemo)(()=>({options:G}),[G]);return ze.createElement(xi,{visualization:ie,onVisualizationChange:ne,dataContract:Di,optionSchema:ei.GridLayoutOptionsSchema,editorLayout:Ai})},Ei={absolute:AbsoluteLayoutEditor_default,grid:GridLayoutEditor_default},ji="x",Pi="y",Ii="h",Ni="w",getSelectedStructures=(G,Z)=>G.filter(G=>Z.indexOf(G.item)>-1),getMidPoint=(G,Z)=>{if(G!==ji&&G!==Pi)return 0;const ne=G===ji?Ni:Ii,ie=(0,ot.minBy)(Z,Z=>Z.position[G]),se=(0,ot.maxBy)(Z,Z=>Z.position[G]+Z.position[ne]),ce=(ie.position[G]+se.position[G]+se.position[ne])/2;return Math.round(ce)},buildUpdatedLayoutStructure=(G,Z)=>{const ne=(G=>{const Z={};return G.forEach(G=>{const ne=G.item;Z[ne]=G}),Z})(Z);return G.map(G=>{const Z=G.item;return ne[Z]||G})},leftAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures(G,Z),ie=Math.min(...ne.map(G=>G.position.x)),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G);return Z.position.x=ie,Z});return buildUpdatedLayoutStructure(G,se)},rightAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures(G,Z),ie=Math.max(...ne.map(G=>G.position.x+G.position.w)),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G);return Z.position.x=ie-Z.position.w,Z});return buildUpdatedLayoutStructure(G,se)},topAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures(G,Z),ie=Math.min(...ne.map(G=>G.position.y)),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G);return Z.position.y=ie,Z});return buildUpdatedLayoutStructure(G,se)},bottomAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures(G,Z),ie=Math.max(...ne.map(G=>G.position.y+G.position.h)),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G);return Z.position.y=ie-Z.position.h,Z});return buildUpdatedLayoutStructure(G,se)},horizontalAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures(G,Z),ie=getMidPoint(ji,ne),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G),{position:ne}=Z,se=Math.round(ne.w/2);return ne.x=ie-se,Z});return buildUpdatedLayoutStructure(G,se)},verticalAlign=({layoutStructures:G=[],selectedVisualizationIds:Z=[]})=>{const ne=getSelectedStructures((0,ot.cloneDeep)(G),Z),ie=getMidPoint(Pi,ne),se=ne.map(G=>{const Z=(0,ot.cloneDeep)(G),{position:ne}=Z,se=Math.round(ne.h/2);return ne.y=ie-se,Z});return buildUpdatedLayoutStructure(G,se)},Ri={cursor:"pointer"},AlignmentItem=({Icon:G,handler:Z,name:ne,layoutStructure:ie,onLayoutStructureChange:se,selectedVisualizations:ce})=>{const fe=(0,Ie.useCallback)(()=>{const G=Z({layoutStructures:ie,selectedVisualizationIds:ce});se(G)},[ie,se,ce,Z]);return ze.createElement(G,{"data-test":ne+"-icon",style:Ri,onClick:fe,size:"24px"})};AlignmentItem.propTypes={Icon:it.elementType.isRequired,handler:it.func.isRequired,name:it.string.isRequired,selectedVisualizations:it.arrayOf(it.string).isRequired,layoutStructure:it.array.isRequired,onLayoutStructureChange:it.func.isRequired};var AlignmentEditor=({layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})=>ze.createElement(li,{gutter:25,"data-test":"align-editor"},ze.createElement(li.Row,{alignItems:"center"},ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignLeft,handler:leftAlign,name:"align-left",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})),ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignCenterHorizontal,handler:horizontalAlign,name:"align-center-horiz",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})),ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignRight,handler:rightAlign,name:"align-right",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})),ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignTop,handler:topAlign,name:"align-top",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})),ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignCenterVertical,handler:verticalAlign,name:"align-center-vert",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne})),ze.createElement(li.Column,{span:2},ze.createElement(AlignmentItem,{Icon:Tr.AlignBottom,handler:bottomAlign,name:"align-bottom",layoutStructure:G,onLayoutStructureChange:Z,selectedVisualizations:ne}))));AlignmentEditor.propTypes={selectedVisualizations:it.arrayOf(it.string).isRequired,layoutStructure:it.array.isRequired,onLayoutStructureChange:it.func.isRequired};var zi=AlignmentEditor,qi={};__export(qi,{default:()=>Bi});var Wi=__toESM(ne(2015));__reExport(qi,ne(2015));var Bi="default"in Wi?Wi.default:Wi,NumberPicker_default=({title:G,value:Z,min:ne,handleChange:ie,commitOnBlur:se=!0})=>{const ce=(0,Ie.useRef)(),fe=(0,Ie.useCallback)((Z,{value:se=0})=>{ne&&se{var G;se&&(null==(G=ce.current)||G.call(ce))},[se]),ge=(0,Ie.useMemo)(()=>{const G=(0,ot.debounce)(fe,250);return ce.current=()=>G.flush(),G},[fe]);return ze.createElement(Bi,{value:Z,onBlur:me,onChange:ge,"data-test":G+"-number-picker",min:ne})},PositionAndSizeEditor=({layoutStructure:G,selectedVisualizations:Z,onLayoutStructureChange:ne})=>{const ie=(0,Ie.useCallback)((ie,se)=>{const ce=[...G];Z.forEach(Z=>{const ne=G.find(({item:G})=>G===Z),fe=G.findIndex(({item:G})=>G===Z),me=__spreadProps(__spreadValues({},ne),{position:__spreadProps(__spreadValues({},ne.position),{[ie]:se})});-1!==fe&&ce.splice(fe,1,me)}),ne(ce)},[Z,G,ne]),se=(0,Ie.useMemo)(()=>((G,Z)=>{const ne=new Set,ie=new Set,se=new Set,ce=new Set;let fe;G.forEach(G=>{fe=Z.find(({item:Z})=>Z===G),ne.add((0,ot.get)(fe,["position","x"])),ie.add((0,ot.get)(fe,["position","y"])),se.add((0,ot.get)(fe,["position","w"])),ce.add((0,ot.get)(fe,["position","h"]))});return{x:ne.size>1?null:ne.values().next().value,y:ie.size>1?null:ie.values().next().value,w:se.size>1?null:se.values().next().value,h:ce.size>1?null:ce.values().next().value}})(Z,G),[Z,G]);return ze.createElement(li,{gutter:15,"data-test":"position-size-editor"},ze.createElement(li.Row,{alignItems:"center"},ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:(0,ht._)("X position"),labelPosition:"top"},ze.createElement(NumberPicker_default,{title:"X",value:se.x,handleChange:ie}))),ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:(0,ht._)("Y position"),labelPosition:"top"},ze.createElement(NumberPicker_default,{title:"Y",value:se.y,handleChange:ie})))),ze.createElement(li.Row,{alignItems:"center"},ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:(0,ht._)("Width"),labelPosition:"top"},ze.createElement(NumberPicker_default,{title:"W",value:se.w,min:0,handleChange:ie}))),ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:(0,ht._)("Height"),labelPosition:"top"},ze.createElement(NumberPicker_default,{title:"H",value:se.h,min:0,handleChange:ie})))))};PositionAndSizeEditor.propTypes={selectedVisualizations:it.arrayOf(it.string).isRequired,layoutStructure:it.array.isRequired,onLayoutStructureChange:it.func.isRequired};var Fi=PositionAndSizeEditor,AbsoluteLayoutItemEditor=({open:G,layoutStructure:Z,onLayoutStructureChange:ne,selectedVisualizations:ie})=>{const se=(0,Ie.useMemo)(()=>ie.length>1?ze.createElement(zi,{layoutStructure:Z,onLayoutStructureChange:ne,selectedVisualizations:ie}):null,[Z,ne,ie]),ce=(0,Ie.useMemo)(()=>ie.length>0?ze.createElement(Fi,{layoutStructure:Z,selectedVisualizations:ie,onLayoutStructureChange:ne}):null,[Z,ne,ie]),fe=(0,Ie.useMemo)(()=>{if(1===ie.length){const G=Z.find(G=>G.item===ie[0]);if(!G||!(0,ct.isBlockItem)(G))return!1}return!0},[Z,ie]),me=(0,Ie.useMemo)(()=>ie.length>1?ze.createElement(yt.SidebarCollapsiblePanel,{title:(0,ht._)("Align"),defaultOpen:G,panelId:"Align"},se):null,[ie.length,se,G]);return fe?ze.createElement(ze.Fragment,null,me,ze.createElement(yt.SidebarCollapsiblePanel,{title:(0,ht._)("Position and size"),defaultOpen:G,panelId:"Position and size"},ce)):null};AbsoluteLayoutItemEditor.propTypes={open:it.bool,selectedVisualizations:it.arrayOf(it.string),layoutStructure:it.array,onLayoutStructureChange:it.func},AbsoluteLayoutItemEditor.defaultProps={open:!0,selectedVisualizations:[],layoutStructure:[],onLayoutStructureChange:ct.noop};var Hi=AbsoluteLayoutItemEditor,$i={absolute:Hi},Vi={top:{left:(0,ht._)("Top left"),right:(0,ht._)("Top right")},bottom:{left:(0,ht._)("Bottom left"),right:(0,ht._)("Bottom right")}},Yi={marginTop:0},createEditorRow=({position:G,left:Z,right:ne,handleChange:ie})=>ze.createElement(li.Row,{alignItems:"center",key:"row-"+G,style:"top"===G?Yi:void 0},ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:Vi[G].left,labelPosition:"top"},ze.createElement(NumberPicker_default,{title:G+"-left",value:null!=Z?Z:0,min:0,handleChange:ie}))),ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:Vi[G].right,labelPosition:"top"},ze.createElement(NumberPicker_default,{title:G+"-right",value:null!=ne?ne:0,min:0,handleChange:ie})))),Ui={"top-left":0,"top-right":1,"bottom-right":2,"bottom-left":3},CornerRadiusEditor=({itemId:G})=>{const Z=(0,Bt.useDispatch)(),ne=(0,Ie.useMemo)(Bt.selectCornerRadiiFactory,[]),ie=(0,Bt.useSelector)(Z=>ne(Z,G)),se=(0,Ie.useMemo)(()=>1===new Set(ie).size,[ie]),[ce,fe]=(0,Ie.useState)(se),me=(0,Ie.useCallback)((ne,ie)=>{Z((0,Bt.updateSingleCornerRadius)(G,Ui[ne],ie))},[G,Z]),ge=(0,Ie.useCallback)((ne,ie)=>{Z((0,Bt.updateAllCornerRadii)(G,ie))},[G,Z]),Ce=(0,Ie.useCallback)(()=>fe(G=>!G),[]),Se=(0,Ie.useMemo)(()=>[createEditorRow({position:"top",left:ie[0],right:ie[1],handleChange:me}),createEditorRow({position:"bottom",left:ie[3],right:ie[2],handleChange:me})],[ie,me]),Me=(0,Ie.useMemo)(()=>{var G;return ze.createElement(li.Row,{alignItems:"center"},ze.createElement(li.Column,{span:6},ze.createElement(yt.ControlGroup,{label:(0,ht._)("Corner radius"),labelPosition:"top"},ze.createElement(NumberPicker_default,{"data-test":"radius-linked",title:"corner-radius",min:0,value:se?null!=(G=ie[0])?G:0:void 0,handleChange:ge}))))},[ie,se,ge]);return ze.createElement(li,{gutter:15,"data-test":"corner-radius-editor"},ze.createElement(li.Row,{alignItems:"center"},ze.createElement(li.Column,{span:12},ze.createElement(lr,{selected:!ce,onClick:Ce},(0,ht._)("Independent corner radius")))),ce?Me:Se)},Ki={};__export(Ki,{default:()=>Gi});var Xi=__toESM(ne(4317));__reExport(Ki,ne(4317));var Gi="default"in Xi?Xi.default:Xi,Zi={};__export(Zi,{default:()=>Qi});var Ji=__toESM(ne(4152));__reExport(Zi,ne(4152));var Qi="default"in Ji?Ji.default:Ji,eo={};__export(eo,{default:()=>no});var to=__toESM(ne(4153));__reExport(eo,ne(4153));var no="default"in to?to.default:to,ro=new no({allowMatchingProperties:!0,allowUnionTypes:!0}),noopValidation=()=>!0,defaultFormatErrors=G=>(null!=G?G:[]).map(({instancePath:G,message:Z})=>G?`[${G}]: ${Z}`:Z).join(", "),useCodeEditorState=({source:G,schema:Z,formatErrors:ne=defaultFormatErrors,onExternalUncommittedStateChange:ie,onSourceChange:se})=>{const ce=(0,Bt.useSelector)(Bt.selectUncommittedSourceEditorFlyoutItem),[fe,me]=(0,Ie.useState)(()=>JSON.stringify(G,null,4)),[ge,Ce]=(0,Ie.useState)(null),Se=(0,yt.useEventCallback)(()=>{try{const Z=JSON.parse(fe);(0,ot.isEqual)(Z,G)||(me(JSON.stringify(G,null,4)),Ce(null))}catch(G){}});(0,Ie.useEffect)(()=>{Se()},[G,Se]);const Me=(G=>(0,Ie.useMemo)(()=>{if(!(G=>!(!(null==G?void 0:G.$id)&&!(null==G?void 0:G.id)))(G))return noopValidation;const Z=G.$id||G.id,ne=ro.getSchema(Z);return ne||(ro.addSchema(G),ro.getSchema(Z)||noopValidation)},[G]))(Z),ke=(0,Ie.useCallback)(({value:G,runCallback:Z})=>{me(G);const{result:ie,errors:ce}=((G,Z)=>{try{try{const ne=JSON.parse(G);return Z(ne)?{result:ne}:{errors:Z.errors}}catch(Z){throw Qi(G),Z}}catch(G){if(G instanceof Error)return{errors:G.message}}return{}})(G,Me);ie?(Ce(null),Z&&se(ie)):ce&&Ce("string"==typeof ce?ce:ne(ce))},[ne,se,Me]),xe=(0,Ie.useCallback)(G=>{ke({value:G,runCallback:!0})},[ke]);return(0,Ie.useEffect)(()=>{ce&&(null==ie||ie(),ke({value:ce,runCallback:!1}),me(ce))},[ce,ie,ke]),{uncommittedSource:fe,errors:ge,handleSourceChange:xe}},io=It.div.attrs(()=>({"data-test":"flyout-error-messages"}))` display: flex; flex: 1 1 0; flex-direction: column; align-items: center; overflow-y: scroll; z-index: 1; height: 100%; padding-top: ${({headerPadding:G})=>(0,ct.toPx)(G)}; border-left: 1px solid ${yt.customThemeVariables.toolbarBorderColor}; background-color: ${yt.customThemeVariables.monacoBackgroundColor}; `,oo=It(cn)` width: calc(100% - 48px); `,ao=(0,ht._)("Property %s:"),so=(0,ht._)('"%s"'),formatErrors=G=>{const Z=new Set,ne={};return(null!=G?G:[]).forEach(({message:G,instancePath:ie,params:se})=>{if(G)if(ie)if(ne[ie]||(ne[ie]=ao.replace("%s",ie.replace(/\//g,"."))),"must be equal to one of the allowed values"===G&&Array.isArray(null==se?void 0:se.allowedValues)){const ce=se.allowedValues.map(G=>so.replace("%s",G)).join(", ");Z.add(`${ne[ie]} ${G} (${ce})`)}else Z.add(`${ne[ie]} ${G}`);else Z.add(G)}),Array.from(Z).reverse()},lo={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{"editor.background":"#FFFFFE","editor.foreground":"#000000","editor.inactiveSelectionBackground":"#E5EBF1","editorIndentGuide.background":"#D3D3D3","editorIndentGuide.activeBackground":"#939393","editor.selectionHighlightBackground":"#ADD6FF4D"}},co={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{"editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.inactiveSelectionBackground":"#3A3D41","editorIndentGuide.background":"#404040","editorIndentGuide.activeBackground":"#707070","editor.selectionHighlightBackground":"#ADD6FF26"}},useSplunkMonacoTheme=()=>{const G=(0,_n.useSplunkTheme)(),[Z,ne]=(0,Ie.useState)(()=>G.isLight?"vs-light":"vs-dark"),[ie,se]=(0,Ie.useState)();return(0,Ie.useEffect)(()=>{if(!ie)return;const{themeId:se,monacoTheme:ce}=(G=>{const Z=G.isLight?"light":"dark",ne={"editor.foreground":G.contentColorDefault,"editor.background":yt.monacoColors.background[Z],"minimap.background":yt.monacoColors.background[Z],"editorWidget.background":yt.monacoColors.popup[Z],"editorHoverWidget.background":yt.monacoColors.popup[Z],"editor.findMatchBackground":yt.monacoColors.popup[Z],"menu.background":yt.monacoColors.popup[Z],"editorSuggestWidget.background":yt.monacoColors.popup[Z]};return G.isLight?{themeId:"splunk-light",monacoTheme:__spreadProps(__spreadValues({},lo),{inherit:!0,colors:__spreadValues(__spreadValues({},lo.colors),ne)})}:{themeId:"splunk-dark",monacoTheme:__spreadProps(__spreadValues({},co),{inherit:!0,colors:__spreadValues(__spreadValues({},co.colors),ne)})}})(G);Z!==se&&(ie.editor.defineTheme(se,ce),ne(se))},[ie,Z,G]),{onMonacoEditorMount:se,monacoTheme:Z}},createSchema=(G,Z)=>[{fileMatch:[Z],uri:Z,schema:G}],uo=(0,ot.once)(()=>{ct.console.warn("The JSON language configuration for Monaco Editor is not available.")}),po=(0,Ie.forwardRef)(({source:G,schema:Z,onSourceChange:ne,editorOptions:ie,width:se,height:ce},fe)=>{const me=(0,Ie.useRef)(null),ge=(0,Ie.useRef)(null),Ce=(0,Ie.useRef)(null),{onMonacoEditorMount:Se,monacoTheme:Me}=useSplunkMonacoTheme(),ke=(0,Ie.useMemo)(()=>(0,ot.debounce)(G=>ne(G),250),[ne]),xe=(0,Ie.useCallback)((G,Z)=>{var ne,ie;(null==(ie=null==(ne=G.languages.json)?void 0:ne.jsonDefaults)?void 0:ie.setDiagnosticsOptions)?G.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:createSchema(Z,"a://b/foo.json")}):uo()},[]),De=(0,Ie.useCallback)((ne,ie)=>{ge.current=ne,Ce.current=ie,Se(ie),xe(ie,Z);const se=ie.Uri.parse("a://b/foo.json");let ce=ie.editor.getModel(se);ce?ce.setValue(G):ce=ie.editor.createModel(G,"json",se),ne.setModel(ce),me.current=document.activeElement,ne.focus();const fe=ie.KeyMod.CtrlCmd|ie.KeyCode.US_DOT;ne.addCommand(fe,()=>{ne.trigger("","editor.action.triggerSuggest","")},"editorTextFocus && !editorHasSelection && !editorHasMultipleSelections && !editorTabMovesFocus && !hasQuickSuggest")},[Se,xe,Z,G]),Re=(0,Ie.useCallback)(()=>{const{current:G}=ge;"function"==typeof(null==G?void 0:G.layout)&&G.layout()},[]),$e=(0,Ie.useCallback)(()=>{const{current:G}=ge;G&&(G.setSelection({startColumn:1,endColumn:1,startLineNumber:1,endLineNumber:1}),G.setScrollTop(0,0))},[]),Je=(0,Ie.useCallback)(()=>me.current,[]);return(0,Ie.useEffect)(()=>{const{current:G}=Ce;G&&xe(G,Z)},[Z,xe]),(0,Ie.useImperativeHandle)(fe,()=>({refreshLayout:Re,getStolenFocusTarget:Je,resetEditorCursor:$e}),[Re,Je,$e]),ze.createElement(Gi,{width:se,height:ce,language:"json",theme:Me,value:G,options:ie,onChange:ke,editorDidMount:De})});po.propTypes={onSourceChange:it.func.isRequired,source:it.string.isRequired,schema:it.shape({}),editorOptions:it.object,width:it.oneOfType([it.string,it.number]),height:it.oneOfType([it.string,it.number])},po.defaultProps={editorOptions:{},width:"100%",height:"100%"};var ho=po,fo=It.div` border: ${yt.customThemeVariables.monacoBorder}; border-radius: ${_n.variables.borderRadius}; overflow: hidden; `,mo={folding:!1,minimap:{enabled:!1},quickSuggestions:!1,scrollBeyondLastLine:!1,contextmenu:!1,hover:{sticky:!1},fixedOverflowWidgets:!0},CodeEditor=({schema:G,source:Z,onSourceChange:ne,editorOptions:ie,width:se,height:ce,onUnmount:fe})=>{const{uncommittedSource:me,errors:ge,handleSourceChange:Ce}=useCodeEditorState({source:Z,schema:G,onSourceChange:ne}),Se=(0,yt.useEventCallback)(()=>{null==fe||fe(me)});return(0,Ie.useEffect)(()=>Se,[Se]),ze.createElement(yt.PaddedContainer,{"data-test":"code-editor"},ge&&ze.createElement(cn,{type:"error"},ge),ze.createElement(fo,{"data-test":"monaco-editor-wrapper"},ze.createElement(ho,{source:me,onSourceChange:Ce,schema:G,editorOptions:ie,width:se,height:ce})))};CodeEditor.propTypes={width:it.oneOfType([it.string,it.number]),height:it.oneOfType([it.string,it.number]),schema:it.object,source:it.object.isRequired,onSourceChange:it.func.isRequired,editorOptions:it.object,onUnmount:it.func},CodeEditor.defaultProps={editorOptions:{},width:"100%",height:200,schema:{},onUnmount:ct.noop};var _o=CodeEditor,bo=(0,ht._)("ID does not match specified rules"),yo=(0,ht._)("ID duplicates an existing ID"),IdEditor=({idLabel:G,pattern:Z,helpMessage:ne,componentId:ie,onIdChange:se,hasDuplicateId:ce})=>{const fe=(0,Ie.useMemo)(()=>new RegExp(Z),[Z]),[me,ge]=(0,Ie.useState)(!fe.test(ie)&&bo),Ce=(0,Ie.useMemo)(()=>({componentId:ie}),[ie]),Se=(0,Ie.useMemo)(()=>ne?ze.createElement("span",{"data-test":"help-message"},ne):null,[ne]),Me=(0,Ie.useCallback)(G=>{fe.test(G)?ce(G)?ge(yo):(ge(!1),se(G)):ge(bo)},[fe,se,ce]),{onHandleBlur:ke,onHandleChange:xe,onHandleKeyDown:De,value:Re}=(0,yt.useTextInput)({initialValue:ie,handleCommit:Me,uniqKey:Ce});return(0,Ie.useEffect)(()=>{fe.test(Re)?Re!==ie&&ce(Re)?ge(yo):ge(!1):ge(bo)},[ie,Re,fe,ce]),ze.createElement(yt.PaddedContainer,{"data-test":"id-editor"},me&&ze.createElement(cn,{type:"error"},me),ze.createElement(yt.ControlGroup,{label:G,help:Se,labelPosition:"top"},ze.createElement(pr,{value:Re,placeholder:ie,onChange:xe,onBlur:ke,onKeyDown:De,error:!!me})))};IdEditor.propTypes={pattern:it.string.isRequired,idLabel:it.string,componentId:it.string.isRequired,onIdChange:it.func.isRequired,helpMessage:it.string,hasDuplicateId:it.func},IdEditor.defaultProps={idLabel:"ID",helpMessage:"",hasDuplicateId:()=>!1};var vo=IdEditor,wo=It(yt.PaddedContainer).attrs(()=>({"data-test":"expand-editor"}))` padding-top: ${G=>G.isExpanded?void 0:0}; `,Co=(0,ht._)("Expand editor"),Oo=(0,ht._)("Collapse editor"),So=ze.createElement(Tr.Fullscreen,{size:"20px","data-test":"fullscreen"}),Mo=ze.createElement(Tr.FullscreenExit,{size:"18px","data-test":"fullscreen-exit"}),ExpandEditorButton=({isExpanded:G})=>{const Z=(0,Bt.useDispatch)(),ne=(0,Ie.useCallback)(()=>{Z((0,Bt.toggleSourceEditorFlyout)())},[Z]);return ze.createElement(wo,{isExpanded:G},ze.createElement(Mr,{label:G?Oo:Co,icon:G?Mo:So,onClick:ne}))},CombinedCodeIdEditor=({width:G,height:Z,schema:ne,source:ie,onSourceChange:se,pattern:ce,idLabel:fe,componentId:me,onIdChange:ge,helpMessage:Ce,enableCodeEditor:Se,enableIdEditor:Me,label:ke,hasDuplicateId:xe})=>{const{enableExpandedSourceEditor:De}=(0,kt.useFeatureFlags)(),Re="closed"!==(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutVisibility),$e=(()=>{const G=(0,Bt.useDispatch)(),Z=(0,Ie.useRef)(!0);return(0,Ie.useEffect)(()=>()=>{Z.current=!1},[]),(0,Ie.useCallback)(ne=>{Z.current&&G((0,Bt.setUncommittedSourceEditorFlyoutItem)(ne))},[G])})(),Je=De&&Re&&Se,it=(0,Ie.useMemo)(()=>Se?ze.createElement(ze.Fragment,null,!Je&&ze.createElement(_o,{width:G,height:Z,schema:ne,source:ie,editorOptions:mo,onSourceChange:se,onUnmount:$e}),De&&ze.createElement(ExpandEditorButton,{isExpanded:Je})):null,[Se,G,Z,ne,ie,se,Je,De,$e]),at=(0,Ie.useMemo)(()=>Me?ze.createElement(vo,{pattern:ce,idLabel:fe,componentId:me,onIdChange:ge,helpMessage:Ce,hasDuplicateId:xe}):null,[ce,fe,me,ge,Ce,Me,xe]);return(({enabled:G,source:Z,schema:ne,onSourceChange:ie})=>{const se=(0,Bt.useDispatch)(),ce=(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutItem),fe=(0,Ie.useRef)(ce),me=(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutSchema),ge=(0,Ie.useRef)(me);(0,Ie.useEffect)(()=>{G&&((0,ot.isEqual)(Z,fe.current)||se((0,Bt.setSourceEditorFlyoutItem)(Z)))},[G,Z,se]),(0,Ie.useEffect)(()=>{var Z,ie;if(!G)return;((null==ne?void 0:ne.$id)||(null==ne?void 0:ne.id))!==((null==(Z=ge.current)?void 0:Z.$id)||(null==(ie=ge.current)?void 0:ie.id))&&(ge.current=ne,se((0,Bt.setSourceEditorFlyoutSchema)(ne)))},[G,ne,se]),(0,Ie.useEffect)(()=>{G&&ce&&ce!==fe.current&&(fe.current=ce,ie(ce))},[ce,G,ie]),(0,Ie.useEffect)(()=>()=>{se((0,Bt.clearSourceEditorFlyoutItem)())},[se])})({enabled:Je,source:ie,schema:ne,onSourceChange:se}),Se||Me?ze.createElement(yt.SidebarCollapsiblePanel,{padded:!1,title:ke,"data-test":"code-editors-group",defaultOpen:!1,panelId:ke},it,Se&&Me&&ze.createElement(yt.Separator,null),at):null};CombinedCodeIdEditor.propTypes=__spreadProps(__spreadValues(__spreadValues({},_o.propTypes),vo.propTypes),{enableCodeEditor:it.bool,enableIdEditor:it.bool,label:it.string}),CombinedCodeIdEditor.defaultProps={label:(0,ht._)("Source code")};var ko=CombinedCodeIdEditor,FocusHandler=({canvasContainer:G,imperativeHandle:Z})=>((0,Ie.useLayoutEffect)(()=>{var ne,ie;const se=null==(ne=Z.current)?void 0:ne.getStolenFocusTarget();se&&(null==(ie=G.current)?void 0:ie.contains(se))&&se.focus()},[G,Z]),null),xo={fixedOverflowWidgets:!0,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,lineNumbers:"on",scrollBeyondLastColumn:5,readOnly:!1,minimap:{enabled:!0}},FlyoutMonacoWrapper=({canvasContainer:G,schema:Z,source:ne,onSourceChange:ie})=>{const se=(0,Ie.useRef)(null),ce=(0,Ie.useCallback)(()=>{var G;const{current:Z}=se;null==(G=null==Z?void 0:Z.resetEditorCursor)||G.call(Z)},[]),{uncommittedSource:fe,errors:me,handleSourceChange:ge}=useCodeEditorState({source:ne,schema:Z,formatErrors:formatErrors,onExternalUncommittedStateChange:ce,onSourceChange:ie}),Ce=(0,Bt.useDispatch)(),Se=(0,yt.useEventCallback)(()=>{Ce((0,Bt.setUncommittedSourceEditorFlyoutItem)(fe))});(0,Ie.useEffect)(()=>Se,[Se]);const Me=(G=>{const Z=(0,yt.useGetFlyoutHeaderPadding)();return(0,Ie.useMemo)(()=>null!==G&&G.length?ze.createElement(io,{headerPadding:Z},(Array.isArray(G)?G:[G]).map(G=>ze.createElement(oo,{type:"error",appearance:"fill",key:G},G))):null,[G,Z])})(me),ke=null!==Me,xe=(0,yt.useGetFlyoutHeaderPadding)(),De=(0,Ie.useMemo)(()=>__spreadProps(__spreadValues({},xo),{padding:{top:xe}}),[xe]),Re=(0,Ie.useRef)({width:0,height:0}),$e=(0,Ie.useCallback)(({width:ne,height:ie})=>{var ce;const{current:me}=Re;return me.width===ne&&me.height===ie||null==(ce=se.current)||ce.refreshLayout(),Re.current={width:ne,height:ie},ze.createElement(ze.Fragment,null,ze.createElement(ho,{ref:se,width:ke?"50%":void 0,schema:Z,source:fe,editorOptions:De,onSourceChange:ge}),ze.createElement(FocusHandler,{canvasContainer:G,imperativeHandle:se}))},[G,De,fe,ke,Z,ge]);return ze.createElement(ze.Fragment,null,ze.createElement(yt.SizeAwareWrapper,null,$e),Me)};FlyoutMonacoWrapper.propTypes={canvasContainer:it.object.isRequired,schema:it.object,source:it.object.isRequired,onSourceChange:it.func.isRequired};var Lo=It.div.attrs(G=>({"data-test":"flyout-code-editor",style:{height:(0,ct.toPx)(G.$height)}}))` display: flex; position: relative; background-color: ${yt.customThemeVariables.monacoBackgroundColor}; `,To=(0,Ie.forwardRef)(({canvasContainer:G},Z)=>{const ne=(0,Bt.useDispatch)(),ie=(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutItem),se=(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutSchema),ce="collapsed"===(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutVisibility),fe=(0,Bt.useSelector)(Bt.selectSourceEditorFlyoutHeight),me=(0,yt.useGetFlyoutHeaderHeight)(),ge=(0,Ie.useCallback)(()=>{ne((0,Bt.setIsSourceEditorFlyoutOpen)(!1))},[ne]),Ce=(0,Ie.useCallback)(()=>{ne((0,Bt.toggleIsSourceEditorFlyoutCollapsed)())},[ne]),Se=(0,Ie.useMemo)(()=>(0,ot.throttle)(G=>{ne((0,Bt.setSourceEditorFlyoutHeight)(G))},50),[ne]),Me=(0,Ie.useCallback)(G=>{ne((0,Bt.setSourceEditorFlyoutItem)(G))},[ne]);return ie?ze.createElement(yt.FlyoutPane,{ref:Z,collapsible:!0,collapsed:ce,headerText:(0,ht._)("Source code"),height:fe,onClose:ge,onResize:Se,onToggleExpansion:Ce},ze.createElement(Lo,{$height:fe-me},ze.createElement(FlyoutMonacoWrapper,{canvasContainer:G,schema:se,source:ie,onSourceChange:Me}))):null})},2001:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isInterpolationResult=isInterpolationResult,Z.default=Z.getThemeVariant=void 0;var ie=ne(1152);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var se={enterprise:"family",prisma:"family",light:"colorScheme",dark:"colorScheme",compact:"density",comfortable:"density"};function isInterpolationResult(G){return"object"!==_typeof(G)||Array.isArray(G)||null===G}var ce=function getThemeVariant(G,Z){var ne=Object.keys(G).shift();if(!ne)throw new Error("A pick tree cannot be empty.");var ie=se[ne];if(!ie)throw new Error("Invalid pick tree key: ".concat(ne));var ce=G[Z[ie]];return isInterpolationResult(ce)?ce:getThemeVariant(ce,Z)};Z.getThemeVariant=ce;var fe=function pick(G){return function(Z){var ne=Z.theme,se=(0,ie.addThemeDefaults)(null==ne?void 0:ne.splunkThemeV1);return ce(G,se)}};Z.default=fe},2002:function(G,Z){const ne=Number.MAX_SAFE_INTEGER||9007199254740991;G.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:ne,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2003:function(G,Z,ne){(function(Z){const ne="object"==typeof Z&&Z.env&&Z.env.NODE_DEBUG&&/\bsemver\b/i.test(Z.env.NODE_DEBUG)?(...G)=>console.error("SEMVER",...G):()=>{};G.exports=ne}).call(this,ne(399))},2004:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>ie(G,Z,ne)>0},2005:function(G,Z,ne){const ie=Symbol("SemVer ANY");class Comparator{static get ANY(){return ie}constructor(G,Z){if(Z=se(Z),G instanceof Comparator){if(G.loose===!!Z.loose)return G;G=G.value}G=G.trim().split(/\s+/).join(" "),ge("comparator",G,Z),this.options=Z,this.loose=!!Z.loose,this.parse(G),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,ge("comp",this)}parse(G){const Z=this.options.loose?ce[fe.COMPARATORLOOSE]:ce[fe.COMPARATOR],ne=G.match(Z);if(!ne)throw new TypeError("Invalid comparator: "+G);this.operator=void 0!==ne[1]?ne[1]:"","="===this.operator&&(this.operator=""),ne[2]?this.semver=new Ce(ne[2],this.options.loose):this.semver=ie}toString(){return this.value}test(G){if(ge("Comparator.test",G,this.options.loose),this.semver===ie||G===ie)return!0;if("string"==typeof G)try{G=new Ce(G,this.options)}catch(G){return!1}return me(G,this.operator,this.semver,this.options)}intersects(G,Z){if(!(G instanceof Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new Se(G.value,Z).test(this.value):""===G.operator?""===G.value||new Se(this.value,Z).test(G.semver):(!(Z=se(Z)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==G.value)&&(!(!Z.includePrerelease&&(this.value.startsWith("<0.0.0")||G.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!G.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!G.operator.startsWith("<"))||(!(this.semver.version!==G.semver.version||!this.operator.includes("=")||!G.operator.includes("="))||(!!(me(this.semver,"<",G.semver,Z)&&this.operator.startsWith(">")&&G.operator.startsWith("<"))||!!(me(this.semver,">",G.semver,Z)&&this.operator.startsWith("<")&&G.operator.startsWith(">")))))))}}G.exports=Comparator;const se=ne(2857),{safeRe:ce,t:fe}=ne(1619),me=ne(4082),ge=ne(2003),Ce=ne(572),Se=ne(757)},2006:function(G,Z,ne){const ie=ne(757);G.exports=(G,Z,ne)=>{try{Z=new ie(Z,ne)}catch(G){return!1}return Z.test(G)}},2007:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=241)}({1:function(G,Z){G.exports=ne(2)},132:function(G,Z){G.exports=ne(444)},2:function(G,Z){G.exports=ne(0)},241:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Se}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(132),ge=ne.n(me),Ce={children:fe.a.node,target:fe.a.oneOfType([fe.a.object,fe.a.string]),eventType:fe.a.any,listener:fe.a.func,options:fe.a.oneOfType([fe.a.object,fe.a.bool])};function EventListener(G){var Z=G.children,ne=G.target,ie=G.eventType,ce=G.listener,fe=G.options;return ge()(ne,ie,ce,fe),se.a.createElement(se.a.Fragment,null,Z||null)}EventListener.propTypes=Ce;var Se=EventListener}})},2008:function(G,Z,ne){"use strict";function _toConsumableArray(G){return function _arrayWithoutHoles(G){if(Array.isArray(G))return _arrayLikeToArray(G)}(G)||function _iterableToArray(G){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(G))return Array.from(G)}(G)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},2010:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=209)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(758)},14:function(G,Z){G.exports=ne(1303)},2:function(G,Z){G.exports=ne(0)},209:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(51),ge=ne.n(me),Ce=ne(14),Se=ne.n(Ce),Me=ne(8),ke=ne(97),xe=ne.n(ke),De=ne(0);function CheckIcon(){return"enterprise"===Object(De.useSplunkTheme)().family?se.a.createElement(xe.a,{inline:!1,size:"12px",screenReaderText:null,hideDefaultTooltip:!0,style:{marginTop:"1px"}}):se.a.createElement("svg",{width:"12",height:"12",viewBox:"-1 -2 11 10",style:{display:"block"},xmlns:"http://www.w3.org/2000/svg"},se.a.createElement("path",{d:"M8.70711 0.292893C9.09763 0.683417 9.09763 1.31658 8.70711 1.70711L4.32132 6.0929C3.73559 6.67862 2.78596 6.67869 2.20015 6.09305L0.292997 4.18646C-0.0975845 3.79599 -0.0976776 3.16282 0.292789 2.77224C0.683256 2.38166 1.31642 2.38157 1.707 2.77203L3.26061 4.32518L7.29289 0.292893C7.68342 -0.0976311 8.31658 -0.0976311 8.70711 0.292893Z",fill:"currentColor"}))}var Ie=ne(3),Re=ne.n(Ie),ze=ne(6),$e=ne.n(ze),Je=ne(12),it=ne.n(Je),ot=Re()($e.a).withConfig({displayName:"SwitchStyles__StyledBox",componentId:"sc-844ieu-0"})(["display:inline;position:relative;color:",";flex-shrink:0;padding:",";[data-inline] + &{margin-left:",";}"],Object(De.pickVariant)("$switchState",{error:{enterprise:De.variables.errorColor,prisma:De.variables.accentColorNegative},disabled:{enterprise:De.variables.textDisabledColor,prisma:De.variables.contentColorDisabled}}),Object(De.pick)({enterprise:Object(Ie.css)(["calc(("," - ",") / 2) 0"],De.variables.inputHeight,"18px"),prisma:{compact:"6px 0",comfortable:"10px 0"}}),Object(De.pick)({enterprise:De.variables.spacingHalf,prisma:De.variables.spacingSmall})),at=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledCheckboxClickable",componentId:"sc-844ieu-1"})([""," position:relative;width:",";height:",";line-height:",";padding:2px;border-radius:2px;cursor:pointer;flex:0 0 auto;border:",";color:",";"," &:focus{box-shadow:",";}"," "," &[disabled]{cursor:not-allowed;border-color:",";","}"],De.mixins.reset("inline"),"18px","18px","18px",Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["1px solid ",""],De.variables.gray45),dark:Object(Ie.css)(["1px solid ",""],De.variables.gray80)}),prisma:Object(Ie.css)(["2px solid ",""],De.variables.contentColorMuted)}),Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray45,dark:De.variables.gray80}),prisma:De.variables.white}),Object(De.pick)({prisma:Object(Ie.css)(["top:1px;padding:1px;border-radius:3px;"," ",""],(function(G){return G.$interactive&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{box-shadow:0 0 0 2px ",",0 0 0 5px ",";}"],De.variables.backgroundColorPage,De.variables.interactiveColorOverlayHover)}),(function(G){return!G.$selected&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{border-color:",";}"],De.variables.contentColorDefault)}))}),De.variables.focusShadow,(function(G){return G.$selected&&Object(Ie.css)(["&:not([disabled]){border-color:",";background-color:",";}"],Object(De.pick)({enterprise:{light:De.variables.gray45,dark:De.variables.gray80},prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:"#none",prisma:Object(Ie.css)(["",";"],De.variables.interactiveColorPrimary)}))}),(function(G){return G.$error&&Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["&:not([disabled]){border-color:",";color:",";","}"],De.variables.errorColorL30,De.variables.errorColor,(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";"],De.variables.errorColor)})),dark:Object(Ie.css)(["border-color:",";}"],De.variables.errorColor)}),prisma:Object(Ie.css)(["&:not([disabled]){border-color:",";","}"],De.variables.accentColorNegative,(function(G){return G.$selected&&Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})}),Object(De.pick)({enterprise:{light:De.variables.borderColor,dark:De.variables.gray45},prisma:De.variables.contentColorDisabled}),(function(G){return G.$selected&&Object(De.pick)({prisma:Object(Ie.css)(["border-color:transparent;background-color:",";"],De.variables.interactiveColorBackgroundDisabled)})})),st=at.withComponent("span"),ct=Re.a.div.withConfig({displayName:"SwitchStyles__StyledSome",componentId:"sc-844ieu-2"})(["display:block;margin:",";height:",";width:",";background:currentColor;border-radius:1px;"],Object(De.pick)({enterprise:"2px",prisma:"5px 2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"8px"})),ut=Re.a.div.withConfig({displayName:"SwitchStyles__StyledIndicator",componentId:"sc-844ieu-3"})(["background-color:",";border-color:",";box-sizing:border-box;border-radius:50%;border-width:1px;position:absolute;left:-1px;top:-1px;",";"," "," ",""],Object(De.pick)({enterprise:{light:De.variables.gray98,dark:De.variables.gray80},prisma:De.variables.white}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:left ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["width:",";height:",";border-style:solid;"],"18px","18px"),prisma:Object(Ie.css)(["height:16px;width:16px;margin:2px;border-style:none;box-shadow:",";"],De.variables.embossShadow)}),(function(G){return G.$disabled&&Object(Ie.css)(["border-color:",";border-style:solid;background-color:",";"],Object(De.pick)({enterprise:{light:De.mixins.colorWithAlpha(De.variables.borderLightColor,.8),dark:De.variables.gray22},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{dark:De.variables.gray45},prisma:De.mixins.colorWithAlpha(De.variables.white,.3)}))}),(function(G){return G.$selected&&Object(Ie.css)(["left:",";"],Object(De.pick)({enterprise:Object(Ie.css)(["calc(100% - "," + 1px)"],"18px"),prisma:Object(Ie.css)(["calc(100% - "," + 1px)"],"20px")}))})),dt=Re.a.div.withConfig({displayName:"SwitchStyles__StyledToggleOutline",componentId:"sc-844ieu-4"})(["position:absolute;border:1px solid transparent;",";border-radius:",";top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:1;"," ",""],(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:border-color ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," * 0.5)"],"18px"),prisma:"15px"}),Object(De.pick)({prisma:Object(Ie.css)(["margin:-6px;"])}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}))})),ht=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledToggleClickable",componentId:"sc-844ieu-5"})(["position:relative;"," border-radius:",";transition:background-color ",";flex:0 0 auto;border:1px solid ",";"," &:not([disabled]){&:focus{outline:0;box-shadow:",";","}&:hover ","{background-color:",";}&:hover ","{background-color:",";}};&[disabled]{border:1px solid ",";background-color:",";"," ","}",";",""],Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray98,"18px"),dark:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray45,"18px")}),prisma:Object(Ie.css)(["width:32px;background-color:",";height:",";top:1px;"],De.variables.contentColorMuted,"20px")}),"18px",(function(G){return G.$delay}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.1);"])}),Object(De.pick)({enterprise:Object(Ie.css)(["",",inset 0 2px 0 rgba(0,0,0,0.1);"],De.variables.focusShadow),prisma:De.variables.focusShadow}),Object(De.pick)({enterprise:Object(Ie.css)(["> ","{border-color:",";}"],dt,De.mixins.colorWithAlpha(De.variables.focusColor,.8))}),ut,Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray96,dark:"#b1bcc7"}),prisma:De.variables.white}),dt,Object(De.pick)({prisma:De.variables.interactiveColorOverlayHover}),Object(De.pick)({enterprise:{light:De.variables.borderLightColor,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray30},prisma:De.variables.interactiveColorBackgroundDisabled}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.06);"])}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:transparent;background-color:",";"],Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.accentColorL40,dark:De.variables.accentColorD20}),prisma:De.mixins.colorWithAlpha(De.variables.interactiveColorPrimary,.7)}))}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";background-color:",";",""],Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.transparent}),Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({prisma:Object(Ie.css)(["box-shadow:",";"],De.variables.embossShadow)}))}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}),Object(De.pick)({prisma:Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})),ft=ht.withComponent("span"),_t=Re.a.label.withConfig({displayName:"SwitchStyles__StyledLabel",componentId:"sc-844ieu-6"})([""," flex:1 1 auto;padding-left:",";color:inherit;",";"],De.mixins.reset("inline-block"),Object(De.pick)({enterprise:Object(Ie.css)(["",";"],De.variables.spacingQuarter),prisma:"8px"}),(function(G){return!G.$disabled&&Object(Ie.css)(["cursor:pointer;"])}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Cross(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="cross-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2012:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=61)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(642)},61:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Close}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(7),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z>>0,ie=0;ie0)for(ne=0;ne=0?ne?"+":"":"-")+Math.pow(10,Math.max(0,se)).toString().substr(1)+ie}var Se=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ke={},xe={};function F(G,Z,ne,ie){var se=ie;"string"==typeof ie&&(se=function(){return this[ie]()}),G&&(xe[G]=se),Z&&(xe[Z[0]]=function(){return j(se.apply(this,arguments),Z[1],Z[2])}),ne&&(xe[ne]=function(){return this.localeData().ordinal(se.apply(this,arguments),G)})}function I(G,Z){return G.isValid()?(Z=U(Z,G.localeData()),ke[Z]=ke[Z]||function(G){var Z,ne,ie,se=G.match(Se);for(Z=0,ne=se.length;Z=0&&Me.test(G);)G=G.replace(Me,t),Me.lastIndex=0,ne-=1;return G}var De=/\d/,Ie=/\d\d/,Re=/\d{3}/,ze=/\d{4}/,$e=/[+-]?\d{6}/,Je=/\d\d?/,it=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,at=/\d{1,3}/,st=/\d{1,4}/,ct=/[+-]?\d{1,6}/,ut=/\d+/,dt=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,ft=/Z|[+-]\d\d(?::?\d\d)?/gi,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yt={};function de(G,Z,ne){yt[G]=N(Z)?Z:function(G,ie){return G&&ne?ne:Z}}function _e(G,Z){return _(yt,G)?yt[G](Z._strict,Z._locale):new RegExp(ue(G.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(G,Z,ne,ie,se){return Z||ne||ie||se}))))}function ue(G){return G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var vt={};function le(G,Z){var ne,ie=Z;for("string"==typeof G&&(G=[G]),i(Z)&&(ie=function(G,ne){ne[Z]=T(G)}),ne=0;ne68?1900:2e3)};var wt,Ct=he("FullYear",!0);function he(G,Z){return function(ne){return null!=ne?(Te(this,G,ne),c.updateOffset(this,Z),this):Ye(this,G)}}function Ye(G,Z){return G.isValid()?G._d["get"+(G._isUTC?"UTC":"")+Z]():NaN}function Te(G,Z,ne){G.isValid()&&!isNaN(ne)&&("FullYear"===Z&&Ae(G.year())&&1===G.month()&&29===G.date()?G._d["set"+(G._isUTC?"UTC":"")+Z](ne,G.month(),ye(ne,G.month())):G._d["set"+(G._isUTC?"UTC":"")+Z](ne))}function ye(G,Z){if(isNaN(G)||isNaN(Z))return NaN;var ne=(Z%12+12)%12;return G+=(Z-ne)/12,1===ne?Ae(G)?29:28:31-ne%7%2}wt=Array.prototype.indexOf?Array.prototype.indexOf:function(G){var Z;for(Z=0;Z=0?(me=new Date(G+400,Z,ne,ie,se,ce,fe),isFinite(me.getFullYear())&&me.setFullYear(G)):me=new Date(G,Z,ne,ie,se,ce,fe),me}function Be(G){var Z;if(G<100&&G>=0){var ne=Array.prototype.slice.call(arguments);ne[0]=G+400,Z=new Date(Date.UTC.apply(null,ne)),isFinite(Z.getUTCFullYear())&&Z.setUTCFullYear(G)}else Z=new Date(Date.UTC.apply(null,arguments));return Z}function ve(G,Z,ne){var ie=7+Z-ne;return-(7+Be(G,0,ie).getUTCDay()-Z)%7+ie-1}function He(G,Z,ne,ie,se){var ce,fe,me=1+7*(Z-1)+(7+ne-ie)%7+ve(G,ie,se);return me<=0?fe=be(ce=G-1)+me:me>be(G)?(ce=G+1,fe=me-be(G)):(ce=G,fe=me),{year:ce,dayOfYear:fe}}function Ee(G,Z,ne){var ie,se,ce=ve(G.year(),Z,ne),fe=Math.floor((G.dayOfYear()-ce-1)/7)+1;return fe<1?ie=fe+je(se=G.year()-1,Z,ne):fe>je(G.year(),Z,ne)?(ie=fe-je(G.year(),Z,ne),se=G.year()+1):(se=G.year(),ie=fe),{week:ie,year:se}}function je(G,Z,ne){var ie=ve(G,Z,ne),se=ve(G+1,Z,ne);return(be(G)-ie+se)/7}function Pe(G,Z){return G.slice(Z,7).concat(G.slice(0,Z))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),X("week","w"),X("isoWeek","W"),E("week",5),E("isoWeek",5),de("w",Je),de("ww",Je,Ie),de("W",Je),de("WW",Je,Ie),pe(["w","ww","W","WW"],(function(G,Z,ne,ie){Z[ie.substr(0,1)]=T(G)})),F("d",0,"do","day"),F("dd",0,0,(function(G){return this.localeData().weekdaysMin(this,G)})),F("ddd",0,0,(function(G){return this.localeData().weekdaysShort(this,G)})),F("dddd",0,0,(function(G){return this.localeData().weekdays(this,G)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),X("day","d"),X("weekday","e"),X("isoWeekday","E"),E("day",11),E("weekday",11),E("isoWeekday",11),de("d",Je),de("e",Je),de("E",Je),de("dd",(function(G,Z){return Z.weekdaysMinRegex(G)})),de("ddd",(function(G,Z){return Z.weekdaysShortRegex(G)})),de("dddd",(function(G,Z){return Z.weekdaysRegex(G)})),pe(["dd","ddd","dddd"],(function(G,Z,ne,ie){var se=ne._locale.weekdaysParse(G,ie,ne._strict);null!=se?Z.d=se:l(ne).invalidWeekday=G})),pe(["d","e","E"],(function(G,Z,ne,ie){Z[ie]=T(G)}));var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Fe(G,Z,ne){var ie,se,ce,fe=G.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ie=0;ie<7;++ie)ce=m([2e3,1]).day(ie),this._minWeekdaysParse[ie]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[ie]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[ie]=this.weekdays(ce,"").toLocaleLowerCase();return ne?"dddd"===Z?-1!==(se=wt.call(this._weekdaysParse,fe))?se:null:"ddd"===Z?-1!==(se=wt.call(this._shortWeekdaysParse,fe))?se:null:-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:"dddd"===Z?-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._shortWeekdaysParse,fe))||-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:"ddd"===Z?-1!==(se=wt.call(this._shortWeekdaysParse,fe))||-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:-1!==(se=wt.call(this._minWeekdaysParse,fe))||-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._shortWeekdaysParse,fe))?se:null}var Et=_t,jt=_t,It=_t;function Ge(){function e(G,Z){return Z.length-G.length}var G,Z,ne,ie,se,ce=[],fe=[],me=[],ge=[];for(G=0;G<7;G++)Z=m([2e3,1]).day(G),ne=this.weekdaysMin(Z,""),ie=this.weekdaysShort(Z,""),se=this.weekdays(Z,""),ce.push(ne),fe.push(ie),me.push(se),ge.push(ne),ge.push(ie),ge.push(se);for(ce.sort(e),fe.sort(e),me.sort(e),ge.sort(e),G=0;G<7;G++)fe[G]=ue(fe[G]),me[G]=ue(me[G]),ge[G]=ue(ge[G]);this._weekdaysRegex=new RegExp("^("+ge.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+me.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+fe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ce.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ve(G,Z){F(G,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),Z)}))}function Qe(G,Z){return Z._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ke),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ke.apply(this)+j(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ke.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),Ve("a",!0),Ve("A",!1),X("hour","h"),E("hour",13),de("a",Qe),de("A",Qe),de("H",Je),de("h",Je),de("k",Je),de("HH",Je,Ie),de("hh",Je,Ie),de("kk",Je,Ie),de("hmm",it),de("hmmss",ot),de("Hmm",it),de("Hmmss",ot),le(["H","HH"],3),le(["k","kk"],(function(G,Z,ne){var ie=T(G);Z[3]=24===ie?0:ie})),le(["a","A"],(function(G,Z,ne){ne._isPm=ne._locale.isPM(G),ne._meridiem=G})),le(["h","hh"],(function(G,Z,ne){Z[3]=T(G),l(ne).bigHour=!0})),le("hmm",(function(G,Z,ne){var ie=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie)),l(ne).bigHour=!0})),le("hmmss",(function(G,Z,ne){var ie=G.length-4,se=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie,2)),Z[5]=T(G.substr(se)),l(ne).bigHour=!0})),le("Hmm",(function(G,Z,ne){var ie=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie))})),le("Hmmss",(function(G,Z,ne){var ie=G.length-4,se=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie,2)),Z[5]=T(G.substr(se))}));var Nt,Rt=he("Hours",!0),zt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Mt,monthsShort:kt,week:{dow:0,doy:6},weekdays:Tt,weekdaysMin:Dt,weekdaysShort:At,meridiemParse:/[ap]\.?m?\.?/i},qt={},Wt={};function ta(G){return G?G.toLowerCase().replace("_","-"):G}function ca(Z){var ie=null;if(!qt[Z]&&void 0!==G&&G&&G.exports)try{ie=Nt._abbr,ne(134)("./"+Z),Ma(ie)}catch(G){}return qt[Z]}function Ma(G,Z){var ne;return G&&((ne=o(Z)?oa(G):sa(G,Z))?Nt=ne:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+G+" not found. Did you forget to load it?")),Nt._abbr}function sa(G,Z){if(null!==Z){var ne,ie=zt;if(Z.abbr=G,null!=qt[G])q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ie=qt[G]._config;else if(null!=Z.parentLocale)if(null!=qt[Z.parentLocale])ie=qt[Z.parentLocale]._config;else{if(null==(ne=ca(Z.parentLocale)))return Wt[Z.parentLocale]||(Wt[Z.parentLocale]=[]),Wt[Z.parentLocale].push({name:G,config:Z}),null;ie=ne._config}return qt[G]=new S(g(ie,Z)),Wt[G]&&Wt[G].forEach((function(G){sa(G.name,G.config)})),Ma(G),qt[G]}return delete qt[G],null}function oa(G){var Z;if(G&&G._locale&&G._locale._abbr&&(G=G._locale._abbr),!G)return Nt;if(!M(G)){if(Z=ca(G))return Z;G=[G]}return function(G){for(var Z,ne,ie,se,ce=0;ce0;){if(ie=ca(se.slice(0,Z).join("-")))return ie;if(ne&&ne.length>=Z&&y(se,ne,!0)>=Z-1)break;Z--}ce++}return Nt}(G)}function ia(G){var Z,ne=G._a;return ne&&-2===l(G).overflow&&(Z=ne[1]<0||ne[1]>11?1:ne[2]<1||ne[2]>ye(ne[0],ne[1])?2:ne[3]<0||ne[3]>24||24===ne[3]&&(0!==ne[4]||0!==ne[5]||0!==ne[6])?3:ne[4]<0||ne[4]>59?4:ne[5]<0||ne[5]>59?5:ne[6]<0||ne[6]>999?6:-1,l(G)._overflowDayOfYear&&(Z<0||Z>2)&&(Z=2),l(G)._overflowWeeks&&-1===Z&&(Z=7),l(G)._overflowWeekday&&-1===Z&&(Z=8),l(G).overflow=Z),G}function ra(G,Z,ne){return null!=G?G:null!=Z?Z:ne}function da(G){var Z,ne,ie,se,ce,fe=[];if(!G._d){for(ie=function(G){var Z=new Date(c.now());return G._useUTC?[Z.getUTCFullYear(),Z.getUTCMonth(),Z.getUTCDate()]:[Z.getFullYear(),Z.getMonth(),Z.getDate()]}(G),G._w&&null==G._a[2]&&null==G._a[1]&&function(G){var Z,ne,ie,se,ce,fe,me,ge;if(null!=(Z=G._w).GG||null!=Z.W||null!=Z.E)ce=1,fe=4,ne=ra(Z.GG,G._a[0],Ee(Oa(),1,4).year),ie=ra(Z.W,1),((se=ra(Z.E,1))<1||se>7)&&(ge=!0);else{ce=G._locale._week.dow,fe=G._locale._week.doy;var Ce=Ee(Oa(),ce,fe);ne=ra(Z.gg,G._a[0],Ce.year),ie=ra(Z.w,Ce.week),null!=Z.d?((se=Z.d)<0||se>6)&&(ge=!0):null!=Z.e?(se=Z.e+ce,(Z.e<0||Z.e>6)&&(ge=!0)):se=ce}ie<1||ie>je(ne,ce,fe)?l(G)._overflowWeeks=!0:null!=ge?l(G)._overflowWeekday=!0:(me=He(ne,ie,se,ce,fe),G._a[0]=me.year,G._dayOfYear=me.dayOfYear)}(G),null!=G._dayOfYear&&(ce=ra(G._a[0],ie[0]),(G._dayOfYear>be(ce)||0===G._dayOfYear)&&(l(G)._overflowDayOfYear=!0),ne=Be(ce,0,G._dayOfYear),G._a[1]=ne.getUTCMonth(),G._a[2]=ne.getUTCDate()),Z=0;Z<3&&null==G._a[Z];++Z)G._a[Z]=fe[Z]=ie[Z];for(;Z<7;Z++)G._a[Z]=fe[Z]=null==G._a[Z]?2===Z?1:0:G._a[Z];24===G._a[3]&&0===G._a[4]&&0===G._a[5]&&0===G._a[6]&&(G._nextDay=!0,G._a[3]=0),G._d=(G._useUTC?Be:Xe).apply(null,fe),se=G._useUTC?G._d.getUTCDay():G._d.getDay(),null!=G._tzm&&G._d.setUTCMinutes(G._d.getUTCMinutes()-G._tzm),G._nextDay&&(G._a[3]=24),G._w&&void 0!==G._w.d&&G._w.d!==se&&(l(G).weekdayMismatch=!0)}}var Bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ht=/Z|[+-]\d\d(?::?\d\d)?/,$t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yt=/^\/?Date\((\-?\d+)/i;function ba(G){var Z,ne,ie,se,ce,fe,me=G._i,ge=Bt.exec(me)||Ft.exec(me);if(ge){for(l(G).iso=!0,Z=0,ne=$t.length;Z0&&l(G).unusedInput.push(ce),fe=fe.slice(fe.indexOf(ne)+ne.length),ge+=ne.length),xe[se]?(ne?l(G).empty=!1:l(G).unusedTokens.push(se),Le(se,ne,G)):G._strict&&!ne&&l(G).unusedTokens.push(se);l(G).charsLeftOver=me-ge,fe.length>0&&l(G).unusedInput.push(fe),G._a[3]<=12&&!0===l(G).bigHour&&G._a[3]>0&&(l(G).bigHour=void 0),l(G).parsedDateParts=G._a.slice(0),l(G).meridiem=G._meridiem,G._a[3]=function(G,Z,ne){var ie;return null==ne?Z:null!=G.meridiemHour?G.meridiemHour(Z,ne):null!=G.isPM?((ie=G.isPM(ne))&&Z<12&&(Z+=12),ie||12!==Z||(Z=0),Z):Z}(G._locale,G._a[3],G._meridiem),da(G),ia(G)}else ha(G);else ba(G)}function Ta(G){var Z=G._i,ne=G._f;return G._locale=G._locale||oa(G._l),null===Z||void 0===ne&&""===Z?L({nullInput:!0}):("string"==typeof Z&&(G._i=Z=G._locale.preparse(Z)),h(Z)?new z(ia(Z)):(r(Z)?G._d=Z:M(ne)?function(G){var Z,ne,ie,se,ce;if(0===G._f.length)return l(G).invalidFormat=!0,void(G._d=new Date(NaN));for(se=0;sethis?this:G:L()}));function Wa(G,Z){var ne,ie;if(1===Z.length&&M(Z[0])&&(Z=Z[0]),!Z.length)return Oa();for(ne=Z[0],ie=1;ie=0?new Date(G+400,Z,ne)-126227808e5:new Date(G,Z,ne).valueOf()}function en(G,Z,ne){return G<100&&G>=0?Date.UTC(G+400,Z,ne)-126227808e5:Date.UTC(G,Z,ne)}function an(G,Z){F(0,[G,G.length],0,Z)}function nn(G,Z,ne,ie,se){var ce;return null==G?Ee(this,ie,se).year:(Z>(ce=je(G,ie,se))&&(Z=ce),tn.call(this,G,Z,ne,ie,se))}function tn(G,Z,ne,ie,se){var ce=He(G,Z,ne,ie,se),fe=Be(ce.year,0,ce.dayOfYear);return this.year(fe.getUTCFullYear()),this.month(fe.getUTCMonth()),this.date(fe.getUTCDate()),this}F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),X("weekYear","gg"),X("isoWeekYear","GG"),E("weekYear",1),E("isoWeekYear",1),de("G",dt),de("g",dt),de("GG",Je,Ie),de("gg",Je,Ie),de("GGGG",st,ze),de("gggg",st,ze),de("GGGGG",ct,$e),de("ggggg",ct,$e),pe(["gggg","ggggg","GGGG","GGGGG"],(function(G,Z,ne,ie){Z[ie.substr(0,2)]=T(G)})),pe(["gg","GG"],(function(G,Z,ne,ie){Z[ie]=c.parseTwoDigitYear(G)})),F("Q",0,"Qo","quarter"),X("quarter","Q"),E("quarter",7),de("Q",De),le("Q",(function(G,Z){Z[1]=3*(T(G)-1)})),F("D",["DD",2],"Do","date"),X("date","D"),E("date",9),de("D",Je),de("DD",Je,Ie),de("Do",(function(G,Z){return G?Z._dayOfMonthOrdinalParse||Z._ordinalParse:Z._dayOfMonthOrdinalParseLenient})),le(["D","DD"],2),le("Do",(function(G,Z){Z[2]=T(G.match(Je)[0])}));var _n=he("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),X("dayOfYear","DDD"),E("dayOfYear",4),de("DDD",at),de("DDDD",Re),le(["DDD","DDDD"],(function(G,Z,ne){ne._dayOfYear=T(G)})),F("m",["mm",2],0,"minute"),X("minute","m"),E("minute",14),de("m",Je),de("mm",Je,Ie),le(["m","mm"],4);var gn=he("Minutes",!1);F("s",["ss",2],0,"second"),X("second","s"),E("second",15),de("s",Je),de("ss",Je,Ie),le(["s","ss"],5);var bn,yn=he("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),X("millisecond","ms"),E("millisecond",16),de("S",at,De),de("SS",at,Ie),de("SSS",at,Re),bn="SSSS";bn.length<=9;bn+="S")de(bn,ut);function rn(G,Z){Z[6]=T(1e3*("0."+G))}for(bn="S";bn.length<=9;bn+="S")le(bn,rn);var vn=he("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var wn=z.prototype;function un(G){return G}wn.add=cn,wn.calendar=function(G,Z){var ne=G||Oa(),ie=va(ne,this).startOf("day"),se=c.calendarFormat(this,ie)||"sameElse",ce=Z&&(N(Z[se])?Z[se].call(this,ne):Z[se]);return this.format(ce||this.localeData().calendar(se,this,Oa(ne)))},wn.clone=function(){return new z(this)},wn.diff=function(G,Z,ne){var ie,se,ce;if(!this.isValid())return NaN;if(!(ie=va(G,this)).isValid())return NaN;switch(se=6e4*(ie.utcOffset()-this.utcOffset()),Z=B(Z)){case"year":ce=Ga(this,ie)/12;break;case"month":ce=Ga(this,ie);break;case"quarter":ce=Ga(this,ie)/3;break;case"second":ce=(this-ie)/1e3;break;case"minute":ce=(this-ie)/6e4;break;case"hour":ce=(this-ie)/36e5;break;case"day":ce=(this-ie-se)/864e5;break;case"week":ce=(this-ie-se)/6048e5;break;default:ce=this-ie}return ne?ce:Y(ce)},wn.endOf=function(G){var Z;if(void 0===(G=B(G))||"millisecond"===G||!this.isValid())return this;var ne=this._isUTC?en:$a;switch(G){case"year":Z=ne(this.year()+1,0,1)-1;break;case"quarter":Z=ne(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Z=ne(this.year(),this.month()+1,1)-1;break;case"week":Z=ne(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Z=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Z=ne(this.year(),this.month(),this.date()+1)-1;break;case"hour":Z=this._d.valueOf(),Z+=36e5-Za(Z+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":Z=this._d.valueOf(),Z+=6e4-Za(Z,6e4)-1;break;case"second":Z=this._d.valueOf(),Z+=1e3-Za(Z,1e3)-1}return this._d.setTime(Z),c.updateOffset(this,!0),this},wn.format=function(G){G||(G=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var Z=I(this,G);return this.localeData().postformat(Z)},wn.from=function(G,Z){return this.isValid()&&(h(G)&&G.isValid()||Oa(G).isValid())?Ca({to:this,from:G}).locale(this.locale()).humanize(!Z):this.localeData().invalidDate()},wn.fromNow=function(G){return this.from(Oa(),G)},wn.to=function(G,Z){return this.isValid()&&(h(G)&&G.isValid()||Oa(G).isValid())?Ca({from:this,to:G}).locale(this.locale()).humanize(!Z):this.localeData().invalidDate()},wn.toNow=function(G){return this.to(Oa(),G)},wn.get=function(G){return N(this[G=B(G)])?this[G]():this},wn.invalidAt=function(){return l(this).overflow},wn.isAfter=function(G,Z){var ne=h(G)?G:Oa(G);return!(!this.isValid()||!ne.isValid())&&("millisecond"===(Z=B(Z)||"millisecond")?this.valueOf()>ne.valueOf():ne.valueOf()9999?I(ne,Z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?Z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(ne,"Z")):I(ne,Z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var G="moment",Z="";this.isLocal()||(G=0===this.utcOffset()?"moment.utc":"moment.parseZone",Z="Z");var ne="["+G+'("]',ie=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",se=Z+'[")]';return this.format(ne+ie+"-MM-DD[T]HH:mm:ss.SSS"+se)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Ct,wn.isLeapYear=function(){return Ae(this.year())},wn.weekYear=function(G){return nn.call(this,G,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(G){return nn.call(this,G,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(G){return null==G?Math.ceil((this.month()+1)/3):this.month(3*(G-1)+this.month()%3)},wn.month=Ne,wn.daysInMonth=function(){return ye(this.year(),this.month())},wn.week=wn.weeks=function(G){var Z=this.localeData().week(this);return null==G?Z:this.add(7*(G-Z),"d")},wn.isoWeek=wn.isoWeeks=function(G){var Z=Ee(this,1,4).week;return null==G?Z:this.add(7*(G-Z),"d")},wn.weeksInYear=function(){var G=this.localeData()._week;return je(this.year(),G.dow,G.doy)},wn.isoWeeksInYear=function(){return je(this.year(),1,4)},wn.date=_n,wn.day=wn.days=function(G){if(!this.isValid())return null!=G?this:NaN;var Z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=G?(G=function(G,Z){return"string"!=typeof G?G:isNaN(G)?"number"==typeof(G=Z.weekdaysParse(G))?G:null:parseInt(G,10)}(G,this.localeData()),this.add(G-Z,"d")):Z},wn.weekday=function(G){if(!this.isValid())return null!=G?this:NaN;var Z=(this.day()+7-this.localeData()._week.dow)%7;return null==G?Z:this.add(G-Z,"d")},wn.isoWeekday=function(G){if(!this.isValid())return null!=G?this:NaN;if(null!=G){var Z=function(G,Z){return"string"==typeof G?Z.weekdaysParse(G)%7||7:isNaN(G)?null:G}(G,this.localeData());return this.day(this.day()%7?Z:Z-7)}return this.day()||7},wn.dayOfYear=function(G){var Z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==G?Z:this.add(G-Z,"d")},wn.hour=wn.hours=Rt,wn.minute=wn.minutes=gn,wn.second=wn.seconds=yn,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(G,Z,ne){var ie,se=this._offset||0;if(!this.isValid())return null!=G?this:NaN;if(null!=G){if("string"==typeof G){if(null===(G=Ba(ft,G)))return this}else Math.abs(G)<16&&!ne&&(G*=60);return!this._isUTC&&Z&&(ie=Ha(this)),this._offset=G,this._isUTC=!0,null!=ie&&this.add(ie,"m"),se!==G&&(!Z||this._changeInProgress?Ia(this,Ca(G-se,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?se:Ha(this)},wn.utc=function(G){return this.utcOffset(0,G)},wn.local=function(G){return this._isUTC&&(this.utcOffset(0,G),this._isUTC=!1,G&&this.subtract(Ha(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var G=Ba(ht,this._i);null!=G?this.utcOffset(G):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(G){return!!this.isValid()&&(G=G?Oa(G).utcOffset():0,(this.utcOffset()-G)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Ea,wn.isUTC=Ea,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=D("dates accessor is deprecated. Use date instead.",_n),wn.months=D("months accessor is deprecated. Use month instead",Ne),wn.years=D("years accessor is deprecated. Use year instead",Ct),wn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(G,Z){return null!=G?("string"!=typeof G&&(G=-G),this.utcOffset(G,Z),this):-this.utcOffset()})),wn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var G={};if(A(G,this),(G=Ta(G))._a){var Z=G._isUTC?m(G._a):Oa(G._a);this._isDSTShifted=this.isValid()&&y(G._a,Z.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Cn=S.prototype;function ln(G,Z,ne,ie){var se=oa(),ce=m().set(ie,Z);return se[ne](ce,G)}function pn(G,Z,ne){if(i(G)&&(Z=G,G=void 0),G=G||"",null!=Z)return ln(G,Z,ne,"month");var ie,se=[];for(ie=0;ie<12;ie++)se[ie]=ln(G,ie,ne,"month");return se}function Ln(G,Z,ne,ie){"boolean"==typeof G?(i(Z)&&(ne=Z,Z=void 0),Z=Z||""):(ne=Z=G,G=!1,i(Z)&&(ne=Z,Z=void 0),Z=Z||"");var se,ce=oa(),fe=G?ce._week.dow:0;if(null!=ne)return ln(Z,(ne+fe)%7,ie,"day");var me=[];for(se=0;se<7;se++)me[se]=ln(Z,(se+fe)%7,ie,"day");return me}Cn.calendar=function(G,Z,ne){var ie=this._calendar[G]||this._calendar.sameElse;return N(ie)?ie.call(Z,ne):ie},Cn.longDateFormat=function(G){var Z=this._longDateFormat[G],ne=this._longDateFormat[G.toUpperCase()];return Z||!ne?Z:(this._longDateFormat[G]=ne.replace(/MMMM|MM|DD|dddd/g,(function(G){return G.slice(1)})),this._longDateFormat[G])},Cn.invalidDate=function(){return this._invalidDate},Cn.ordinal=function(G){return this._ordinal.replace("%d",G)},Cn.preparse=un,Cn.postformat=un,Cn.relativeTime=function(G,Z,ne,ie){var se=this._relativeTime[ne];return N(se)?se(G,Z,ne,ie):se.replace(/%d/i,G)},Cn.pastFuture=function(G,Z){var ne=this._relativeTime[G>0?"future":"past"];return N(ne)?ne(Z):ne.replace(/%s/i,Z)},Cn.set=function(G){var Z,ne;for(ne in G)N(Z=G[ne])?this[ne]=Z:this["_"+ne]=Z;this._config=G,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Cn.months=function(G,Z){return G?M(this._months)?this._months[G.month()]:this._months[(this._months.isFormat||St).test(Z)?"format":"standalone"][G.month()]:M(this._months)?this._months:this._months.standalone},Cn.monthsShort=function(G,Z){return G?M(this._monthsShort)?this._monthsShort[G.month()]:this._monthsShort[St.test(Z)?"format":"standalone"][G.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cn.monthsParse=function(G,Z,ne){var ie,se,ce;if(this._monthsParseExact)return We.call(this,G,Z,ne);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ie=0;ie<12;ie++){if(se=m([2e3,ie]),ne&&!this._longMonthsParse[ie]&&(this._longMonthsParse[ie]=new RegExp("^"+this.months(se,"").replace(".","")+"$","i"),this._shortMonthsParse[ie]=new RegExp("^"+this.monthsShort(se,"").replace(".","")+"$","i")),ne||this._monthsParse[ie]||(ce="^"+this.months(se,"")+"|^"+this.monthsShort(se,""),this._monthsParse[ie]=new RegExp(ce.replace(".",""),"i")),ne&&"MMMM"===Z&&this._longMonthsParse[ie].test(G))return ie;if(ne&&"MMM"===Z&&this._shortMonthsParse[ie].test(G))return ie;if(!ne&&this._monthsParse[ie].test(G))return ie}},Cn.monthsRegex=function(G){return this._monthsParseExact?(_(this,"_monthsRegex")||we.call(this),G?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&G?this._monthsStrictRegex:this._monthsRegex)},Cn.monthsShortRegex=function(G){return this._monthsParseExact?(_(this,"_monthsRegex")||we.call(this),G?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&G?this._monthsShortStrictRegex:this._monthsShortRegex)},Cn.week=function(G){return Ee(G,this._week.dow,this._week.doy).week},Cn.firstDayOfYear=function(){return this._week.doy},Cn.firstDayOfWeek=function(){return this._week.dow},Cn.weekdays=function(G,Z){var ne=M(this._weekdays)?this._weekdays:this._weekdays[G&&!0!==G&&this._weekdays.isFormat.test(Z)?"format":"standalone"];return!0===G?Pe(ne,this._week.dow):G?ne[G.day()]:ne},Cn.weekdaysMin=function(G){return!0===G?Pe(this._weekdaysMin,this._week.dow):G?this._weekdaysMin[G.day()]:this._weekdaysMin},Cn.weekdaysShort=function(G){return!0===G?Pe(this._weekdaysShort,this._week.dow):G?this._weekdaysShort[G.day()]:this._weekdaysShort},Cn.weekdaysParse=function(G,Z,ne){var ie,se,ce;if(this._weekdaysParseExact)return Fe.call(this,G,Z,ne);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ie=0;ie<7;ie++){if(se=m([2e3,1]).day(ie),ne&&!this._fullWeekdaysParse[ie]&&(this._fullWeekdaysParse[ie]=new RegExp("^"+this.weekdays(se,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ie]=new RegExp("^"+this.weekdaysShort(se,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ie]=new RegExp("^"+this.weekdaysMin(se,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ie]||(ce="^"+this.weekdays(se,"")+"|^"+this.weekdaysShort(se,"")+"|^"+this.weekdaysMin(se,""),this._weekdaysParse[ie]=new RegExp(ce.replace(".",""),"i")),ne&&"dddd"===Z&&this._fullWeekdaysParse[ie].test(G))return ie;if(ne&&"ddd"===Z&&this._shortWeekdaysParse[ie].test(G))return ie;if(ne&&"dd"===Z&&this._minWeekdaysParse[ie].test(G))return ie;if(!ne&&this._weekdaysParse[ie].test(G))return ie}},Cn.weekdaysRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysStrictRegex:this._weekdaysRegex):(_(this,"_weekdaysRegex")||(this._weekdaysRegex=Et),this._weekdaysStrictRegex&&G?this._weekdaysStrictRegex:this._weekdaysRegex)},Cn.weekdaysShortRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jt),this._weekdaysShortStrictRegex&&G?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cn.weekdaysMinRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&G?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cn.isPM=function(G){return"p"===(G+"").toLowerCase().charAt(0)},Cn.meridiem=function(G,Z,ne){return G>11?ne?"pm":"PM":ne?"am":"AM"},Ma("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(G){var Z=G%10;return G+(1===T(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}}),c.lang=D("moment.lang is deprecated. Use moment.locale instead.",Ma),c.langData=D("moment.langData is deprecated. Use moment.localeData instead.",oa);var On=Math.abs;function An(G,Z,ne,ie){var se=Ca(Z,ne);return G._milliseconds+=ie*se._milliseconds,G._days+=ie*se._days,G._months+=ie*se._months,G._bubble()}function fn(G){return G<0?Math.floor(G):Math.ceil(G)}function zn(G){return 4800*G/146097}function hn(G){return 146097*G/4800}function Yn(G){return function(){return this.as(G)}}var Mn=Yn("ms"),kn=Yn("s"),xn=Yn("m"),Tn=Yn("h"),Dn=Yn("d"),En=Yn("w"),jn=Yn("M"),Pn=Yn("Q"),Nn=Yn("y");function Sn(G){return function(){return this.isValid()?this._data[G]:NaN}}var qn=Sn("milliseconds"),Wn=Sn("seconds"),Bn=Sn("minutes"),Hn=Sn("hours"),$n=Sn("days"),Vn=Sn("months"),Un=Sn("years"),Kn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};function Rn(G,Z,ne,ie,se){return se.relativeTime(Z||1,!!ne,G,ie)}var Gn=Math.abs;function Fn(G){return(G>0)-(G<0)||+G}function In(){if(!this.isValid())return this.localeData().invalidDate();var G,Z,ne=Gn(this._milliseconds)/1e3,ie=Gn(this._days),se=Gn(this._months);G=Y(ne/60),Z=Y(G/60),ne%=60,G%=60;var ce=Y(se/12),fe=se%=12,me=ie,ge=Z,Ce=G,Se=ne?ne.toFixed(3).replace(/\.?0+$/,""):"",Me=this.asSeconds();if(!Me)return"P0D";var ke=Me<0?"-":"",xe=Fn(this._months)!==Fn(Me)?"-":"",De=Fn(this._days)!==Fn(Me)?"-":"",Ie=Fn(this._milliseconds)!==Fn(Me)?"-":"";return ke+"P"+(ce?xe+ce+"Y":"")+(fe?xe+fe+"M":"")+(me?De+me+"D":"")+(ge||Ce||Se?"T":"")+(ge?Ie+ge+"H":"")+(Ce?Ie+Ce+"M":"")+(Se?Ie+Se+"S":"")}var Zn=Na.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var G=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),G.milliseconds=On(G.milliseconds),G.seconds=On(G.seconds),G.minutes=On(G.minutes),G.hours=On(G.hours),G.months=On(G.months),G.years=On(G.years),this},Zn.add=function(G,Z){return An(this,G,Z,1)},Zn.subtract=function(G,Z){return An(this,G,Z,-1)},Zn.as=function(G){if(!this.isValid())return NaN;var Z,ne,ie=this._milliseconds;if("month"===(G=B(G))||"quarter"===G||"year"===G)switch(Z=this._days+ie/864e5,ne=this._months+zn(Z),G){case"month":return ne;case"quarter":return ne/3;case"year":return ne/12}else switch(Z=this._days+Math.round(hn(this._months)),G){case"week":return Z/7+ie/6048e5;case"day":return Z+ie/864e5;case"hour":return 24*Z+ie/36e5;case"minute":return 1440*Z+ie/6e4;case"second":return 86400*Z+ie/1e3;case"millisecond":return Math.floor(864e5*Z)+ie;default:throw new Error("Unknown unit "+G)}},Zn.asMilliseconds=Mn,Zn.asSeconds=kn,Zn.asMinutes=xn,Zn.asHours=Tn,Zn.asDays=Dn,Zn.asWeeks=En,Zn.asMonths=jn,Zn.asQuarters=Pn,Zn.asYears=Nn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},Zn._bubble=function(){var G,Z,ne,ie,se,ce=this._milliseconds,fe=this._days,me=this._months,ge=this._data;return ce>=0&&fe>=0&&me>=0||ce<=0&&fe<=0&&me<=0||(ce+=864e5*fn(hn(me)+fe),fe=0,me=0),ge.milliseconds=ce%1e3,G=Y(ce/1e3),ge.seconds=G%60,Z=Y(G/60),ge.minutes=Z%60,ne=Y(Z/60),ge.hours=ne%24,fe+=Y(ne/24),me+=se=Y(zn(fe)),fe-=fn(hn(se)),ie=Y(me/12),me%=12,ge.days=fe,ge.months=me,ge.years=ie,this},Zn.clone=function(){return Ca(this)},Zn.get=function(G){return G=B(G),this.isValid()?this[G+"s"]():NaN},Zn.milliseconds=qn,Zn.seconds=Wn,Zn.minutes=Bn,Zn.hours=Hn,Zn.days=$n,Zn.weeks=function(){return Y(this.days()/7)},Zn.months=Vn,Zn.years=Un,Zn.humanize=function(G){if(!this.isValid())return this.localeData().invalidDate();var Z=this.localeData(),ne=function(G,Z,ne){var ie=Ca(G).abs(),se=Kn(ie.as("s")),ce=Kn(ie.as("m")),fe=Kn(ie.as("h")),me=Kn(ie.as("d")),ge=Kn(ie.as("M")),Ce=Kn(ie.as("y")),Se=se<=Xn.ss&&["s",se]||se0,Se[4]=ne,Rn.apply(null,Se)}(this,!G,Z);return G&&(ne=Z.pastFuture(+this,ne)),Z.postformat(ne)},Zn.toISOString=In,Zn.toString=In,Zn.toJSON=In,Zn.locale=Ka,Zn.localeData=Qa,Zn.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",In),Zn.lang=mn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),de("x",dt),de("X",/[+-]?\d+(\.\d{1,3})?/),le("X",(function(G,Z,ne){ne._d=new Date(1e3*parseFloat(G,10))})),le("x",(function(G,Z,ne){ne._d=new Date(T(G))})),c.version="2.24.0",Z=Oa,c.fn=wn,c.min=function(){var G=[].slice.call(arguments,0);return Wa("isBefore",G)},c.max=function(){var G=[].slice.call(arguments,0);return Wa("isAfter",G)},c.now=function(){return Date.now?Date.now():+new Date},c.utc=m,c.unix=function(G){return Oa(1e3*G)},c.months=function(G,Z){return pn(G,Z,"months")},c.isDate=r,c.locale=Ma,c.invalid=L,c.duration=Ca,c.isMoment=h,c.weekdays=function(G,Z,ne){return Ln(G,Z,ne,"weekdays")},c.parseZone=function(){return Oa.apply(null,arguments).parseZone()},c.localeData=oa,c.isDuration=ga,c.monthsShort=function(G,Z){return pn(G,Z,"monthsShort")},c.weekdaysMin=function(G,Z,ne){return Ln(G,Z,ne,"weekdaysMin")},c.defineLocale=sa,c.updateLocale=function(G,Z){if(null!=Z){var ne,ie,se=zt;null!=(ie=ca(G))&&(se=ie._config),(ne=new S(Z=g(se,Z))).parentLocale=qt[G],qt[G]=ne,Ma(G)}else null!=qt[G]&&(null!=qt[G].parentLocale?qt[G]=qt[G].parentLocale:null!=qt[G]&&delete qt[G]);return qt[G]},c.locales=function(){return fe(qt)},c.weekdaysShort=function(G,Z,ne){return Ln(G,Z,ne,"weekdaysShort")},c.normalizeUnits=B,c.relativeTimeRounding=function(G){return void 0===G?Kn:"function"==typeof G&&(Kn=G,!0)},c.relativeTimeThreshold=function(G,Z){return void 0!==Xn[G]&&(void 0===Z?Xn[G]:(Xn[G]=Z,"s"===G&&(Xn.ss=Z-1),!0))},c.calendarFormat=function(G,Z){var ne=G.diff(Z,"days",!0);return ne<-6?"sameElse":ne<-1?"lastWeek":ne<0?"lastDay":ne<1?"sameDay":ne<2?"nextDay":ne<7?"nextWeek":"sameElse"},c.prototype=wn,c.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},c}()}).call(this,ne(133)(G))},function(G,Z){G.exports=ne(24)},function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(1);function c(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function M(G){for(var Z=1;Z=Z.offsets.length?Z:M(M({},Z),{},{starts:Z.starts.concat([{time:1e3*se,abbr:Z.abbrs[ce],offset:Z.offsets[ce]}])})}(G.substring(1,G.length),ne)}}));var se={name:Z,abbrs:[],offsets:[],untils:[]};if(0===ne.starts.length)return se.abbrs.push(ne.abbrs[0]),se.offsets.push(ne.offsets[0]),se.untils.push(null),se;var ce=ne.starts[0],fe=ne.starts[ne.starts.length-1];return ne.starts.forEach((function(G,Z){G===ce?(se.abbrs.push(fe.abbr),se.offsets.push(fe.offset),se.untils.push(G.time)):(se.abbrs.push(ne.starts[Z-1].abbr),se.offsets.push(ne.starts[Z-1].offset),se.untils.push(G.time)),G===fe&&(se.abbrs.push(G.abbr),se.offsets.push(G.offset),se.untils.push(null))})),se}},function(G,Z){G.exports=ne(695)},function(G,Z,ne){!function(G){"use strict";G.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(G){return/^nm$/i.test(G)},meridiem:function(G,Z,ne){return G<12?ne?"vm":"VM":ne?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},t=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},ie={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},M=function(G){return function(Z,ne,se,ce){var fe=t(Z),me=ie[G][t(Z)];return 2===fe&&(me=me[ne?0:1]),me.replace(/%d/i,Z)}},se=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];G.defineLocale("ar",{months:se,monthsShort:se,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},ne={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},c=function(G){return function(Z,ie,se,ce){var fe=n(Z),me=ne[G][n(Z)];return 2===fe&&(me=me[ie?0:1]),me.replace(/%d/i,Z)}},ie=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];G.defineLocale("ar-ly",{months:ie,monthsShort:ie,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:c("s"),ss:c("s"),m:c("m"),mm:c("m"),h:c("h"),hh:c("h"),d:c("d"),dd:c("d"),M:c("M"),MM:c("M"),y:c("y"),yy:c("y")},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};G.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};G.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(G){return/^(gündüz|axşam)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"gecə":G<12?"səhər":G<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(G){if(0===G)return G+"-ıncı";var ne=G%10;return G+(Z[ne]||Z[G%100-ne]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"хвіліна":"хвіліну":"h"===ne?Z?"гадзіна":"гадзіну":G+" "+(ie=+G,se={ss:Z?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:Z?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:Z?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}G.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:a,mm:a,h:a,hh:a,d:"дзень",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(G){return/^(дня|вечара)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночы":G<12?"раніцы":G<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return G%10!=2&&G%10!=3||G%100==12||G%100==13?G+"-ы":G+"-і";case"D":return G+"-га";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(G){var Z=G%10,ne=G%100;return 0===G?G+"-ев":0===ne?G+"-ен":ne>10&&ne<20?G+"-ти":1===Z?G+"-ви":2===Z?G+"-ри":7===Z||8===Z?G+"-ми":G+"-ти"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},ne={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};G.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(G){return G.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(G,Z){return 12===G&&(G=0),"রাত"===Z&&G>=4||"দুপুর"===Z&&G<5||"বিকাল"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"রাত":G<10?"সকাল":G<17?"দুপুর":G<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},ne={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};G.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(G){return G.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"མཚན་མོ"===Z&&G>=4||"ཉིན་གུང"===Z&&G<5||"དགོང་དག"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"མཚན་མོ":G<10?"ཞོགས་ཀས":G<17?"ཉིན་གུང":G<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){return G+" "+function(G,Z){return 2===Z?function(G){var Z={m:"v",b:"v",d:"z"};return void 0===Z[G.charAt(0)]?G:Z[G.charAt(0)]+G.substring(1)}(G):G}({mm:"munutenn",MM:"miz",dd:"devezh"}[ne],G)}G.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:a,h:"un eur",hh:"%d eur",d:"un devezh",dd:a,M:"ur miz",MM:a,y:"ur bloaz",yy:function(G){switch(function e(G){return G>9?e(G%10):G}(G)){case 1:case 3:case 4:case 5:case 9:return G+" bloaz";default:return G+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(G){return G+(1===G?"añ":"vet")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(1===G?"sekunda":2===G||3===G||4===G?"sekunde":"sekundi");case"m":return Z?"jedna minuta":"jedne minute";case"mm":return ie+(1===G?"minuta":2===G||3===G||4===G?"minute":"minuta");case"h":return Z?"jedan sat":"jednog sata";case"hh":return ie+(1===G?"sat":2===G||3===G||4===G?"sata":"sati");case"dd":return ie+(1===G?"dan":"dana");case"MM":return ie+(1===G?"mjesec":2===G||3===G||4===G?"mjeseca":"mjeseci");case"yy":return ie+(1===G?"godina":2===G||3===G||4===G?"godine":"godina")}}G.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(G,Z){var ne=1===G?"r":2===G?"n":3===G?"r":4===G?"t":"è";return"w"!==Z&&"W"!==Z||(ne="a"),G+ne},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),ne="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),ie=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],se=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function M(G){return G>1&&G<5&&1!=~~(G/10)}function s(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"pár sekund":"pár sekundami";case"ss":return Z||ie?se+(M(G)?"sekundy":"sekund"):se+"sekundami";case"m":return Z?"minuta":ie?"minutu":"minutou";case"mm":return Z||ie?se+(M(G)?"minuty":"minut"):se+"minutami";case"h":return Z?"hodina":ie?"hodinu":"hodinou";case"hh":return Z||ie?se+(M(G)?"hodiny":"hodin"):se+"hodinami";case"d":return Z||ie?"den":"dnem";case"dd":return Z||ie?se+(M(G)?"dny":"dní"):se+"dny";case"M":return Z||ie?"měsíc":"měsícem";case"MM":return Z||ie?se+(M(G)?"měsíce":"měsíců"):se+"měsíci";case"y":return Z||ie?"rok":"rokem";case"yy":return Z||ie?se+(M(G)?"roky":"let"):se+"lety"}}G.defineLocale("cs",{months:Z,monthsShort:ne,monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(G){return G+(/сехет$/i.exec(G)?"рен":/ҫул$/i.exec(G)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(G){var Z="";return G>20?Z=40===G||50===G||60===G||80===G||100===G?"fed":"ain":G>0&&(Z=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][G]),G+Z},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],ne=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];G.defineLocale("dv",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(G){return"މފ"===G},meridiem:function(G,Z,ne){return G<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:7,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(G,Z){return G?"string"==typeof Z&&/D/.test(Z.substring(0,Z.indexOf("MMMM")))?this._monthsGenitiveEl[G.month()]:this._monthsNominativeEl[G.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(G,Z,ne){return G>11?ne?"μμ":"ΜΜ":ne?"πμ":"ΠΜ"},isPM:function(G){return"μ"===(G+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(G,Z){var ne,ie=this._calendarEl[G],se=Z&&Z.hours();return((ne=ie)instanceof Function||"[object Function]"===Object.prototype.toString.call(ne))&&(ie=ie.apply(Z)),ie.replace("{}",se%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(G){return"p"===G.charAt(0).toLowerCase()},meridiem:function(G,Z,ne){return G>11?ne?"p.t.m.":"P.T.M.":ne?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[G+"sekundi",G+"sekundit"],m:["ühe minuti","üks minut"],mm:[G+" minuti",G+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[G+" tunni",G+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[G+" kuu",G+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[G+" aasta",G+" aastat"]};return Z?se[ne][2]?se[ne][2]:se[ne][1]:ie?se[ne][0]:se[ne][1]}G.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},ne={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};G.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(G){return/بعد از ظهر/.test(G)},meridiem:function(G,Z,ne){return G<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(G){return G.replace(/[۰-۹]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),ne=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Z[7],Z[8],Z[9]];function t(G,ie,se,ce){var fe="";switch(se){case"s":return ce?"muutaman sekunnin":"muutama sekunti";case"ss":return ce?"sekunnin":"sekuntia";case"m":return ce?"minuutin":"minuutti";case"mm":fe=ce?"minuutin":"minuuttia";break;case"h":return ce?"tunnin":"tunti";case"hh":fe=ce?"tunnin":"tuntia";break;case"d":return ce?"päivän":"päivä";case"dd":fe=ce?"päivän":"päivää";break;case"M":return ce?"kuukauden":"kuukausi";case"MM":fe=ce?"kuukauden":"kuukautta";break;case"y":return ce?"vuoden":"vuosi";case"yy":fe=ce?"vuoden":"vuotta"}return function(G,ie){return G<10?ie?ne[G]:Z[G]:G}(G,ce)+" "+fe}G.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(G,Z){switch(Z){case"D":return G+(1===G?"er":"");default:case"M":case"Q":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(G,Z){switch(Z){default:case"M":case"Q":case"D":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(G,Z){switch(Z){default:case"M":case"Q":case"D":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),ne="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");G.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(G){return 0===G.indexOf("un")?"n"+G:"en "+G},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["thodde secondanim","thodde second"],ss:[G+" secondanim",G+" second"],m:["eka mintan","ek minute"],mm:[G+" mintanim",G+" mintam"],h:["eka voran","ek vor"],hh:[G+" voranim",G+" voram"],d:["eka disan","ek dis"],dd:[G+" disanim",G+" dis"],M:["eka mhoinean","ek mhoino"],MM:[G+" mhoineanim",G+" mhoine"],y:["eka vorsan","ek voros"],yy:[G+" vorsanim",G+" vorsam"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(G,Z){switch(Z){case"D":return G+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return G}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(G,Z){return 12===G&&(G=0),"rati"===Z?G<4?G:G+12:"sokalli"===Z?G:"donparam"===Z?G>12?G:G+12:"sanje"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"rati":G<12?"sokalli":G<16?"donparam":G<20?"sanje":"rati"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},ne={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};G.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(G){return G.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"રાત"===Z?G<4?G:G+12:"સવાર"===Z?G:"બપોર"===Z?G>=10?G:G+12:"સાંજ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"રાત":G<10?"સવાર":G<17?"બપોર":G<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(G){return 2===G?"שעתיים":G+" שעות"},d:"יום",dd:function(G){return 2===G?"יומיים":G+" ימים"},M:"חודש",MM:function(G){return 2===G?"חודשיים":G+" חודשים"},y:"שנה",yy:function(G){return 2===G?"שנתיים":G%10==0&&10!==G?G+" שנה":G+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(G){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(G)},meridiem:function(G,Z,ne){return G<5?"לפנות בוקר":G<10?"בבוקר":G<12?ne?'לפנה"צ':"לפני הצהריים":G<18?ne?'אחה"צ':"אחרי הצהריים":"בערב"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};G.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(G,Z){return 12===G&&(G=0),"रात"===Z?G<4?G:G+12:"सुबह"===Z?G:"दोपहर"===Z?G>=10?G:G+12:"शाम"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"रात":G<10?"सुबह":G<17?"दोपहर":G<20?"शाम":"रात"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(1===G?"sekunda":2===G||3===G||4===G?"sekunde":"sekundi");case"m":return Z?"jedna minuta":"jedne minute";case"mm":return ie+(1===G?"minuta":2===G||3===G||4===G?"minute":"minuta");case"h":return Z?"jedan sat":"jednog sata";case"hh":return ie+(1===G?"sat":2===G||3===G||4===G?"sata":"sati");case"dd":return ie+(1===G?"dan":"dana");case"MM":return ie+(1===G?"mjesec":2===G||3===G||4===G?"mjeseca":"mjeseci");case"yy":return ie+(1===G?"godina":2===G||3===G||4===G?"godine":"godina")}}G.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(G,Z,ne,ie){var se=G;switch(ne){case"s":return ie||Z?"néhány másodperc":"néhány másodperce";case"ss":return se+(ie||Z)?" másodperc":" másodperce";case"m":return"egy"+(ie||Z?" perc":" perce");case"mm":return se+(ie||Z?" perc":" perce");case"h":return"egy"+(ie||Z?" óra":" órája");case"hh":return se+(ie||Z?" óra":" órája");case"d":return"egy"+(ie||Z?" nap":" napja");case"dd":return se+(ie||Z?" nap":" napja");case"M":return"egy"+(ie||Z?" hónap":" hónapja");case"MM":return se+(ie||Z?" hónap":" hónapja");case"y":return"egy"+(ie||Z?" év":" éve");case"yy":return se+(ie||Z?" év":" éve")}return""}function t(G){return(G?"":"[múlt] ")+"["+Z[this.day()]+"] LT[-kor]"}G.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(G){return"u"===G.charAt(1).toLowerCase()},meridiem:function(G,Z,ne){return G<12?!0===ne?"de":"DE":!0===ne?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(G){return/^(ցերեկվա|երեկոյան)$/.test(G)},meridiem:function(G){return G<4?"գիշերվա":G<12?"առավոտվա":G<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(G,Z){switch(Z){case"DDD":case"w":case"W":case"DDDo":return 1===G?G+"-ին":G+"-րդ";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"siang"===Z?G>=11?G:G+12:"sore"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"siang":G<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G){return G%100==11||G%10!=1}function n(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return a(G)?se+(Z||ie?"sekúndur":"sekúndum"):se+"sekúnda";case"m":return Z?"mínúta":"mínútu";case"mm":return a(G)?se+(Z||ie?"mínútur":"mínútum"):Z?se+"mínúta":se+"mínútu";case"hh":return a(G)?se+(Z||ie?"klukkustundir":"klukkustundum"):se+"klukkustund";case"d":return Z?"dagur":ie?"dag":"degi";case"dd":return a(G)?Z?se+"dagar":se+(ie?"daga":"dögum"):Z?se+"dagur":se+(ie?"dag":"degi");case"M":return Z?"mánuður":ie?"mánuð":"mánuði";case"MM":return a(G)?Z?se+"mánuðir":se+(ie?"mánuði":"mánuðum"):Z?se+"mánuður":se+(ie?"mánuð":"mánuði");case"y":return Z||ie?"ár":"ári";case"yy":return a(G)?se+(Z||ie?"ár":"árum"):se+(Z||ie?"ár":"ári")}}G.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(G){return(/^[0-9].+$/.test(G)?"tra":"in")+" "+G},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(G){return(/^[0-9].+$/.test(G)?"tra":"in")+" "+G},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(G){return"午後"===G},meridiem:function(G,Z,ne){return G<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(G){return G.week()=11?G:G+12:"sonten"===Z||"ndalu"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"enjing":G<15?"siyang":G<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(G){return/(წამი|წუთი|საათი|წელი)/.test(G)?G.replace(/ი$/,"ში"):G+"ში"},past:function(G){return/(წამი|წუთი|საათი|დღე|თვე)/.test(G)?G.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(G)?G.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(G){return 0===G?G:1===G?G+"-ლი":G<20||G<=100&&G%20==0||G%100==0?"მე-"+G:G+"-ე"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};G.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},ne={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};G.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(G){return"ល្ងាច"===G},meridiem:function(G,Z,ne){return G<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(G){return G.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},ne={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};G.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(G){return G.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"ರಾತ್ರಿ"===Z?G<4?G:G+12:"ಬೆಳಿಗ್ಗೆ"===Z?G:"ಮಧ್ಯಾಹ್ನ"===Z?G>=10?G:G+12:"ಸಂಜೆ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"ರಾತ್ರಿ":G<10?"ಬೆಳಿಗ್ಗೆ":G<17?"ಮಧ್ಯಾಹ್ನ":G<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(G){return G+"ನೇ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"일";case"M":return G+"월";case"w":case"W":return G+"주";default:return G}},meridiemParse:/오전|오후/,isPM:function(G){return"오후"===G},meridiem:function(G,Z,ne){return G<12?"오전":"오후"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ie=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];G.defineLocale("ku",{months:ie,monthsShort:ie,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(G){return/ئێواره‌/.test(G)},meridiem:function(G,Z,ne){return G<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};G.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?se[ne][0]:se[ne][1]}function n(G){if(G=parseInt(G,10),isNaN(G))return!1;if(G<0)return!0;if(G<10)return 4<=G&&G<=7;if(G<100){var Z=G%10;return n(0===Z?G/10:Z)}if(G<1e4){for(;G>=10;)G/=10;return n(G)}return n(G/=1e3)}G.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(G){return n(G.substr(0,G.indexOf(" ")))?"a "+G:"an "+G},past:function(G){return n(G.substr(0,G.indexOf(" ")))?"viru "+G:"virun "+G},s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d Méint",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(G){return"ຕອນແລງ"===G},meridiem:function(G,Z,ne){return G<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(G){return"ທີ່"+G}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(G,Z,ne,ie){return Z?c(ne)[0]:ie?c(ne)[1]:c(ne)[2]}function t(G){return G%10==0||G>10&&G<20}function c(G){return Z[G].split("_")}function M(G,Z,ne,ie){var se=G+" ";return 1===G?se+n(0,Z,ne[0],ie):Z?se+(t(G)?c(ne)[1]:c(ne)[0]):ie?se+c(ne)[1]:se+(t(G)?c(ne)[1]:c(ne)[2])}G.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(G,Z,ne,ie){return Z?"kelios sekundės":ie?"kelių sekundžių":"kelias sekundes"},ss:M,m:n,mm:M,h:n,hh:M,d:n,dd:M,M:n,MM:M,y:n,yy:M},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(G){return G+"-oji"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(G,Z,ne){return ne?Z%10==1&&Z%100!=11?G[2]:G[3]:Z%10==1&&Z%100!=11?G[0]:G[1]}function t(G,ne,ie){return G+" "+n(Z[ie],G,ne)}function c(G,ne,ie){return n(Z[ie],G,ne)}G.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(G,Z){return Z?"dažas sekundes":"dažām sekundēm"},ss:t,m:c,mm:t,h:c,hh:t,d:c,dd:t,M:c,MM:t,y:c,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"dan",dd:Z.translate,M:"mjesec",MM:Z.translate,y:"godinu",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(G){var Z=G%10,ne=G%100;return 0===G?G+"-ев":0===ne?G+"-ен":ne>10&&ne<20?G+"-ти":1===Z?G+"-ви":2===Z?G+"-ри":7===Z||8===Z?G+"-ми":G+"-ти"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(G,Z){return 12===G&&(G=0),"രാത്രി"===Z&&G>=4||"ഉച്ച കഴിഞ്ഞ്"===Z||"വൈകുന്നേരം"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"രാത്രി":G<12?"രാവിലെ":G<17?"ഉച്ച കഴിഞ്ഞ്":G<20?"വൈകുന്നേരം":"രാത്രി"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){switch(ne){case"s":return Z?"хэдхэн секунд":"хэдхэн секундын";case"ss":return G+(Z?" секунд":" секундын");case"m":case"mm":return G+(Z?" минут":" минутын");case"h":case"hh":return G+(Z?" цаг":" цагийн");case"d":case"dd":return G+(Z?" өдөр":" өдрийн");case"M":case"MM":return G+(Z?" сар":" сарын");case"y":case"yy":return G+(Z?" жил":" жилийн");default:return G}}G.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(G){return"ҮХ"===G},meridiem:function(G,Z,ne){return G<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+" өдөр";default:return G}}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function t(G,Z,ne,ie){var se="";if(Z)switch(ne){case"s":se="काही सेकंद";break;case"ss":se="%d सेकंद";break;case"m":se="एक मिनिट";break;case"mm":se="%d मिनिटे";break;case"h":se="एक तास";break;case"hh":se="%d तास";break;case"d":se="एक दिवस";break;case"dd":se="%d दिवस";break;case"M":se="एक महिना";break;case"MM":se="%d महिने";break;case"y":se="एक वर्ष";break;case"yy":se="%d वर्षे"}else switch(ne){case"s":se="काही सेकंदां";break;case"ss":se="%d सेकंदां";break;case"m":se="एका मिनिटा";break;case"mm":se="%d मिनिटां";break;case"h":se="एका तासा";break;case"hh":se="%d तासां";break;case"d":se="एका दिवसा";break;case"dd":se="%d दिवसां";break;case"M":se="एका महिन्या";break;case"MM":se="%d महिन्यां";break;case"y":se="एका वर्षा";break;case"yy":se="%d वर्षां"}return se.replace(/%d/i,G)}G.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(G,Z){return 12===G&&(G=0),"रात्री"===Z?G<4?G:G+12:"सकाळी"===Z?G:"दुपारी"===Z?G>=10?G:G+12:"सायंकाळी"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"रात्री":G<10?"सकाळी":G<17?"दुपारी":G<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"tengahari"===Z?G>=11?G:G+12:"petang"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"tengahari":G<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"tengahari"===Z?G>=11?G:G+12:"petang"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"tengahari":G<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},ne={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};G.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(G){return G.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};G.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"राति"===Z?G<4?G:G+12:"बिहान"===Z?G:"दिउँसो"===Z?G>=10?G:G+12:"साँझ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<3?"राति":G<12?"बिहान":G<16?"दिउँसो":G<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),ne="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ie=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],se=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;G.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),ne="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ie=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],se=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;G.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},ne={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};G.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(G){return G.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"ਰਾਤ"===Z?G<4?G:G+12:"ਸਵੇਰ"===Z?G:"ਦੁਪਹਿਰ"===Z?G>=10?G:G+12:"ਸ਼ਾਮ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"ਰਾਤ":G<10?"ਸਵੇਰ":G<17?"ਦੁਪਹਿਰ":G<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),ne="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function t(G){return G%10<5&&G%10>1&&~~(G/10)%10!=1}function c(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(t(G)?"sekundy":"sekund");case"m":return Z?"minuta":"minutę";case"mm":return ie+(t(G)?"minuty":"minut");case"h":return Z?"godzina":"godzinę";case"hh":return ie+(t(G)?"godziny":"godzin");case"MM":return ie+(t(G)?"miesiące":"miesięcy");case"yy":return ie+(t(G)?"lata":"lat")}}G.defineLocale("pl",{months:function(G,ie){return G?""===ie?"("+ne[G.month()]+"|"+Z[G.month()]+")":/D MMMM/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:c,m:c,mm:c,h:c,hh:c,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:c,y:"rok",yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=" ";return(G%100>=20||G>=100&&G%100==0)&&(ie=" de "),G+ie+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[ne]}G.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:a,m:"un minut",mm:a,h:"o oră",hh:a,d:"o zi",dd:a,M:"o lună",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"минута":"минуту":G+" "+(ie=+G,se={ss:Z?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:Z?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}var Z=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];G.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Z,longMonthsParse:Z,shortMonthsParse:Z,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(G){if(G.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(G){if(G.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:a,m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(G){return/^(дня|вечера)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночи":G<12?"утра":G<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":return G+"-й";case"D":return G+"-го";case"w":case"W":return G+"-я";default:return G}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],ne=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];G.defineLocale("sd",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:ne,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(G){return"شام"===G},meridiem:function(G,Z,ne){return G<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(G){return G+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(G){return"ප.ව."===G||"පස් වරු"===G},meridiem:function(G,Z,ne){return G>11?ne?"ප.ව.":"පස් වරු":ne?"පෙ.ව.":"පෙර වරු"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),ne="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function t(G){return G>1&&G<5}function c(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"pár sekúnd":"pár sekundami";case"ss":return Z||ie?se+(t(G)?"sekundy":"sekúnd"):se+"sekundami";case"m":return Z?"minúta":ie?"minútu":"minútou";case"mm":return Z||ie?se+(t(G)?"minúty":"minút"):se+"minútami";case"h":return Z?"hodina":ie?"hodinu":"hodinou";case"hh":return Z||ie?se+(t(G)?"hodiny":"hodín"):se+"hodinami";case"d":return Z||ie?"deň":"dňom";case"dd":return Z||ie?se+(t(G)?"dni":"dní"):se+"dňami";case"M":return Z||ie?"mesiac":"mesiacom";case"MM":return Z||ie?se+(t(G)?"mesiace":"mesiacov"):se+"mesiacmi";case"y":return Z||ie?"rok":"rokom";case"yy":return Z||ie?se+(t(G)?"roky":"rokov"):se+"rokmi"}}G.defineLocale("sk",{months:Z,monthsShort:ne,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:c,ss:c,m:c,mm:c,h:c,hh:c,d:c,dd:c,M:c,MM:c,y:c,yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"nekaj sekund":"nekaj sekundami";case"ss":return se+(1===G?Z?"sekundo":"sekundi":2===G?Z||ie?"sekundi":"sekundah":G<5?Z||ie?"sekunde":"sekundah":"sekund");case"m":return Z?"ena minuta":"eno minuto";case"mm":return se+(1===G?Z?"minuta":"minuto":2===G?Z||ie?"minuti":"minutama":G<5?Z||ie?"minute":"minutami":Z||ie?"minut":"minutami");case"h":return Z?"ena ura":"eno uro";case"hh":return se+(1===G?Z?"ura":"uro":2===G?Z||ie?"uri":"urama":G<5?Z||ie?"ure":"urami":Z||ie?"ur":"urami");case"d":return Z||ie?"en dan":"enim dnem";case"dd":return se+(1===G?Z||ie?"dan":"dnem":2===G?Z||ie?"dni":"dnevoma":Z||ie?"dni":"dnevi");case"M":return Z||ie?"en mesec":"enim mesecem";case"MM":return se+(1===G?Z||ie?"mesec":"mesecem":2===G?Z||ie?"meseca":"mesecema":G<5?Z||ie?"mesece":"meseci":Z||ie?"mesecev":"meseci");case"y":return Z||ie?"eno leto":"enim letom";case"yy":return se+(1===G?Z||ie?"leto":"letom":2===G?Z||ie?"leti":"letoma":G<5?Z||ie?"leta":"leti":Z||ie?"let":"leti")}}G.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(G){return"M"===G.charAt(0)},meridiem:function(G,Z,ne){return G<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"dan",dd:Z.translate,M:"mesec",MM:Z.translate,y:"godinu",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"дан",dd:Z.translate,M:"месец",MM:Z.translate,y:"годину",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(G,Z,ne){return G<11?"ekuseni":G<15?"emini":G<19?"entsambama":"ebusuku"},meridiemHour:function(G,Z){return 12===G&&(G=0),"ekuseni"===Z?G:"emini"===Z?G>=11?G:G+12:"entsambama"===Z||"ebusuku"===Z?0===G?0:G+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"e":1===Z||2===Z?"a":"e")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},ne={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};G.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(G){return G+"வது"},preparse:function(G){return G.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(G,Z,ne){return G<2?" யாமம்":G<6?" வைகறை":G<10?" காலை":G<14?" நண்பகல்":G<18?" எற்பாடு":G<22?" மாலை":" யாமம்"},meridiemHour:function(G,Z){return 12===G&&(G=0),"யாமம்"===Z?G<2?G:G+12:"வைகறை"===Z||"காலை"===Z||"நண்பகல்"===Z&&G>=10?G:G+12},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(G,Z){return 12===G&&(G=0),"రాత్రి"===Z?G<4?G:G+12:"ఉదయం"===Z?G:"మధ్యాహ్నం"===Z?G>=10?G:G+12:"సాయంత్రం"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"రాత్రి":G<10?"ఉదయం":G<17?"మధ్యాహ్నం":G<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};G.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"шаб"===Z?G<4?G:G+12:"субҳ"===Z?G:"рӯз"===Z?G>=11?G:G+12:"бегоҳ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"шаб":G<11?"субҳ":G<16?"рӯз":G<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(G){return"หลังเที่ยง"===G},meridiem:function(G,Z,ne){return G<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(G){return G},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(G,ne,ie,se){var ce=function(G){var ne=Math.floor(G%1e3/100),ie=Math.floor(G%100/10),se=G%10,ce="";return ne>0&&(ce+=Z[ne]+"vatlh"),ie>0&&(ce+=(""!==ce?" ":"")+Z[ie]+"maH"),se>0&&(ce+=(""!==ce?" ":"")+Z[se]),""===ce?"pagh":ce}(G);switch(ie){case"ss":return ce+" lup";case"mm":return ce+" tup";case"hh":return ce+" rep";case"dd":return ce+" jaj";case"MM":return ce+" jar";case"yy":return ce+" DIS"}}G.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(G){var Z=G;return-1!==G.indexOf("jaj")?Z.slice(0,-3)+"leS":-1!==G.indexOf("jar")?Z.slice(0,-3)+"waQ":-1!==G.indexOf("DIS")?Z.slice(0,-3)+"nem":Z+" pIq"},past:function(G){var Z=G;return-1!==G.indexOf("jaj")?Z.slice(0,-3)+"Hu’":-1!==G.indexOf("jar")?Z.slice(0,-3)+"wen":-1!==G.indexOf("DIS")?Z.slice(0,-3)+"ben":Z+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};G.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(G,ne){switch(ne){case"d":case"D":case"Do":case"DD":return G;default:if(0===G)return G+"'ıncı";var ie=G%10;return G+(Z[ie]||Z[G%100-ie]||Z[G>=100?100:null])}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["viensas secunds","'iensas secunds"],ss:[G+" secunds",G+" secunds"],m:["'n míut","'iens míut"],mm:[G+" míuts",G+" míuts"],h:["'n þora","'iensa þora"],hh:[G+" þoras",G+" þoras"],d:["'n ziua","'iensa ziua"],dd:[G+" ziuas",G+" ziuas"],M:["'n mes","'iens mes"],MM:[G+" mesen",G+" mesen"],y:["'n ar","'iens ar"],yy:[G+" ars",G+" ars"]};return ie||Z?se[ne][0]:se[ne][1]}G.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(G){return"d'o"===G.toLowerCase()},meridiem:function(G,Z,ne){return G>11?ne?"d'o":"D'O":ne?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"يېرىم كېچە"===Z||"سەھەر"===Z||"چۈشتىن بۇرۇن"===Z?G:"چۈشتىن كېيىن"===Z||"كەچ"===Z?G+12:G>=11?G:G+12},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"يېرىم كېچە":ie<900?"سەھەر":ie<1130?"چۈشتىن بۇرۇن":ie<1230?"چۈش":ie<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"-كۈنى";case"w":case"W":return G+"-ھەپتە";default:return G}},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"хвилина":"хвилину":"h"===ne?Z?"година":"годину":G+" "+(ie=+G,se={ss:Z?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:Z?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:Z?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}function n(G){return function(){return G+"о"+(11===this.hours()?"б":"")+"] LT"}}G.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(G,Z){var ne={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===G?ne.nominative.slice(1,7).concat(ne.nominative.slice(0,1)):G?ne[/(\[[ВвУу]\]) ?dddd/.test(Z)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][G.day()]:ne.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:a,m:a,mm:a,h:"годину",hh:a,d:"день",dd:a,M:"місяць",MM:a,y:"рік",yy:a},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(G){return/^(дня|вечора)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночі":G<12?"ранку":G<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return G+"-й";case"D":return G+"-го";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],ne=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];G.defineLocale("ur",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:ne,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(G){return"شام"===G},meridiem:function(G,Z,ne){return G<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(G){return/^ch$/i.test(G)},meridiem:function(G,Z,ne){return G<12?ne?"sa":"SA":ne?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(G){return G},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"下午"===Z||"晚上"===Z?G+12:G>=11?G:G+12},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"周";default:return G}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"中午"===Z?G>=11?G:G+12:"下午"===Z||"晚上"===Z?G+12:void 0},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"週";default:return G}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"中午"===Z?G>=11?G:G+12:"下午"===Z||"晚上"===Z?G+12:void 0},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"週";default:return G}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(ne(0))},function(G,Z,ne){var ie,se,ce;//! moment-timezone.js //! version : 0.5.28 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !function(fe,me){"use strict";G.exports?G.exports=me(ne(0)):(se=[ne(0)],void 0===(ce="function"==typeof(ie=me)?ie.apply(Z,se):ie)||(G.exports=ce))}(0,(function(G){"use strict";var Z,ne={},ie={},se={},ce={},fe={};G&&"string"==typeof G.version||q("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var me=G.version.split("."),ge=+me[0],Ce=+me[1];function d(G){return G>96?G-87:G>64?G-29:G-48}function _(G){var Z=0,ne=G.split("."),ie=ne[0],se=ne[1]||"",ce=1,fe=0,me=1;for(45===G.charCodeAt(0)&&(Z=1,me=-1);Z= 2.6.0. You are using Moment.js "+G.version+". See momentjs.com"),p.prototype={_set:function(G){this.name=G.name,this.abbrs=G.abbrs,this.untils=G.untils,this.offsets=G.offsets,this.population=G.population},_index:function(G){var Z,ne=+G,ie=this.untils;for(Z=0;Zie&&N.moveInvalidForward&&(Z=ie),ce3){var Z=ce[y(G)];if(Z)return Z;q("Moment Timezone found "+G+" from the Intl api, but did not have that data loaded.")}}catch(G){}var ne,ie,se,fe=function(){var G,Z,ne,ie=(new Date).getFullYear()-2,se=new b(new Date(ie,0,1)),ce=[se];for(ne=1;ne<48;ne++)(Z=new b(new Date(ie,ne,1))).offset!==se.offset&&(G=f(se,Z),ce.push(G),ce.push(new b(new Date(G.at+6e4)))),se=Z;for(ne=0;ne<4;ne++)ce.push(new b(new Date(ie+ne,0,1))),ce.push(new b(new Date(ie+ne,6,1)));return ce}(),me=fe.length,ge=Y(fe),Ce=[];for(ie=0;ie0?Ce[0].zone.name:void 0}()),Z},N.names=function(){var G,Z=[];for(G in ce)ce.hasOwnProperty(G)&&(ne[G]||ne[ie[G]])&&ce[G]&&Z.push(ce[G]);return Z.sort()},N.Zone=p,N.unpack=l,N.unpackBase60=_,N.needsOffset=W,N.moveInvalidForward=!0,N.moveAmbiguousForward=!1,N.countries=function(){return Object.keys(se)},N.zonesForCountry=function(G,Z){var ne;if(ne=(ne=G).toUpperCase(),!(G=se[ne]||null))return null;var ie=G.zones.sort();return Z?ie.map((function(G){return{name:G,offset:D(G).utcOffset(new Date)}})):ie};var Se,Me=G.fn;function w(G){return function(){return this._z?this._z.abbr(this):G.call(this)}}function X(G){return function(){return this._z=null,G.apply(this,arguments)}}G.tz=N,G.defaultZone=null,G.updateOffset=function(Z,ne){var ie,se=G.defaultZone;if(void 0===Z._z&&(se&&W(Z)&&!Z._isUTC&&(Z._d=G.utc(Z._a)._d,Z.utc().add(se.parse(Z),"minutes")),Z._z=se),Z._z)if(ie=Z._z.utcOffset(Z),Math.abs(ie)<16&&(ie/=60),void 0!==Z.utcOffset){var ce=Z._z;Z.utcOffset(-ie,ne),Z._z=ce}else Z.zone(ie,ne)},Me.tz=function(Z,ne){if(Z){if("string"!=typeof Z)throw new Error("Time zone name must be a string, got "+Z+" ["+typeof Z+"]");return this._z=D(Z),this._z?G.updateOffset(this,ne):q("Moment Timezone has no data for "+Z+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},Me.zoneName=w(Me.zoneName),Me.zoneAbbr=w(Me.zoneAbbr),Me.utc=X(Me.utc),Me.local=X(Me.local),Me.utcOffset=(Se=Me.utcOffset,function(){return arguments.length>0&&(this._z=null),Se.apply(this,arguments)}),G.tz.setDefault=function(Z){return(ge<2||2===ge&&Ce<9)&&q("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+G.version+"."),G.defaultZone=Z?D(Z):null,G};var ke=G.momentProperties;return"[object Array]"===Object.prototype.toString.call(ke)?(ke.push("_z"),ke.push("_a")):ke&&(ke._z=null),G}))},function(G,Z){G.exports=ne(7383)},function(G,Z){G.exports=function(G){return G.webpackPolyfill||(G.deprecate=function(){},G.paths=[],G.children||(G.children=[]),Object.defineProperty(G,"loaded",{enumerable:!0,get:function(){return G.l}}),Object.defineProperty(G,"id",{enumerable:!0,get:function(){return G.i}}),G.webpackPolyfill=1),G}},function(G,Z,ne){var ie={"./af":4,"./af.js":4,"./ar":5,"./ar-dz":6,"./ar-dz.js":6,"./ar-kw":7,"./ar-kw.js":7,"./ar-ly":8,"./ar-ly.js":8,"./ar-ma":9,"./ar-ma.js":9,"./ar-sa":10,"./ar-sa.js":10,"./ar-tn":11,"./ar-tn.js":11,"./ar.js":5,"./az":12,"./az.js":12,"./be":13,"./be.js":13,"./bg":14,"./bg.js":14,"./bm":15,"./bm.js":15,"./bn":16,"./bn.js":16,"./bo":17,"./bo.js":17,"./br":18,"./br.js":18,"./bs":19,"./bs.js":19,"./ca":20,"./ca.js":20,"./cs":21,"./cs.js":21,"./cv":22,"./cv.js":22,"./cy":23,"./cy.js":23,"./da":24,"./da.js":24,"./de":25,"./de-at":26,"./de-at.js":26,"./de-ch":27,"./de-ch.js":27,"./de.js":25,"./dv":28,"./dv.js":28,"./el":29,"./el.js":29,"./en-SG":30,"./en-SG.js":30,"./en-au":31,"./en-au.js":31,"./en-ca":32,"./en-ca.js":32,"./en-gb":33,"./en-gb.js":33,"./en-ie":34,"./en-ie.js":34,"./en-il":35,"./en-il.js":35,"./en-nz":36,"./en-nz.js":36,"./eo":37,"./eo.js":37,"./es":38,"./es-do":39,"./es-do.js":39,"./es-us":40,"./es-us.js":40,"./es.js":38,"./et":41,"./et.js":41,"./eu":42,"./eu.js":42,"./fa":43,"./fa.js":43,"./fi":44,"./fi.js":44,"./fo":45,"./fo.js":45,"./fr":46,"./fr-ca":47,"./fr-ca.js":47,"./fr-ch":48,"./fr-ch.js":48,"./fr.js":46,"./fy":49,"./fy.js":49,"./ga":50,"./ga.js":50,"./gd":51,"./gd.js":51,"./gl":52,"./gl.js":52,"./gom-latn":53,"./gom-latn.js":53,"./gu":54,"./gu.js":54,"./he":55,"./he.js":55,"./hi":56,"./hi.js":56,"./hr":57,"./hr.js":57,"./hu":58,"./hu.js":58,"./hy-am":59,"./hy-am.js":59,"./id":60,"./id.js":60,"./is":61,"./is.js":61,"./it":62,"./it-ch":63,"./it-ch.js":63,"./it.js":62,"./ja":64,"./ja.js":64,"./jv":65,"./jv.js":65,"./ka":66,"./ka.js":66,"./kk":67,"./kk.js":67,"./km":68,"./km.js":68,"./kn":69,"./kn.js":69,"./ko":70,"./ko.js":70,"./ku":71,"./ku.js":71,"./ky":72,"./ky.js":72,"./lb":73,"./lb.js":73,"./lo":74,"./lo.js":74,"./lt":75,"./lt.js":75,"./lv":76,"./lv.js":76,"./me":77,"./me.js":77,"./mi":78,"./mi.js":78,"./mk":79,"./mk.js":79,"./ml":80,"./ml.js":80,"./mn":81,"./mn.js":81,"./mr":82,"./mr.js":82,"./ms":83,"./ms-my":84,"./ms-my.js":84,"./ms.js":83,"./mt":85,"./mt.js":85,"./my":86,"./my.js":86,"./nb":87,"./nb.js":87,"./ne":88,"./ne.js":88,"./nl":89,"./nl-be":90,"./nl-be.js":90,"./nl.js":89,"./nn":91,"./nn.js":91,"./pa-in":92,"./pa-in.js":92,"./pl":93,"./pl.js":93,"./pt":94,"./pt-br":95,"./pt-br.js":95,"./pt.js":94,"./ro":96,"./ro.js":96,"./ru":97,"./ru.js":97,"./sd":98,"./sd.js":98,"./se":99,"./se.js":99,"./si":100,"./si.js":100,"./sk":101,"./sk.js":101,"./sl":102,"./sl.js":102,"./sq":103,"./sq.js":103,"./sr":104,"./sr-cyrl":105,"./sr-cyrl.js":105,"./sr.js":104,"./ss":106,"./ss.js":106,"./sv":107,"./sv.js":107,"./sw":108,"./sw.js":108,"./ta":109,"./ta.js":109,"./te":110,"./te.js":110,"./tet":111,"./tet.js":111,"./tg":112,"./tg.js":112,"./th":113,"./th.js":113,"./tl-ph":114,"./tl-ph.js":114,"./tlh":115,"./tlh.js":115,"./tr":116,"./tr.js":116,"./tzl":117,"./tzl.js":117,"./tzm":118,"./tzm-latn":119,"./tzm-latn.js":119,"./tzm.js":118,"./ug-cn":120,"./ug-cn.js":120,"./uk":121,"./uk.js":121,"./ur":122,"./ur.js":122,"./uz":123,"./uz-latn":124,"./uz-latn.js":124,"./uz.js":123,"./vi":125,"./vi.js":125,"./x-pseudo":126,"./x-pseudo.js":126,"./yo":127,"./yo.js":127,"./zh-cn":128,"./zh-cn.js":128,"./zh-hk":129,"./zh-hk.js":129,"./zh-tw":130,"./zh-tw.js":130};function c(G){var Z=M(G);return ne(Z)}function M(G){if(!ne.o(ie,G)){var Z=new Error("Cannot find module '"+G+"'");throw Z.code="MODULE_NOT_FOUND",Z}return ie[G]}c.keys=function(){return Object.keys(ie)},c.resolve=M,G.exports=c,c.id=134},function(G,Z,ne){var ie,se,ce;//! moment-timezone-utils.js //! version : 0.5.28 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !function(fe,me){"use strict";G.exports?G.exports=me(ne(136)):(se=[ne(0)],void 0===(ce="function"==typeof(ie=me)?ie.apply(Z,se):ie)||(G.exports=ce))}(0,(function(G){"use strict";if(!G.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var Z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function n(G,ne){for(var ie="",se=Math.abs(G),ce=Math.floor(se),fe=function(G,ne){for(var ie,se=".",ce="";ne>0;)ne-=1,G*=60,ie=Math.floor(G+1e-6),se+=Z[ie],G-=ie,ie&&(ce+=se,se="");return ce}(se-ce,Math.min(~~ne,10));ce>0;)ie=Z[ce%60]+ie,ce=Math.floor(ce/60);return G<0&&(ie="-"+ie),ie&&fe?ie+fe:(fe||"-"!==ie)&&(ie||fe)||"0"}function t(G){var Z,ne=[],ie=0;for(Z=0;Zme.population||fe.population===me.population&&ie&&ie[fe.name]?ge.unshift(fe):ge.push(fe),Ce=!0);Ce||Se.push([fe])}for(se=0;sene&&(se=Z,Z=ne,ne=se),se=0;sene&&(fe=Math.min(fe,se+1)));return[ce,fe]}(G.untils,Z,ne),ce=ie.apply(G.untils,se);return ce[ce.length-1]=null,{name:G.name,abbrs:ie.apply(G.abbrs,se),untils:ce,offsets:ie.apply(G.offsets,se),population:G.population,countries:G.countries}}return G.tz.pack=s,G.tz.packBase60=n,G.tz.createLinks=d,G.tz.filterYears=_,G.tz.filterLinkPack=function(G,Z,ne,ie){var se,ce,fe=G.zones,me=[];for(se=0;se-1){var fe=Z.format(ie[ne]);return se="".concat(se.substring(0,ce),"[").concat(fe,"]").concat(se.substring(ce+ne.length)),!0}return!1})),this.format(se)},Z.default=se.a}])},2014:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(24);var _default=(G,Z)=>(0,ie.pickBy)(G,(G=>(Z,ne)=>{switch(ne){case"style":case"className":return!0;default:return!(!G||!G.has(ne))||(ne.startsWith("data-")||ne.startsWith("aria-"))}})(Z));Z.default=_default},2015:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=205)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(758)},17:function(G,Z){G.exports=ne(640)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},205:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(19),Se=ne.n(Ce),Me=ne(23),ke=ne.n(Me),xe=ne(5),De=ne.n(xe),Ie=ne(0),Re=ne(7),ze=ne(4),$e=ne(34),Je=ne.n($e);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0)&&G.preventDefault(),Object(Re.isDecimal)(G.nativeEvent,{locale:ne.props.locale})&&(ne.props.roundTo<=0||ne.state.stringValue.indexOf(ne.props.locale)>=0)&&G.preventDefault()),"up"===Object(Re.keycode)(G.nativeEvent)?(ne.increment(G,ne.props.step),G.preventDefault()):"down"===Object(Re.keycode)(G.nativeEvent)&&(ne.increment(G,-ne.props.step),G.preventDefault()),null===(Z=(ie=ne.props).onKeyDown)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleKeyUp",(function(G){var Z,ie;"enter"===Object(Re.keycode)(G.nativeEvent)&&ne.updateString(),null===(Z=(ie=ne.props).onKeyUp)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleIncrement",(function(G){ne.increment(G,ne.props.step)})),_defineProperty(_assertThisInitialized(ne),"handleDecrement",(function(G){ne.increment(G,-ne.props.step)})),ne.controlledExternally=ge()(G,"value");var ie=ne.isControlled()?G.value:G.defaultValue;return ne.state={value:ne.isControlled()?void 0:ie,prevValueProp:ne.isControlled()?ie:void 0,stringValue:Number.numberToString(ie,G)},ge()(G,"useSyntheticPlaceholder")&&console.warn("The 'Number' prop 'useSyntheticPlaceholder' has been marked for deprecation."),Number.validatePrependAppend(ne.props.append,ne.props.prepend),ne}return _createClass(Number,null,[{key:"getDecimalSeparator",value:function getDecimalSeparator(G){return new Intl.NumberFormat(G.replace("_","-")).format(1.2).indexOf(",")>-1?",":"."}},{key:"validatePrependAppend",value:function validatePrependAppend(G,Z){0}},{key:"stringToNumber",value:function stringToNumber(G,Z){var ne=G;if(ke()(ne)&&""!==ne){ne="."===Number.getDecimalSeparator(Z.locale)?ne.replace(/^[^\d.-]/,""):ne.replace(/^[^\d,-]/,"").replace(",",".");var ie=Number.limitValue(parseFloat(ne),Z);return Se()(ie)?ie:void 0}}},{key:"numberToString",value:function numberToString(G,Z){return void 0!==G&&Se()(G)?"."===Number.getDecimalSeparator(Z.locale)?G.toString():G.toString().replace(".",","):""}},{key:"limitValue",value:function limitValue(G,Z){var ne=Z.min,ie=Z.max,se=Z.roundTo,ce=G;if(!Se()(G))return ce;void 0!==ne&&Se()(ne)&&(ce=Math.max(ne,ce)),void 0!==ie&&Se()(ie)&&(ce=Math.min(ie,ce));var fe=Math.pow(10,se);return Math.round(ce*fe)/fe}}]),_createClass(Number,[{key:"componentDidUpdate",value:function componentDidUpdate(G){Number.validatePrependAppend(this.props.append,this.props.prepend)}},{key:"getValue",value:function getValue(){return this.isControlled()?this.props.value:this.state.value}},{key:"setValueFromString",value:function setValueFromString(G,Z){var ne=this,ie=Number.stringToNumber(Z,this.props),se=this.props.name;this.setState({value:this.isControlled()?void 0:ie,stringValue:Z},(function(){var Z,ce;ne.getValue()===ie&&ne.isControlled()||(null===(Z=(ce=ne.props).onChange)||void 0===Z||Z.call(ce,G,{value:ie,name:se}))}))}},{key:"setValue",value:function setValue(G,Z){var ne=this,ie=this.props.name;this.setState({value:this.isControlled()?void 0:Z,stringValue:Number.numberToString(Z,this.props)},(function(){var se,ce;ne.getValue()===Z&&ne.isControlled()||(null===(se=(ce=ne.props).onChange)||void 0===se||se.call(ce,G,{value:Z,name:ie}))}))}},{key:"focus",value:function focus(G){this.text&&this.text.focus(G)}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"updateString",value:function updateString(){var G=this.getValue();this.setState({stringValue:Number.numberToString(G,this.props)})}},{key:"increment",value:function increment(G,Z){var ne,ie=Number.stringToNumber(this.state.stringValue,this.props);ne=void 0!==ie&&Se()(ie)?ie+Z:void 0!==this.props.defaultValue&&Se()(this.props.defaultValue)?this.props.defaultValue+Z:Z>0?this.props.max||this.props.step:this.props.min||0,this.setValue(G,Number.limitValue(ne,this.props))}},{key:"preventNegativeNumbers",value:function preventNegativeNumbers(){return void 0!==this.props.min&&Se()(this.props.min)&&this.props.min>=0}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.describedBy,ce=Z.disabled,fe=Z.error,me=Z.hideStepButtons,ge=Z.inline,Ce=Z.value,Me=void 0===Ce?this.state.value:Ce,ke=Z.max,xe=Z.min,Ie=Z.prepend,Re=Z.splunkTheme,$e=De()(this.props,["defaultValue","hideStepButtons","max","min","roundTo","spellCheck","step"]),Je=Re.isPrisma,it=Je?{}:{append:ne,prepend:!ne,error:fe,inline:!1},ot=void 0!==Me&&Se()(Me)&&void 0!==ke&&Se()(ke)&&Me>=ke,at=void 0!==Me&&Se()(Me)&&void 0!==xe&&Se()(xe)&&Me<=xe,st=se.a.createElement(SortedUp,{width:"6px",height:"4px",screenReaderText:Object(ze._)("Increment")}),ct=_objectSpread({"data-test":"increment",disabled:ce||ot,onClick:this.handleIncrement,tabIndex:-1},it),ut=Je?se.a.createElement(St,ct,st):se.a.createElement(vt,ct,st),dt=se.a.createElement(SortedUp,{width:"6px",height:"4px",screenReaderText:Object(ze._)("Decrement"),style:{transform:"rotateX(180deg)"}}),ht=_objectSpread({"data-test":"decrement",disabled:ce||at,onClick:this.handleDecrement,tabIndex:-1},it),yt=Je?se.a.createElement(Mt,ht,dt):se.a.createElement(wt,ht,dt),Ct=ne&&!Ie,kt=(!ce||Je)&&Ct&&!me&&se.a.createElement(_t,{$isAppend:Ct},ut,yt),xt=(!ce||Je)&&!Ct&&!me&&se.a.createElement(_t,{$isAppend:Ct},ut,yt);return se.a.createElement(ft,Number_extends({autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-test":"number",ref:function ref(Z){G.text=Z}},$e,{inline:ge,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,value:this.state.stringValue,"aria-describedby":ie,error:fe,"data-test-value":Me,startAdornment:kt,endAdornment:xt}))}}]),Number}(ie.Component);_defineProperty(xt,"propTypes",kt),_defineProperty(xt,"defaultProps",{append:!1,disabled:!1,error:!1,hideStepButtons:!1,inline:!1,locale:"en-US",placeholder:"",prepend:!1,roundTo:5,step:1}),_defineProperty(xt,"getDerivedStateFromProps",(function(G,Z){if(ge()(G,"value")&&G.value!==Z.prevValueProp){var ne=xt.stringToNumber(Z.stringValue,G);return G.value!==ne?{prevValueProp:G.value,stringValue:xt.numberToString(G.value,G)}:{prevValueProp:G.value}}return null}));var Lt=Object(Ie.withSplunkTheme)(xt);Lt.propTypes=xt.propTypes;var Tt=Lt},23:function(G,Z){G.exports=ne(78)},3:function(G,Z){G.exports=ne(3)},32:function(G,Z){G.exports=ne(1156)},34:function(G,Z){G.exports=ne(2009)},4:function(G,Z){G.exports=ne(641)},5:function(G,Z){G.exports=ne(41)},7:function(G,Z){G.exports=ne(1154)}})},2016:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=595)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},595:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.64494 9H4C3.44772 9 3 8.55228 3 8C3 7.44772 3.44772 7 4 7H5.64494C6.07521 5.55426 7.41449 4.5 9 4.5C10.5855 4.5 11.9248 5.55426 12.3551 7H20C20.5523 7 21 7.44772 21 8C21 8.55228 20.5523 9 20 9H12.3551C11.9248 10.4457 10.5855 11.5 9 11.5C7.41449 11.5 6.07521 10.4457 5.64494 9ZM7.5 8C7.5 7.17157 8.17157 6.5 9 6.5C9.82843 6.5 10.5 7.17157 10.5 8C10.5 8.82843 9.82843 9.5 9 9.5C8.17157 9.5 7.5 8.82843 7.5 8Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6449 17H4C3.44772 17 3 16.5523 3 16C3 15.4477 3.44772 15 4 15H11.6449C12.0752 13.5543 13.4145 12.5 15 12.5C16.5855 12.5 17.9248 13.5543 18.3551 15H20C20.5523 15 21 15.4477 21 16C21 16.5523 20.5523 17 20 17H18.3551C17.9248 18.4457 16.5855 19.5 15 19.5C13.4145 19.5 12.0752 18.4457 11.6449 17ZM16.5 16C16.5 15.1716 15.8284 14.5 15 14.5C14.1716 14.5 13.5 15.1716 13.5 16C13.5 16.8284 14.1716 17.5 15 17.5C15.8284 17.5 16.5 16.8284 16.5 16Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M4 9H5.64494C6.07521 10.4457 7.41449 11.5 9 11.5C10.5855 11.5 11.9248 10.4457 12.3551 9H20C20.5523 9 21 8.55228 21 8C21 7.44772 20.5523 7 20 7H12.3551C11.9248 5.55426 10.5855 4.5 9 4.5C7.41449 4.5 6.07521 5.55426 5.64494 7H4C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z"}),se.a.createElement("path",{d:"M20 15C20.5523 15 21 15.4477 21 16C21 16.5523 20.5523 17 20 17H18.3551C17.9248 18.4457 16.5855 19.5 15 19.5C13.4145 19.5 12.0752 18.4457 11.6449 17H4C3.44772 17 3 16.5523 3 16C3 15.4477 3.44772 15 4 15H11.6449C12.0752 13.5543 13.4145 12.5 15 12.5C16.5855 12.5 17.9248 13.5543 18.3551 15H20Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function SlidersDoubleHorizontal(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="slidersdoublehorizontal-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2017:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearGetThemeCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(7410)),ce=_interopRequireDefault(ne(7412)),fe=ne(1158);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},2018:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearVariablesCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(2017)),ce=ne(1158);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635ZM16 10.5015C16 13.539 13.5376 16.0015 10.5 16.0015C7.46243 16.0015 5 13.539 5 10.5015C5 7.4639 7.46243 5.00146 10.5 5.00146C13.5376 5.00146 16 7.4639 16 10.5015Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Magnifier(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="magnifier-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2022:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=148)}({0:function(G,Z){G.exports=ne(0)},148:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Search}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z ","{border-color:",";}"],dt,De.mixins.colorWithAlpha(De.variables.focusColor,.8))}),ut,Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray96,dark:"#b1bcc7"}),prisma:De.variables.white}),dt,Object(De.pick)({prisma:De.variables.interactiveColorOverlayHover}),Object(De.pick)({enterprise:{light:De.variables.borderLightColor,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray30},prisma:De.variables.interactiveColorBackgroundDisabled}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.06);"])}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:transparent;background-color:",";"],Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.accentColorL40,dark:De.variables.accentColorD20}),prisma:De.mixins.colorWithAlpha(De.variables.interactiveColorPrimary,.7)}))}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";background-color:",";",""],Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.transparent}),Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({prisma:Object(Ie.css)(["box-shadow:",";"],De.variables.embossShadow)}))}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}),Object(De.pick)({prisma:Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})),ft=ht.withComponent("span"),_t=Re.a.label.withConfig({displayName:"SwitchStyles__StyledLabel",componentId:"sc-844ieu-6"})([""," flex:1 1 auto;padding-left:",";color:inherit;",";"],De.mixins.reset("inline-block"),Object(De.pick)({enterprise:Object(Ie.css)(["",";"],De.variables.spacingQuarter),prisma:"8px"}),(function(G){return!G.$disabled&&Object(Ie.css)(["cursor:pointer;"])}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne{G.code(Se._`"use strict"; ${funcSourceUrl(ne,se)}`),function destructureValCxtES5(G,Z){G.if(Me.default.valCxt,()=>{G.var(Me.default.instancePath,Se._`${Me.default.valCxt}.${Me.default.instancePath}`),G.var(Me.default.parentData,Se._`${Me.default.valCxt}.${Me.default.parentData}`),G.var(Me.default.parentDataProperty,Se._`${Me.default.valCxt}.${Me.default.parentDataProperty}`),G.var(Me.default.rootData,Se._`${Me.default.valCxt}.${Me.default.rootData}`),Z.dynamicRef&&G.var(Me.default.dynamicAnchors,Se._`${Me.default.valCxt}.${Me.default.dynamicAnchors}`)},()=>{G.var(Me.default.instancePath,Se._`""`),G.var(Me.default.parentData,Se._`undefined`),G.var(Me.default.parentDataProperty,Se._`undefined`),G.var(Me.default.rootData,Me.default.data),Z.dynamicRef&&G.var(Me.default.dynamicAnchors,Se._`{}`)})}(G,se),G.code(ce)}):G.func(Z,Se._`${Me.default.data}, ${function destructureValCxt(G){return Se._`{${Me.default.instancePath}="", ${Me.default.parentData}, ${Me.default.parentDataProperty}, ${Me.default.rootData}=${Me.default.data}${G.dynamicRef?Se._`, ${Me.default.dynamicAnchors}={}`:Se.nil}}={}`}(se)}`,ie.$async,()=>G.code(funcSourceUrl(ne,se)).code(ce))}function funcSourceUrl(G,Z){const ne="object"==typeof G&&G[Z.schemaId];return ne&&(Z.code.source||Z.code.process)?Se._`/*# sourceURL=${ne} */`:Se.nil}function subschemaCode(G,Z){isSchemaObj(G)&&(checkKeywords(G),schemaCxtHasRules(G))?function subSchemaObjCode(G,Z){const{schema:ne,gen:ie,opts:se}=G;se.$comment&&ne.$comment&&commentKeyword(G);(function updateContext(G){const Z=G.schema[G.opts.schemaId];Z&&(G.baseId=(0,ke.resolveUrl)(G.baseId,Z))})(G),function checkAsyncSchema(G){if(G.schema.$async&&!G.schemaEnv.$async)throw new Error("async schema in sync schema")}(G);const ce=ie.const("_errs",Me.default.errors);typeAndKeywords(G,ce),ie.var(Z,Se._`${ce} === ${Me.default.errors}`)}(G,Z):(0,ie.boolOrEmptySchema)(G,Z)}function schemaCxtHasRules({schema:G,self:Z}){if("boolean"==typeof G)return!G;for(const ne in G)if(Z.RULES.all[ne])return!0;return!1}function isSchemaObj(G){return"boolean"!=typeof G.schema}function checkKeywords(G){(0,xe.checkUnknownRules)(G),function checkRefsAndKeywords(G){const{schema:Z,errSchemaPath:ne,opts:ie,self:se}=G;Z.$ref&&ie.ignoreKeywordsWithRef&&(0,xe.schemaHasRulesButRef)(Z,se.RULES)&&se.logger.warn(`$ref: keywords ignored in schema at path "${ne}"`)}(G)}function typeAndKeywords(G,Z){if(G.opts.jtd)return schemaKeywords(G,[],!1,Z);const ne=(0,se.getSchemaTypes)(G.schema);schemaKeywords(G,ne,!(0,se.coerceAndCheckDataType)(G,ne),Z)}function commentKeyword({gen:G,schemaEnv:Z,schema:ne,errSchemaPath:ie,opts:se}){const ce=ne.$comment;if(!0===se.$comment)G.code(Se._`${Me.default.self}.logger.log(${ce})`);else if("function"==typeof se.$comment){const ne=Se.str`${ie}/$comment`,se=G.scopeValue("root",{ref:Z.root});G.code(Se._`${Me.default.self}.opts.$comment(${ce}, ${ne}, ${se}.schema)`)}}function schemaKeywords(G,Z,ne,ie){const{gen:se,schema:me,data:ge,allErrors:Ce,opts:ke,self:De}=G,{RULES:Ie}=De;function groupKeywords(xe){(0,ce.shouldUseGroup)(me,xe)&&(xe.type?(se.if((0,fe.checkDataType)(xe.type,ge,ke.strictNumbers)),iterateKeywords(G,xe),1===Z.length&&Z[0]===xe.type&&ne&&(se.else(),(0,fe.reportTypeError)(G)),se.endIf()):iterateKeywords(G,xe),Ce||se.if(Se._`${Me.default.errors} === ${ie||0}`))}!me.$ref||!ke.ignoreKeywordsWithRef&&(0,xe.schemaHasRulesButRef)(me,Ie)?(ke.jtd||function checkStrictTypes(G,Z){if(G.schemaEnv.meta||!G.opts.strictTypes)return;(function checkContextTypes(G,Z){if(!Z.length)return;if(!G.dataTypes.length)return void(G.dataTypes=Z);Z.forEach(Z=>{includesType(G.dataTypes,Z)||strictTypesError(G,`type "${Z}" not allowed by context "${G.dataTypes.join(",")}"`)}),G.dataTypes=G.dataTypes.filter(G=>includesType(Z,G))})(G,Z),G.opts.allowUnionTypes||function checkMultipleTypes(G,Z){Z.length>1&&(2!==Z.length||!Z.includes("null"))&&strictTypesError(G,"use allowUnionTypes to allow union type keyword")}(G,Z);!function checkKeywordTypes(G,Z){const ne=G.self.RULES.all;for(const ie in ne){const se=ne[ie];if("object"==typeof se&&(0,ce.shouldUseRule)(G.schema,se)){const{type:ne}=se.definition;ne.length&&!ne.some(G=>{return ie=G,(ne=Z).includes(ie)||"number"===ie&&ne.includes("integer");var ne,ie})&&strictTypesError(G,`missing type "${ne.join(",")}" for keyword "${ie}"`)}}}(G,G.dataTypes)}(G,Z),se.block(()=>{for(const G of Ie.rules)groupKeywords(G);groupKeywords(Ie.post)})):se.block(()=>keywordCode(G,"$ref",Ie.all.$ref.definition))}function iterateKeywords(G,Z){const{gen:ne,schema:ie,opts:{useDefaults:se}}=G;se&&(0,me.assignDefaults)(G,Z.type),ne.block(()=>{for(const ne of Z.rules)(0,ce.shouldUseRule)(ie,ne)&&keywordCode(G,ne.keyword,ne.definition,Z.type)})}function includesType(G,Z){return G.includes(Z)||"integer"===Z&&G.includes("number")}function strictTypesError(G,Z){Z+=` at "${G.schemaEnv.baseId+G.errSchemaPath}" (strictTypes)`,(0,xe.checkStrictMode)(G,Z,G.opts.strictTypes)}Z.validateFunctionCode=function validateFunctionCode(G){isSchemaObj(G)&&(checkKeywords(G),schemaCxtHasRules(G))?function topSchemaObjCode(G){const{schema:Z,opts:ne,gen:ie}=G;return void validateFunction(G,()=>{ne.$comment&&Z.$comment&&commentKeyword(G),function checkNoDefault(G){const{schema:Z,opts:ne}=G;void 0!==Z.default&&ne.useDefaults&&ne.strictSchema&&(0,xe.checkStrictMode)(G,"default is ignored in the schema root")}(G),ie.let(Me.default.vErrors,null),ie.let(Me.default.errors,0),ne.unevaluated&&function resetEvaluated(G){const{gen:Z,validateName:ne}=G;G.evaluated=Z.const("evaluated",Se._`${ne}.evaluated`),Z.if(Se._`${G.evaluated}.dynamicProps`,()=>Z.assign(Se._`${G.evaluated}.props`,Se._`undefined`)),Z.if(Se._`${G.evaluated}.dynamicItems`,()=>Z.assign(Se._`${G.evaluated}.items`,Se._`undefined`))}(G),typeAndKeywords(G),function returnResults(G){const{gen:Z,schemaEnv:ne,validateName:ie,ValidationError:se,opts:ce}=G;ne.$async?Z.if(Se._`${Me.default.errors} === 0`,()=>Z.return(Me.default.data),()=>Z.throw(Se._`new ${se}(${Me.default.vErrors})`)):(Z.assign(Se._`${ie}.errors`,Me.default.vErrors),ce.unevaluated&&function assignEvaluated({gen:G,evaluated:Z,props:ne,items:ie}){ne instanceof Se.Name&&G.assign(Se._`${Z}.props`,ne);ie instanceof Se.Name&&G.assign(Se._`${Z}.items`,ie)}(G),Z.return(Se._`${Me.default.errors} === 0`))}(G)})}(G):validateFunction(G,()=>(0,ie.topBoolOrEmptySchema)(G))};class KeywordCxt{constructor(G,Z,ne){if((0,ge.validateKeywordUsage)(G,Z,ne),this.gen=G.gen,this.allErrors=G.allErrors,this.keyword=ne,this.data=G.data,this.schema=G.schema[ne],this.$data=Z.$data&&G.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,xe.schemaRefOrVal)(G,this.schema,ne,this.$data),this.schemaType=Z.schemaType,this.parentSchema=G.schema,this.params={},this.it=G,this.def=Z,this.$data)this.schemaCode=G.gen.const("vSchema",getData(this.$data,G));else if(this.schemaCode=this.schemaValue,!(0,ge.validSchemaType)(this.schema,Z.schemaType,Z.allowUndefined))throw new Error(`${ne} value must be ${JSON.stringify(Z.schemaType)}`);("code"in Z?Z.trackErrors:!1!==Z.errors)&&(this.errsCount=G.gen.const("_errs",Me.default.errors))}result(G,Z,ne){this.failResult((0,Se.not)(G),Z,ne)}failResult(G,Z,ne){this.gen.if(G),ne?ne():this.error(),Z?(this.gen.else(),Z(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(G,Z){this.failResult((0,Se.not)(G),void 0,Z)}fail(G){if(void 0===G)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(G),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(G){if(!this.$data)return this.fail(G);const{schemaCode:Z}=this;this.fail(Se._`${Z} !== undefined && (${(0,Se.or)(this.invalid$data(),G)})`)}error(G,Z,ne){if(Z)return this.setParams(Z),this._error(G,ne),void this.setParams({});this._error(G,ne)}_error(G,Z){(G?De.reportExtraError:De.reportError)(this,this.def.error,Z)}$dataError(){(0,De.reportError)(this,this.def.$dataError||De.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,De.resetErrorsCount)(this.gen,this.errsCount)}ok(G){this.allErrors||this.gen.if(G)}setParams(G,Z){Z?Object.assign(this.params,G):this.params=G}block$data(G,Z,ne=Se.nil){this.gen.block(()=>{this.check$data(G,ne),Z()})}check$data(G=Se.nil,Z=Se.nil){if(!this.$data)return;const{gen:ne,schemaCode:ie,schemaType:se,def:ce}=this;ne.if((0,Se.or)(Se._`${ie} === undefined`,Z)),G!==Se.nil&&ne.assign(G,!0),(se.length||ce.validateSchema)&&(ne.elseIf(this.invalid$data()),this.$dataError(),G!==Se.nil&&ne.assign(G,!1)),ne.else()}invalid$data(){const{gen:G,schemaCode:Z,schemaType:ne,def:ie,it:se}=this;return(0,Se.or)(function wrong$DataType(){if(ne.length){if(!(Z instanceof Se.Name))throw new Error("ajv implementation error");const G=Array.isArray(ne)?ne:[ne];return Se._`${(0,fe.checkDataTypes)(G,Z,se.opts.strictNumbers,fe.DataType.Wrong)}`}return Se.nil}(),function invalid$DataSchema(){if(ie.validateSchema){const ne=G.scopeValue("validate$data",{ref:ie.validateSchema});return Se._`!${ne}(${Z})`}return Se.nil}())}subschema(G,Z){const ne=(0,Ce.getSubschema)(this.it,G);(0,Ce.extendSubschemaData)(ne,this.it,G),(0,Ce.extendSubschemaMode)(ne,G);const ie={...this.it,...ne,items:void 0,props:void 0};return subschemaCode(ie,Z),ie}mergeEvaluated(G,Z){const{it:ne,gen:ie}=this;ne.opts.unevaluated&&(!0!==ne.props&&void 0!==G.props&&(ne.props=xe.mergeEvaluated.props(ie,G.props,ne.props,Z)),!0!==ne.items&&void 0!==G.items&&(ne.items=xe.mergeEvaluated.items(ie,G.items,ne.items,Z)))}mergeValidEvaluated(G,Z){const{it:ne,gen:ie}=this;if(ne.opts.unevaluated&&(!0!==ne.props||!0!==ne.items))return ie.if(Z,()=>this.mergeEvaluated(G,Se.Name)),!0}}function keywordCode(G,Z,ne,ie){const se=new KeywordCxt(G,ne,Z);"code"in ne?ne.code(se,ie):se.$data&&ne.validate?(0,ge.funcKeywordCode)(se,ne):"macro"in ne?(0,ge.macroKeywordCode)(se,ne):(ne.compile||ne.validate)&&(0,ge.funcKeywordCode)(se,ne)}Z.KeywordCxt=KeywordCxt;const Ie=/^\/(?:[^~]|~0|~1)*$/,Re=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(G,{dataLevel:Z,dataNames:ne,dataPathArr:ie}){let se,ce;if(""===G)return Me.default.rootData;if("/"===G[0]){if(!Ie.test(G))throw new Error("Invalid JSON-pointer: "+G);se=G,ce=Me.default.rootData}else{const fe=Re.exec(G);if(!fe)throw new Error("Invalid JSON-pointer: "+G);const me=+fe[1];if(se=fe[2],"#"===se){if(me>=Z)throw new Error(errorMsg("property/index",me));return ie[Z-me]}if(me>Z)throw new Error(errorMsg("data",me));if(ce=ne[Z-me],!se)return ce}let fe=ce;const me=se.split("/");for(const G of me)G&&(ce=Se._`${ce}${(0,Se.getProperty)((0,xe.unescapeJsonPointer)(G))}`,fe=Se._`${fe} && ${ce}`);return fe;function errorMsg(G,ne){return`Cannot access ${G} ${ne} levels up, current level is ${Z}`}}Z.getData=getData},2027:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.extendErrors=Z.resetErrorsCount=Z.reportExtraError=Z.reportError=Z.keyword$DataError=Z.keywordError=void 0;const ie=ne(233),se=ne(286),ce=ne(981);function addError(G,Z){const ne=G.const("err",Z);G.if(ie._`${ce.default.vErrors} === null`,()=>G.assign(ce.default.vErrors,ie._`[${ne}]`),ie._`${ce.default.vErrors}.push(${ne})`),G.code(ie._`${ce.default.errors}++`)}function returnErrors(G,Z){const{gen:ne,validateName:se,schemaEnv:ce}=G;ce.$async?ne.throw(ie._`new ${G.ValidationError}(${Z})`):(ne.assign(ie._`${se}.errors`,Z),ne.return(!1))}Z.keywordError={message:({keyword:G})=>ie.str`must pass "${G}" keyword validation`},Z.keyword$DataError={message:({keyword:G,schemaType:Z})=>Z?ie.str`"${G}" keyword must be ${Z} ($data)`:ie.str`"${G}" keyword is invalid ($data)`},Z.reportError=function reportError(G,ne=Z.keywordError,se,ce){const{it:fe}=G,{gen:me,compositeRule:ge,allErrors:Ce}=fe,Se=errorObjectCode(G,ne,se);(null!=ce?ce:ge||Ce)?addError(me,Se):returnErrors(fe,ie._`[${Se}]`)},Z.reportExtraError=function reportExtraError(G,ne=Z.keywordError,ie){const{it:se}=G,{gen:fe,compositeRule:me,allErrors:ge}=se;addError(fe,errorObjectCode(G,ne,ie)),me||ge||returnErrors(se,ce.default.vErrors)},Z.resetErrorsCount=function resetErrorsCount(G,Z){G.assign(ce.default.errors,Z),G.if(ie._`${ce.default.vErrors} !== null`,()=>G.if(Z,()=>G.assign(ie._`${ce.default.vErrors}.length`,Z),()=>G.assign(ce.default.vErrors,null)))},Z.extendErrors=function extendErrors({gen:G,keyword:Z,schemaValue:ne,data:se,errsCount:fe,it:me}){if(void 0===fe)throw new Error("ajv implementation error");const ge=G.name("err");G.forRange("i",fe,ce.default.errors,fe=>{G.const(ge,ie._`${ce.default.vErrors}[${fe}]`),G.if(ie._`${ge}.instancePath === undefined`,()=>G.assign(ie._`${ge}.instancePath`,(0,ie.strConcat)(ce.default.instancePath,me.errorPath))),G.assign(ie._`${ge}.schemaPath`,ie.str`${me.errSchemaPath}/${Z}`),me.opts.verbose&&(G.assign(ie._`${ge}.schema`,ne),G.assign(ie._`${ge}.data`,se))})};const fe={keyword:new ie.Name("keyword"),schemaPath:new ie.Name("schemaPath"),params:new ie.Name("params"),propertyName:new ie.Name("propertyName"),message:new ie.Name("message"),schema:new ie.Name("schema"),parentSchema:new ie.Name("parentSchema")};function errorObjectCode(G,Z,ne){const{createErrors:se}=G.it;return!1===se?ie._`{}`:function errorObject(G,Z,ne={}){const{gen:se,it:me}=G,ge=[errorInstancePath(me,ne),errorSchemaPath(G,ne)];return function extraErrorProps(G,{params:Z,message:ne},se){const{keyword:me,data:ge,schemaValue:Ce,it:Se}=G,{opts:Me,propertyName:ke,topSchemaRef:xe,schemaPath:De}=Se;se.push([fe.keyword,me],[fe.params,"function"==typeof Z?Z(G):Z||ie._`{}`]),Me.messages&&se.push([fe.message,"function"==typeof ne?ne(G):ne]);Me.verbose&&se.push([fe.schema,Ce],[fe.parentSchema,ie._`${xe}${De}`],[ce.default.data,ge]);ke&&se.push([fe.propertyName,ke])}(G,Z,ge),se.object(...ge)}(G,Z,ne)}function errorInstancePath({errorPath:G},{instancePath:Z}){const ne=Z?ie.str`${G}${(0,se.getErrorPath)(Z,se.Type.Str)}`:G;return[ce.default.instancePath,(0,ie.strConcat)(ce.default.instancePath,ne)]}function errorSchemaPath({keyword:G,it:{errSchemaPath:Z}},{schemaPath:ne,parentSchema:ce}){let me=ce?Z:ie.str`${Z}/${G}`;return ne&&(me=ie.str`${me}${(0,se.getErrorPath)(ne,se.Type.Str)}`),[fe.schemaPath,me]}},2028:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.regexpCode=Z.getProperty=Z.safeStringify=Z.stringify=Z.strConcat=Z.addCodeArg=Z.str=Z._=Z.nil=Z._Code=Z.Name=Z.IDENTIFIER=Z._CodeOrName=void 0;class _CodeOrName{}Z._CodeOrName=_CodeOrName,Z.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(G){if(super(),!Z.IDENTIFIER.test(G))throw new Error("CodeGen: name must be a valid identifier");this.str=G}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}Z.Name=Name;class _Code extends _CodeOrName{constructor(G){super(),this._items="string"==typeof G?[G]:G}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const G=this._items[0];return""===G||'""'===G}get str(){var G;return null!==(G=this._str)&&void 0!==G?G:this._str=this._items.reduce((G,Z)=>`${G}${Z}`,"")}get names(){var G;return null!==(G=this._names)&&void 0!==G?G:this._names=this._items.reduce((G,Z)=>(Z instanceof Name&&(G[Z.str]=(G[Z.str]||0)+1),G),{})}}function _(G,...Z){const ne=[G[0]];let ie=0;for(;ieCe.has(G)||"array"===Z&&"array"===G):[]}(Z,ce.coerceTypes),Se=Z.length>0&&!(0===me.length&&1===Z.length&&(0,se.schemaHasRulesForType)(G,Z[0]));if(Se){const se=checkDataTypes(Z,ie,ce.strictNumbers,ge.Wrong);ne.if(se,()=>{me.length?function coerceData(G,Z,ne){const{gen:ie,data:se,opts:ce}=G,me=ie.let("dataType",fe._`typeof ${se}`),ge=ie.let("coerced",fe._`undefined`);"array"===ce.coerceTypes&&ie.if(fe._`${me} == 'object' && Array.isArray(${se}) && ${se}.length == 1`,()=>ie.assign(se,fe._`${se}[0]`).assign(me,fe._`typeof ${se}`).if(checkDataTypes(Z,se,ce.strictNumbers),()=>ie.assign(ge,se)));ie.if(fe._`${ge} !== undefined`);for(const G of ne)(Ce.has(G)||"array"===G&&"array"===ce.coerceTypes)&&coerceSpecificType(G);function coerceSpecificType(G){switch(G){case"string":return void ie.elseIf(fe._`${me} == "number" || ${me} == "boolean"`).assign(ge,fe._`"" + ${se}`).elseIf(fe._`${se} === null`).assign(ge,fe._`""`);case"number":return void ie.elseIf(fe._`${me} == "boolean" || ${se} === null || (${me} == "string" && ${se} && ${se} == +${se})`).assign(ge,fe._`+${se}`);case"integer":return void ie.elseIf(fe._`${me} === "boolean" || ${se} === null || (${me} === "string" && ${se} && ${se} == +${se} && !(${se} % 1))`).assign(ge,fe._`+${se}`);case"boolean":return void ie.elseIf(fe._`${se} === "false" || ${se} === 0 || ${se} === null`).assign(ge,!1).elseIf(fe._`${se} === "true" || ${se} === 1`).assign(ge,!0);case"null":return ie.elseIf(fe._`${se} === "" || ${se} === 0 || ${se} === false`),void ie.assign(ge,null);case"array":ie.elseIf(fe._`${me} === "string" || ${me} === "number" || ${me} === "boolean" || ${se} === null`).assign(ge,fe._`[${se}]`)}}ie.else(),reportTypeError(G),ie.endIf(),ie.if(fe._`${ge} !== undefined`,()=>{ie.assign(se,ge),function assignParentData({gen:G,parentData:Z,parentDataProperty:ne},ie){G.if(fe._`${Z} !== undefined`,()=>G.assign(fe._`${Z}[${ne}]`,ie))}(G,ge)})}(G,Z,me):reportTypeError(G)})}return Se};const Ce=new Set(["string","number","integer","boolean","null"]);function checkDataType(G,Z,ne,ie=ge.Correct){const se=ie===ge.Correct?fe.operators.EQ:fe.operators.NEQ;let ce;switch(G){case"null":return fe._`${Z} ${se} null`;case"array":ce=fe._`Array.isArray(${Z})`;break;case"object":ce=fe._`${Z} && typeof ${Z} == "object" && !Array.isArray(${Z})`;break;case"integer":ce=numCond(fe._`!(${Z} % 1) && !isNaN(${Z})`);break;case"number":ce=numCond();break;default:return fe._`typeof ${Z} ${se} ${G}`}return ie===ge.Correct?ce:(0,fe.not)(ce);function numCond(G=fe.nil){return(0,fe.and)(fe._`typeof ${Z} == "number"`,G,ne?fe._`isFinite(${Z})`:fe.nil)}}function checkDataTypes(G,Z,ne,ie){if(1===G.length)return checkDataType(G[0],Z,ne,ie);let se;const ce=(0,me.toHash)(G);if(ce.array&&ce.object){const G=fe._`typeof ${Z} != "object"`;se=ce.null?G:fe._`!${Z} || ${G}`,delete ce.null,delete ce.array,delete ce.object}else se=fe.nil;ce.number&&delete ce.integer;for(const G in ce)se=(0,fe.and)(se,checkDataType(G,Z,ne,ie));return se}Z.checkDataType=checkDataType,Z.checkDataTypes=checkDataTypes;const Se={message:({schema:G})=>"must be "+G,params:({schema:G,schemaValue:Z})=>"string"==typeof G?fe._`{type: ${G}}`:fe._`{type: ${Z}}`};function reportTypeError(G){const Z=function getTypeErrorContext(G){const{gen:Z,data:ne,schema:ie}=G,se=(0,me.schemaRefOrVal)(G,ie,"type");return{gen:Z,keyword:"type",data:ne,schema:ie.type,schemaCode:se,schemaValue:se,parentSchema:ie,params:{},it:G}}(G);(0,ce.reportError)(Z,Se)}Z.reportTypeError=reportTypeError},2030:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSchemaRefs=Z.resolveUrl=Z.normalizeId=Z._getFullPath=Z.getFullPath=Z.inlineRef=void 0;const ie=ne(286),se=ne(1249),ce=ne(7654),fe=ne(1250),me=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);Z.inlineRef=function inlineRef(G,Z=!0){return"boolean"==typeof G||(!0===Z?!hasRef(G):!!Z&&function countKeys(G){let Z=0;for(const ne in G){if("$ref"===ne)return 1/0;if(Z++,!me.has(ne)&&("object"==typeof G[ne]&&(0,ie.eachItem)(G[ne],G=>Z+=countKeys(G)),Z===1/0))return 1/0}return Z}(G)<=Z)};const ge=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(G){for(const Z in G){if(ge.has(Z))return!0;const ne=G[Z];if(Array.isArray(ne)&&ne.some(hasRef))return!0;if("object"==typeof ne&&hasRef(ne))return!0}return!1}function getFullPath(G="",Z){!1!==Z&&(G=normalizeId(G));return _getFullPath(fe.parse(G))}function _getFullPath(G){return fe.serialize(G).split("#")[0]+"#"}Z.getFullPath=getFullPath,Z._getFullPath=_getFullPath;const Ce=/#\/?$/;function normalizeId(G){return G?G.replace(Ce,""):""}Z.normalizeId=normalizeId,Z.resolveUrl=function resolveUrl(G,Z){return Z=normalizeId(Z),fe.resolve(G,Z)};const Se=/^[a-z_][-a-z0-9._]*$/i;Z.getSchemaRefs=function getSchemaRefs(G,Z){if("boolean"==typeof G)return{};const{schemaId:ne}=this.opts,ie=normalizeId(G[ne]||Z),me={"":ie},ge=getFullPath(ie,!1),Ce={},Me=new Set;return ce(G,{allKeys:!0},(G,Z,ie,se)=>{if(void 0===se)return;const ce=ge+Z;let ke=me[se];function addRef(Z){if(Z=normalizeId(ke?fe.resolve(ke,Z):Z),Me.has(Z))throw ambiguos(Z);Me.add(Z);let ne=this.refs[Z];return"string"==typeof ne&&(ne=this.refs[ne]),"object"==typeof ne?checkAmbiguosRef(G,ne.schema,Z):Z!==normalizeId(ce)&&("#"===Z[0]?(checkAmbiguosRef(G,Ce[Z],Z),Ce[Z]=G):this.refs[Z]=ce),Z}function addAnchor(G){if("string"==typeof G){if(!Se.test(G))throw new Error(`invalid anchor "${G}"`);addRef.call(this,"#"+G)}}"string"==typeof G[ne]&&(ke=addRef.call(this,G[ne])),addAnchor.call(this,G.$anchor),addAnchor.call(this,G.$dynamicAnchor),me[Z]=ke}),Ce;function checkAmbiguosRef(G,Z,ne){if(void 0!==Z&&!se(G,Z))throw ambiguos(ne)}function ambiguos(G){return new Error(`reference "${G}" resolves to more than one schema`)}}},2031:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isInterpolationResult=isInterpolationResult,Z.default=Z.getThemeVariant=void 0;var ie=ne(1162);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var se={enterprise:"family",prisma:"family",light:"colorScheme",dark:"colorScheme",compact:"density",comfortable:"density"};function isInterpolationResult(G){return"object"!==_typeof(G)||Array.isArray(G)||null===G}var ce=function getThemeVariant(G,Z){var ne=Object.keys(G).shift();if(!ne)throw new Error("A pick tree cannot be empty.");var ie=se[ne];if(!ie)throw new Error("Invalid pick tree key: ".concat(ne));var ce=G[Z[ie]];return isInterpolationResult(ce)?ce:getThemeVariant(ce,Z)};Z.getThemeVariant=ce;var fe=function pick(G){return function(Z){var ne=Z.theme,se=(0,ie.addThemeDefaults)(null==ne?void 0:ne.splunkThemeV1);return ce(G,se)}};Z.default=fe},2032:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=240)}({1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(4171)},240:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"legacyRefMode",(function(){return ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(15),Se=ne.n(Ce),Me=(ne(90),ne(71)),ke=ne.n(Me),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(8),$e=ne(7),Je=ne(21),it=ne.n(Je),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;ne1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(2034),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},2034:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},2035:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(4172)}})},2036:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},2037:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isInterpolationResult=isInterpolationResult,Z.default=Z.getThemeVariant=void 0;var ie=ne(1163);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var se={enterprise:"family",prisma:"family",light:"colorScheme",dark:"colorScheme",compact:"density",comfortable:"density"};function isInterpolationResult(G){return"object"!==_typeof(G)||Array.isArray(G)||null===G}var ce=function getThemeVariant(G,Z){var ne=Object.keys(G).shift();if(!ne)throw new Error("A pick tree cannot be empty.");var ie=se[ne];if(!ie)throw new Error("Invalid pick tree key: ".concat(ne));var ce=G[Z[ie]];return isInterpolationResult(ce)?ce:getThemeVariant(ce,Z)};Z.getThemeVariant=ce;var fe=function pick(G){return function(Z){var ne=Z.theme,se=(0,ie.addThemeDefaults)(null==ne?void 0:ne.splunkThemeV1);return ce(G,se)}};Z.default=fe},2038:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},2039:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=8)}([function(G,Z){G.exports=ne(0)},,,,,function(G,Z){G.exports=ne(2)},function(G,Z){G.exports=ne(3)},,function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},204:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={getSettingsFromThemedProps:!0,getTheme:!0,mixins:!0,pick:!0,pickVariant:!0,SplunkThemeProvider:!0,useSplunkTheme:!0,withSplunkTheme:!0,variables:!0};Object.defineProperty(Z,"getSettingsFromThemedProps",{enumerable:!0,get:function get(){return se.default}}),Object.defineProperty(Z,"getTheme",{enumerable:!0,get:function get(){return ce.default}}),Object.defineProperty(Z,"mixins",{enumerable:!0,get:function get(){return fe.default}}),Object.defineProperty(Z,"pick",{enumerable:!0,get:function get(){return me.default}}),Object.defineProperty(Z,"pickVariant",{enumerable:!0,get:function get(){return ge.default}}),Object.defineProperty(Z,"SplunkThemeProvider",{enumerable:!0,get:function get(){return Ce.default}}),Object.defineProperty(Z,"useSplunkTheme",{enumerable:!0,get:function get(){return Se.default}}),Object.defineProperty(Z,"withSplunkTheme",{enumerable:!0,get:function get(){return Me.default}}),Object.defineProperty(Z,"variables",{enumerable:!0,get:function get(){return ke.default}});var se=_interopRequireDefault(ne(4107)),ce=_interopRequireDefault(ne(2017)),fe=_interopRequireDefault(ne(4113)),me=_interopRequireDefault(ne(1307)),ge=_interopRequireDefault(ne(7419)),Ce=_interopRequireDefault(ne(7420)),Se=_interopRequireDefault(ne(1159)),Me=_interopRequireDefault(ne(7421)),ke=_interopRequireDefault(ne(2018)),xe=ne(7422);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Object.keys(xe).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||Object.defineProperty(Z,G,{enumerable:!0,get:function get(){return xe[G]}}))}))},2040:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=21)}({0:function(G,Z){G.exports=ne(0)},21:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IconContext",(function(){return Se})),ne.d(Z,"IconProvider",(function(){return Me}));var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(8);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},2041:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=203)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(767)},2:function(G,Z){G.exports=ne(0)},203:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(22),ge=ne(3),Ce=ne.n(ge),Se=ne(96),Me=ne.n(Se),ke=ne(65),xe=ne.n(ke),De=ne(0),Ie=ne(4),Re=Object(Ie._)("Open externally"),ze=Object(ge.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),$e=Ce()(xe.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-13bdx45-0"})([""," margin:0 0 0 3px;"],ze),Je=Ce()(Me.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-13bdx45-1"})([""," margin:0 0 0 4px;"],ze);var it=function External(){return Object(De.useSplunkTheme)().isEnterprise?se.a.createElement($e,{screenReaderText:Re}):se.a.createElement(Je,{"aria-label":Re},se.a.createElement("title",null,Re))},ot=ne(12),at=ne.n(ot),st=Ce()(at.a).withConfig({displayName:"LinkStyles__StyledClickable",componentId:"sc-1hhltcf-0"})(["",";color:",";text-decoration:none;font-size:inherit;font-weight:inherit;line-height:inherit;border-radius:",";&:not([disabled],[aria-disabled='true']){cursor:pointer;",";&:focus{box-shadow:",";outline:0;&:active{box-shadow:none;}}}&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),Object(De.pick)({enterprise:De.variables.linkColor,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:0,prisma:"1px"}),Object(De.pick)({enterprise:Object(ge.css)(["&:hover{text-decoration:underline;}"]),prisma:Object(ge.css)(["&:hover:not(:focus),&:active{text-decoration:underline;text-underline-position:under;}"])}),De.variables.focusShadow,De.variables.contentColorDisabled);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Cross(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="cross-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2046:function(G,Z,ne){"use strict";function _toConsumableArray(G){return function _arrayWithoutHoles(G){if(Array.isArray(G))return _arrayLikeToArray(G)}(G)||function _iterableToArray(G){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(G))return Array.from(G)}(G)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);nethis.emitter.fire(G);this.emitter=new ie.b({onFirstListenerAdd:()=>G.addEventListener(Z,fn,ne),onLastListenerRemove:()=>G.removeEventListener(Z,fn,ne)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function stopEvent(G){return G.preventDefault(),G.stopPropagation(),G}},209:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie})),ne.d(Z,"b",(function(){return Gesture}));var ie,se=ne(69),ce=ne(10),fe=ne(6),me=ne(287),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe};!function(G){G.Tap="-monaco-gesturetap",G.Change="-monaco-gesturechange",G.Start="-monaco-gesturestart",G.End="-monaco-gesturesend",G.Contextmenu="-monaco-gesturecontextmenu"}(ie||(ie={}));class Gesture extends ce.a{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(fe.i(document,"touchstart",G=>this.onTouchStart(G),{passive:!1})),this._register(fe.i(document,"touchend",G=>this.onTouchEnd(G))),this._register(fe.i(document,"touchmove",G=>this.onTouchMove(G),{passive:!1}))}static addTarget(G){return Gesture.isTouchDevice()?(Gesture.INSTANCE||(Gesture.INSTANCE=new Gesture),Gesture.INSTANCE.targets.push(G),{dispose:()=>{Gesture.INSTANCE.targets=Gesture.INSTANCE.targets.filter(Z=>Z!==G)}}):ce.a.None}static ignoreTarget(G){return Gesture.isTouchDevice()?(Gesture.INSTANCE||(Gesture.INSTANCE=new Gesture),Gesture.INSTANCE.ignoreTargets.push(G),{dispose:()=>{Gesture.INSTANCE.ignoreTargets=Gesture.INSTANCE.ignoreTargets.filter(Z=>Z!==G)}}):ce.a.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(G){let Z=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let ne=0,se=G.targetTouches.length;ne=Gesture.HOLD_DELAY&&Math.abs(me.initialPageX-se.t(me.rollingPageX))<30&&Math.abs(me.initialPageY-se.t(me.rollingPageY))<30){let G=this.newGestureEvent(ie.Contextmenu,me.initialTarget);G.pageX=se.t(me.rollingPageX),G.pageY=se.t(me.rollingPageY),this.dispatchEvent(G)}else if(1===ne){let G=se.t(me.rollingPageX),ne=se.t(me.rollingPageY),ie=se.t(me.rollingTimestamps)-me.rollingTimestamps[0],ce=G-me.rollingPageX[0],fe=ne-me.rollingPageY[0];const ge=this.targets.filter(G=>me.initialTarget instanceof Node&&G.contains(me.initialTarget));this.inertia(ge,Z,Math.abs(ce)/ie,ce>0?1:-1,G,Math.abs(fe)/ie,fe>0?1:-1,ne)}this.dispatchEvent(this.newGestureEvent(ie.End,me.initialTarget)),delete this.activeTouches[fe.identifier]}this.dispatched&&(G.preventDefault(),G.stopPropagation(),this.dispatched=!1)}newGestureEvent(G,Z){let ne=document.createEvent("CustomEvent");return ne.initEvent(G,!1,!0),ne.initialTarget=Z,ne.tapCount=0,ne}dispatchEvent(G){if(G.type===ie.Tap){const Z=(new Date).getTime();let ne=0;ne=Z-this._lastSetTapCountTime>Gesture.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=Z,G.tapCount=ne}else G.type!==ie.Change&&G.type!==ie.Contextmenu||(this._lastSetTapCountTime=0);for(let Z=0;Z{G.initialTarget instanceof Node&&Z.contains(G.initialTarget)&&(Z.dispatchEvent(G),this.dispatched=!0)})}inertia(G,Z,ne,se,ce,me,ge,Ce){this.handle=fe.V(()=>{let fe=Date.now(),Se=fe-Z,Me=0,ke=0,xe=!0;ne+=Gesture.SCROLL_FRICTION*Se,me+=Gesture.SCROLL_FRICTION*Se,ne>0&&(xe=!1,Me=se*ne*Se),me>0&&(xe=!1,ke=ge*me*Se);let De=this.newGestureEvent(ie.Change);De.translationX=Me,De.translationY=ke,G.forEach(G=>G.dispatchEvent(De)),xe||this.inertia(G,fe,ne,se,ce+Me,me,ge,Ce+ke)})}onTouchMove(G){let Z=Date.now();for(let ne=0,ce=G.changedTouches.length;ne3&&(fe.rollingPageX.shift(),fe.rollingPageY.shift(),fe.rollingTimestamps.shift()),fe.rollingPageX.push(ce.pageX),fe.rollingPageY.push(ce.pageY),fe.rollingTimestamps.push(Z)}this.dispatched&&(G.preventDefault(),G.stopPropagation(),this.dispatched=!1)}}Gesture.SCROLL_FRICTION=-.005,Gesture.HOLD_DELAY=700,Gesture.CLEAR_TAP_COUNT_TIME=400,__decorate([me.a],Gesture,"isTouchDevice",null)},210:function(G,Z,ne){"use strict";ne.d(Z,"i",(function(){return se})),ne.d(Z,"e",(function(){return ce})),ne.d(Z,"d",(function(){return fe})),ne.d(Z,"g",(function(){return me})),ne.d(Z,"f",(function(){return ge})),ne.d(Z,"b",(function(){return Ce})),ne.d(Z,"a",(function(){return Se})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"h",(function(){return ke}));var ie=ne(707);class ErrorInvalidArgType extends Error{constructor(G,Z,ne){let ie;"string"==typeof Z&&0===Z.indexOf("not ")?(ie="must not be",Z=Z.replace(/^not /,"")):ie="must be";const se=-1!==G.indexOf(".")?"property":"argument";let ce=`The "${G}" ${se} ${ie} of type ${Z}`;ce+=". Received type "+typeof ne,super(ce),this.code="ERR_INVALID_ARG_TYPE"}}function validateString(G,Z){if("string"!=typeof G)throw new ErrorInvalidArgType(Z,"string",G)}function isPathSeparator(G){return 47===G||92===G}function isPosixPathSeparator(G){return 47===G}function isWindowsDeviceRoot(G){return G>=65&&G<=90||G>=97&&G<=122}function normalizeString(G,Z,ne,ie){let se="",ce=0,fe=-1,me=0,ge=0;for(let Ce=0;Ce<=G.length;++Ce){if(Ce2){const G=se.lastIndexOf(ne);-1===G?(se="",ce=0):(se=se.slice(0,G),ce=se.length-1-se.lastIndexOf(ne)),fe=Ce,me=0;continue}if(0!==se.length){se="",ce=0,fe=Ce,me=0;continue}}Z&&(se+=se.length>0?ne+"..":"..",ce=2)}else se.length>0?se+=`${ne}${G.slice(fe+1,Ce)}`:se=G.slice(fe+1,Ce),ce=Ce-fe-1;fe=Ce,me=0}else 46===ge&&-1!==me?++me:me=-1}return se}function _format(G,Z){if(null===Z||"object"!=typeof Z)throw new ErrorInvalidArgType("pathObject","Object",Z);const ne=Z.dir||Z.root,ie=Z.base||`${Z.name||""}${Z.ext||""}`;return ne?ne===Z.root?`${ne}${ie}`:`${ne}${G}${ie}`:ie}const se={resolve(...G){let Z="",ne="",se=!1;for(let ce=G.length-1;ce>=-1;ce--){let fe;if(ce>=0){if(fe=G[ce],validateString(fe,"path"),0===fe.length)continue}else 0===Z.length?fe=ie.a():(fe=ie.b["="+Z]||ie.a(),(void 0===fe||fe.slice(0,2).toLowerCase()!==Z.toLowerCase()&&92===fe.charCodeAt(2))&&(fe=Z+"\\"));const me=fe.length;let ge=0,Ce="",Se=!1;const Me=fe.charCodeAt(0);if(1===me)isPathSeparator(Me)&&(ge=1,Se=!0);else if(isPathSeparator(Me))if(Se=!0,isPathSeparator(fe.charCodeAt(1))){let G=2,Z=G;for(;G2&&isPathSeparator(fe.charCodeAt(2))&&(Se=!0,ge=3));if(Ce.length>0)if(Z.length>0){if(Ce.toLowerCase()!==Z.toLowerCase())continue}else Z=Ce;if(se){if(Z.length>0)break}else if(ne=`${fe.slice(ge)}\\${ne}`,se=Se,Se&&Z.length>0)break}return ne=normalizeString(ne,!se,"\\",isPathSeparator),se?`${Z}\\${ne}`:`${Z}${ne}`||"."},normalize(G){validateString(G,"path");const Z=G.length;if(0===Z)return".";let ne,ie=0,se=!1;const ce=G.charCodeAt(0);if(1===Z)return isPosixPathSeparator(ce)?"\\":G;if(isPathSeparator(ce))if(se=!0,isPathSeparator(G.charCodeAt(1))){let se=2,ce=se;for(;se2&&isPathSeparator(G.charCodeAt(2))&&(se=!0,ie=3));let fe=ie0&&isPathSeparator(G.charCodeAt(Z-1))&&(fe+="\\"),void 0===ne?se?"\\"+fe:fe:se?`${ne}\\${fe}`:`${ne}${fe}`},isAbsolute(G){validateString(G,"path");const Z=G.length;if(0===Z)return!1;const ne=G.charCodeAt(0);return isPathSeparator(ne)||Z>2&&isWindowsDeviceRoot(ne)&&58===G.charCodeAt(1)&&isPathSeparator(G.charCodeAt(2))},join(...G){if(0===G.length)return".";let Z,ne;for(let ie=0;ie0&&(void 0===Z?Z=ne=se:Z+="\\"+se)}if(void 0===Z)return".";let ie=!0,ce=0;if("string"==typeof ne&&isPathSeparator(ne.charCodeAt(0))){++ce;const G=ne.length;G>1&&isPathSeparator(ne.charCodeAt(1))&&(++ce,G>2&&(isPathSeparator(ne.charCodeAt(2))?++ce:ie=!1))}if(ie){for(;ce=2&&(Z="\\"+Z.slice(ce))}return se.normalize(Z)},relative(G,Z){if(validateString(G,"from"),validateString(Z,"to"),G===Z)return"";const ne=se.resolve(G),ie=se.resolve(Z);if(ne===ie)return"";if((G=ne.toLowerCase())===(Z=ie.toLowerCase()))return"";let ce=0;for(;cece&&92===G.charCodeAt(fe-1);)fe--;const me=fe-ce;let ge=0;for(;gege&&92===Z.charCodeAt(Ce-1);)Ce--;const Se=Ce-ge,Me=meMe){if(92===Z.charCodeAt(ge+xe))return ie.slice(ge+xe+1);if(2===xe)return ie.slice(ge+xe)}me>Me&&(92===G.charCodeAt(ce+xe)?ke=xe:2===xe&&(ke=3)),-1===ke&&(ke=0)}let De="";for(xe=ce+ke+1;xe<=fe;++xe)xe!==fe&&92!==G.charCodeAt(xe)||(De+=0===De.length?"..":"\\..");return ge+=ke,De.length>0?`${De}${ie.slice(ge,Ce)}`:(92===ie.charCodeAt(ge)&&++ge,ie.slice(ge,Ce))},toNamespacedPath(G){if("string"!=typeof G)return G;if(0===G.length)return"";const Z=se.resolve(G);if(Z.length<=2)return G;if(92===Z.charCodeAt(0)){if(92===Z.charCodeAt(1)){const G=Z.charCodeAt(2);if(63!==G&&46!==G)return"\\\\?\\UNC\\"+Z.slice(2)}}else if(isWindowsDeviceRoot(Z.charCodeAt(0))&&58===Z.charCodeAt(1)&&92===Z.charCodeAt(2))return"\\\\?\\"+Z;return G},dirname(G){validateString(G,"path");const Z=G.length;if(0===Z)return".";let ne=-1,ie=0;const se=G.charCodeAt(0);if(1===Z)return isPathSeparator(se)?G:".";if(isPathSeparator(se)){if(ne=ie=1,isPathSeparator(G.charCodeAt(1))){let se=2,ce=se;for(;se2&&isPathSeparator(G.charCodeAt(2))?3:2,ie=ne);let ce=-1,fe=!0;for(let ne=Z-1;ne>=ie;--ne)if(isPathSeparator(G.charCodeAt(ne))){if(!fe){ce=ne;break}}else fe=!1;if(-1===ce){if(-1===ne)return".";ce=ne}return G.slice(0,ce)},basename(G,Z){void 0!==Z&&validateString(Z,"ext"),validateString(G,"path");let ne,ie=0,se=-1,ce=!0;if(G.length>=2&&isWindowsDeviceRoot(G.charCodeAt(0))&&58===G.charCodeAt(1)&&(ie=2),void 0!==Z&&Z.length>0&&Z.length<=G.length){if(Z===G)return"";let fe=Z.length-1,me=-1;for(ne=G.length-1;ne>=ie;--ne){const ge=G.charCodeAt(ne);if(isPathSeparator(ge)){if(!ce){ie=ne+1;break}}else-1===me&&(ce=!1,me=ne+1),fe>=0&&(ge===Z.charCodeAt(fe)?-1==--fe&&(se=ne):(fe=-1,se=me))}return ie===se?se=me:-1===se&&(se=G.length),G.slice(ie,se)}for(ne=G.length-1;ne>=ie;--ne)if(isPathSeparator(G.charCodeAt(ne))){if(!ce){ie=ne+1;break}}else-1===se&&(ce=!1,se=ne+1);return-1===se?"":G.slice(ie,se)},extname(G){validateString(G,"path");let Z=0,ne=-1,ie=0,se=-1,ce=!0,fe=0;G.length>=2&&58===G.charCodeAt(1)&&isWindowsDeviceRoot(G.charCodeAt(0))&&(Z=ie=2);for(let me=G.length-1;me>=Z;--me){const Z=G.charCodeAt(me);if(isPathSeparator(Z)){if(!ce){ie=me+1;break}}else-1===se&&(ce=!1,se=me+1),46===Z?-1===ne?ne=me:1!==fe&&(fe=1):-1!==ne&&(fe=-1)}return-1===ne||-1===se||0===fe||1===fe&&ne===se-1&&ne===ie+1?"":G.slice(ne,se)},format:_format.bind(null,"\\"),parse(G){validateString(G,"path");const Z={root:"",dir:"",base:"",ext:"",name:""};if(0===G.length)return Z;const ne=G.length;let ie=0,se=G.charCodeAt(0);if(1===ne)return isPathSeparator(se)?(Z.root=Z.dir=G,Z):(Z.base=Z.name=G,Z);if(isPathSeparator(se)){if(ie=1,isPathSeparator(G.charCodeAt(1))){let Z=2,se=Z;for(;Z0&&(Z.root=G.slice(0,ie));let ce=-1,fe=ie,me=-1,ge=!0,Ce=G.length-1,Se=0;for(;Ce>=ie;--Ce)if(se=G.charCodeAt(Ce),isPathSeparator(se)){if(!ge){fe=Ce+1;break}}else-1===me&&(ge=!1,me=Ce+1),46===se?-1===ce?ce=Ce:1!==Se&&(Se=1):-1!==ce&&(Se=-1);return-1!==me&&(-1===ce||0===Se||1===Se&&ce===me-1&&ce===fe+1?Z.base=Z.name=G.slice(fe,me):(Z.name=G.slice(fe,ce),Z.base=G.slice(fe,me),Z.ext=G.slice(ce,me))),Z.dir=fe>0&&fe!==ie?G.slice(0,fe-1):Z.root,Z},sep:"\\",delimiter:";",win32:null,posix:null},ce={resolve(...G){let Z="",ne=!1;for(let se=G.length-1;se>=-1&&!ne;se--){const ce=se>=0?G[se]:ie.a();validateString(ce,"path"),0!==ce.length&&(Z=`${ce}/${Z}`,ne=47===ce.charCodeAt(0))}return Z=normalizeString(Z,!ne,"/",isPosixPathSeparator),ne?"/"+Z:Z.length>0?Z:"."},normalize(G){if(validateString(G,"path"),0===G.length)return".";const Z=47===G.charCodeAt(0),ne=47===G.charCodeAt(G.length-1);return 0===(G=normalizeString(G,!Z,"/",isPosixPathSeparator)).length?Z?"/":ne?"./":".":(ne&&(G+="/"),Z?"/"+G:G)},isAbsolute:G=>(validateString(G,"path"),G.length>0&&47===G.charCodeAt(0)),join(...G){if(0===G.length)return".";let Z;for(let ne=0;ne0&&(void 0===Z?Z=ie:Z+="/"+ie)}return void 0===Z?".":ce.normalize(Z)},relative(G,Z){if(validateString(G,"from"),validateString(Z,"to"),G===Z)return"";if((G=ce.resolve(G))===(Z=ce.resolve(Z)))return"";const ne=G.length,ie=ne-1,se=Z.length-1,fe=iefe){if(47===Z.charCodeAt(1+ge))return Z.slice(1+ge+1);if(0===ge)return Z.slice(1+ge)}else ie>fe&&(47===G.charCodeAt(1+ge)?me=ge:0===ge&&(me=0));let Ce="";for(ge=1+me+1;ge<=ne;++ge)ge!==ne&&47!==G.charCodeAt(ge)||(Ce+=0===Ce.length?"..":"/..");return`${Ce}${Z.slice(1+me)}`},toNamespacedPath:G=>G,dirname(G){if(validateString(G,"path"),0===G.length)return".";const Z=47===G.charCodeAt(0);let ne=-1,ie=!0;for(let Z=G.length-1;Z>=1;--Z)if(47===G.charCodeAt(Z)){if(!ie){ne=Z;break}}else ie=!1;return-1===ne?Z?"/":".":Z&&1===ne?"//":G.slice(0,ne)},basename(G,Z){void 0!==Z&&validateString(Z,"ext"),validateString(G,"path");let ne,ie=0,se=-1,ce=!0;if(void 0!==Z&&Z.length>0&&Z.length<=G.length){if(Z===G)return"";let fe=Z.length-1,me=-1;for(ne=G.length-1;ne>=0;--ne){const ge=G.charCodeAt(ne);if(47===ge){if(!ce){ie=ne+1;break}}else-1===me&&(ce=!1,me=ne+1),fe>=0&&(ge===Z.charCodeAt(fe)?-1==--fe&&(se=ne):(fe=-1,se=me))}return ie===se?se=me:-1===se&&(se=G.length),G.slice(ie,se)}for(ne=G.length-1;ne>=0;--ne)if(47===G.charCodeAt(ne)){if(!ce){ie=ne+1;break}}else-1===se&&(ce=!1,se=ne+1);return-1===se?"":G.slice(ie,se)},extname(G){validateString(G,"path");let Z=-1,ne=0,ie=-1,se=!0,ce=0;for(let fe=G.length-1;fe>=0;--fe){const me=G.charCodeAt(fe);if(47!==me)-1===ie&&(se=!1,ie=fe+1),46===me?-1===Z?Z=fe:1!==ce&&(ce=1):-1!==Z&&(ce=-1);else if(!se){ne=fe+1;break}}return-1===Z||-1===ie||0===ce||1===ce&&Z===ie-1&&Z===ne+1?"":G.slice(Z,ie)},format:_format.bind(null,"/"),parse(G){validateString(G,"path");const Z={root:"",dir:"",base:"",ext:"",name:""};if(0===G.length)return Z;const ne=47===G.charCodeAt(0);let ie;ne?(Z.root="/",ie=1):ie=0;let se=-1,ce=0,fe=-1,me=!0,ge=G.length-1,Ce=0;for(;ge>=ie;--ge){const Z=G.charCodeAt(ge);if(47!==Z)-1===fe&&(me=!1,fe=ge+1),46===Z?-1===se?se=ge:1!==Ce&&(Ce=1):-1!==se&&(Ce=-1);else if(!me){ce=ge+1;break}}if(-1!==fe){const ie=0===ce&&ne?1:ce;-1===se||0===Ce||1===Ce&&se===fe-1&&se===ce+1?Z.base=Z.name=G.slice(ie,fe):(Z.name=G.slice(ie,se),Z.base=G.slice(ie,fe),Z.ext=G.slice(se,fe))}return ce>0?Z.dir=G.slice(0,ce-1):ne&&(Z.dir="/"),Z},sep:"/",delimiter:":",win32:null,posix:null};ce.win32=se.win32=se,ce.posix=se.posix=ce;const fe="win32"===ie.c?se.normalize:ce.normalize,me="win32"===ie.c?se.resolve:ce.resolve,ge="win32"===ie.c?se.relative:ce.relative,Ce="win32"===ie.c?se.dirname:ce.dirname,Se="win32"===ie.c?se.basename:ce.basename,Me="win32"===ie.c?se.extname:ce.extname,ke="win32"===ie.c?se.sep:ce.sep},2103:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"ToggleTabFocusModeAction",(function(){return ToggleTabFocusModeAction}));var ie=ne(4),se=ne(215),ce=ne(14),fe=ne(1001);class ToggleTabFocusModeAction extends ce.b{constructor(){super({id:ToggleTabFocusModeAction.ID,label:ie.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(G,Z){const ne=!fe.b.getTabFocusMode();fe.b.setTabFocusMode(ne),ne?Object(se.a)(ie.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(se.a)(ie.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}ToggleTabFocusModeAction.ID="editor.action.toggleTabFocusMode",Object(ce.j)(ToggleTabFocusModeAction)},2104:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return forEach})),ne.d(Z,"a",(function(){return SetMap}));const ie=Object.prototype.hasOwnProperty;function forEach(G,Z){for(let ne in G)if(ie.call(G,ne)){if(!1===Z({key:ne,value:G[ne]},(function(){delete G[ne]})))return}}class SetMap{constructor(){this.map=new Map}add(G,Z){let ne=this.map.get(G);ne||(ne=new Set,this.map.set(G,ne)),ne.add(Z)}delete(G,Z){const ne=this.map.get(G);ne&&(ne.delete(Z),0===ne.size&&this.map.delete(G))}forEach(G,Z){const ne=this.map.get(G);ne&&ne.forEach(Z)}}},2105:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return match}));var ie=ne(27),se=ne(1190),ce=ne(210),fe=ne(234),me=ne(57);const ge=/\//g;function starsToRegExp(G){switch(G){case 0:return"";case 1:return"[^/\\\\]*?";default:return"(?:[/\\\\]|[^/\\\\]+[/\\\\]|[/\\\\][^/\\\\]+)*?"}}function splitGlobAware(G,Z){if(!G)return[];const ne=[];let ie=!1,se=!1,ce="";for(const fe of G){switch(fe){case Z:if(!ie&&!se){ne.push(ce),ce="";continue}break;case"{":ie=!0;break;case"}":ie=!1;break;case"[":se=!0;break;case"]":se=!1}ce+=fe}return ce&&ne.push(ce),ne}const Ce=/^\*\*\/\*\.[\w\.-]+$/,Se=/^\*\*\/([\w\.-]+)\/?$/,Me=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,ke=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,xe=/^\*\*((\/[\w\.-]+)+)\/?$/,De=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Ie=new fe.a(1e4),FALSE=function(){return!1},NULL=function(){return null};function parsePattern(G,Z){if(!G)return NULL;let ne;ne="string"!=typeof G?G.pattern:G,ne=ne.trim();const se=`${ne}_${!!Z.trimForExclusions}`;let ce,fe=Ie.get(se);if(fe)return wrapRelativePattern(fe,G);if(Ce.test(ne)){const G=ne.substr(4);fe=function(Z,ie){return"string"==typeof Z&&Z.endsWith(G)?ne:null}}else fe=(ce=Se.exec(trimForExclusions(ne,Z)))?function trivia2(G,Z){const ne="/"+G,ie="\\"+G,parsedPattern=function(se,ce){return"string"!=typeof se?null:ce?ce===G?Z:null:se===G||se.endsWith(ne)||se.endsWith(ie)?Z:null},se=[G];return parsedPattern.basenames=se,parsedPattern.patterns=[Z],parsedPattern.allBasenames=se,parsedPattern}(ce[1],ne):(Z.trimForExclusions?ke:Me).test(ne)?function trivia3(G,Z){const ne=aggregateBasenameMatches(G.slice(1,-1).split(",").map(G=>parsePattern(G,Z)).filter(G=>G!==NULL),G),ie=ne.length;if(!ie)return NULL;if(1===ie)return ne[0];const parsedPattern=function(Z,ie){for(let se=0,ce=ne.length;se!!G.allBasenames);se&&(parsedPattern.allBasenames=se.allBasenames);const ce=ne.reduce((G,Z)=>Z.allPaths?G.concat(Z.allPaths):G,[]);ce.length&&(parsedPattern.allPaths=ce);return parsedPattern}(ne,Z):(ce=xe.exec(trimForExclusions(ne,Z)))?trivia4and5(ce[1].substr(1),ne,!0):(ce=De.exec(trimForExclusions(ne,Z)))?trivia4and5(ce[1],ne,!1):function toRegExp(G){try{const Z=new RegExp(`^${function parseRegExp(G){if(!G)return"";let Z="";const ne=splitGlobAware(G,"/");if(ne.every(G=>"**"===G))Z=".*";else{let G=!1;ne.forEach((se,ce)=>{if("**"===se)return void(G||(Z+=starsToRegExp(2),G=!0));let fe=!1,me="",ge=!1,Ce="";for(const G of se)if("}"!==G&&fe)me+=G;else if(!ge||"]"===G&&Ce)switch(G){case"{":fe=!0;continue;case"[":ge=!0;continue;case"}":const ne=`(?:${splitGlobAware(me,",").map(G=>parseRegExp(G)).join("|")})`;Z+=ne,fe=!1,me="";break;case"]":Z+="["+Ce+"]",ge=!1,Ce="";break;case"?":Z+="[^/\\\\]";continue;case"*":Z+=starsToRegExp(1);continue;default:Z+=ie.u(G)}else{let Z;Z="-"===G?G:"^"!==G&&"!"!==G||Ce?"/"===G?"":ie.u(G):"^",Ce+=Z}cefunction parseExpressionPattern(G,Z,ne){if(!1===Z)return NULL;const ie=parsePattern(G,ne);if(ie===NULL)return NULL;if("boolean"==typeof Z)return ie;if(Z){const ne=Z.when;if("string"==typeof ne){const result=(Z,se,ce,fe)=>{if(!fe||!ie(Z,se))return null;const ge=fe(ne.replace("$(basename)",ce));return Object(me.k)(ge)?ge.then(Z=>Z?G:null):ge?G:null};return result.requiresSiblings=!0,result}}return ie}(ne,G[ne],Z)).filter(G=>G!==NULL)),ie=ne.length;if(!ie)return NULL;if(!ne.some(G=>!!G.requiresSiblings)){if(1===ie)return ne[0];const resultExpression=function(G,Z){for(let ie=0,se=ne.length;ie!!G.allBasenames);G&&(resultExpression.allBasenames=G.allBasenames);const Z=ne.reduce((G,Z)=>Z.allPaths?G.concat(Z.allPaths):G,[]);return Z.length&&(resultExpression.allPaths=Z),resultExpression}const resultExpression=function(G,Z,ie){let se=void 0;for(let fe=0,me=ne.length;fe!!G.allBasenames);se&&(resultExpression.allBasenames=se.allBasenames);const fe=ne.reduce((G,Z)=>Z.allPaths?G.concat(Z.allPaths):G,[]);fe.length&&(resultExpression.allPaths=fe);return resultExpression}(G,Z)}(G)(Z,void 0,ne)}function aggregateBasenameMatches(G,Z){const ne=G.filter(G=>!!G.basenames);if(ne.length<2)return G;const ie=ne.reduce((G,Z)=>{const ne=Z.basenames;return ne?G.concat(ne):G},[]);let se;if(Z){se=[];for(let G=0,ne=ie.length;G{const ne=Z.patterns;return ne?G.concat(ne):G},[]);const aggregate=function(G,Z){if("string"!=typeof G)return null;if(!Z){let ne;for(ne=G.length;ne>0;ne--){const Z=G.charCodeAt(ne-1);if(47===Z||92===Z)break}Z=G.substr(ne)}const ne=ie.indexOf(Z);return-1!==ne?se[ne]:null};aggregate.basenames=ie,aggregate.patterns=se,aggregate.allBasenames=ie;const ce=G.filter(G=>!G.basenames);return ce.push(aggregate),ce}},2106:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ElementSizeObserver}));var ie=ne(10);class ElementSizeObserver extends ie.a{constructor(G,Z,ne){super(),this.referenceDomElement=G,this.changeCallback=ne,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,Z)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!=typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(G=>{G&&G[0]&&G[0].contentRect?this.observe({width:G[0].contentRect.width,height:G[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(G){this.measureReferenceDomElement(!0,G)}measureReferenceDomElement(G,Z){let ne=0,ie=0;Z?(ne=Z.width,ie=Z.height):this.referenceDomElement&&(ne=this.referenceDomElement.clientWidth,ie=this.referenceDomElement.clientHeight),ne=Math.max(5,ne),ie=Math.max(5,ie),this.width===ne&&this.height===ie||(this.width=ne,this.height=ie,G&&this.changeCallback())}}},2107:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return InternalEditorAction}));class InternalEditorAction{constructor(G,Z,ne,ie,se,ce){this.id=G,this.label=Z,this.alias=ne,this._precondition=ie,this._run=se,this._contextKeyService=ce}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},2108:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return PrefixSumIndexOfResult})),ne.d(Z,"a",(function(){return PrefixSumComputer}));var ie=ne(610);class PrefixSumIndexOfResult{constructor(G,Z){this._prefixSumIndexOfResultBrand=void 0,this.index=G,this.remainder=Z}}class PrefixSumComputer{constructor(G){this.values=G,this.prefixSum=new Uint32Array(G.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(G,Z){G=Object(ie.a)(G);const ne=this.values,se=this.prefixSum,ce=Z.length;return 0!==ce&&(this.values=new Uint32Array(ne.length+ce),this.values.set(ne.subarray(0,G),0),this.values.set(ne.subarray(G),G+ce),this.values.set(Z,G),G-1=0&&this.prefixSum.set(se.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(G,Z){return G=Object(ie.a)(G),Z=Object(ie.a)(Z),this.values[G]!==Z&&(this.values[G]=Z,G-1=ne.length)return!1;let ce=ne.length-G;return Z>=ce&&(Z=ce),0!==Z&&(this.values=new Uint32Array(ne.length-Z),this.values.set(ne.subarray(0,G),0),this.values.set(ne.subarray(G+Z),G),this.prefixSum=new Uint32Array(this.values.length),G-1=0&&this.prefixSum.set(se.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(G){return G<0?0:(G=Object(ie.a)(G),this._getPrefixSum(G))}_getPrefixSum(G){if(G<=this.prefixSumValidIndex[0])return this.prefixSum[G];let Z=this.prefixSumValidIndex[0]+1;0===Z&&(this.prefixSum[0]=this.values[0],Z++),G>=this.values.length&&(G=this.values.length-1);for(let ne=Z;ne<=G;ne++)this.prefixSum[ne]=this.prefixSum[ne-1]+this.values[ne];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],G),this.prefixSum[G]}getIndexOf(G){G=Math.floor(G),this.getTotalSum();let Z=0,ne=this.values.length-1,ie=0,se=0,ce=0;for(;Z<=ne;)if(ie=Z+(ne-Z)/2|0,se=this.prefixSum[ie],ce=se-this.values[ie],G=se))break;Z=ie+1}return new PrefixSumIndexOfResult(ie,G-ce)}}},2109:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return BracketSelectionRangeProvider}));var ie=ne(34),se=ne(12),ce=ne(376),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class BracketSelectionRangeProvider{provideSelectionRanges(G,Z){return __awaiter(this,void 0,void 0,(function*(){const ne=[];for(const ie of Z){const Z=[];ne.push(Z);const se=new Map;yield new Promise(Z=>BracketSelectionRangeProvider._bracketsRightYield(Z,0,G,ie,se)),yield new Promise(ne=>BracketSelectionRangeProvider._bracketsLeftYield(ne,0,G,ie,se,Z))}return ne}))}static _bracketsRightYield(G,Z,ne,ie,se){const fe=new Map,me=Date.now();for(;;){if(Z>=BracketSelectionRangeProvider._maxRounds){G();break}if(!ie){G();break}let ge=ne.findNextBracket(ie);if(!ge){G();break}if(Date.now()-me>BracketSelectionRangeProvider._maxDuration){setTimeout(()=>BracketSelectionRangeProvider._bracketsRightYield(G,Z+1,ne,ie,se));break}const Ce=ge.close[0];if(ge.isOpen){let G=fe.has(Ce)?fe.get(Ce):0;fe.set(Ce,G+1)}else{let G=fe.has(Ce)?fe.get(Ce):0;if(G-=1,fe.set(Ce,Math.max(0,G)),G<0){let G=se.get(Ce);G||(G=new ce.a,se.set(Ce,G)),G.push(ge.range)}}ie=ge.range.getEndPosition()}}static _bracketsLeftYield(G,Z,ne,ie,ce,fe){const me=new Map,ge=Date.now();for(;;){if(Z>=BracketSelectionRangeProvider._maxRounds&&0===ce.size){G();break}if(!ie){G();break}let Ce=ne.findPrevBracket(ie);if(!Ce){G();break}if(Date.now()-ge>BracketSelectionRangeProvider._maxDuration){setTimeout(()=>BracketSelectionRangeProvider._bracketsLeftYield(G,Z+1,ne,ie,ce,fe));break}const Se=Ce.close[0];if(Ce.isOpen){let G=me.has(Se)?me.get(Se):0;if(G-=1,me.set(Se,Math.max(0,G)),G<0){let G=ce.get(Se);if(G){let Z=G.shift();0===G.size&&ce.delete(Se);const ie=se.a.fromPositions(Ce.range.getEndPosition(),Z.getStartPosition()),me=se.a.fromPositions(Ce.range.getStartPosition(),Z.getEndPosition());fe.push({range:ie}),fe.push({range:me}),BracketSelectionRangeProvider._addBracketLeading(ne,me,fe)}}}else{let G=me.has(Se)?me.get(Se):0;me.set(Se,G+1)}ie=Ce.range.getStartPosition()}}static _addBracketLeading(G,Z,ne){if(Z.startLineNumber===Z.endLineNumber)return;const ce=Z.startLineNumber,fe=G.getLineFirstNonWhitespaceColumn(ce);0!==fe&&fe!==Z.startColumn&&(ne.push({range:se.a.fromPositions(new ie.a(ce,fe),Z.getEndPosition())}),ne.push({range:se.a.fromPositions(new ie.a(ce,1),Z.getEndPosition())}));const me=ce-1;if(me>0){const ce=G.getLineFirstNonWhitespaceColumn(me);ce===Z.startColumn&&ce!==G.getLineLastNonWhitespaceColumn(me)&&(ne.push({range:se.a.fromPositions(new ie.a(me,ce),Z.getEndPosition())}),ne.push({range:se.a.fromPositions(new ie.a(me,1),Z.getEndPosition())}))}}}BracketSelectionRangeProvider._maxDuration=30,BracketSelectionRangeProvider._maxRounds=2},2110:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ClickLinkGesture}));var ie=ne(10),se=ne(19),ce=ne(46);function hasModifier(G,Z){return!!G[Z]}class ClickLinkMouseEvent{constructor(G,Z){this.target=G.target,this.hasTriggerModifier=hasModifier(G.event,Z.triggerModifier),this.hasSideBySideModifier=hasModifier(G.event,Z.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=G.event.detail<=1}}class ClickLinkKeyboardEvent{constructor(G,Z){this.keyCodeIsTriggerKey=G.keyCode===Z.triggerKey,this.keyCodeIsSideBySideKey=G.keyCode===Z.triggerSideBySideKey,this.hasTriggerModifier=hasModifier(G,Z.triggerModifier)}}class ClickLinkOptions{constructor(G,Z,ne,ie){this.triggerKey=G,this.triggerModifier=Z,this.triggerSideBySideKey=ne,this.triggerSideBySideModifier=ie}equals(G){return this.triggerKey===G.triggerKey&&this.triggerModifier===G.triggerModifier&&this.triggerSideBySideKey===G.triggerSideBySideKey&&this.triggerSideBySideModifier===G.triggerSideBySideModifier}}function createOptions(G){return"altKey"===G?ce.f?new ClickLinkOptions(57,"metaKey",6,"altKey"):new ClickLinkOptions(5,"ctrlKey",6,"altKey"):ce.f?new ClickLinkOptions(6,"altKey",57,"metaKey"):new ClickLinkOptions(6,"altKey",5,"ctrlKey")}class ClickLinkGesture extends ie.a{constructor(G){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new se.b),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new se.b),this.onExecute=this._onExecute.event,this._onCancel=this._register(new se.b),this.onCancel=this._onCancel.event,this._editor=G,this._opts=createOptions(this._editor.getOption(68)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(G=>{if(G.hasChanged(68)){const G=createOptions(this._editor.getOption(68));if(this._opts.equals(G))return;this._opts=G,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(G=>this._onEditorMouseMove(new ClickLinkMouseEvent(G,this._opts)))),this._register(this._editor.onMouseDown(G=>this._onEditorMouseDown(new ClickLinkMouseEvent(G,this._opts)))),this._register(this._editor.onMouseUp(G=>this._onEditorMouseUp(new ClickLinkMouseEvent(G,this._opts)))),this._register(this._editor.onKeyDown(G=>this._onEditorKeyDown(new ClickLinkKeyboardEvent(G,this._opts)))),this._register(this._editor.onKeyUp(G=>this._onEditorKeyUp(new ClickLinkKeyboardEvent(G,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(G=>this._onDidChangeCursorSelection(G))),this._register(this._editor.onDidChangeModel(G=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(G=>{(G.scrollTopChanged||G.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(G){G.selection&&G.selection.startColumn!==G.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(G){this._lastMouseMoveEvent=G,this._onMouseMoveOrRelevantKeyDown.fire([G,null])}_onEditorMouseDown(G){this._hasTriggerKeyOnMouseDown=G.hasTriggerModifier,this._lineNumberOnMouseDown=G.target.position?G.target.position.lineNumber:0}_onEditorMouseUp(G){const Z=G.target.position?G.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===Z&&this._onExecute.fire(G)}_onEditorKeyDown(G){this._lastMouseMoveEvent&&(G.keyCodeIsTriggerKey||G.keyCodeIsSideBySideKey&&G.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,G]):G.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(G){G.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},2111:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return OutlineModel}));var ie=ne(69),se=ne(103),ce=ne(51),fe=ne(234),me=ne(12),ge=ne(35),Ce=ne(151),Se=ne(263);class TreeElement{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(G,Z){let ne;"string"==typeof G?ne=`${Z.id}/${G}`:(ne=`${Z.id}/${G.name}`,void 0!==Z.children.get(ne)&&(ne=`${Z.id}/${G.name}_${G.range.startLineNumber}_${G.range.startColumn}`));let ie=ne;for(let G=0;void 0!==Z.children.get(ie);G++)ie=`${ne}_${G}`;return ie}static empty(G){return 0===G.children.size}}class OutlineElement extends TreeElement{constructor(G,Z,ne){super(),this.id=G,this.parent=Z,this.symbol=ne,this.children=new Map}}class OutlineGroup extends TreeElement{constructor(G,Z,ne,ie){super(),this.id=G,this.parent=Z,this.label=ne,this.order=ie,this.children=new Map}}class OutlineModel extends TreeElement{constructor(G){super(),this.uri=G,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(G,Z){let ne=this._keys.for(G,!0),ie=OutlineModel._requests.get(ne);if(!ie){let Z=new se.b;ie={promiseCnt:0,source:Z,promise:OutlineModel._create(G,Z.token),model:void 0},OutlineModel._requests.set(ne,ie);const ce=Date.now();ie.promise.then(()=>{this._requestDurations.update(G,Date.now()-ce)})}return ie.model?Promise.resolve(ie.model):(ie.promiseCnt+=1,Z.onCancellationRequested(()=>{0==--ie.promiseCnt&&(ie.source.cancel(),OutlineModel._requests.delete(ne))}),new Promise((G,Z)=>{ie.promise.then(Z=>{ie.model=Z,G(Z)},G=>{OutlineModel._requests.delete(ne),Z(G)})}))}static _create(G,Z){const ne=new se.b(Z),fe=new OutlineModel(G.uri),me=ge.m.ordered(G),Ce=me.map((Z,ie)=>{var se;let me=TreeElement.findId("provider_"+ie,fe),ge=new OutlineGroup(me,fe,null!==(se=Z.displayName)&&void 0!==se?se:"Unknown Outline Provider",ie);return Promise.resolve(Z.provideDocumentSymbols(G,ne.token)).then(G=>{for(const Z of G||[])OutlineModel._makeOutlineElement(Z,ge);return ge},G=>(Object(ce.f)(G),ge)).then(G=>{TreeElement.empty(G)?G.remove():fe._groups.set(me,G)})}),Se=ge.m.onDidChange(()=>{const Z=ge.m.ordered(G);Object(ie.h)(Z,me)||ne.cancel()});return Promise.all(Ce).then(()=>ne.token.isCancellationRequested&&!Z.isCancellationRequested?OutlineModel._create(G,Z):fe._compact()).finally(()=>{Se.dispose()})}static _makeOutlineElement(G,Z){let ne=TreeElement.findId(G,Z),ie=new OutlineElement(ne,Z,G);if(G.children)for(const Z of G.children)OutlineModel._makeOutlineElement(Z,ie);Z.children.set(ie.id,ie)}_compact(){let G=0;for(const[Z,ne]of this._groups)0===ne.children.size?this._groups.delete(Z):G+=1;if(1!==G)this.children=this._groups;else{let G=Ce.a.first(this._groups.values());for(let[,Z]of G.children)Z.parent=this,this.children.set(Z.id,Z)}return this}getTopLevelSymbols(){const G=[];for(const Z of this.children.values())Z instanceof OutlineElement?G.push(Z.symbol):G.push(...Ce.a.map(Z.children.values(),G=>G.symbol));return G.sort((G,Z)=>me.a.compareRangesUsingStarts(G.range,Z.range))}asListOfDocumentSymbols(){const G=this.getTopLevelSymbols(),Z=[];return OutlineModel._flattenDocumentSymbols(Z,G,""),Z.sort((G,Z)=>me.a.compareRangesUsingStarts(G.range,Z.range))}static _flattenDocumentSymbols(G,Z,ne){for(const ie of Z)G.push({kind:ie.kind,tags:ie.tags,name:ie.name,detail:ie.detail,containerName:ie.containerName||ne,range:ie.range,selectionRange:ie.selectionRange,children:void 0}),ie.children&&OutlineModel._flattenDocumentSymbols(G,ie.children,ie.name)}}OutlineModel._requestDurations=new Se.b(ge.m,350),OutlineModel._requests=new fe.a(9,.75),OutlineModel._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(G,Z){return`${G.id}/${Z?G.getVersionId():""}/${this._hash(ge.m.all(G))}`}_hash(G){let Z="";for(const ne of G){let G=this._data.get(ne);void 0===G&&(G=this._counter++,this._data.set(ne,G)),Z+=G}return Z}}},2112:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return AbstractEditorNavigationQuickAccessProvider}));var ie=ne(194),se=ne(50),ce=ne(168),fe=ne(10),me=ne(497),ge=ne(54),Ce=ne(534);class AbstractEditorNavigationQuickAccessProvider{constructor(G){this.options=G,this.rangeHighlightDecorationId=void 0}provide(G,Z){var ne;const ie=new fe.b;G.canAcceptInBackground=!!(null===(ne=this.options)||void 0===ne?void 0:ne.canAcceptInBackground),G.matchOnLabel=G.matchOnDescription=G.matchOnDetail=G.sortByLabel=!1;const se=ie.add(new fe.d);return se.value=this.doProvide(G,Z),ie.add(this.onDidActiveTextEditorControlChange(()=>{se.value=void 0,se.value=this.doProvide(G,Z)})),ie}doProvide(G,Z){const ne=new fe.b,ie=this.activeTextEditorControl;if(ie&&this.canProvideWithTextEditor(ie)){const se={editor:ie},ce=Object(me.a)(ie);if(ce){let G=Object(ge.o)(ie.saveViewState());ne.add(ce.onDidChangeCursorPosition(()=>{G=Object(ge.o)(ie.saveViewState())})),se.restoreViewState=()=>{G&&ie===this.activeTextEditorControl&&ie.restoreViewState(G)},ne.add(Object(Ce.a)(Z.onCancellationRequested)(()=>{var G;return null===(G=se.restoreViewState)||void 0===G?void 0:G.call(se)}))}ne.add(Object(fe.i)(()=>this.clearDecorations(ie))),ne.add(this.provideWithTextEditor(se,G,Z))}else ne.add(this.provideWithoutTextEditor(G,Z));return ne}canProvideWithTextEditor(G){return!0}gotoLocation({editor:G},Z){G.setSelection(Z.range),G.revealRangeInCenter(Z.range,0),Z.preserveFocus||G.focus()}getModel(G){var Z;return Object(me.c)(G)?null===(Z=G.getModel())||void 0===Z?void 0:Z.modified:G.getModel()}addDecorations(G,Z){G.changeDecorations(G=>{const ne=[];this.rangeHighlightDecorationId&&(ne.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),ne.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const fe=[{range:Z,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:Z,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Object(se.g)(ce.u),position:ie.d.Full}}}],[me,ge]=G.deltaDecorations(ne,fe);this.rangeHighlightDecorationId={rangeHighlightId:me,overviewRulerDecorationId:ge}})}clearDecorations(G){const Z=this.rangeHighlightDecorationId;Z&&(G.changeDecorations(G=>{G.deltaDecorations([Z.overviewRulerDecorationId,Z.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},2113:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"MarkerController",(function(){return Rt})),ne.d(Z,"NextMarkerAction",(function(){return gotoError_NextMarkerAction}));var ie,se=ne(4),ce=ne(10),fe=ne(26),me=ne(34),ge=ne(12),Ce=ne(14),Se=ne(23),Me=(ne(7514),ne(6)),ke=ne(222),xe=ne(13),De=ne(50),Ie=ne(44),Re=ne(416),ze=ne(1191),$e=ne(69),Je=ne(19),it=ne(224),ot=ne(181),at=ne(235),st=ne(67);(ie||(ie={})).className=function className(G){switch(G){case at.a.Ignore:return"severity-ignore "+st.b.info.classNames;case at.a.Info:return st.b.info.classNames;case at.a.Warning:return st.b.warning.classNames;case at.a.Error:return st.b.error.classNames;default:return""}},Object(De.f)((G,Z)=>{const ne=G.getColor(xe.mc);if(ne){const G=st.b.error.cssSelector;Z.addRule(`\n\t\t\t.monaco-editor .zone-widget ${G},\n\t\t\t.markers-panel .marker-icon${G},\n\t\t\t.text-search-provider-messages .providerMessage ${G},\n\t\t\t.extensions-viewlet > .extensions ${G} {\n\t\t\t\tcolor: ${ne};\n\t\t\t}\n\t\t`)}const ie=G.getColor(xe.oc);if(ie){const G=st.b.warning.cssSelector;Z.addRule(`\n\t\t\t.monaco-editor .zone-widget ${G},\n\t\t\t.markers-panel .marker-icon${G},\n\t\t\t.extensions-viewlet > .extensions ${G},\n\t\t\t.extension-editor ${G},\n\t\t\t.text-search-provider-messages .providerMessage ${G},\n\t\t\t.preferences-editor ${G} {\n\t\t\t\tcolor: ${ie};\n\t\t\t}\n\t\t`)}const se=G.getColor(xe.nc);if(se){const G=st.b.info.cssSelector;Z.addRule(`\n\t\t\t.monaco-editor .zone-widget ${G},\n\t\t\t.markers-panel .marker-icon${G},\n\t\t\t.extensions-viewlet > .extensions ${G},\n\t\t\t.text-search-provider-messages .providerMessage ${G},\n\t\t\t.extension-editor ${G} {\n\t\t\t\tcolor: ${se};\n\t\t\t}\n\t\t`)}});var ct=ne(306),ut=ne(92),dt=ne(1354),ht=ne(60),ft=ne(27),_t=ne(820),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class gotoErrorWidget_MessageWidget{constructor(G,Z,ne,ie,se){this._openerService=ie,this._labelService=se,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new ce.b,this._editor=Z;const fe=document.createElement("div");fe.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),fe.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),fe.appendChild(this._relatedBlock),this._disposables.add(Me.o(this._relatedBlock,"click",G=>{G.preventDefault();const Z=this._relatedDiagnostics.get(G.target);Z&&ne(Z)})),this._scrollable=new Re.b(fe,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),G.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(G=>{fe.style.left=`-${G.scrollLeft}px`,fe.style.top=`-${G.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(ce.f)(this._disposables)}update(G){const{source:Z,message:ne,relatedInformation:ie,code:se}=G;let ce=((null==Z?void 0:Z.length)||0)+"()".length;se&&(ce+="string"==typeof se?se.length:se.value.length);const fe=Object(ft.R)(ne);this._lines=fe.length,this._longestLineLength=0;for(const G of fe)this._longestLineLength=Math.max(G.length+ce,this._longestLineLength);Me.t(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(G)),this._editor.applyFontInfo(this._messageBlock);let me=this._messageBlock;for(const G of fe)me=document.createElement("div"),me.innerText=G,""===G&&(me.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(me);if(Z||se){const G=document.createElement("span");if(G.classList.add("details"),me.appendChild(G),Z){const ne=document.createElement("span");ne.innerText=Z,ne.classList.add("source"),G.appendChild(ne)}if(se)if("string"==typeof se){const Z=document.createElement("span");Z.innerText=`(${se})`,Z.classList.add("code"),G.appendChild(Z)}else{this._codeLink=Me.a("a.code-link"),this._codeLink.setAttribute("href",""+se.target.toString()),this._codeLink.onclick=G=>{this._openerService.open(se.target,{allowCommands:!0}),G.preventDefault(),G.stopPropagation()};Me.q(this._codeLink,Me.a("span")).innerText=se.value,G.appendChild(this._codeLink)}}if(Me.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object($e.n)(ie)){const G=this._relatedBlock.appendChild(document.createElement("div"));G.style.paddingTop=Math.floor(.66*this._editor.getOption(57))+"px",this._lines+=1;for(const Z of ie){let ne=document.createElement("div"),ie=document.createElement("a");ie.classList.add("filename"),ie.innerText=`${Object(ze.a)(Z.resource)}(${Z.startLineNumber}, ${Z.startColumn}): `,ie.title=this._labelService.getUriLabel(Z.resource),this._relatedDiagnostics.set(ie,Z);let se=document.createElement("span");se.innerText=Z.message,ne.appendChild(ie),ne.appendChild(se),this._lines+=1,G.appendChild(ne)}}const ge=this._editor.getOption(41),Ce=Math.ceil(ge.typicalFullwidthCharacterWidth*this._longestLineLength*.75),Se=ge.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Ce,scrollHeight:Se})}layout(G,Z){this._scrollable.getDomNode().style.height=G+"px",this._scrollable.getDomNode().style.width=Z+"px",this._scrollable.setScrollDimensions({width:Z,height:G})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(G){let Z="";switch(G.severity){case ke.c.Error:Z=se.a("Error","Error");break;case ke.c.Warning:Z=se.a("Warning","Warning");break;case ke.c.Info:Z=se.a("Info","Info");break;case ke.c.Hint:Z=se.a("Hint","Hint")}let ne=se.a("marker aria","{0} at {1}. ",Z,G.startLineNumber+":"+G.startColumn);const ie=this._editor.getModel();if(ie&&G.startLineNumber<=ie.getLineCount()&&G.startLineNumber>=1){ne=`${ie.getLineContent(G.startLineNumber)}, ${ne}`}return ne}}let yt=class MarkerNavigationWidget extends it.c{constructor(G,Z,ne,ie,se,fe,me){super(G,{showArrow:!0,showFrame:!0,isAccessible:!0},se),this._themeService=Z,this._openerService=ne,this._menuService=ie,this._contextKeyService=fe,this._labelService=me,this._callOnDispose=new ce.b,this._onDidSelectRelatedInformation=new Je.b,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=ke.c.Warning,this._backgroundColor=Ie.a.white,this._applyTheme(Z.getColorTheme()),this._callOnDispose.add(Z.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(G){this._backgroundColor=G.getColor(xt);let Z=St;this._severity===ke.c.Warning?Z=Mt:this._severity===ke.c.Info&&(Z=kt);const ne=G.getColor(Z);this.style({arrowColor:ne,frameColor:ne,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:G.getColor(it.q),secondaryHeadingColor:G.getColor(it.r)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(G){super._fillHead(G),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(G=>this.editor.focus()));const Z=[],ne=this._menuService.createMenu(MarkerNavigationWidget.TitleMenu,this._contextKeyService);Object(dt.c)(ne,void 0,Z),this._actionbarWidget.push(Z,{label:!1,icon:!0,index:0}),ne.dispose()}_fillTitleIcon(G){this._icon=Me.q(G,Me.a(""))}_fillBody(G){this._parentContainer=G,G.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),G.appendChild(this._container),this._message=new gotoErrorWidget_MessageWidget(this._container,this.editor,G=>this._onDidSelectRelatedInformation.fire(G),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(G,Z,ne){this._container.classList.remove("stale"),this._message.update(G),this._severity=G.severity,this._applyTheme(this._themeService.getColorTheme());let ce=ge.a.lift(G);const fe=this.editor.getPosition();let me=fe&&ce.containsPosition(fe)?fe:ce.getStartPosition();super.show(me,this.computeRequiredHeight());const Ce=this.editor.getModel();if(Ce){const G=ne>1?se.a("problems","{0} of {1} problems",Z,ne):se.a("change","{0} of {1} problem",Z,ne);this.setTitle(Object(ot.b)(Ce.uri),G)}this._icon.className="codicon "+ie.className(ke.c.toSeverity(this._severity)),this.editor.revealPositionNearTop(me,0),this.editor.focus()}updateMarker(G){this._container.classList.remove("stale"),this._message.update(G)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(G,Z){super._doLayoutBody(G,Z),this._heightInPixel=G,this._message.layout(G,Z),this._container.style.height=G+"px"}_onWidth(G){this._message.layout(this._heightInPixel,G)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};yt.TitleMenu=new ut.b("gotoErrorTitleMenu"),yt=__decorate([__param(1,De.b),__param(2,ct.a),__param(3,ut.a),__param(4,ht.a),__param(5,fe.b),__param(6,_t.a)],yt);let vt=Object(xe.hc)(xe.u,xe.t),wt=Object(xe.hc)(xe.X,xe.W),Ct=Object(xe.hc)(xe.M,xe.L);const St=Object(xe.wc)("editorMarkerNavigationError.background",{dark:vt,light:vt,hc:vt},se.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),Mt=Object(xe.wc)("editorMarkerNavigationWarning.background",{dark:wt,light:wt,hc:wt},se.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),kt=Object(xe.wc)("editorMarkerNavigationInfo.background",{dark:Ct,light:Ct,hc:Ct},se.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),xt=Object(xe.wc)("editorMarkerNavigation.background",{dark:"#2D2D30",light:Ie.a.white,hc:"#0C141F"},se.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(De.f)((G,Z)=>{const ne=G.getColor(xe.Jc);ne&&Z.addRule(`.monaco-editor .marker-widget a.code-link span { color: ${ne}; }`);const ie=G.getColor(xe.Ic);ie&&Z.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${ie}; }`)});var Lt=ne(127),Tt=ne(94),At=ne(533),Dt=ne(376),markerNavigationService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},markerNavigationService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class MarkerCoordinate{constructor(G,Z,ne){this.marker=G,this.index=Z,this.total=ne}}let Et=class MarkerList{constructor(G,Z){this._markerService=Z,this._onDidChange=new Je.b,this.onDidChange=this._onDidChange.event,this._dispoables=new ce.b,this._markers=[],this._nextIdx=-1,Tt.a.isUri(G)?this._resourceFilter=Z=>Z.toString()===G.toString():G&&(this._resourceFilter=G);const updateMarker=()=>{this._markers=this._markerService.read({resource:Tt.a.isUri(G)?G:void 0,severities:ke.c.Error|ke.c.Warning|ke.c.Info}),"function"==typeof G&&(this._markers=this._markers.filter(G=>this._resourceFilter(G.resource))),this._markers.sort(MarkerList._compareMarker)};updateMarker(),this._dispoables.add(Z.onMarkerChanged(G=>{this._resourceFilter&&!G.some(G=>this._resourceFilter(G))||(updateMarker(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(G){return!this._resourceFilter&&!G||!(!this._resourceFilter||!G)&&this._resourceFilter(G)}get selected(){const G=this._markers[this._nextIdx];return G&&new MarkerCoordinate(G,this._nextIdx+1,this._markers.length)}_initIdx(G,Z,ne){let ie=!1,se=this._markers.findIndex(Z=>Z.resource.toString()===G.uri.toString());se<0&&(se=Object($e.d)(this._markers,{resource:G.uri},(G,Z)=>Object(ft.f)(G.resource.toString(),Z.resource.toString())),se<0&&(se=~se));for(let ne=se;neZ.resource.toString()===G.toString());if(!(ne<0))for(;ne=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},gotoError_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let Rt=class MarkerController{constructor(G,Z,ne,ie,se){this._markerNavigationService=Z,this._contextKeyService=ne,this._editorService=ie,this._instantiationService=se,this._sessionDispoables=new ce.b,this._editor=G,this._widgetVisible=zt.bindTo(this._contextKeyService)}static get(G){return G.getContribution(MarkerController.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(G){if(this._model&&this._model.matches(G))return this._model;let Z=!1;return this._model&&(Z=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(G),Z&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(yt,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(G=>{var Z,ne,ie;(null===(Z=this._model)||void 0===Z?void 0:Z.selected)&&ge.a.containsPosition(null===(ne=this._model)||void 0===ne?void 0:ne.selected.marker,G.position)||null===(ie=this._model)||void 0===ie||ie.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const G=this._model.find(this._editor.getModel().uri,this._widget.position);G?this._widget.updateMarker(G.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(G=>{this._editorService.openCodeEditor({resource:G.resource,options:{pinned:!0,revealIfOpened:!0,selection:ge.a.lift(G).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(G=!0){this._cleanUp(),G&&this._editor.focus()}showAtMarker(G){if(this._editor.hasModel()){const Z=this._getOrCreateModel(this._editor.getModel().uri);Z.resetIndex(),Z.move(!0,this._editor.getModel(),new me.a(G.startLineNumber,G.startColumn)),Z.selected&&this._widget.showAtMarker(Z.selected.marker,Z.selected.index,Z.selected.total)}}nagivate(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const ne=this._getOrCreateModel(Z?void 0:this._editor.getModel().uri);if(ne.move(G,this._editor.getModel(),this._editor.getPosition()),!ne.selected)return;if(ne.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const ie=yield this._editorService.openCodeEditor({resource:ne.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:ne.selected.marker}},this._editor);ie&&(MarkerController.get(ie).close(),MarkerController.get(ie).nagivate(G,Z))}else this._widget.showAtMarker(ne.selected.marker,ne.selected.index,ne.selected.total)}}))}};Rt.ID="editor.contrib.markerController",Rt=gotoError_decorate([gotoError_param(1,jt),gotoError_param(2,fe.b),gotoError_param(3,Lt.a),gotoError_param(4,ht.a)],Rt);class gotoError_MarkerNavigationAction extends Ce.b{constructor(G,Z,ne){super(ne),this._next=G,this._multiFile=Z}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){Z.hasModel()&&Rt.get(Z).nagivate(this._next,this._multiFile)}))}}class gotoError_NextMarkerAction extends gotoError_MarkerNavigationAction{constructor(){super(!0,!1,{id:gotoError_NextMarkerAction.ID,label:gotoError_NextMarkerAction.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Se.a.focus,primary:578,weight:100},menuOpts:{menuId:yt.TitleMenu,title:gotoError_NextMarkerAction.LABEL,icon:Object(Nt.b)("marker-navigation-next",st.b.chevronDown,se.a("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}gotoError_NextMarkerAction.ID="editor.action.marker.next",gotoError_NextMarkerAction.LABEL=se.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class gotoError_PrevMarkerAction extends gotoError_MarkerNavigationAction{constructor(){super(!1,!1,{id:gotoError_PrevMarkerAction.ID,label:gotoError_PrevMarkerAction.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Se.a.focus,primary:1602,weight:100},menuOpts:{menuId:yt.TitleMenu,title:gotoError_NextMarkerAction.LABEL,icon:Object(Nt.b)("marker-navigation-previous",st.b.chevronUp,se.a("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}gotoError_PrevMarkerAction.ID="editor.action.marker.prev",gotoError_PrevMarkerAction.LABEL=se.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");Object(Ce.l)(Rt.ID,Rt),Object(Ce.j)(gotoError_NextMarkerAction),Object(Ce.j)(gotoError_PrevMarkerAction),Object(Ce.j)(class gotoError_NextMarkerInFilesAction extends gotoError_MarkerNavigationAction{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:se.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Se.a.focus,primary:66,weight:100},menuOpts:{menuId:ut.b.MenubarGoMenu,title:se.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),Object(Ce.j)(class gotoError_PrevMarkerInFilesAction extends gotoError_MarkerNavigationAction{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:se.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:Se.a.focus,primary:1090,weight:100},menuOpts:{menuId:ut.b.MenubarGoMenu,title:se.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const zt=new fe.c("markersNavigationVisible",!1),qt=Ce.c.bindToContribution(Rt.get);Object(Ce.k)(new qt({id:"closeMarkersNavigation",precondition:zt,handler:G=>G.close(),kbOpts:{weight:150,kbExpr:Se.a.focus,primary:9,secondary:[1033]}}))},2114:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return snippetSession_SnippetSession}));var ie=ne(69),se=ne(10),ce=ne(27),fe=(ne(7562),ne(221)),me=ne(12),ge=ne(80),Ce=ne(117),Se=ne(1351),Me=ne(60),ke=ne(538),xe=ne(4),De=ne(210),Ie=ne(181),Re=ne(122),ze=ne(94);function isSingleFolderWorkspaceIdentifier(G){const Z=G;return"string"==typeof(null==Z?void 0:Z.id)&&ze.a.isUri(Z.uri)}var $e=ne(1191);const Je=new Uint8Array(16),it=[];for(let G=0;G<256;G++)it.push(G.toString(16).padStart(2,"0"));let ot;ot="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(G){for(let Z=0;ZZ!==G&&(Z instanceof ke.d&&(se=Object(ce.y)(Object(ce.R)(Z.value).pop())),!0));const fe=Object(ce.d)(se,ie);Z=Z.replace(/(\r\n|\r|\n)(.*)/g,(G,Z,ne)=>`${Z}${se.substr(fe)}${ne}`)}return Z}if("TM_CURRENT_LINE"===Z)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===Z){const G=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return G&&G.word||void 0}return"TM_LINE_INDEX"===Z?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===Z?String(this._selection.positionLineNumber):void 0}}class snippetVariables_ModelBasedVariableResolver{constructor(G,Z){this._labelService=G,this._model=Z}resolve(G){const{name:Z}=G;if("TM_FILENAME"===Z)return De.a(this._model.uri.fsPath);if("TM_FILENAME_BASE"===Z){const G=De.a(this._model.uri.fsPath),Z=G.lastIndexOf(".");return Z<=0?G:G.slice(0,Z)}return"TM_DIRECTORY"===Z&&this._labelService?"."===De.b(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(Ie.d)(this._model.uri)):"TM_FILEPATH"===Z&&this._labelService?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===Z&&this._labelService?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class snippetVariables_ClipboardBasedVariableResolver{constructor(G,Z,ne,ie){this._readClipboardText=G,this._selectionIdx=Z,this._selectionCount=ne,this._spread=ie}resolve(G){if("CLIPBOARD"!==G.name)return;const Z=this._readClipboardText();if(Z){if(this._spread){const G=Z.split(/\r\n|\n|\r/).filter(G=>!Object(ce.D)(G));if(G.length===this._selectionCount)return G[this._selectionIdx]}return Z}}}class snippetVariables_CommentBasedVariableResolver{constructor(G,Z){this._model=G,this._selection=Z}resolve(G){const{name:Z}=G,ne=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),ie=Re.a.getComments(ne);if(ie)return"LINE_COMMENT"===Z?ie.lineCommentToken||void 0:"BLOCK_COMMENT_START"===Z?ie.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===Z&&ie.blockCommentEndToken||void 0}}class TimeBasedVariableResolver{constructor(){this._date=new Date}resolve(G){const{name:Z}=G;return"CURRENT_YEAR"===Z?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===Z?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===Z?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===Z?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===Z?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===Z?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===Z?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===Z?TimeBasedVariableResolver.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===Z?TimeBasedVariableResolver.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===Z?TimeBasedVariableResolver.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===Z?TimeBasedVariableResolver.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===Z?String(Math.floor(this._date.getTime()/1e3)):void 0}}TimeBasedVariableResolver.dayNames=[xe.a("Sunday","Sunday"),xe.a("Monday","Monday"),xe.a("Tuesday","Tuesday"),xe.a("Wednesday","Wednesday"),xe.a("Thursday","Thursday"),xe.a("Friday","Friday"),xe.a("Saturday","Saturday")],TimeBasedVariableResolver.dayNamesShort=[xe.a("SundayShort","Sun"),xe.a("MondayShort","Mon"),xe.a("TuesdayShort","Tue"),xe.a("WednesdayShort","Wed"),xe.a("ThursdayShort","Thu"),xe.a("FridayShort","Fri"),xe.a("SaturdayShort","Sat")],TimeBasedVariableResolver.monthNames=[xe.a("January","January"),xe.a("February","February"),xe.a("March","March"),xe.a("April","April"),xe.a("May","May"),xe.a("June","June"),xe.a("July","July"),xe.a("August","August"),xe.a("September","September"),xe.a("October","October"),xe.a("November","November"),xe.a("December","December")],TimeBasedVariableResolver.monthNamesShort=[xe.a("JanuaryShort","Jan"),xe.a("FebruaryShort","Feb"),xe.a("MarchShort","Mar"),xe.a("AprilShort","Apr"),xe.a("MayShort","May"),xe.a("JuneShort","Jun"),xe.a("JulyShort","Jul"),xe.a("AugustShort","Aug"),xe.a("SeptemberShort","Sep"),xe.a("OctoberShort","Oct"),xe.a("NovemberShort","Nov"),xe.a("DecemberShort","Dec")];class snippetVariables_WorkspaceBasedVariableResolver{constructor(G){this._workspaceService=G}resolve(G){if(!this._workspaceService)return;const Z=function toWorkspaceIdentifier(G){return G.configuration?{id:G.id,configPath:G.configuration}:1===G.folders.length?{id:G.id,uri:G.folders[0].uri}:void 0}(this._workspaceService.getWorkspace());return Z?"WORKSPACE_NAME"===G.name?this._resolveWorkspaceName(Z):"WORKSPACE_FOLDER"===G.name?this._resoveWorkspacePath(Z):void 0:void 0}_resolveWorkspaceName(G){if(isSingleFolderWorkspaceIdentifier(G))return De.a(G.uri.path);let Z=De.a(G.configPath.path);return Z.endsWith("code-workspace")&&(Z=Z.substr(0,Z.length-"code-workspace".length-1)),Z}_resoveWorkspacePath(G){if(isSingleFolderWorkspaceIdentifier(G))return Object($e.b)(G.uri.fsPath);let Z=De.a(G.configPath.path),ne=G.configPath.fsPath;return ne.endsWith(Z)&&(ne=ne.substr(0,ne.length-Z.length-1)),ne?Object($e.b)(ne):"/"}}class snippetVariables_RandomBasedVariableResolver{resolve(G){const{name:Z}=G;return"RANDOM"===Z?Math.random().toString().slice(-6):"RANDOM_HEX"===Z?Math.random().toString(16).slice(-6):"UUID"===Z?function generateUuid(){ot(Je),Je[6]=15&Je[6]|64,Je[8]=63&Je[8]|128;let G=0,Z="";return Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z+="-",Z+=it[Je[G++]],Z+=it[Je[G++]],Z+="-",Z+=it[Je[G++]],Z+=it[Je[G++]],Z+="-",Z+=it[Je[G++]],Z+=it[Je[G++]],Z+="-",Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z+=it[Je[G++]],Z}():void 0}}var at=ne(50),st=ne(13),ct=ne(820);Object(at.f)((G,Z)=>{function getColorGraceful(Z){const ne=G.getColor(Z);return ne?ne.toString():"transparent"}Z.addRule(`.monaco-editor .snippet-placeholder { background-color: ${getColorGraceful(st.Ec)}; outline-color: ${getColorGraceful(st.Fc)}; }`),Z.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${getColorGraceful(st.Cc)}; outline-color: ${getColorGraceful(st.Dc)}; }`)});class snippetSession_OneSnippet{constructor(G,Z,ne,se){this._editor=G,this._snippet=Z,this._offset=ne,this._snippetLineLeadingWhitespace=se,this._nestingLevel=1,this._placeholderGroups=Object(ie.l)(Z.placeholders,ke.b.compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const G=this._editor.getModel();this._editor.changeDecorations(Z=>{for(const ne of this._snippet.placeholders){const ie=this._snippet.offset(ne),se=this._snippet.fullLen(ne),ce=me.a.fromPositions(G.getPositionAt(this._offset+ie),G.getPositionAt(this._offset+ie+se)),fe=ne.isFinalTabstop?snippetSession_OneSnippet._decor.inactiveFinal:snippetSession_OneSnippet._decor.inactive,ge=Z.addDecoration(ce,fe);this._placeholderDecorations.set(ne,ge)}})}move(G){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let G=[];for(const Z of this._placeholderGroups[this._placeholderGroupsIdx])if(Z.transform){const ne=this._placeholderDecorations.get(Z),ie=this._editor.getModel().getDecorationRange(ne),se=this._editor.getModel().getValueInRange(ie),ce=Z.transform.resolve(se).split(/\r\n|\r|\n/);for(let G=1;G0&&this._editor.executeEdits("snippet.placeholderTransform",G)}let Z=!1;!0===G&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,Z=!0);const ne=this._editor.getModel().changeDecorations(G=>{const ne=new Set,ie=[];for(const se of this._placeholderGroups[this._placeholderGroupsIdx]){const ce=this._placeholderDecorations.get(se),fe=this._editor.getModel().getDecorationRange(ce);ie.push(new ge.a(fe.startLineNumber,fe.startColumn,fe.endLineNumber,fe.endColumn)),Z=Z&&this._hasPlaceholderBeenCollapsed(se),G.changeDecorationOptions(ce,se.isFinalTabstop?snippetSession_OneSnippet._decor.activeFinal:snippetSession_OneSnippet._decor.active),ne.add(se);for(const Z of this._snippet.enclosingPlaceholders(se)){const ie=this._placeholderDecorations.get(Z);G.changeDecorationOptions(ie,Z.isFinalTabstop?snippetSession_OneSnippet._decor.activeFinal:snippetSession_OneSnippet._decor.active),ne.add(Z)}}for(const[Z,ie]of this._placeholderDecorations)ne.has(Z)||G.changeDecorationOptions(ie,Z.isFinalTabstop?snippetSession_OneSnippet._decor.inactiveFinal:snippetSession_OneSnippet._decor.inactive);return ie});return Z?this.move(G):null!=ne?ne:[]}_hasPlaceholderBeenCollapsed(G){let Z=G;for(;Z;){if(Z instanceof ke.b){const G=this._placeholderDecorations.get(Z);if(this._editor.getModel().getDecorationRange(G).isEmpty()&&Z.toString().length>0)return!0}Z=Z.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){const G=new Map;for(const Z of this._placeholderGroups){let ne;for(const ie of Z){if(ie.isFinalTabstop)break;ne||(ne=[],G.set(ie.index,ne));const Z=this._placeholderDecorations.get(ie),se=this._editor.getModel().getDecorationRange(Z);if(!se){G.delete(ie.index);break}ne.push(se)}}return G}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(G){const Z=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(ne=>{for(const ie of this._placeholderGroups[this._placeholderGroupsIdx]){const se=G.shift();console.assert(!se._placeholderDecorations);const ce=se._snippet.placeholderInfo.last.index;for(const G of se._snippet.placeholderInfo.all)G.isFinalTabstop?G.index=ie.index+(ce+1)/this._nestingLevel:G.index=ie.index+G.index/this._nestingLevel;this._snippet.replace(ie,se._snippet.children);const fe=this._placeholderDecorations.get(ie);ne.removeDecoration(fe),this._placeholderDecorations.delete(ie);for(const G of se._snippet.placeholders){const ie=se._snippet.offset(G),ce=se._snippet.fullLen(G),fe=me.a.fromPositions(Z.getPositionAt(se._offset+ie),Z.getPositionAt(se._offset+ie+ce)),ge=ne.addDecoration(fe,snippetSession_OneSnippet._decor.inactive);this._placeholderDecorations.set(G,ge)}}this._placeholderGroups=Object(ie.l)(this._snippet.placeholders,ke.b.compareByIndex)})}}snippetSession_OneSnippet._decor={active:Ce.a.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:Ce.a.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:Ce.a.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:Ce.a.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const ut={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class snippetSession_SnippetSession{constructor(G,Z,ne=ut){this._templateMerges=[],this._snippets=[],this._editor=G,this._template=Z,this._options=ne}static adjustWhitespace(G,Z,ne,ie,se){const fe=G.getLineContent(Z.lineNumber),me=Object(ce.y)(fe,0,Z.column-1);let ge;return ne.walk(Z=>{if(!(Z instanceof ke.d)||Z.parent instanceof ke.a)return!0;const se=Z.value.split(/\r\n|\r|\n/);if(ie){const ie=ne.offset(Z);if(0===ie)se[0]=G.normalizeIndentation(se[0]);else{ge=null!=ge?ge:ne.toString();let Z=ge.charCodeAt(ie-1);10!==Z&&13!==Z||(se[0]=G.normalizeIndentation(me+se[0]))}for(let Z=1;ZG.get(Se.a,Me.d)),ze=G.invokeWithinContext(G=>new snippetVariables_ModelBasedVariableResolver(G.get(ct.a,Me.d),Ie)),readClipboardText=()=>ge;let $e=0,Je=Ie.getValueInRange(snippetSession_SnippetSession.adjustSelection(Ie,G.getSelection(),ne,0)),it=Ie.getValueInRange(snippetSession_SnippetSession.adjustSelection(Ie,G.getSelection(),0,ie)),ot=Ie.getLineFirstNonWhitespaceColumn(G.getSelection().positionLineNumber);const at=G.getSelections().map((G,Z)=>({selection:G,idx:Z})).sort((G,Z)=>me.a.compareRangesUsingStarts(G.selection,Z.selection));for(const{selection:me,idx:ge}of at){let Se=snippetSession_SnippetSession.adjustSelection(Ie,me,ne,0),Me=snippetSession_SnippetSession.adjustSelection(Ie,me,0,ie);Je!==Ie.getValueInRange(Se)&&(Se=me),it!==Ie.getValueInRange(Me)&&(Me=me);const st=me.setStartPosition(Se.startLineNumber,Se.startColumn).setEndPosition(Me.endLineNumber,Me.endColumn),ct=(new ke.c).parse(Z,!0,se),ut=st.getStartPosition(),dt=snippetSession_SnippetSession.adjustWhitespace(Ie,ut,ct,ce||ge>0&&ot!==Ie.getLineFirstNonWhitespaceColumn(me.positionLineNumber),!0);ct.resolveVariables(new CompositeSnippetVariableResolver([ze,new snippetVariables_ClipboardBasedVariableResolver(readClipboardText,ge,at.length,"spread"===G.getOption(69)),new snippetVariables_SelectionBasedVariableResolver(Ie,me,ge,Ce),new snippetVariables_CommentBasedVariableResolver(Ie,me),new TimeBasedVariableResolver,new snippetVariables_WorkspaceBasedVariableResolver(Re),new snippetVariables_RandomBasedVariableResolver]));const ht=Ie.getOffsetAt(ut)+$e;$e+=ct.toString().length-Ie.getValueLengthInRange(st),xe[ge]=fe.a.replace(st,ct.toString()),xe[ge].identifier={major:ge,minor:0},De[ge]=new snippetSession_OneSnippet(G,ct,ht,dt)}return{edits:xe,snippets:De}}dispose(){Object(se.f)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:G,snippets:Z}=snippetSession_SnippetSession.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=Z,this._editor.executeEdits("snippet",G,G=>this._snippets[0].hasPlaceholder?this._move(!0):G.filter(G=>!!G.identifier).map(G=>ge.a.fromPositions(G.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(G,Z=ut){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,G]);const{edits:ne,snippets:ie}=snippetSession_SnippetSession.createEditsAndSnippets(this._editor,G,Z.overwriteBefore,Z.overwriteAfter,!0,Z.adjustWhitespace,Z.clipboardText,Z.overtypingCapturer);this._editor.executeEdits("snippet",ne,G=>{for(const G of this._snippets)G.merge(ie);return console.assert(0===ie.length),this._snippets[0].hasPlaceholder?this._move(void 0):G.filter(G=>!!G.identifier).map(G=>ge.a.fromPositions(G.range.getEndPosition()))})}next(){const G=this._move(!0);this._editor.setSelections(G),this._editor.revealPositionInCenterIfOutsideViewport(G[0].getPosition())}prev(){const G=this._move(!1);this._editor.setSelections(G),this._editor.revealPositionInCenterIfOutsideViewport(G[0].getPosition())}_move(G){const Z=[];for(const ne of this._snippets){const ie=ne.move(G);Z.push(...ie)}return Z}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const G=this._editor.getSelections();if(G.length{G.push(...ie.get(Z))})}G.sort(me.a.compareRangesUsingStarts);for(let[ne,ie]of Z)if(ie.length===G.length){ie.sort(me.a.compareRangesUsingStarts);for(let se=0;se0}}},215:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return setARIAContainer})),ne.d(Z,"a",(function(){return alert})),ne.d(Z,"c",(function(){return status}));ne(7493);var ie=ne(46),se=ne(6);let ce,fe,me,ge,Ce;function setARIAContainer(G){ce=document.createElement("div"),ce.className="monaco-aria-container";const createAlertContainer=()=>{const G=document.createElement("div");return G.className="monaco-alert",G.setAttribute("role","alert"),G.setAttribute("aria-atomic","true"),ce.appendChild(G),G};fe=createAlertContainer(),me=createAlertContainer();const createStatusContainer=()=>{const G=document.createElement("div");return G.className="monaco-status",G.setAttribute("role","complementary"),G.setAttribute("aria-live","polite"),G.setAttribute("aria-atomic","true"),ce.appendChild(G),G};ge=createStatusContainer(),Ce=createStatusContainer(),G.appendChild(ce)}function alert(G){ce&&(fe.textContent!==G?(se.t(me),insertMessage(fe,G)):(se.t(fe),insertMessage(me,G)))}function status(G){ce&&(ie.f?alert(G):ge.textContent!==G?(se.t(Ce),insertMessage(ge,G)):(se.t(ge),insertMessage(Ce,G)))}function insertMessage(G,Z){se.t(G),Z.length>2e4&&(Z=Z.substr(0,2e4)),G.textContent=Z,G.style.visibility="hidden",G.style.visibility="visible"}},219:function(G,Z,ne){"use strict";ne.d(Z,"h",(function(){return Viewport})),ne.d(Z,"b",(function(){return LineBreakData})),ne.d(Z,"c",(function(){return MinimapLinesRenderingData})),ne.d(Z,"e",(function(){return ViewLineData})),ne.d(Z,"f",(function(){return ViewLineRenderingData})),ne.d(Z,"a",(function(){return InlineDecoration})),ne.d(Z,"d",(function(){return SingleLineInlineDecoration})),ne.d(Z,"g",(function(){return ViewModelDecoration}));var ie=ne(27),se=ne(34),ce=ne(12);class Viewport{constructor(G,Z,ne,ie){this._viewportBrand=void 0,this.top=0|G,this.left=0|Z,this.width=0|ne,this.height=0|ie}}class OutputPosition{constructor(G,Z){this.outputLineIndex=G,this.outputOffset=Z}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(G,Z){const ne=this.outputLineIndex>0?Z:0;return new se.a(G+this.outputLineIndex,ne+this.outputOffset+1)}}class LineBreakData{constructor(G,Z,ne,ie,se){this.breakOffsets=G,this.breakOffsetsVisibleColumn=Z,this.wrappedTextIndentLength=ne,this.injectionOffsets=ie,this.injectionOptions=se}getInputOffsetOfOutputPosition(G,Z){let ne=0;if(ne=0===G?Z:this.breakOffsets[G-1]+Z,null!==this.injectionOffsets)for(let G=0;Gthis.injectionOffsets[G];G++)ne0?this.breakOffsets[se-1]:0,0===Z)if(G<=ce)ie=se-1;else{if(!(G>fe))break;ne=se+1}else if(G=fe))break;ne=se+1}}return new OutputPosition(se,G-ce)}outputPositionToOffsetInUnwrappedLine(G,Z){let ne=(G>0?this.breakOffsets[G-1]:0)+Z;return G>0&&(ne-=this.wrappedTextIndentLength),ne}normalizeOffsetAroundInjections(G,Z){const ne=this.getInjectedTextAtOffset(G);if(!ne)return G;if(2===Z)return G===ne.offsetInUnwrappedLine+ne.length?ne.offsetInUnwrappedLine+ne.length:ne.offsetInUnwrappedLine;if(1===Z){let G=ne.offsetInUnwrappedLine+ne.length,Z=ne.injectedTextIndex;for(;Z+1=0&&this.injectionOffsets[se-1]===this.injectionOffsets[se];)ie-=this.injectionOptions[se-1].content.length,se++;return ie}getInjectedText(G,Z){const ne=this.outputPositionToOffsetInUnwrappedLine(G,Z),ie=this.getInjectedTextAtOffset(ne);return ie?{options:this.injectionOptions[ie.injectedTextIndex]}:null}getInjectedTextAtOffset(G){const Z=this.injectionOffsets,ne=this.injectionOptions;if(null!==Z){let ie=0;for(let se=0;seG)break;if(G<=me)return{injectedTextIndex:se,offsetInUnwrappedLine:fe,length:ce};ie+=ce}}}}class MinimapLinesRenderingData{constructor(G,Z){this.tabSize=G,this.data=Z}}class ViewLineData{constructor(G,Z,ne,ie,se,ce,fe){this._viewLineDataBrand=void 0,this.content=G,this.continuesWithWrappedLine=Z,this.minColumn=ne,this.maxColumn=ie,this.startVisibleColumn=se,this.tokens=ce,this.inlineDecorations=fe}}class ViewLineRenderingData{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce){this.minColumn=G,this.maxColumn=Z,this.content=ne,this.continuesWithWrappedLine=ie,this.isBasicASCII=ViewLineRenderingData.isBasicASCII(ne,ce),this.containsRTL=ViewLineRenderingData.containsRTL(ne,this.isBasicASCII,se),this.tokens=fe,this.inlineDecorations=me,this.tabSize=ge,this.startVisibleColumn=Ce}static isBasicASCII(G,Z){return!Z||ie.B(G)}static containsRTL(G,Z,ne){return!(Z||!ne)&&ie.m(G)}}class InlineDecoration{constructor(G,Z,ne){this.range=G,this.inlineClassName=Z,this.type=ne}}class SingleLineInlineDecoration{constructor(G,Z,ne,ie){this.startOffset=G,this.endOffset=Z,this.inlineClassName=ne,this.inlineClassNameAffectsLetterSpacing=ie}toInlineDecoration(G){return new InlineDecoration(new ce.a(G,this.startOffset+1,G,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class ViewModelDecoration{constructor(G,Z){this._viewModelDecorationBrand=void 0,this.range=G,this.options=Z}}},221:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return EditOperation}));var ie=ne(12);class EditOperation{static insert(G,Z){return{range:new ie.a(G.lineNumber,G.column,G.lineNumber,G.column),text:Z,forceMoveMarkers:!0}}static delete(G){return{range:G,text:null}}static replace(G,Z){return{range:G,text:Z}}static replaceMove(G,Z){return{range:G,text:Z,forceMoveMarkers:!0}}}},222:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return ie})),ne.d(Z,"a",(function(){return se})),ne.d(Z,"b",(function(){return ge}));var ie,se,ce=ne(60),fe=ne(4),me=ne(235);!function(G){G[G.Hint=1]="Hint",G[G.Info=2]="Info",G[G.Warning=4]="Warning",G[G.Error=8]="Error"}(ie||(ie={})),function(G){G.compare=function compare(G,Z){return Z-G};const Z=Object.create(null);Z[G.Error]=Object(fe.a)("sev.error","Error"),Z[G.Warning]=Object(fe.a)("sev.warning","Warning"),Z[G.Info]=Object(fe.a)("sev.info","Info"),G.toString=function toString(G){return Z[G]||""},G.fromSeverity=function fromSeverity(Z){switch(Z){case me.a.Error:return G.Error;case me.a.Warning:return G.Warning;case me.a.Info:return G.Info;case me.a.Ignore:return G.Hint}},G.toSeverity=function toSeverity(Z){switch(Z){case G.Error:return me.a.Error;case G.Warning:return me.a.Warning;case G.Info:return me.a.Info;case G.Hint:return me.a.Ignore}}}(ie||(ie={})),function(G){function makeKeyOptionalMessage(G,Z){let ne=[""];return G.source?ne.push(G.source.replace("¦","\\¦")):ne.push(""),G.code?"string"==typeof G.code?ne.push(G.code.replace("¦","\\¦")):ne.push(G.code.value.replace("¦","\\¦")):ne.push(""),void 0!==G.severity&&null!==G.severity?ne.push(ie.toString(G.severity)):ne.push(""),G.message&&Z?ne.push(G.message.replace("¦","\\¦")):ne.push(""),void 0!==G.startLineNumber&&null!==G.startLineNumber?ne.push(G.startLineNumber.toString()):ne.push(""),void 0!==G.startColumn&&null!==G.startColumn?ne.push(G.startColumn.toString()):ne.push(""),void 0!==G.endLineNumber&&null!==G.endLineNumber?ne.push(G.endLineNumber.toString()):ne.push(""),void 0!==G.endColumn&&null!==G.endColumn?ne.push(G.endColumn.toString()):ne.push(""),ne.push(""),ne.join("¦")}G.makeKey=function makeKey(G){return makeKeyOptionalMessage(G,!0)},G.makeKeyOptionalMessage=makeKeyOptionalMessage}(se||(se={}));const ge=Object(ce.c)("markerService")},223:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ReplaceCommand})),ne.d(Z,"c",(function(){return ReplaceCommandThatSelectsText})),ne.d(Z,"e",(function(){return ReplaceCommandWithoutChangingPosition})),ne.d(Z,"d",(function(){return ReplaceCommandWithOffsetCursorState})),ne.d(Z,"b",(function(){return ReplaceCommandThatPreservesSelection}));var ie=ne(80);class ReplaceCommand{constructor(G,Z,ne=!1){this._range=G,this._text=Z,this.insertsAutoWhitespace=ne}getEditOperations(G,Z){Z.addTrackedEditOperation(this._range,this._text)}computeCursorState(G,Z){let ne=Z.getInverseEditOperations()[0].range;return new ie.a(ne.endLineNumber,ne.endColumn,ne.endLineNumber,ne.endColumn)}}class ReplaceCommandThatSelectsText{constructor(G,Z){this._range=G,this._text=Z}getEditOperations(G,Z){Z.addTrackedEditOperation(this._range,this._text)}computeCursorState(G,Z){const ne=Z.getInverseEditOperations()[0].range;return new ie.a(ne.startLineNumber,ne.startColumn,ne.endLineNumber,ne.endColumn)}}class ReplaceCommandWithoutChangingPosition{constructor(G,Z,ne=!1){this._range=G,this._text=Z,this.insertsAutoWhitespace=ne}getEditOperations(G,Z){Z.addTrackedEditOperation(this._range,this._text)}computeCursorState(G,Z){let ne=Z.getInverseEditOperations()[0].range;return new ie.a(ne.startLineNumber,ne.startColumn,ne.startLineNumber,ne.startColumn)}}class ReplaceCommandWithOffsetCursorState{constructor(G,Z,ne,ie,se=!1){this._range=G,this._text=Z,this._columnDeltaOffset=ie,this._lineNumberDeltaOffset=ne,this.insertsAutoWhitespace=se}getEditOperations(G,Z){Z.addTrackedEditOperation(this._range,this._text)}computeCursorState(G,Z){let ne=Z.getInverseEditOperations()[0].range;return new ie.a(ne.endLineNumber+this._lineNumberDeltaOffset,ne.endColumn+this._columnDeltaOffset,ne.endLineNumber+this._lineNumberDeltaOffset,ne.endColumn+this._columnDeltaOffset)}}class ReplaceCommandThatPreservesSelection{constructor(G,Z,ne,ie=!1){this._range=G,this._text=Z,this._initialSelection=ne,this._forceMoveMarkers=ie,this._selectionId=null}getEditOperations(G,Z){Z.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=Z.trackSelection(this._initialSelection)}computeCursorState(G,Z){return Z.getTrackedSelection(this._selectionId)}}},224:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return dt})),ne.d(Z,"b",(function(){return ht})),ne.d(Z,"d",(function(){return getOuterEditor})),ne.d(Z,"c",(function(){return vt})),ne.d(Z,"p",(function(){return wt})),ne.d(Z,"q",(function(){return Ct})),ne.d(Z,"r",(function(){return St})),ne.d(Z,"e",(function(){return Mt})),ne.d(Z,"j",(function(){return kt})),ne.d(Z,"l",(function(){return xt})),ne.d(Z,"k",(function(){return Lt})),ne.d(Z,"n",(function(){return Tt})),ne.d(Z,"o",(function(){return At})),ne.d(Z,"f",(function(){return Dt})),ne.d(Z,"g",(function(){return Et})),ne.d(Z,"m",(function(){return jt})),ne.d(Z,"h",(function(){return It})),ne.d(Z,"i",(function(){return Nt}));ne(7516);var ie=ne(6),se=ne(535),ce=ne(196),fe=ne(44),me=ne(19),ge=ne(166),Ce=ne(127),Se=ne(903),Me=(ne(7553),ne(537)),ke=ne(995),xe=ne(10),De=ne(12),Ie=ne(117);const Re=new fe.a(new fe.c(0,122,204)),ze={showArrow:!0,showFrame:!0,className:"",frameColor:Re,arrowColor:Re,keepEditorSelection:!1};class ViewZoneDelegate{constructor(G,Z,ne,ie,se,ce){this.id="",this.domNode=G,this.afterLineNumber=Z,this.afterColumn=ne,this.heightInLines=ie,this._onDomNodeTop=se,this._onComputedHeight=ce}onDomNodeTop(G){this._onDomNodeTop(G)}onComputedHeight(G){this._onComputedHeight(G)}}class OverlayWidgetDelegate{constructor(G,Z){this._id=G,this._domNode=Z}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class zoneWidget_Arrow{constructor(G){this._editor=G,this._ruleName=zoneWidget_Arrow._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),ie.Q(this._ruleName)}set color(G){this._color!==G&&(this._color=G,this._updateStyle())}set height(G){this._height!==G&&(this._height=G,this._updateStyle())}_updateStyle(){ie.Q(this._ruleName),ie.v(".monaco-editor "+this._ruleName,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(G){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:De.a.fromPositions(G),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}zoneWidget_Arrow._IdGenerator=new ke.a(".arrow-decoration-");var $e=ne(4),Je=ne(26),it=ne(60),ot=ne(533),at=ne(14),st=ne(13),ct=ne(67),ut=ne(1354),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const dt=Object(it.c)("IPeekViewService");var ht,ft;Object(ot.b)(dt,class{constructor(){this._widgets=new Map}addExclusiveWidget(G,Z){const ne=this._widgets.get(G);ne&&(ne.listener.dispose(),ne.widget.dispose());this._widgets.set(G,{widget:Z,listener:Z.onDidClose(()=>{const ne=this._widgets.get(G);ne&&ne.widget===Z&&(ne.listener.dispose(),this._widgets.delete(G))})})}}),(ft=ht||(ht={})).inPeekEditor=new Je.c("inReferenceSearchEditor",!0,$e.a("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),ft.notInPeekEditor=ft.inPeekEditor.toNegated();let _t=class PeekContextController{constructor(G,Z){G instanceof Se.a&&ht.inPeekEditor.bindTo(Z)}dispose(){}};function getOuterEditor(G){let Z=G.get(Ce.a).getFocusedCodeEditor();return Z instanceof Se.a?Z.getParentEditor():Z}_t.ID="editor.contrib.referenceController",_t=__decorate([__param(1,Je.b)],_t),Object(at.l)(_t.ID,_t);const yt={headerBackgroundColor:fe.a.white,primaryHeadingColor:fe.a.fromHex("#333333"),secondaryHeadingColor:fe.a.fromHex("#6c6c6cb3")};let vt=class PeekViewWidget extends class zoneWidget_ZoneWidget{constructor(G,Z={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new xe.b,this.container=null,this._isShowing=!1,this.editor=G,this.options=ge.b(Z),ge.f(this.options,ze,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(G=>{const Z=this._getWidth(G);this.domNode.style.width=Z+"px",this.domNode.style.left=this._getLeft(G)+"px",this._onWidth(Z)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(G=>{this._viewZone&&G.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new zoneWidget_Arrow(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(G){G.frameColor&&(this.options.frameColor=G.frameColor),G.arrowColor&&(this.options.arrowColor=G.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let G=this.options.frameColor.toString();this.container.style.borderTopColor=G,this.container.style.borderBottomColor=G}if(this._arrow&&this.options.arrowColor){let G=this.options.arrowColor.toString();this._arrow.color=G}}_getWidth(G){return G.width-G.minimap.minimapWidth-G.verticalScrollbarWidth}_getLeft(G){return G.minimap.minimapWidth>0&&0===G.minimap.minimapLeft?G.minimap.minimapWidth:0}_onViewZoneTop(G){this.domNode.style.top=G+"px"}_onViewZoneHeight(G){if(this.domNode.style.height=G+"px",this.container){let Z=G-this._decoratingElementsHeight();this.container.style.height=Z+"px";const ne=this.editor.getLayoutInfo();this._doLayout(Z,this._getWidth(ne))}this._resizeSash&&this._resizeSash.layout()}get position(){const[G]=this._positionMarkerId;if(!G)return;const Z=this.editor.getModel();if(!Z)return;const ne=Z.getDecorationRange(G);return ne?ne.getStartPosition():void 0}show(G,Z){const ne=De.a.isIRange(G)?De.a.lift(G):De.a.fromPositions(G);this._isShowing=!0,this._showImpl(ne,Z),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:ne,options:Ie.a.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(G=>{this._viewZone&&G.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let G=this.editor.getOption(57),Z=0;if(this.options.showArrow){Z+=2*Math.round(G/3)}if(this.options.showFrame){Z+=2*Math.round(G/9)}return Z}_showImpl(G,Z){const ne=G.getStartPosition(),ie=this.editor.getLayoutInfo(),se=this._getWidth(ie);this.domNode.style.width=se+"px",this.domNode.style.left=this._getLeft(ie)+"px";const ce=document.createElement("div");ce.style.overflow="hidden";const fe=this.editor.getOption(57),me=Math.max(12,this.editor.getLayoutInfo().height/fe*.8);Z=Math.min(Z,me);let ge=0,Ce=0;if(this._arrow&&this.options.showArrow&&(ge=Math.round(fe/3),this._arrow.height=ge,this._arrow.show(ne)),this.options.showFrame&&(Ce=Math.round(fe/9)),this.editor.changeViewZones(G=>{this._viewZone&&G.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new ViewZoneDelegate(ce,ne.lineNumber,ne.column,Z,G=>this._onViewZoneTop(G),G=>this._onViewZoneHeight(G)),this._viewZone.id=G.addZone(this._viewZone),this._overlayWidget=new OverlayWidgetDelegate("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const G=this.options.frameWidth?this.options.frameWidth:Ce;this.container.style.borderTopWidth=G+"px",this.container.style.borderBottomWidth=G+"px"}let Se=Z*fe-this._decoratingElementsHeight();this.container&&(this.container.style.top=ge+"px",this.container.style.height=Se+"px",this.container.style.overflow="hidden"),this._doLayout(Se,se),this.options.keepEditorSelection||this.editor.setSelection(G);const Me=this.editor.getModel();if(Me){const Z=G.endLineNumber+1;Z<=Me.getLineCount()?this.revealLine(Z,!1):this.revealLine(Me.getLineCount(),!0)}}revealLine(G,Z){Z?this.editor.revealLineInCenter(G,0):this.editor.revealLine(G,0)}setCssClass(G,Z){this.container&&(Z&&this.container.classList.remove(Z),this.container.classList.add(G))}_onWidth(G){}_doLayout(G,Z){}_relayout(G){this._viewZone&&this._viewZone.heightInLines!==G&&this.editor.changeViewZones(Z=>{this._viewZone&&(this._viewZone.heightInLines=G,Z.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;let G;this._resizeSash=this._disposables.add(new Me.b(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(Z=>{this._viewZone&&(G={startY:Z.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{G=void 0})),this._disposables.add(this._resizeSash.onDidChange(Z=>{if(G){let ne=(Z.currentY-G.startY)/this.editor.getOption(57),ie=ne<0?Math.ceil(ne):Math.floor(ne),se=G.heightInLines+ie;se>5&&se<35&&this._relayout(se)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const G=this.editor.getLayoutInfo();return G.width-G.minimap.minimapWidth}}{constructor(G,Z,ne){super(G,Z),this.instantiationService=ne,this._onDidClose=new me.b,this.onDidClose=this._onDidClose.event,ge.f(this.options,yt,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(G){let Z=this.options;G.headerBackgroundColor&&(Z.headerBackgroundColor=G.headerBackgroundColor),G.primaryHeadingColor&&(Z.primaryHeadingColor=G.primaryHeadingColor),G.secondaryHeadingColor&&(Z.secondaryHeadingColor=G.secondaryHeadingColor),super.style(G)}_applyStyles(){super._applyStyles();let G=this.options;this._headElement&&G.headerBackgroundColor&&(this._headElement.style.backgroundColor=G.headerBackgroundColor.toString()),this._primaryHeading&&G.primaryHeadingColor&&(this._primaryHeading.style.color=G.primaryHeadingColor.toString()),this._secondaryHeading&&G.secondaryHeadingColor&&(this._secondaryHeading.style.color=G.secondaryHeadingColor.toString()),this._bodyElement&&G.frameColor&&(this._bodyElement.style.borderColor=G.frameColor.toString())}_fillContainer(G){this.setCssClass("peekview-widget"),this._headElement=ie.a(".head"),this._bodyElement=ie.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),G.appendChild(this._headElement),G.appendChild(this._bodyElement)}_fillHead(G,Z){const ne=ie.a(".peekview-title");ie.q(this._headElement,ne),ie.o(ne,"click",G=>this._onTitleClick(G)),this._fillTitleIcon(ne),this._primaryHeading=ie.a("span.filename"),this._secondaryHeading=ie.a("span.dirname"),this._metaHeading=ie.a("span.meta"),ie.q(ne,this._primaryHeading,this._secondaryHeading,this._metaHeading);const fe=ie.a(".peekview-actions");ie.q(this._headElement,fe);const me=this._getActionBarOptions();this._actionbarWidget=new se.a(fe,me),this._disposables.add(this._actionbarWidget),Z||this._actionbarWidget.push(new ce.a("peekview.close",$e.a("label.close","Close"),ct.b.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(G){}_getActionBarOptions(){return{actionViewItemProvider:ut.b.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(G){}setTitle(G,Z){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=G,this._primaryHeading.setAttribute("title",G),Z?this._secondaryHeading.innerText=Z:ie.t(this._secondaryHeading))}setMetaTitle(G){this._metaHeading&&(G?(this._metaHeading.innerText=G,ie.W(this._metaHeading)):ie.K(this._metaHeading))}_doLayout(G,Z){if(!this._isShowing&&G<0)return void this.dispose();const ne=Math.ceil(1.2*this.editor.getOption(57)),ie=Math.round(G-(ne+2));this._doLayoutHead(ne,Z),this._doLayoutBody(ie,Z)}_doLayoutHead(G,Z){this._headElement&&(this._headElement.style.height=G+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(G,Z){this._bodyElement&&(this._bodyElement.style.height=G+"px")}};vt=__decorate([__param(2,it.a)],vt);const wt=Object(st.wc)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},$e.a("peekViewTitleBackground","Background color of the peek view title area.")),Ct=Object(st.wc)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},$e.a("peekViewTitleForeground","Color of the peek view title.")),St=Object(st.wc)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},$e.a("peekViewTitleInfoForeground","Color of the peek view title info.")),Mt=Object(st.wc)("peekView.border",{dark:"#007acc",light:"#007acc",hc:st.h},$e.a("peekViewBorder","Color of the peek view borders and arrow.")),kt=Object(st.wc)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:fe.a.black},$e.a("peekViewResultsBackground","Background color of the peek view result list.")),xt=Object(st.wc)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:fe.a.white},$e.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Lt=Object(st.wc)("peekViewResult.fileForeground",{dark:fe.a.white,light:"#1E1E1E",hc:fe.a.white},$e.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Tt=Object(st.wc)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},$e.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),At=Object(st.wc)("peekViewResult.selectionForeground",{dark:fe.a.white,light:"#6C6C6C",hc:fe.a.white},$e.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Dt=Object(st.wc)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:fe.a.black},$e.a("peekViewEditorBackground","Background color of the peek view editor.")),Et=Object(st.wc)("peekViewEditorGutter.background",{dark:Dt,light:Dt,hc:Dt},$e.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),jt=Object(st.wc)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},$e.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),It=Object(st.wc)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},$e.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Nt=Object(st.wc)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:st.b},$e.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},23:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie,se=ne(4),ce=ne(26);!function(G){G.editorSimpleInput=new ce.c("editorSimpleInput",!1,!0),G.editorTextFocus=new ce.c("editorTextFocus",!1,se.a("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),G.focus=new ce.c("editorFocus",!1,se.a("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),G.textInputFocus=new ce.c("textInputFocus",!1,se.a("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),G.readOnly=new ce.c("editorReadonly",!1,se.a("editorReadonly","Whether the editor is read only")),G.inDiffEditor=new ce.c("inDiffEditor",!1,se.a("inDiffEditor","Whether the context is a diff editor")),G.columnSelection=new ce.c("editorColumnSelection",!1,se.a("editorColumnSelection","Whether `editor.columnSelection` is enabled")),G.writable=G.readOnly.toNegated(),G.hasNonEmptySelection=new ce.c("editorHasSelection",!1,se.a("editorHasSelection","Whether the editor has text selected")),G.hasOnlyEmptySelection=G.hasNonEmptySelection.toNegated(),G.hasMultipleSelections=new ce.c("editorHasMultipleSelections",!1,se.a("editorHasMultipleSelections","Whether the editor has multiple selections")),G.hasSingleSelection=G.hasMultipleSelections.toNegated(),G.tabMovesFocus=new ce.c("editorTabMovesFocus",!1,se.a("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),G.tabDoesNotMoveFocus=G.tabMovesFocus.toNegated(),G.isInWalkThroughSnippet=new ce.c("isInEmbeddedEditor",!1,!0),G.canUndo=new ce.c("canUndo",!1,!0),G.canRedo=new ce.c("canRedo",!1,!0),G.hoverVisible=new ce.c("editorHoverVisible",!1,se.a("editorHoverVisible","Whether the editor hover is visible")),G.inCompositeEditor=new ce.c("inCompositeEditor",void 0,se.a("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),G.notInCompositeEditor=G.inCompositeEditor.toNegated(),G.languageId=new ce.c("editorLangId","",se.a("editorLangId","The language identifier of the editor")),G.hasCompletionItemProvider=new ce.c("editorHasCompletionItemProvider",!1,se.a("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),G.hasCodeActionsProvider=new ce.c("editorHasCodeActionsProvider",!1,se.a("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),G.hasCodeLensProvider=new ce.c("editorHasCodeLensProvider",!1,se.a("editorHasCodeLensProvider","Whether the editor has a code lens provider")),G.hasDefinitionProvider=new ce.c("editorHasDefinitionProvider",!1,se.a("editorHasDefinitionProvider","Whether the editor has a definition provider")),G.hasDeclarationProvider=new ce.c("editorHasDeclarationProvider",!1,se.a("editorHasDeclarationProvider","Whether the editor has a declaration provider")),G.hasImplementationProvider=new ce.c("editorHasImplementationProvider",!1,se.a("editorHasImplementationProvider","Whether the editor has an implementation provider")),G.hasTypeDefinitionProvider=new ce.c("editorHasTypeDefinitionProvider",!1,se.a("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),G.hasHoverProvider=new ce.c("editorHasHoverProvider",!1,se.a("editorHasHoverProvider","Whether the editor has a hover provider")),G.hasDocumentHighlightProvider=new ce.c("editorHasDocumentHighlightProvider",!1,se.a("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),G.hasDocumentSymbolProvider=new ce.c("editorHasDocumentSymbolProvider",!1,se.a("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),G.hasReferenceProvider=new ce.c("editorHasReferenceProvider",!1,se.a("editorHasReferenceProvider","Whether the editor has a reference provider")),G.hasRenameProvider=new ce.c("editorHasRenameProvider",!1,se.a("editorHasRenameProvider","Whether the editor has a rename provider")),G.hasSignatureHelpProvider=new ce.c("editorHasSignatureHelpProvider",!1,se.a("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),G.hasInlayHintsProvider=new ce.c("editorHasInlayHintsProvider",!1,se.a("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),G.hasDocumentFormattingProvider=new ce.c("editorHasDocumentFormattingProvider",!1,se.a("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),G.hasDocumentSelectionFormattingProvider=new ce.c("editorHasDocumentSelectionFormattingProvider",!1,se.a("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),G.hasMultipleDocumentFormattingProvider=new ce.c("editorHasMultipleDocumentFormattingProvider",!1,se.a("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),G.hasMultipleDocumentSelectionFormattingProvider=new ce.c("editorHasMultipleDocumentSelectionFormattingProvider",!1,se.a("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(ie||(ie={}))},233:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.or=Z.and=Z.not=Z.CodeGen=Z.operators=Z.varKinds=Z.ValueScopeName=Z.ValueScope=Z.Scope=Z.Name=Z.regexpCode=Z.stringify=Z.getProperty=Z.nil=Z.strConcat=Z.str=Z._=void 0;const ie=ne(2028),se=ne(4154);var ce=ne(2028);Object.defineProperty(Z,"_",{enumerable:!0,get:function(){return ce._}}),Object.defineProperty(Z,"str",{enumerable:!0,get:function(){return ce.str}}),Object.defineProperty(Z,"strConcat",{enumerable:!0,get:function(){return ce.strConcat}}),Object.defineProperty(Z,"nil",{enumerable:!0,get:function(){return ce.nil}}),Object.defineProperty(Z,"getProperty",{enumerable:!0,get:function(){return ce.getProperty}}),Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return ce.stringify}}),Object.defineProperty(Z,"regexpCode",{enumerable:!0,get:function(){return ce.regexpCode}}),Object.defineProperty(Z,"Name",{enumerable:!0,get:function(){return ce.Name}});var fe=ne(4154);Object.defineProperty(Z,"Scope",{enumerable:!0,get:function(){return fe.Scope}}),Object.defineProperty(Z,"ValueScope",{enumerable:!0,get:function(){return fe.ValueScope}}),Object.defineProperty(Z,"ValueScopeName",{enumerable:!0,get:function(){return fe.ValueScopeName}}),Object.defineProperty(Z,"varKinds",{enumerable:!0,get:function(){return fe.varKinds}}),Z.operators={GT:new ie._Code(">"),GTE:new ie._Code(">="),LT:new ie._Code("<"),LTE:new ie._Code("<="),EQ:new ie._Code("==="),NEQ:new ie._Code("!=="),NOT:new ie._Code("!"),OR:new ie._Code("||"),AND:new ie._Code("&&"),ADD:new ie._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(G,Z){return this}}class Def extends Node{constructor(G,Z,ne){super(),this.varKind=G,this.name=Z,this.rhs=ne}render({es5:G,_n:Z}){const ne=G?se.varKinds.var:this.varKind,ie=void 0===this.rhs?"":" = "+this.rhs;return`${ne} ${this.name}${ie};`+Z}optimizeNames(G,Z){if(G[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,G,Z)),this}get names(){return this.rhs instanceof ie._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(G,Z,ne){super(),this.lhs=G,this.rhs=Z,this.sideEffects=ne}render({_n:G}){return`${this.lhs} = ${this.rhs};`+G}optimizeNames(G,Z){if(!(this.lhs instanceof ie.Name)||G[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,G,Z),this}get names(){return addExprNames(this.lhs instanceof ie.Name?{}:{...this.lhs.names},this.rhs)}}class AssignOp extends Assign{constructor(G,Z,ne,ie){super(G,ne,ie),this.op=Z}render({_n:G}){return`${this.lhs} ${this.op}= ${this.rhs};`+G}}class Label extends Node{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return this.label+":"+G}}class Break extends Node{constructor(G){super(),this.label=G,this.names={}}render({_n:G}){return`break${this.label?" "+this.label:""};`+G}}class Throw extends Node{constructor(G){super(),this.error=G}render({_n:G}){return`throw ${this.error};`+G}get names(){return this.error.names}}class AnyCode extends Node{constructor(G){super(),this.code=G}render({_n:G}){return this.code+";"+G}optimizeNodes(){return""+this.code?this:void 0}optimizeNames(G,Z){return this.code=optimizeExpr(this.code,G,Z),this}get names(){return this.code instanceof ie._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(G=[]){super(),this.nodes=G}render(G){return this.nodes.reduce((Z,ne)=>Z+ne.render(G),"")}optimizeNodes(){const{nodes:G}=this;let Z=G.length;for(;Z--;){const ne=G[Z].optimizeNodes();Array.isArray(ne)?G.splice(Z,1,...ne):ne?G[Z]=ne:G.splice(Z,1)}return G.length>0?this:void 0}optimizeNames(G,Z){const{nodes:ne}=this;let ie=ne.length;for(;ie--;){const se=ne[ie];se.optimizeNames(G,Z)||(subtractNames(G,se.names),ne.splice(ie,1))}return ne.length>0?this:void 0}get names(){return this.nodes.reduce((G,Z)=>addNames(G,Z.names),{})}}class BlockNode extends ParentNode{render(G){return"{"+G._n+super.render(G)+"}"+G._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(G,Z){super(Z),this.condition=G}render(G){let Z=`if(${this.condition})`+super.render(G);return this.else&&(Z+="else "+this.else.render(G)),Z}optimizeNodes(){super.optimizeNodes();const G=this.condition;if(!0===G)return this.nodes;let Z=this.else;if(Z){const G=Z.optimizeNodes();Z=this.else=Array.isArray(G)?new Else(G):G}return Z?!1===G?Z instanceof If?Z:Z.nodes:this.nodes.length?this:new If(not(G),Z instanceof If?[Z]:Z.nodes):!1!==G&&this.nodes.length?this:void 0}optimizeNames(G,Z){var ne;if(this.else=null===(ne=this.else)||void 0===ne?void 0:ne.optimizeNames(G,Z),super.optimizeNames(G,Z)||this.else)return this.condition=optimizeExpr(this.condition,G,Z),this}get names(){const G=super.names;return addExprNames(G,this.condition),this.else&&addNames(G,this.else.names),G}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(G){super(),this.iteration=G}render(G){return`for(${this.iteration})`+super.render(G)}optimizeNames(G,Z){if(super.optimizeNames(G,Z))return this.iteration=optimizeExpr(this.iteration,G,Z),this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(G,Z,ne,ie){super(),this.varKind=G,this.name=Z,this.from=ne,this.to=ie}render(G){const Z=G.es5?se.varKinds.var:this.varKind,{name:ne,from:ie,to:ce}=this;return`for(${Z} ${ne}=${ie}; ${ne}<${ce}; ${ne}++)`+super.render(G)}get names(){const G=addExprNames(super.names,this.from);return addExprNames(G,this.to)}}class ForIter extends For{constructor(G,Z,ne,ie){super(),this.loop=G,this.varKind=Z,this.name=ne,this.iterable=ie}render(G){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(G)}optimizeNames(G,Z){if(super.optimizeNames(G,Z))return this.iterable=optimizeExpr(this.iterable,G,Z),this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(G,Z,ne){super(),this.name=G,this.args=Z,this.async=ne}render(G){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(G)}}Func.kind="func";class Return extends ParentNode{render(G){return"return "+super.render(G)}}Return.kind="return";class Try extends BlockNode{render(G){let Z="try"+super.render(G);return this.catch&&(Z+=this.catch.render(G)),this.finally&&(Z+=this.finally.render(G)),Z}optimizeNodes(){var G,Z;return super.optimizeNodes(),null===(G=this.catch)||void 0===G||G.optimizeNodes(),null===(Z=this.finally)||void 0===Z||Z.optimizeNodes(),this}optimizeNames(G,Z){var ne,ie;return super.optimizeNames(G,Z),null===(ne=this.catch)||void 0===ne||ne.optimizeNames(G,Z),null===(ie=this.finally)||void 0===ie||ie.optimizeNames(G,Z),this}get names(){const G=super.names;return this.catch&&addNames(G,this.catch.names),this.finally&&addNames(G,this.finally.names),G}}class Catch extends BlockNode{constructor(G){super(),this.error=G}render(G){return`catch(${this.error})`+super.render(G)}}Catch.kind="catch";class Finally extends BlockNode{render(G){return"finally"+super.render(G)}}Finally.kind="finally";function addNames(G,Z){for(const ne in Z)G[ne]=(G[ne]||0)+(Z[ne]||0);return G}function addExprNames(G,Z){return Z instanceof ie._CodeOrName?addNames(G,Z.names):G}function optimizeExpr(G,Z,ne){return G instanceof ie.Name?replaceName(G):function canOptimize(G){return G instanceof ie._Code&&G._items.some(G=>G instanceof ie.Name&&1===Z[G.str]&&void 0!==ne[G.str])}(G)?new ie._Code(G._items.reduce((G,Z)=>(Z instanceof ie.Name&&(Z=replaceName(Z)),Z instanceof ie._Code?G.push(...Z._items):G.push(Z),G),[])):G;function replaceName(G){const ie=ne[G.str];return void 0===ie||1!==Z[G.str]?G:(delete Z[G.str],ie)}}function subtractNames(G,Z){for(const ne in Z)G[ne]=(G[ne]||0)-(Z[ne]||0)}function not(G){return"boolean"==typeof G||"number"==typeof G||null===G?!G:ie._`!${par(G)}`}Z.CodeGen=class CodeGen{constructor(G,Z={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Z,_n:Z.lines?"\n":""},this._extScope=G,this._scope=new se.Scope({parent:G}),this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(G){return this._scope.name(G)}scopeName(G){return this._extScope.name(G)}scopeValue(G,Z){const ne=this._extScope.value(G,Z);return(this._values[ne.prefix]||(this._values[ne.prefix]=new Set)).add(ne),ne}getScopeValue(G,Z){return this._extScope.getValue(G,Z)}scopeRefs(G){return this._extScope.scopeRefs(G,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(G,Z,ne,ie){const se=this._scope.toName(Z);return void 0!==ne&&ie&&(this._constants[se.str]=ne),this._leafNode(new Def(G,se,ne)),se}const(G,Z,ne){return this._def(se.varKinds.const,G,Z,ne)}let(G,Z,ne){return this._def(se.varKinds.let,G,Z,ne)}var(G,Z,ne){return this._def(se.varKinds.var,G,Z,ne)}assign(G,Z,ne){return this._leafNode(new Assign(G,Z,ne))}add(G,ne){return this._leafNode(new AssignOp(G,Z.operators.ADD,ne))}code(G){return"function"==typeof G?G():G!==ie.nil&&this._leafNode(new AnyCode(G)),this}object(...G){const Z=["{"];for(const[ne,se]of G)Z.length>1&&Z.push(","),Z.push(ne),(ne!==se||this.opts.es5)&&(Z.push(":"),(0,ie.addCodeArg)(Z,se));return Z.push("}"),new ie._Code(Z)}if(G,Z,ne){if(this._blockNode(new If(G)),Z&&ne)this.code(Z).else().code(ne).endIf();else if(Z)this.code(Z).endIf();else if(ne)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(G){return this._elseNode(new If(G))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(G,Z){return this._blockNode(G),Z&&this.code(Z).endFor(),this}for(G,Z){return this._for(new ForLoop(G),Z)}forRange(G,Z,ne,ie,ce=(this.opts.es5?se.varKinds.var:se.varKinds.let)){const fe=this._scope.toName(G);return this._for(new ForRange(ce,fe,Z,ne),()=>ie(fe))}forOf(G,Z,ne,ce=se.varKinds.const){const fe=this._scope.toName(G);if(this.opts.es5){const G=Z instanceof ie.Name?Z:this.var("_arr",Z);return this.forRange("_i",0,ie._`${G}.length`,Z=>{this.var(fe,ie._`${G}[${Z}]`),ne(fe)})}return this._for(new ForIter("of",ce,fe,Z),()=>ne(fe))}forIn(G,Z,ne,ce=(this.opts.es5?se.varKinds.var:se.varKinds.const)){if(this.opts.ownProperties)return this.forOf(G,ie._`Object.keys(${Z})`,ne);const fe=this._scope.toName(G);return this._for(new ForIter("in",ce,fe,Z),()=>ne(fe))}endFor(){return this._endBlockNode(For)}label(G){return this._leafNode(new Label(G))}break(G){return this._leafNode(new Break(G))}return(G){const Z=new Return;if(this._blockNode(Z),this.code(G),1!==Z.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(G,Z,ne){if(!Z&&!ne)throw new Error('CodeGen: "try" without "catch" and "finally"');const ie=new Try;if(this._blockNode(ie),this.code(G),Z){const G=this.name("e");this._currNode=ie.catch=new Catch(G),Z(G)}return ne&&(this._currNode=ie.finally=new Finally,this.code(ne)),this._endBlockNode(Catch,Finally)}throw(G){return this._leafNode(new Throw(G))}block(G,Z){return this._blockStarts.push(this._nodes.length),G&&this.code(G).endBlock(Z),this}endBlock(G){const Z=this._blockStarts.pop();if(void 0===Z)throw new Error("CodeGen: not in self-balancing block");const ne=this._nodes.length-Z;if(ne<0||void 0!==G&&ne!==G)throw new Error(`CodeGen: wrong number of nodes: ${ne} vs ${G} expected`);return this._nodes.length=Z,this}func(G,Z=ie.nil,ne,se){return this._blockNode(new Func(G,Z,ne)),se&&this.code(se).endFunc(),this}endFunc(){return this._endBlockNode(Func)}optimize(G=1){for(;G-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(G){return this._currNode.nodes.push(G),this}_blockNode(G){this._currNode.nodes.push(G),this._nodes.push(G)}_endBlockNode(G,Z){const ne=this._currNode;if(ne instanceof G||Z&&ne instanceof Z)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Z?`${G.kind}/${Z.kind}`:G.kind}"`)}_elseNode(G){const Z=this._currNode;if(!(Z instanceof If))throw new Error('CodeGen: "else" without "if"');return this._currNode=Z.else=G,this}get _root(){return this._nodes[0]}get _currNode(){const G=this._nodes;return G[G.length-1]}set _currNode(G){const Z=this._nodes;Z[Z.length-1]=G}},Z.not=not;const me=mappend(Z.operators.AND);Z.and=function and(...G){return G.reduce(me)};const ge=mappend(Z.operators.OR);function mappend(G){return(Z,ne)=>Z===ie.nil?ne:ne===ie.nil?Z:ie._`${par(Z)} ${G} ${par(ne)}`}function par(G){return G instanceof ie.Name?G:ie._`(${G})`}Z.or=function or(...G){return G.reduce(ge)}},234:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return TernarySearchTree})),ne.d(Z,"b",(function(){return ResourceMap})),ne.d(Z,"a",(function(){return LRUCache}));var ie,se,ce=ne(94),fe=ne(27);class StringIterator{constructor(){this._value="",this._pos=0}reset(G){return this._value=G,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos!1)){return new TernarySearchTree(new UriIterator(G))}static forStrings(){return new TernarySearchTree(new StringIterator)}static forConfigKeys(){return new TernarySearchTree(new ConfigKeysIterator)}clear(){this._root=void 0}set(G,Z){const ne=this._iter.reset(G);let ie;for(this._root||(this._root=new TernarySearchTreeNode,this._root.segment=ne.value()),ie=this._root;;){const G=ne.cmp(ie.segment);if(G>0)ie.left||(ie.left=new TernarySearchTreeNode,ie.left.segment=ne.value()),ie=ie.left;else if(G<0)ie.right||(ie.right=new TernarySearchTreeNode,ie.right.segment=ne.value()),ie=ie.right;else{if(!ne.hasNext())break;ne.next(),ie.mid||(ie.mid=new TernarySearchTreeNode,ie.mid.segment=ne.value()),ie=ie.mid}}const se=ie.value;return ie.value=Z,ie.key=G,se}get(G){var Z;return null===(Z=this._getNode(G))||void 0===Z?void 0:Z.value}_getNode(G){const Z=this._iter.reset(G);let ne=this._root;for(;ne;){const G=Z.cmp(ne.segment);if(G>0)ne=ne.left;else if(G<0)ne=ne.right;else{if(!Z.hasNext())break;Z.next(),ne=ne.mid}}return ne}has(G){const Z=this._getNode(G);return!(void 0===(null==Z?void 0:Z.value)&&void 0===(null==Z?void 0:Z.mid))}delete(G){return this._delete(G,!1)}deleteSuperstr(G){return this._delete(G,!0)}_delete(G,Z){const ne=this._iter.reset(G),ie=[];let se=this._root;for(;se;){const G=ne.cmp(se.segment);if(G>0)ie.push([1,se]),se=se.left;else if(G<0)ie.push([-1,se]),se=se.right;else{if(!ne.hasNext()){for(Z?(se.left=void 0,se.mid=void 0,se.right=void 0):se.value=void 0;ie.length>0&&se.isEmpty();){let[G,Z]=ie.pop();switch(G){case 1:Z.left=void 0;break;case 0:Z.mid=void 0;break;case-1:Z.right=void 0}se=Z}break}ne.next(),ie.push([0,se]),se=se.mid}}}findSubstr(G){const Z=this._iter.reset(G);let ne=this._root,ie=void 0;for(;ne;){const G=Z.cmp(ne.segment);if(G>0)ne=ne.left;else if(G<0)ne=ne.right;else{if(!Z.hasNext())break;Z.next(),ie=ne.value||ie,ne=ne.mid}}return ne&&ne.value||ie}findSuperstr(G){const Z=this._iter.reset(G);let ne=this._root;for(;ne;){const G=Z.cmp(ne.segment);if(G>0)ne=ne.left;else if(G<0)ne=ne.right;else{if(!Z.hasNext())return ne.mid?this._entries(ne.mid):void 0;Z.next(),ne=ne.mid}}}forEach(G){for(const[Z,ne]of this)G(ne,Z)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(G){if(!G)return;const Z=[G];for(;Z.length>0;){const G=Z.pop();G&&(G.value&&(yield[G.key,G.value]),G.left&&Z.push(G.left),G.mid&&Z.push(G.mid),G.right&&Z.push(G.right))}}}class ResourceMap{constructor(G,Z){this[ie]="ResourceMap",G instanceof ResourceMap?(this.map=new Map(G.map),this.toKey=null!=Z?Z:ResourceMap.defaultToKey):(this.map=new Map,this.toKey=null!=G?G:ResourceMap.defaultToKey)}set(G,Z){return this.map.set(this.toKey(G),Z),this}get(G){return this.map.get(this.toKey(G))}has(G){return this.map.has(this.toKey(G))}get size(){return this.map.size}clear(){this.map.clear()}delete(G){return this.map.delete(this.toKey(G))}forEach(G,Z){void 0!==Z&&(G=G.bind(Z));for(let[Z,ne]of this.map)G(ne,ce.a.parse(Z),this)}values(){return this.map.values()}*keys(){for(let G of this.map.keys())yield ce.a.parse(G)}*entries(){for(let G of this.map.entries())yield[ce.a.parse(G[0]),G[1]]}*[(ie=Symbol.toStringTag,Symbol.iterator)](){for(let G of this.map)yield[ce.a.parse(G[0]),G[1]]}}ResourceMap.defaultToKey=G=>G.toString();class LinkedMap{constructor(){this[se]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var G;return null===(G=this._head)||void 0===G?void 0:G.value}get last(){var G;return null===(G=this._tail)||void 0===G?void 0:G.value}has(G){return this._map.has(G)}get(G,Z=0){const ne=this._map.get(G);if(ne)return 0!==Z&&this.touch(ne,Z),ne.value}set(G,Z,ne=0){let ie=this._map.get(G);if(ie)ie.value=Z,0!==ne&&this.touch(ie,ne);else{switch(ie={key:G,value:Z,next:void 0,previous:void 0},ne){case 0:this.addItemLast(ie);break;case 1:this.addItemFirst(ie);break;case 2:default:this.addItemLast(ie)}this._map.set(G,ie),this._size++}return this}delete(G){return!!this.remove(G)}remove(G){const Z=this._map.get(G);if(Z)return this._map.delete(G),this.removeItem(Z),this._size--,Z.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const G=this._head;return this._map.delete(G.key),this.removeItem(G),this._size--,G.value}forEach(G,Z){const ne=this._state;let ie=this._head;for(;ie;){if(Z?G.bind(Z)(ie.value,ie.key,this):G(ie.value,ie.key,this),this._state!==ne)throw new Error("LinkedMap got modified during iteration.");ie=ie.next}}keys(){const G=this,Z=this._state;let ne=this._head;const ie={[Symbol.iterator]:()=>ie,next(){if(G._state!==Z)throw new Error("LinkedMap got modified during iteration.");if(ne){const G={value:ne.key,done:!1};return ne=ne.next,G}return{value:void 0,done:!0}}};return ie}values(){const G=this,Z=this._state;let ne=this._head;const ie={[Symbol.iterator]:()=>ie,next(){if(G._state!==Z)throw new Error("LinkedMap got modified during iteration.");if(ne){const G={value:ne.value,done:!1};return ne=ne.next,G}return{value:void 0,done:!0}}};return ie}entries(){const G=this,Z=this._state;let ne=this._head;const ie={[Symbol.iterator]:()=>ie,next(){if(G._state!==Z)throw new Error("LinkedMap got modified during iteration.");if(ne){const G={value:[ne.key,ne.value],done:!1};return ne=ne.next,G}return{value:void 0,done:!0}}};return ie}[(se=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(G){if(G>=this.size)return;if(0===G)return void this.clear();let Z=this._head,ne=this.size;for(;Z&&ne>G;)this._map.delete(Z.key),Z=Z.next,ne--;this._head=Z,this._size=ne,Z&&(Z.previous=void 0),this._state++}addItemFirst(G){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");G.next=this._head,this._head.previous=G}else this._tail=G;this._head=G,this._state++}addItemLast(G){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");G.previous=this._tail,this._tail.next=G}else this._head=G;this._tail=G,this._state++}removeItem(G){if(G===this._head&&G===this._tail)this._head=void 0,this._tail=void 0;else if(G===this._head){if(!G.next)throw new Error("Invalid list");G.next.previous=void 0,this._head=G.next}else if(G===this._tail){if(!G.previous)throw new Error("Invalid list");G.previous.next=void 0,this._tail=G.previous}else{const Z=G.next,ne=G.previous;if(!Z||!ne)throw new Error("Invalid list");Z.previous=ne,ne.next=Z}G.next=void 0,G.previous=void 0,this._state++}touch(G,Z){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===Z||2===Z)if(1===Z){if(G===this._head)return;const Z=G.next,ne=G.previous;G===this._tail?(ne.next=void 0,this._tail=ne):(Z.previous=ne,ne.next=Z),G.previous=void 0,G.next=this._head,this._head.previous=G,this._head=G,this._state++}else if(2===Z){if(G===this._tail)return;const Z=G.next,ne=G.previous;G===this._head?(Z.previous=void 0,this._head=Z):(Z.previous=ne,ne.next=Z),G.next=void 0,G.previous=this._tail,this._tail.next=G,this._tail=G,this._state++}}toJSON(){const G=[];return this.forEach((Z,ne)=>{G.push([ne,Z])}),G}fromJSON(G){this.clear();for(const[Z,ne]of G)this.set(Z,ne)}}class LRUCache extends LinkedMap{constructor(G,Z=1){super(),this._limit=G,this._ratio=Math.min(Math.max(0,Z),1)}get limit(){return this._limit}set limit(G){this._limit=G,this.checkTrim()}get(G,Z=2){return super.get(G,Z)}peek(G){return super.get(G,0)}set(G,Z){return super.set(G,Z,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},235:function(G,Z,ne){"use strict";var ie,se=ne(27);!function(G){G[G.Ignore=0]="Ignore",G[G.Info=1]="Info",G[G.Warning=2]="Warning",G[G.Error=3]="Error"}(ie||(ie={})),function(G){G.fromValue=function fromValue(Z){return Z?se.s("error",Z)?G.Error:se.s("warning",Z)||se.s("warn",Z)?G.Warning:se.s("info",Z)?G.Info:G.Ignore:G.Ignore},G.toString=function toString(Z){switch(Z){case G.Error:return"error";case G.Warning:return"warning";case G.Info:return"info";default:return"ignore"}}}(ie||(ie={})),Z.a=ie},240:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={getSettingsFromThemedProps:!0,getTheme:!0,mixins:!0,pick:!0,pickVariant:!0,SplunkThemeProvider:!0,useSplunkTheme:!0,withSplunkTheme:!0,variables:!0};Object.defineProperty(Z,"getSettingsFromThemedProps",{enumerable:!0,get:function get(){return se.default}}),Object.defineProperty(Z,"getTheme",{enumerable:!0,get:function get(){return ce.default}}),Object.defineProperty(Z,"mixins",{enumerable:!0,get:function get(){return fe.default}}),Object.defineProperty(Z,"pick",{enumerable:!0,get:function get(){return me.default}}),Object.defineProperty(Z,"pickVariant",{enumerable:!0,get:function get(){return ge.default}}),Object.defineProperty(Z,"SplunkThemeProvider",{enumerable:!0,get:function get(){return Ce.default}}),Object.defineProperty(Z,"useSplunkTheme",{enumerable:!0,get:function get(){return Se.default}}),Object.defineProperty(Z,"withSplunkTheme",{enumerable:!0,get:function get(){return Me.default}}),Object.defineProperty(Z,"variables",{enumerable:!0,get:function get(){return ke.default}});var se=_interopRequireDefault(ne(7314)),ce=_interopRequireDefault(ne(2853)),fe=_interopRequireDefault(ne(7322)),me=_interopRequireDefault(ne(2001)),ge=_interopRequireDefault(ne(7325)),Ce=_interopRequireDefault(ne(7326)),Se=_interopRequireDefault(ne(2856)),Me=_interopRequireDefault(ne(7327)),ke=_interopRequireDefault(ne(2855)),xe=ne(7328);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Object.keys(xe).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||Object.defineProperty(Z,G,{enumerable:!0,get:function get(){return xe[G]}}))}))},241:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return CodeActionKind})),ne.d(Z,"d",(function(){return mayIncludeActionsOfKind})),ne.d(Z,"c",(function(){return filtersAction})),ne.d(Z,"a",(function(){return CodeActionCommandArgs}));class CodeActionKind{constructor(G){this.value=G}equals(G){return this.value===G.value}contains(G){return this.equals(G)||""===this.value||G.value.startsWith(this.value+CodeActionKind.sep)}intersects(G){return this.contains(G)||G.contains(this)}append(G){return new CodeActionKind(this.value+CodeActionKind.sep+G)}}function mayIncludeActionsOfKind(G,Z){return!(G.include&&!G.include.intersects(Z))&&((!G.excludes||!G.excludes.some(ne=>excludesAction(Z,ne,G.include)))&&!(!G.includeSourceActions&&CodeActionKind.Source.contains(Z)))}function filtersAction(G,Z){const ne=Z.kind?new CodeActionKind(Z.kind):void 0;return!!(!G.include||ne&&G.include.contains(ne))&&(!(G.excludes&&ne&&G.excludes.some(Z=>excludesAction(ne,Z,G.include)))&&(!(!G.includeSourceActions&&ne&&CodeActionKind.Source.contains(ne))&&!(G.onlyIncludePreferredActions&&!Z.isPreferred)))}function excludesAction(G,Z,ne){return!!Z.contains(G)&&(!ne||!Z.contains(ne))}CodeActionKind.sep=".",CodeActionKind.None=new CodeActionKind("@@none@@"),CodeActionKind.Empty=new CodeActionKind(""),CodeActionKind.QuickFix=new CodeActionKind("quickfix"),CodeActionKind.Refactor=new CodeActionKind("refactor"),CodeActionKind.Source=new CodeActionKind("source"),CodeActionKind.SourceOrganizeImports=CodeActionKind.Source.append("organizeImports"),CodeActionKind.SourceFixAll=CodeActionKind.Source.append("fixAll");class CodeActionCommandArgs{constructor(G,Z,ne){this.kind=G,this.apply=Z,this.preferred=ne}static fromUser(G,Z){return G&&"object"==typeof G?new CodeActionCommandArgs(CodeActionCommandArgs.getKindFromUser(G,Z.kind),CodeActionCommandArgs.getApplyFromUser(G,Z.apply),CodeActionCommandArgs.getPreferredUser(G)):new CodeActionCommandArgs(Z.kind,Z.apply,!1)}static getApplyFromUser(G,Z){switch("string"==typeof G.apply?G.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return Z}}static getKindFromUser(G,Z){return"string"==typeof G.kind?new CodeActionKind(G.kind):Z}static getPreferredUser(G){return"boolean"==typeof G.preferred&&G.preferred}}},2441:function(G,Z,ne){var ie=ne(1209),se=ne(366),ce=ne(2442),fe=ne(658),me=se((function(G){return ce(ie(G,fe))}));G.exports=me},2442:function(G,Z,ne){var ie=ne(1035),se=ne(589),ce=ne(1039);G.exports=function baseXor(G,Z,ne){var fe=G.length;if(fe<2)return fe?ce(G[0]):[];for(var me=-1,ge=Array(fe);++me0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},2471:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(1097)),fe=_interopRequireDefault(ne(865));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},2475:function(G,Z,ne){},2476:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=240)}({1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(866)},240:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"legacyRefMode",(function(){return ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(15),Se=ne.n(Ce),Me=(ne(90),ne(71)),ke=ne.n(Me),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(8),$e=ne(7),Je=ne(21),it=ne.n(Je),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;ne>>0|G[Z+1]<<8>>>0}function writeUInt16LE(G,Z,ne){G[ne+0]=255&Z,Z>>>=8,G[ne+1]=255&Z}function readUInt32BE(G,Z){return G[Z]*Math.pow(2,24)+G[Z+1]*Math.pow(2,16)+G[Z+2]*Math.pow(2,8)+G[Z+3]}function writeUInt32BE(G,Z,ne){G[ne+3]=Z,Z>>>=8,G[ne+2]=Z,Z>>>=8,G[ne+1]=Z,Z>>>=8,G[ne]=Z}function readUInt8(G,Z){return G[Z]}function writeUInt8(G,Z,ne){G[ne]=Z}}).call(this,ne(783).Buffer)},2512:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__objRest=(G,Z)=>{var ne={};for(var ie in G)ke.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&Se)for(var ie of Se(G))Z.indexOf(ie)<0&&xe.call(G,ie)&&(ne[ie]=G[ie]);return ne},__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),De={};__export(De,{ActionButton:()=>wt,CloneButton:()=>CloneButton_default,DeleteButton:()=>DeleteButton_default,ExportButton:()=>ExportButton_default,FullscreenButton:()=>FullscreenButton_default,LayerButton:()=>LayerButton_default,OpenSearchButton:()=>OpenSearchButton_default,RefreshButton:()=>RefreshButton_default}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(0));__reExport(Ie,ne(0));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(3));__reExport($e,ne(3));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(339));__reExport(ot,ne(339));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(738));__reExport(ct,ne(738));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(2));__reExport(ht,ne(2));var _t="default"in ft?ft.default:ft,handleMouseDown=G=>{G.stopPropagation()},handleMouseMove=G=>{G.stopPropagation()},handleMouseUp=G=>{G.stopPropagation()},ActionItem=G=>{var Z=G,{children:ne}=Z,ie=__objRest(Z,["children"]);return ze.createElement("div",__spreadValues({"data-test":"action-item",role:"presentation",onMouseDown:handleMouseDown,onMouseMove:handleMouseMove,onMouseUp:handleMouseUp},ie),ne)};ActionItem.propTypes={children:_t.any};var yt=ActionItem,vt=it(dt)` width: 28px; height: 28px; cursor: pointer; display: flex; justify-content: center; align-items: center; &[data-disabled='true'] { cursor: not-allowed; } &:hover { background-color: ${(0,ot.pick)({enterprise:{light:ot.variables.gray92,dark:ot.variables.gray30},prisma:ot.variables.interactiveColorOverlayHover})}; } &:focus { outline-style: solid; outline-offset: 1px; outline-width: 2px; outline-color: ${ot.variables.focusColor}; } `,noop=()=>{},wt=ze.forwardRef((G,Z)=>{var ne=G,{icon:ie,onClick:se=noop,disabled:ce=!1}=ne,fe=__objRest(ne,["icon","onClick","disabled"]);return ze.createElement(yt,null,ze.createElement(vt,__spreadValues({disabled:!!ce,onClick:se,"data-disabled":!!ce,"data-clickable":!0,tabIndex:0,elementRef:Z},fe),ze.cloneElement(ie,{size:"18px"})))}),Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(1094));__reExport(Ct,ne(1094));var Mt="default"in St?St.default:St,kt={};__export(kt,{default:()=>Lt});var xt=__toESM(ne(412));__reExport(kt,ne(412));var Lt="default"in xt?xt.default:xt,Tt={};__export(Tt,{default:()=>Dt});var At=__toESM(ne(389));__reExport(Tt,ne(389));var Dt="default"in At?At.default:At,CloneButton_default=({itemId:G,dashboardApi:Z,screenReaderText:ne})=>{const ie=(0,Ie.useContext)(kt.TelemetryContext),se=(0,Ie.useCallback)(()=>{ie.collect({source:"actionMenu",event:"paste"}),null==Z||Z.cloneDashboardItems([G])},[Z,ie,G]);return null==G||null==Z?null:ze.createElement(wt,{"data-test":"clone-button",onClick:se,icon:ze.createElement(Tt.Clone,{screenReaderText:ne||(0,Ct._)("Clone")})})},DeleteButton_default=({itemId:G,dashboardApi:Z,screenReaderText:ne})=>{const ie=(0,Ie.useContext)(kt.TelemetryContext),se=(0,Ie.useCallback)(()=>{G&&Z&&(ie.collect({source:"actionMenu",event:"delete"}),Z.removeDashboardItems([G]))},[ie,Z,G]);return null==G||null==Z?null:ze.createElement(wt,{"data-test":"delete-button",onClick:se,icon:ze.createElement(Tt.Remove,{screenReaderText:ne||(0,Ct._)("Delete")})})},Et={};__export(Et,{default:()=>It});var jt=__toESM(ne(391));__reExport(Et,ne(391));var It="default"in jt?jt.default:jt,Nt={};__export(Nt,{default:()=>zt});var Rt=__toESM(ne(138));__reExport(Nt,ne(138));var zt="default"in Rt?Rt.default:Rt,qt=["viz.rectangle","splunk.rectangle","viz.ellipse","splunk.ellipse","viz.text","viz.markdown","splunk.markdown"],ExportButton_default=({dashboardApi:G,screenReaderText:Z=(0,Ct._)("Export"),itemDefinition:ne,itemId:ie,createToast:se})=>{const ce=(0,kt.useTelemetryApi)(),[fe,me]=(0,Ie.useState)(!1),ge=(0,Ie.useCallback)(()=>me(!1),[]);(0,Ie.useEffect)(()=>{se&&(0,Nt.deprecated)("The createToast prop for generating user messages is deprecated. The userMessage API is preferred and will be used when createToast is not provided.")},[se]);const Ce=(0,Ie.useCallback)(()=>{ce.emit({pageAction:"udf.export_viz",source:"actionMenu",event:"viz.export_open_modal",metadata:{type:null==ne?void 0:ne.type}}),me(!0)},[ne,ce]);return ne&&G&&ie&&!qt.includes(ne.type)?ze.createElement(ze.Fragment,null,ze.createElement(wt,{"data-test":"export-button",onClick:Ce,icon:ze.createElement(Tt.DownloadSolid,{screenReaderText:Z})}),ze.createElement(Et.ExportVisualizationModal,{open:fe,onModalClose:ge,itemDefinition:ne,dashboardApi:G,itemId:ie,createToast:se})):null},FullscreenButton_default=({itemId:G,itemDefinition:Z,dashboardApi:ne,screenReaderText:ie})=>{const se=(0,Ie.useContext)(kt.TelemetryContext),ce=(null==Z?void 0:Z.type)||null,fe=(0,Ie.useCallback)(()=>{se.emit({pageAction:"udf.fullscreen",source:"actionMenu",event:"viz.fullscreen",metadata:{type:ce}}),null==ne||ne.toggleVisualizationFullscreen(G)},[ne,se,G,ce]);return null==G||null==ne||null===ce||qt.includes(ce)?null:ze.createElement(wt,{"data-test":"fullscreen-button",onClick:fe,icon:ze.createElement(Tt.Fullscreen,{screenReaderText:ie||(0,Ct._)("Fullscreen")})})},Wt={};__export(Wt,{default:()=>Ft});var Bt=__toESM(ne(866));__reExport(Wt,ne(866));var Ft="default"in Bt?Bt.default:Bt,Ht={};__export(Ht,{default:()=>Vt});var $t=__toESM(ne(1543));__reExport(Ht,ne(1543));var Vt="default"in $t?$t.default:$t,Yt={};__export(Yt,{default:()=>Kt});var Ut=__toESM(ne(390));__reExport(Yt,ne(390));var Kt="default"in Ut?Ut.default:Ut,Gt={width:130},LayerMenu=({open:G,itemIdx:Z,adjustOrder:ne,front:ie,onRequestClose:se,anchor:ce})=>{const fe=(0,Ie.useCallback)(()=>ne({from:Z,to:Z+1,event:"layer-forward"}),[ne,Z]),me=(0,Ie.useCallback)(()=>ne({from:Z,to:ie,event:"layer-front"}),[ne,Z,ie]),ge=(0,Ie.useCallback)(()=>ne({from:Z,to:Z-1,event:"layer-backward"}),[ne,Z]),Ce=(0,Ie.useCallback)(()=>ne({from:Z,to:0,event:"layer-back"}),[ne,Z]),Se=Z===ie,Me=0===Z;return ze.createElement(Ft,{open:G,anchor:ce.current,onRequestClose:se,onBlur:se,defaultPlacement:"right",appearance:"normal",takeFocus:!0},ze.createElement(Vt,{style:Gt,"data-test":"layer-menu"},!Se&&ze.createElement(Vt.Item,{"data-test":"layer-forward",onClick:fe},(0,Ct._)("Move forward")),!Se&&ze.createElement(Vt.Item,{"data-test":"layer-front",onClick:me},(0,Ct._)("Bring to front")),!Me&&ze.createElement(Vt.Item,{"data-test":"layer-backward",onClick:ge},(0,Ct._)("Move backward")),!Me&&ze.createElement(Vt.Item,{"data-test":"layer-back",onClick:Ce},(0,Ct._)("Send to back"))))},LayerButton_default=({dashboardApi:G,itemId:Z,screenReaderText:ne})=>{const[ie,se]=(0,Ie.useState)(!1),ce=(0,Ie.useRef)(null),fe=(0,Ie.useContext)(kt.TelemetryContext),me=(0,Yt.useSelector)(Yt.selectLayoutStructure),ge=(0,Ie.useCallback)(()=>{var G;se(!1),null==(G=ce.current)||G.focus()},[]),Ce=(0,Ie.useCallback)(()=>{se(!0)},[]),Se=(0,Ie.useCallback)(G=>{ce.current=G},[]),Me=(0,Ie.useCallback)(({from:Z,to:ne,event:ie})=>{fe.collect({source:"actionMenu",event:ie}),G.adjustCanvasItemOrder({from:Z,to:ne}),ge()},[G,ge,fe]);if(!Z||!G)return null;const{layout:ke}=G.getDefinition();if("absolute"!==(null==ke?void 0:ke.type)||!Array.isArray(me))return null;const xe=me.filter(Nt.isBlockItem).map(({item:G})=>G),De=xe.indexOf(Z);return xe.length<=1||-1===De?null:ze.createElement(ze.Fragment,null,ze.createElement(wt,{"data-test":"layer-button",icon:ze.createElement(Tt.Layers,{screenReaderText:ne||(0,Ct._)("Layers")}),ref:Se,onClick:Ce}),ze.createElement(LayerMenu,{open:ie,anchor:ce,onRequestClose:ge,itemIdx:De,front:xe.length-1,adjustOrder:Me}))},resolvedSearch=({dataSourceId:G,dataSourceDef:Z,dashboardApi:ne})=>{const{type:ie,options:se}=Z;return!se||(0,Nt.hasTokensInObject)(se)?null:"ds.chain"===ie?(ce=__spreadValues({},Z),me={options:__spreadValues(__spreadValues({},se),ne.getCompleteSearchQueryAndParameters(G))},fe(ce,ge(me))):Z;var ce,me},noop2=()=>{},Zt=(0,Ie.memo)(({onOpenSearchClick:G=noop2,screenReaderText:Z,disabled:ne,dataSourceId:ie,dataSourceDef:se,dashboardApi:ce})=>{const fe=(0,Ie.useContext)(kt.TelemetryContext),me=(0,Ie.useCallback)(()=>{fe.collect({source:"actionMenu",event:"openInSearch"}),G(resolvedSearch({dataSourceId:ie,dataSourceDef:se,dashboardApi:ce}))},[ie,se,ce,G,fe]),ge=(0,Ie.useMemo)(()=>ze.createElement(Tt.Search,{screenReaderText:Z||(0,Ct._)("Open in search")}),[Z]);return ze.createElement(wt,{"data-test":"open-search-button",onClick:me,icon:ge,disabled:ne})}),OpenSearchButton_default=({itemId:G,dashboardApi:Z,itemDefinition:ne,dataSources:ie={},onOpenSearchClick:se=noop2,screenReaderText:ce,disabled:fe})=>{var me;const ge=null==(me=null==ne?void 0:ne.dataSources)?void 0:me.primary,Ce=ge?ie[ge]:null;if(null==G||null==Z||null==Ce||!ge)return null;const Se=resolvedSearch({dataSourceId:ge,dataSourceDef:Ce,dashboardApi:Z}),Me="function"==typeof fe?fe(Se):null===Se||!("ds.search"===Se.type||"ds.chain"===Se.type||"ds.savedSearch"===Se.type);return ze.createElement(Zt,{dataSourceId:ge,dataSourceDef:Ce,dashboardApi:Z,onOpenSearchClick:se,screenReaderText:ce,disabled:Me})},RefreshButton_default=({itemId:G,dashboardApi:Z,screenReaderText:ne=(0,Ct._)("Refresh"),itemDefinition:ie})=>{var se;const ce=(0,Ie.useContext)(kt.TelemetryContext),fe=(0,Ie.useCallback)(()=>{ce.collect({source:"actionMenu",event:"refresh"}),null==Z||Z.refreshVisualization(G)},[ce,Z,G]);return null!=G&&null!=Z&&(null==(se=null==ie?void 0:ie.dataSources)?void 0:se.primary)?ze.createElement(wt,{"data-test":"refresh-button",onClick:fe,icon:ze.createElement(Tt.Refresh,{screenReaderText:ne})}):null}},2513:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=256)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1109)},2:function(G,Z){G.exports=ne(1110)},256:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmallright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2514:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(1111)},4:function(G,Z){G.exports=ne(1112)},50:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ChevronRight}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},2516:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=209)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(738)},14:function(G,Z){G.exports=ne(2517)},2:function(G,Z){G.exports=ne(0)},209:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(51),ge=ne.n(me),Ce=ne(14),Se=ne.n(Ce),Me=ne(8),ke=ne(97),xe=ne.n(ke),De=ne(0);function CheckIcon(){return"enterprise"===Object(De.useSplunkTheme)().family?se.a.createElement(xe.a,{inline:!1,size:"12px",screenReaderText:null,hideDefaultTooltip:!0,style:{marginTop:"1px"}}):se.a.createElement("svg",{width:"12",height:"12",viewBox:"-1 -2 11 10",style:{display:"block"},xmlns:"http://www.w3.org/2000/svg"},se.a.createElement("path",{d:"M8.70711 0.292893C9.09763 0.683417 9.09763 1.31658 8.70711 1.70711L4.32132 6.0929C3.73559 6.67862 2.78596 6.67869 2.20015 6.09305L0.292997 4.18646C-0.0975845 3.79599 -0.0976776 3.16282 0.292789 2.77224C0.683256 2.38166 1.31642 2.38157 1.707 2.77203L3.26061 4.32518L7.29289 0.292893C7.68342 -0.0976311 8.31658 -0.0976311 8.70711 0.292893Z",fill:"currentColor"}))}var Ie=ne(3),Re=ne.n(Ie),ze=ne(6),$e=ne.n(ze),Je=ne(12),it=ne.n(Je),ot=Re()($e.a).withConfig({displayName:"SwitchStyles__StyledBox",componentId:"sc-844ieu-0"})(["display:inline;position:relative;color:",";flex-shrink:0;padding:",";[data-inline] + &{margin-left:",";}"],Object(De.pickVariant)("$switchState",{error:{enterprise:De.variables.errorColor,prisma:De.variables.accentColorNegative},disabled:{enterprise:De.variables.textDisabledColor,prisma:De.variables.contentColorDisabled}}),Object(De.pick)({enterprise:Object(Ie.css)(["calc(("," - ",") / 2) 0"],De.variables.inputHeight,"18px"),prisma:{compact:"6px 0",comfortable:"10px 0"}}),Object(De.pick)({enterprise:De.variables.spacingHalf,prisma:De.variables.spacingSmall})),at=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledCheckboxClickable",componentId:"sc-844ieu-1"})([""," position:relative;width:",";height:",";line-height:",";padding:2px;border-radius:2px;cursor:pointer;flex:0 0 auto;border:",";color:",";"," &:focus{box-shadow:",";}"," "," &[disabled]{cursor:not-allowed;border-color:",";","}"],De.mixins.reset("inline"),"18px","18px","18px",Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["1px solid ",""],De.variables.gray45),dark:Object(Ie.css)(["1px solid ",""],De.variables.gray80)}),prisma:Object(Ie.css)(["2px solid ",""],De.variables.contentColorMuted)}),Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray45,dark:De.variables.gray80}),prisma:De.variables.white}),Object(De.pick)({prisma:Object(Ie.css)(["top:1px;padding:1px;border-radius:3px;"," ",""],(function(G){return G.$interactive&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{box-shadow:0 0 0 2px ",",0 0 0 5px ",";}"],De.variables.backgroundColorPage,De.variables.interactiveColorOverlayHover)}),(function(G){return!G.$selected&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{border-color:",";}"],De.variables.contentColorDefault)}))}),De.variables.focusShadow,(function(G){return G.$selected&&Object(Ie.css)(["&:not([disabled]){border-color:",";background-color:",";}"],Object(De.pick)({enterprise:{light:De.variables.gray45,dark:De.variables.gray80},prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:"#none",prisma:Object(Ie.css)(["",";"],De.variables.interactiveColorPrimary)}))}),(function(G){return G.$error&&Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["&:not([disabled]){border-color:",";color:",";","}"],De.variables.errorColorL30,De.variables.errorColor,(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";"],De.variables.errorColor)})),dark:Object(Ie.css)(["border-color:",";}"],De.variables.errorColor)}),prisma:Object(Ie.css)(["&:not([disabled]){border-color:",";","}"],De.variables.accentColorNegative,(function(G){return G.$selected&&Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})}),Object(De.pick)({enterprise:{light:De.variables.borderColor,dark:De.variables.gray45},prisma:De.variables.contentColorDisabled}),(function(G){return G.$selected&&Object(De.pick)({prisma:Object(Ie.css)(["border-color:transparent;background-color:",";"],De.variables.interactiveColorBackgroundDisabled)})})),st=at.withComponent("span"),ct=Re.a.div.withConfig({displayName:"SwitchStyles__StyledSome",componentId:"sc-844ieu-2"})(["display:block;margin:",";height:",";width:",";background:currentColor;border-radius:1px;"],Object(De.pick)({enterprise:"2px",prisma:"5px 2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"8px"})),ut=Re.a.div.withConfig({displayName:"SwitchStyles__StyledIndicator",componentId:"sc-844ieu-3"})(["background-color:",";border-color:",";box-sizing:border-box;border-radius:50%;border-width:1px;position:absolute;left:-1px;top:-1px;",";"," "," ",""],Object(De.pick)({enterprise:{light:De.variables.gray98,dark:De.variables.gray80},prisma:De.variables.white}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:left ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["width:",";height:",";border-style:solid;"],"18px","18px"),prisma:Object(Ie.css)(["height:16px;width:16px;margin:2px;border-style:none;box-shadow:",";"],De.variables.embossShadow)}),(function(G){return G.$disabled&&Object(Ie.css)(["border-color:",";border-style:solid;background-color:",";"],Object(De.pick)({enterprise:{light:De.mixins.colorWithAlpha(De.variables.borderLightColor,.8),dark:De.variables.gray22},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{dark:De.variables.gray45},prisma:De.mixins.colorWithAlpha(De.variables.white,.3)}))}),(function(G){return G.$selected&&Object(Ie.css)(["left:",";"],Object(De.pick)({enterprise:Object(Ie.css)(["calc(100% - "," + 1px)"],"18px"),prisma:Object(Ie.css)(["calc(100% - "," + 1px)"],"20px")}))})),dt=Re.a.div.withConfig({displayName:"SwitchStyles__StyledToggleOutline",componentId:"sc-844ieu-4"})(["position:absolute;border:1px solid transparent;",";border-radius:",";top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:1;"," ",""],(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:border-color ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," * 0.5)"],"18px"),prisma:"15px"}),Object(De.pick)({prisma:Object(Ie.css)(["margin:-6px;"])}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}))})),ht=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledToggleClickable",componentId:"sc-844ieu-5"})(["position:relative;"," border-radius:",";transition:background-color ",";flex:0 0 auto;border:1px solid ",";"," &:not([disabled]){&:focus{outline:0;box-shadow:",";","}&:hover ","{background-color:",";}&:hover ","{background-color:",";}};&[disabled]{border:1px solid ",";background-color:",";"," ","}",";",""],Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray98,"18px"),dark:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray45,"18px")}),prisma:Object(Ie.css)(["width:32px;background-color:",";height:",";top:1px;"],De.variables.contentColorMuted,"20px")}),"18px",(function(G){return G.$delay}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.1);"])}),Object(De.pick)({enterprise:Object(Ie.css)(["",",inset 0 2px 0 rgba(0,0,0,0.1);"],De.variables.focusShadow),prisma:De.variables.focusShadow}),Object(De.pick)({enterprise:Object(Ie.css)(["> ","{border-color:",";}"],dt,De.mixins.colorWithAlpha(De.variables.focusColor,.8))}),ut,Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray96,dark:"#b1bcc7"}),prisma:De.variables.white}),dt,Object(De.pick)({prisma:De.variables.interactiveColorOverlayHover}),Object(De.pick)({enterprise:{light:De.variables.borderLightColor,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray30},prisma:De.variables.interactiveColorBackgroundDisabled}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.06);"])}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:transparent;background-color:",";"],Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.accentColorL40,dark:De.variables.accentColorD20}),prisma:De.mixins.colorWithAlpha(De.variables.interactiveColorPrimary,.7)}))}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";background-color:",";",""],Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.transparent}),Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({prisma:Object(Ie.css)(["box-shadow:",";"],De.variables.embossShadow)}))}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}),Object(De.pick)({prisma:Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})),ft=ht.withComponent("span"),_t=Re.a.label.withConfig({displayName:"SwitchStyles__StyledLabel",componentId:"sc-844ieu-6"})([""," flex:1 1 auto;padding-left:",";color:inherit;",";"],De.mixins.reset("inline-block"),Object(De.pick)({enterprise:Object(Ie.css)(["",";"],De.variables.spacingQuarter),prisma:"8px"}),(function(G){return!G.$disabled&&Object(Ie.css)(["cursor:pointer;"])}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},2518:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},2519:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},2520:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=244)}({2:function(G,Z){G.exports=ne(0)},244:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return se}));var ie=ne(2);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.59294C21.0977 5.98347 21.0977 6.61663 20.7071 7.00716L10.1447 17.5695C9.55896 18.1553 8.60922 18.1553 8.02343 17.5695L3.29289 12.839C2.90237 12.4485 2.90237 11.8153 3.29289 11.4248C3.68342 11.0343 4.31658 11.0343 4.70711 11.4248L9.08409 15.8018L19.2929 5.59294C19.6835 5.20242 20.3166 5.20242 20.7071 5.59294Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Checkmark(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkmark-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2523:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=222)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},222:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.h2.withConfig({displayName:"HeadingStyles__StyledHeading",componentId:"sc-15s3yx3-0"})(["",";margin:1.414em 0 0.4em;text-rendering:optimizelegibility;"," ",""],(function(G){var Z=G.$variant;return"title4"===Z?Object(Ce.pickVariant)("$isSection",{true:{enterprise:{compact:Ce.mixins.typography("title4",{weight:"semiBold"}),comfortable:Ce.mixins.typography("title4",{size:14,weight:"semiBold"})},prisma:Ce.mixins.typography("title4",{color:"default",size:14})},false:{enterprise:{compact:Ce.mixins.typography("title4"),comfortable:Ce.mixins.typography("title4",{size:14})},prisma:Ce.mixins.typography("title4")}}):Ce.mixins.typography(Z)}),Object(Ce.pickVariant)("$isSection",{true:{enterprise:{dark:Object(me.css)(["color:",";"],Ce.variables.gray80),light:Object(me.css)(["color:",";"],Ce.variables.gray45)}}}),(function(G){return G.$isSection&&Object(me.css)(["margin:0.707em 0 0.2em;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),level:fe.a.oneOf([1,2,3,4,"s","ss",5,6]),variant:fe.a.oneOf(["title1","title2","title3","title4","title5","title6","title7"])},ke={1:"h1",2:"h2",3:"h3",4:"h4",s:"h4",ss:"h5",5:"h5",6:"h6"},xe={h1:"title1",h2:"title2",h3:"title3",h4:"title4",h5:"title5",h6:"title6"};function Heading(G){var Z=G.children,ne=G.elementRef,ie=G.level,ce=void 0===ie?2:ie,fe=G.variant,me=_objectWithoutProperties(G,["children","elementRef","level","variant"]),ge=ke[ce],Ce=fe||xe[ge];return se.a.createElement(Se,_extends({$isSection:function isSection(G){return"s"===G.toString().charAt(0)}(ce),"data-test":"heading",ref:ne,as:ge,$variant:Ce},me),Z)}Heading.propTypes=Me;var De=Heading},3:function(G,Z){G.exports=ne(3)}})},2524:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=206)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},16:function(G,Z){G.exports=ne(1098)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},206:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ft}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(19),ge=ne.n(me),Ce=ne(43),Se=ne(3),Me=ne.n(Se),ke=ne(0),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(24),$e=ne(16),Je=ne.n($e),it=ne(53),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zie&&(Z.scrollLeft=ie,G.stopPropagation(),G.preventDefault())}if(Z.clientHeight!==Z.scrollHeight){if(G.deltaY<0&&Z.scrollTopse&&(Z.scrollTop=se,G.stopPropagation(),G.preventDefault())}}})),_defineProperty(_assertThisInitialized(ne),"handleMount",(function(G){ne.setState({containerEl:G}),Object(ot.a)(ne.props.elementRef,G)})),_defineProperty(_assertThisInitialized(ne),"handleMouseEnter",(function(){ne.defaultWindowOverflowX=document.body.style.overflowX,ne.defaultWindowOverflowY=document.body.style.overflowY,document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeave",(function(){document.body.style.overflowX=ne.defaultWindowOverflowX,document.body.style.overflowY=ne.defaultWindowOverflowY})),ne.state={containerEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Inner,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){if(this.state.containerEl){var ne,ie;if(Z.containerEl||(this.state.containerEl.scrollTop=this.props.defaultTop,this.state.containerEl.scrollLeft=this.props.defaultLeft),ge()(this.props.top))this.state.containerEl.scrollTop=(null===(ne=this.props.top)||void 0===ne?void 0:ne.get())||0;if(ge()(this.props.left))this.state.containerEl.scrollLeft=(null===(ie=this.props.left)||void 0===ie?void 0:ie.get())||0}}},{key:"render",value:function render(){var G=this.props,Z=G.children,ne=G.onScroll,ie=G.stopScrollPropagation,ce=G.top,fe=G.left,me=this.state.containerEl,ge=ze.animated[this.props.tagName];return se.a.createElement(se.a.Fragment,null,se.a.createElement(ge,_extends({},Re()(this.props,De()(Inner.propTypes)),{ref:this.handleMount,onMouseEnter:"window"===ie?this.handleMouseEnter:void 0,onMouseLeave:"window"===ie?this.handleMouseLeave:void 0,onScroll:ne,scrollTop:ce,scrollLeft:fe}),se.a.createElement(it.ScrollContainerProvider,{value:me},Z)),!0===ie&&me&&se.a.createElement(Je.a,{target:me,eventType:"wheel",listener:this.handleWheel,options:{passive:!1}}))}}]),Inner}(ie.Component);_defineProperty(st,"propTypes",at),_defineProperty(st,"defaultProps",{defaultLeft:0,defaultTop:0,tagName:"div"});var ct=st,ut=Me()(ct).withConfig({displayName:"ScrollStyles__StyledInner",componentId:"sc-1xspttf-0"})(["",";overflow:auto;overflow-y:auto;overflow-x:hidden;"],ke.mixins.reset("block"));function Scroll_typeof(G){return(Scroll_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Scroll_extends(){return(Scroll_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Scroll_defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},253:function(G,Z,ne){"use strict";ne.d(Z,"j",(function(){return or})),ne.d(Z,"h",(function(){return ce})),ne.d(Z,"f",(function(){return matchesContiguousSubString})),ne.d(Z,"i",(function(){return matchesWords})),ne.d(Z,"g",(function(){return matchesFuzzy})),ne.d(Z,"b",(function(){return anyScore})),ne.d(Z,"c",(function(){return createMatches})),ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"d",(function(){return fuzzyScore})),ne.d(Z,"e",(function(){return fuzzyScoreGracefulAggressive}));var ie=ne(234),se=ne(27);function or(...G){return function(Z,ne){for(let ie=0,se=G.length;ie0?[{start:0,end:Z.length}]:[]}.bind(void 0,!0);function matchesContiguousSubString(G,Z){const ne=Z.toLowerCase().indexOf(G.toLowerCase());return-1===ne?null:[{start:ne,end:ne+G.length}]}function isLower(G){return 97<=G&&G<=122}function isUpper(G){return 65<=G&&G<=90}function isNumber(G){return 48<=G&&G<=57}function isWhitespace(G){return 32===G||9===G||10===G||13===G}const fe=new Set;function isWordSeparator(G){return isWhitespace(G)||fe.has(G)}function isAlphanumeric(G){return isLower(G)||isUpper(G)||isNumber(G)}function join(G,Z){return 0===Z.length?Z=[G]:G.end===Z[0].start?Z[0].start=G.start:Z.unshift(G),Z}function nextAnchor(G,Z){for(let ne=Z;ne0&&!isAlphanumeric(G.charCodeAt(ne-1)))return ne}return G.length}function _matchesCamelCase(G,Z,ne,ie){if(ne===G.length)return[];if(ie===Z.length)return null;if(G[ne]!==Z[ie].toLowerCase())return null;{let se=null,ce=ie+1;for(se=_matchesCamelCase(G,Z,ne+1,ie+1);!se&&(ce=nextAnchor(Z,ce))60)return null;const ne=function analyzeCamelCaseWord(G){let Z=0,ne=0,ie=0,se=0,ce=0;for(let fe=0;fe.2&&Z<.8&&ie>.6&&se<.2}(ne)){if(!function isUpperCaseWord(G){const{upperPercent:Z,lowerPercent:ne}=G;return 0===ne&&Z>.6}(ne))return null;Z=Z.toLowerCase()}let ie=null,se=0;for(G=G.toLowerCase();se0&&isWordSeparator(G.charCodeAt(ne-1)))return ne;return G.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(G=>fe.add(G.charCodeAt(0)));const me=or(ce,matchesCamelCase,matchesContiguousSubString),ge=or(ce,matchesCamelCase,(function matchesSubString(G,Z){return function _matchesSubString(G,Z,ne,ie){if(ne===G.length)return[];if(ie===Z.length)return null;if(G[ne]===Z[ie]){let se=null;return(se=_matchesSubString(G,Z,ne+1,ie+1))?join({start:ie,end:ie+1},se):null}return _matchesSubString(G,Z,ne,ie+1)}(G.toLowerCase(),Z.toLowerCase(),0,0)})),Ce=new ie.a(1e4);function matchesFuzzy(G,Z,ne=!1){if("string"!=typeof G||"string"!=typeof Z)return null;let ie=Ce.get(G);ie||(ie=new RegExp(se.p(G),"i"),Ce.set(G,ie));const ce=ie.exec(Z);return ce?[{start:ce.index,end:ce.index+ce[0].length}]:ne?ge(G,Z):me(G,Z)}function anyScore(G,Z,ne,ie,se,ce){const fe=Math.min(13,G.length);for(;ne1;ie--){const se=G[ie]+ne,ce=Z[Z.length-1];ce&&ce.end===se?ce.end=se+1:Z.push({start:se,end:se+1})}return Z}function initTable(){const G=[],Z=[];for(let G=0;G<=128;G++)Z[G]=0;for(let ne=0;ne<=128;ne++)G.push(Z.slice(0));return G}function initArr(G){const Z=[];for(let ne=0;ne<=G;ne++)Z[ne]=0;return Z}const Se=initArr(256),Me=initArr(256),ke=initTable(),xe=initTable(),De=initTable();function isSeparatorAtPos(G,Z){if(Z<0||Z>=G.length)return!1;const ne=G.codePointAt(Z);switch(ne){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!se.C(ne)}}function isWhitespaceAtPos(G,Z){if(Z<0||Z>=G.length)return!1;switch(G.charCodeAt(Z)){case 32:case 9:return!0;default:return!1}}function isUpperCaseAtPos(G,Z,ne){return Z[G]!==ne[G]}var Ie;function fuzzyScore(G,Z,ne,ie,se,ce,fe){const me=G.length>128?128:G.length,ge=ie.length>128?128:ie.length;if(ne>=me||ce>=ge||me-ne>ge-ce)return;if(!function isPatternInWord(G,Z,ne,ie,se,ce,fe=!1){for(;Z=ne&&me>=ie;)se[fe]===ce[me]&&(Me[fe]=me,fe--),me--}(me,ge,ne,ce,Z,se);let Ce=1,Ie=1,Re=ne,ze=ce;const $e=[!1];for(Ce=1,Re=ne;Refe,ot=it?xe[Ce][Ie-1]+(ke[Ce][Ie-1]>0?-5:0):0,at=ze>fe+1&&ke[Ce][Ie-1]>0,st=at?xe[Ce][Ie-2]+(ke[Ce][Ie-2]>0?-5:0):0;if(at&&(!it||st>=ot)&&(!Se||st>=Me))xe[Ce][Ie]=st,De[Ce][Ie]=3,ke[Ce][Ie]=0;else if(it&&(!Se||ot>=Me))xe[Ce][Ie]=ot,De[Ce][Ie]=2,ke[Ce][Ie]=0;else{if(!Se)throw new Error("not possible");xe[Ce][Ie]=Me,De[Ce][Ie]=1,ke[Ce][Ie]=ke[Ce-1][Ie-1]+1}}}if(!$e[0]&&!fe)return;Ce--,Ie--;const Je=[xe[Ce][Ie],ce];let it=0,ot=0;for(;Ce>=1;){let G=Ie;do{const Z=De[Ce][G];if(3===Z)G-=2;else{if(2!==Z)break;G-=1}}while(G>=1);it>1&&Z[ne+Ce-1]===se[ce+Ie-1]&&!isUpperCaseAtPos(G+ce-1,ie,se)&&it+1>ke[Ce][G]&&(G=Ie),G===Ie?it++:it=1,ot||(ot=G),Ce--,Ie=G-1,Je.push(Ie)}ge===me&&(Je[0]+=2);const at=ot-me;return Je[0]-=at,Je}function _doScore(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se){if(Z[ne]!==ce[fe])return Number.MIN_SAFE_INTEGER;let Me=1,ke=!1;return fe===ne-ie?Me=G[ne]===se[fe]?7:5:!isUpperCaseAtPos(fe,se,ce)||0!==fe&&isUpperCaseAtPos(fe-1,se,ce)?!isSeparatorAtPos(ce,fe)||0!==fe&&isSeparatorAtPos(ce,fe-1)?(isSeparatorAtPos(ce,fe-1)||isWhitespaceAtPos(ce,fe-1))&&(Me=5,ke=!0):Me=5:(Me=G[ne]===se[fe]?7:5,ke=!0),Me>1&&ne===ie&&(Se[0]=!0),ke||(ke=isUpperCaseAtPos(fe,se,ce)||isSeparatorAtPos(ce,fe-1)||isWhitespaceAtPos(ce,fe-1)),ne===ie?fe>ge&&(Me-=ke?3:5):Me+=Ce?ke?2:0:ke?0:1,fe+1===me&&(Me-=ke?3:5),Me}function fuzzyScoreGracefulAggressive(G,Z,ne,ie,se,ce,fe){return function fuzzyScoreWithPermutations(G,Z,ne,ie,se,ce,fe,me){let ge=fuzzyScore(G,Z,ne,ie,se,ce,me);if(ge&&!fe)return ge;if(G.length>=3){const Z=Math.min(7,G.length-1);for(let fe=ne+1;fege[0])&&(ge=G))}}}return ge}(G,Z,ne,ie,se,ce,!0,fe)}function nextTypoPermutation(G,Z){if(Z+1>=G.length)return;const ne=G[Z],ie=G[Z+1];return ne!==ie?G.slice(0,Z)+ie+ne+G.slice(Z+2):void 0}!function(G){G.Default=[-100,0],G.isDefault=function isDefault(G){return!G||2===G.length&&-100===G[0]&&0===G[1]}}(Ie||(Ie={}))},2579:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),__async=(G,Z,ne)=>new Promise((ie,se)=>{var fulfilled=G=>{try{step(ne.next(G))}catch(G){se(G)}},rejected=G=>{try{step(ne.throw(G))}catch(G){se(G)}},step=G=>G.done?ie(G.value):Promise.resolve(G.value).then(fulfilled,rejected);step((ne=ne.apply(G,Z)).next())}),De={};__export(De,{default:()=>Vt,defaultParams:()=>Wt,defaultRequestParams:()=>Bt,ownRequestParams:()=>qt}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(673));__reExport(Ie,ne(673));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(24));__reExport($e,ne(24));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(450));__reExport(ot,ne(450));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(138));__reExport(ct,ne(138));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(458));__reExport(ht,ne(458));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(96));__reExport(yt,ne(96));var wt="default"in vt?vt.default:vt,Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(951));__reExport(Ct,ne(951));var Mt="default"in St?St.default:St,kt={query:{type:"string",description:"An SPL search string."},queryParameters:{type:"object",properties:{earliest:{type:"string",description:"Specify the earliest time to search for events. Choose from year (y), month (m), week (w), day (d), minute, (m), or second (s), or 0 for all time.\n See the examples below."},latest:{type:"string",description:"Specify the earliest time to search for events. Choose from year (y), month (m), week (w), day (d), minute, (m), second (s), or now.\n See the examples below."}},additionalProperties:!1,description:"SPL query parameters, only contains earliest and latest for now."},refresh:{type:["number","string"],description:"Specify the refresh interval in seconds or with a time expression."},refreshType:{type:"string",enum:["delay","interval"],default:"delay",description:"Indicate the starting time for counting down to a refresh. Use delay to start counting when the search is done. Use interval to count down when the search is dispatched."}},xt={};__export(xt,{default:()=>Tt});var Lt=__toESM(ne(110));__reExport(xt,ne(110));var Tt="default"in Lt?Lt.default:Lt,At={};__export(At,{default:()=>Et});var Dt=__toESM(ne(952));__reExport(At,ne(952));var Et="default"in Dt?Dt.default:Dt,getStatusMessage=({status:G,isRealTimeSearch:Z,totalCount:ne})=>{if("running"===G){if(Z)return(0,Ct._)("Real-time search is running");if(0===ne)return(0,Ct._)("Search is running, but not enough data to render visualization")}return"queued"===G||"parsing"===G?(0,Ct._)("Search is not yet running, queued on server"):"done"===G&&0===ne?(0,Ct._)("Search ran successfully, but no results were returned"):""},jt=["resultCount","isDone","dispatchState"],previewFetchPredicate=G=>!!(0,$e.get)(G,["content","isRealTimeSearch"],!1)||((0,$e.get)(G,["content","resultPreviewCount"],0)>0||!!(0,$e.get)(G,["content","isDone"])),It={};__export(It,{default:()=>Rt});var Nt=__toESM(ne(312));__reExport(It,ne(312));var Rt="default"in Nt?Nt.default:Nt,zt=(0,$e.memoize)(G=>{const Z=It.DashboardDefinition.fromJSON(G).getDefaultTimeRangeForNewSearch();return Z.earliest||Z.latest?{queryParameters:__spreadValues({},Z)}:{}},G=>{const Z=It.DashboardDefinition.fromJSON(G).getDefaultTimeRangeForNewSearch();return JSON.stringify(Z)}),qt={output_mode:"json_cols",show_metadata:!0},Wt={preview:!0},Bt={count:0,offset:0,progress:!0},Ft={earliest:"earliest_time",latest:"latest_time"},Ht=/\|\s*collect/gi,$t=class extends class{constructor(G={},Z={},ne={},ie={}){this.options=G,this.context=Z,this.meta=ne,this.baseChainModel=ie,(0,$e.isEmpty)(ne)||(0,ct.deprecated)('Property "meta" has been deprecated'),(0,$e.isEmpty)(ie)||(0,ct.deprecated)('Property "baseChainModel" has been deprecated')}setup(){return Promise.resolve(null)}request(G){return G=>(G&&G.complete(),()=>{})}teardown(){return Promise.resolve(null)}equals(G){return this.constructor===G.constructor&&(0,$e.isEqual)(this.options,G.options)}getObserver(){return{next({requestParams:G,data:Z,meta:ne}){},error({level:G,message:Z}){},complete(){}}}shouldRefreshSubscription(){return!1}}{constructor(G={},Z={},ne={},ie={}){if(super(G,Z),this.results={},this.shouldRefreshSub=!1,this.getObserver=()=>({next:({meta:G})=>{const{sid:Z,search:ne,checkRiskyCommand:ie,completeSearchQuery:se}=G;this.options.sid!==Z||this.options.check_risky_command!==ie||this.parentChainQuery!==ne||this.completeSearchQuery!==se?(this.options.sid=Z,this.options.check_risky_command=ie,this.parentChainQuery=ne,this.completeSearchQuery=se,this.results={},this.shouldRefreshSub=!0,this.setup()):this.shouldRefreshSub=!1},error:G=>{G instanceof Error&&ct.console.log(G)},complete:ct.noop}),this.combineResultCallback=(G="")=>(Z,ne)=>((G,Z,ne)=>{var ie;const{fields:se,columns:ce,messages:fe,post_process_count:me}=G,{isRealTimeSearch:ge,resultPreviewCount:Ce,resultCount:Se}=Z.content;let Me;Me=null!=me?me:null!=Ce?Ce:Se;const ke=Z.content.dispatchState.toLowerCase();return{data:new ht.DataSet(se,ce),meta:__spreadProps(__spreadValues({},(0,$e.pick)(Z.content,jt)),{sid:Z.content.sid,app:null==(ie=Z.acl)?void 0:ie.app,totalCount:Me,status:ke,statusMessage:getStatusMessage({status:ke,isRealTimeSearch:ge,totalCount:Me}),percentComplete:"done"===ke?100:Math.round(100*Z.content.doneProgress),isRealTimeSearch:ge,lastUpdated:Tt(Z.published).add((0,$e.pick)(Z.content,"runDuration"),"seconds").toISOString(),search:ne,serverLog:Array.isArray(fe)?fe.map(G=>({level:G.type,message:G.text})):void 0})}})(Z,ne,G),!this.options.query&&!this.options.sid)throw Error("query string or sid is required!");this.extend=this.options.extend,this.context=(G=>__spreadValues({keepAlive:!0,cache:!1,app:At.app},G))(this.context),this.options=__spreadProps(__spreadValues({},(G=>__spreadValues(__spreadValues({},Wt),(0,$e.mapKeys)(G.queryParameters,(G,Z)=>{var ne;return null!=(ne=Ft[Z])?ne:Z})))(this.options)),{search:this.options.query,sid:this.options.sid,check_risky_command:this.options.checkRiskyCommand,label:this.context.id}),this.context.auditProvenance&&(this.options.provenance=this.context.auditProvenance),this.baseChainModel=ie,this.meta=ne}setup(){return __async(this,null,(function*(){var G;try{const{splunkdPath:Z,sessionKey:ne}=this.context;Z&&wt.setSplunkConfig({splunkdPath:Z}),ne&&wt.setBaseFetchInit({headers:{Authorization:"Splunk "+ne}}),this.context.id&&(null==(G=this.baseChainModel)?void 0:G[this.context.id])&&(this.validation(),this.options=__spreadProps(__spreadValues({},this.options),{postprocess_searches:JSON.stringify((0,ht.createPostSearchQueryArray)(this.context.id,this.baseChainModel)),auto_cancel:90,label:this.context.id}));let ie=null;return this.extend?this.options.sid&&(this.searchJob=wt.fromSid(this.options.sid)):(this.searchJob=this.options.sid?wt.fromSid(this.options.sid):wt.create(this.options,this.context),ie=yield this.searchJob.getSid().first().toPromise()),ie}catch(G){return G instanceof Error&&(this.options.sid?ct.console.error("failed to retrieve search job:",G):ct.console.error("failed to create search job:",G),this.setupError=G),null}}))}request(G={}){var Z;if(this.setupError)return G=>{var Z;return null==G||G.error({level:"error",message:null==(Z=this.setupError)?void 0:Z.message,meta:{search:this.options.search}}),ct.noop};const ne=ze(G);let ie=null==(Z=this.results)?void 0:Z[ne];if(!ie&&this.searchJob){let Z=G;this.extend&&(Z=__spreadProps(__spreadValues({},G),{check_risky_command:this.options.check_risky_command,search:this.parentChainQuery?(0,ht.mergeSearches)(this.parentChainQuery,this.options.search):this.options.search}));const se=__spreadValues(__spreadValues(__spreadValues({},Bt),Z),qt);if(se.sort){let G="";Object.entries(se.sort).forEach(([Z,ne])=>{"desc"===ne?G+=` -"${Z}"`:"asc"===ne&&(G+=` +"${Z}"`)}),G&&(se.search?se.search+=" | sort 0":se.search="| sort 0",se.search+=G),delete se.sort}const ce=this.searchJob.getProgress();ie=se.progress?((G,Z,ne)=>ot.Observable.combineLatest(G,Z,ne))(this.searchJob.getResultsPreview(se,{fetchPredicate:previewFetchPredicate}),ce,this.combineResultCallback(Z.search)):((G,Z,ne)=>ot.Observable.forkJoin(G,Z,ne))(this.searchJob.getResults(se),ce,this.combineResultCallback(Z.search)),null!=this.results||(this.results={}),this.results[ne]=ie}return G=>{const Z=(ie||ot.Observable.of()).subscribe(((G,Z)=>({next:Z=>G.next(Z),error:ne=>G.error({level:"error",message:ne.message,meta:{search:Z}}),complete:()=>G.complete()}))(G,this.completeSearchQuery||this.options.search));return()=>{Z.unsubscribe()}}}teardown(){return __async(this,null,(function*(){if(this.results=null,this.extend)return null;try{const{cache:G}=this.context;return!G&&this.searchJob?this.searchJob.cancel().first().toPromise():null}catch(G){return ct.console.error("failed to cancel search job:",G),null}}))}shouldRefreshSubscription(){return this.shouldRefreshSub}validation(){const{search:G}=this.options;if(G&&Ht.test(G))throw new Error((0,Ct._)(`The "collect" command cannot be used in a base search. Use an ad-hoc search for data source ${this.context.id} to use the "collect" command.`))}};$t.schema=kt,$t.config={title:({searchType:G})=>(0,Ct._)("ds.search"===G?"Search":"Chain search"),displayDataSourceItemListByDefault:!0,canCreateDataSource:!0,dataSourceRemoveVerb:"delete",isDataSourceNameEditable:!0,getDataSourceName:ct.getDefaultDataSourceName,defaultOptions:({searchType:G,definition:Z})=>"ds.search"===G?zt(Z):{},editorConfig:[],optionsSchema:kt,isChainEnabled:!0};var Vt=$t},26:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ContextKeyExpr})),ne.d(Z,"c",(function(){return RawContextKey})),ne.d(Z,"b",(function(){return Ce})),ne.d(Z,"d",(function(){return Se}));var ie=ne(27),se=ne(60),ce=ne(46);let fe=ce.l||"";const me=new Map;me.set("false",!1),me.set("true",!0),me.set("isMac",ce.f),me.set("isLinux",ce.d),me.set("isWindows",ce.j),me.set("isWeb",ce.i),me.set("isMacNative",ce.f&&!ce.i),me.set("isEdge",fe.indexOf("Edg/")>=0),me.set("isFirefox",fe.indexOf("Firefox")>=0),me.set("isChrome",fe.indexOf("Chrome")>=0),me.set("isSafari",fe.indexOf("Safari")>=0);const ge=Object.prototype.hasOwnProperty;class ContextKeyExpr{static has(G){return ContextKeyDefinedExpr.create(G)}static equals(G,Z){return ContextKeyEqualsExpr.create(G,Z)}static regex(G,Z){return ContextKeyRegexExpr.create(G,Z)}static not(G){return ContextKeyNotExpr.create(G)}static and(...G){return ContextKeyAndExpr.create(G)}static or(...G){return ContextKeyOrExpr.create(G)}static deserialize(G,Z=!1){if(G)return this._deserializeOrExpression(G,Z)}static _deserializeOrExpression(G,Z){let ne=G.split("||");return ContextKeyOrExpr.create(ne.map(G=>this._deserializeAndExpression(G,Z)))}static _deserializeAndExpression(G,Z){let ne=G.split("&&");return ContextKeyAndExpr.create(ne.map(G=>this._deserializeOne(G,Z)))}static _deserializeOne(G,Z){if((G=G.trim()).indexOf("!=")>=0){let ne=G.split("!=");return ContextKeyNotEqualsExpr.create(ne[0].trim(),this._deserializeValue(ne[1],Z))}if(G.indexOf("==")>=0){let ne=G.split("==");return ContextKeyEqualsExpr.create(ne[0].trim(),this._deserializeValue(ne[1],Z))}if(G.indexOf("=~")>=0){let ne=G.split("=~");return ContextKeyRegexExpr.create(ne[0].trim(),this._deserializeRegexValue(ne[1],Z))}if(G.indexOf(" in ")>=0){let Z=G.split(" in ");return ContextKeyInExpr.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(G)){const Z=G.split(">=");return ContextKeyGreaterEqualsExpr.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(G)){const Z=G.split(">");return ContextKeyGreaterExpr.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(G)){const Z=G.split("<=");return ContextKeySmallerEqualsExpr.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(G)){const Z=G.split("<");return ContextKeySmallerExpr.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(G)?ContextKeyNotExpr.create(G.substr(1).trim()):ContextKeyDefinedExpr.create(G)}static _deserializeValue(G,Z){if("true"===(G=G.trim()))return!0;if("false"===G)return!1;let ne=/^'([^']*)'$/.exec(G);return ne?ne[1].trim():G}static _deserializeRegexValue(G,Z){if(Object(ie.D)(G)){if(Z)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ne=G.indexOf("/"),se=G.lastIndexOf("/");if(ne===se||ne<0){if(Z)throw new Error(`bad regexp-value '${G}', missing /-enclosure`);return console.warn(`bad regexp-value '${G}', missing /-enclosure`),null}let ce=G.slice(ne+1,se),fe="i"===G[se+1]?"i":"";try{return new RegExp(ce,fe)}catch(ne){if(Z)throw new Error(`bad regexp-value '${G}', parse error: ${ne}`);return console.warn(`bad regexp-value '${G}', parse error: ${ne}`),null}}}function cmp(G,Z){return G.cmp(Z)}class ContextKeyFalseExpr{constructor(){this.type=0}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}evaluate(G){return!1}serialize(){return"false"}keys(){return[]}negate(){return ContextKeyTrueExpr.INSTANCE}}ContextKeyFalseExpr.INSTANCE=new ContextKeyFalseExpr;class ContextKeyTrueExpr{constructor(){this.type=1}cmp(G){return this.type-G.type}equals(G){return G.type===this.type}evaluate(G){return!0}serialize(){return"true"}keys(){return[]}negate(){return ContextKeyFalseExpr.INSTANCE}}ContextKeyTrueExpr.INSTANCE=new ContextKeyTrueExpr;class ContextKeyDefinedExpr{constructor(G){this.key=G,this.type=2}static create(G){const Z=me.get(G);return"boolean"==typeof Z?Z?ContextKeyTrueExpr.INSTANCE:ContextKeyFalseExpr.INSTANCE:new ContextKeyDefinedExpr(G)}cmp(G){return G.type!==this.type?this.type-G.type:cmp1(this.key,G.key)}equals(G){return G.type===this.type&&this.key===G.key}evaluate(G){return!!G.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return ContextKeyNotExpr.create(this.key)}}class ContextKeyEqualsExpr{constructor(G,Z){this.key=G,this.value=Z,this.type=4}static create(G,Z){if("boolean"==typeof Z)return Z?ContextKeyDefinedExpr.create(G):ContextKeyNotExpr.create(G);const ne=me.get(G);if("boolean"==typeof ne){return Z===(ne?"true":"false")?ContextKeyTrueExpr.INSTANCE:ContextKeyFalseExpr.INSTANCE}return new ContextKeyEqualsExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type&&(this.key===G.key&&this.value===G.value)}evaluate(G){return G.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return ContextKeyNotEqualsExpr.create(this.key,this.value)}}class ContextKeyInExpr{constructor(G,Z){this.key=G,this.valueKey=Z,this.type=10}static create(G,Z){return new ContextKeyInExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.valueKey,G.key,G.valueKey)}equals(G){return G.type===this.type&&(this.key===G.key&&this.valueKey===G.valueKey)}evaluate(G){const Z=G.getValue(this.valueKey),ne=G.getValue(this.key);return Array.isArray(Z)?Z.indexOf(ne)>=0:"string"==typeof ne&&"object"==typeof Z&&null!==Z&&ge.call(Z,ne)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return ContextKeyNotInExpr.create(this)}}class ContextKeyNotInExpr{constructor(G){this._actual=G,this.type=11}static create(G){return new ContextKeyNotInExpr(G)}cmp(G){return G.type!==this.type?this.type-G.type:this._actual.cmp(G._actual)}equals(G){return G.type===this.type&&this._actual.equals(G._actual)}evaluate(G){return!this._actual.evaluate(G)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class ContextKeyNotEqualsExpr{constructor(G,Z){this.key=G,this.value=Z,this.type=5}static create(G,Z){if("boolean"==typeof Z)return Z?ContextKeyNotExpr.create(G):ContextKeyDefinedExpr.create(G);const ne=me.get(G);if("boolean"==typeof ne){return Z===(ne?"true":"false")?ContextKeyFalseExpr.INSTANCE:ContextKeyTrueExpr.INSTANCE}return new ContextKeyNotEqualsExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type&&(this.key===G.key&&this.value===G.value)}evaluate(G){return G.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return ContextKeyEqualsExpr.create(this.key,this.value)}}class ContextKeyNotExpr{constructor(G){this.key=G,this.type=3}static create(G){const Z=me.get(G);return"boolean"==typeof Z?Z?ContextKeyFalseExpr.INSTANCE:ContextKeyTrueExpr.INSTANCE:new ContextKeyNotExpr(G)}cmp(G){return G.type!==this.type?this.type-G.type:cmp1(this.key,G.key)}equals(G){return G.type===this.type&&this.key===G.key}evaluate(G){return!G.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return ContextKeyDefinedExpr.create(this.key)}}class ContextKeyGreaterExpr{constructor(G,Z){this.key=G,this.value=Z,this.type=12}static create(G,Z){return new ContextKeyGreaterExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type&&(this.key===G.key&&this.value===G.value)}evaluate(G){return parseFloat(G.getValue(this.key))>parseFloat(this.value)}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return ContextKeySmallerEqualsExpr.create(this.key,this.value)}}class ContextKeyGreaterEqualsExpr{constructor(G,Z){this.key=G,this.value=Z,this.type=13}static create(G,Z){return new ContextKeyGreaterEqualsExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type&&(this.key===G.key&&this.value===G.value)}evaluate(G){return parseFloat(G.getValue(this.key))>=parseFloat(this.value)}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return ContextKeySmallerExpr.create(this.key,this.value)}}class ContextKeySmallerExpr{constructor(G,Z){this.key=G,this.value=Z,this.type=14}static create(G,Z){return new ContextKeySmallerExpr(G,Z)}cmp(G){return G.type!==this.type?this.type-G.type:cmp2(this.key,this.value,G.key,G.value)}equals(G){return G.type===this.type&&(this.key===G.key&&this.value===G.value)}evaluate(G){return parseFloat(G.getValue(this.key))G.key)return 1;const Z=this.regexp?this.regexp.source:"",ne=G.regexp?G.regexp.source:"";return Zne?1:0}equals(G){if(G.type===this.type){const Z=this.regexp?this.regexp.source:"",ne=G.regexp?G.regexp.source:"";return this.key===G.key&&Z===ne}return!1}evaluate(G){let Z=G.getValue(this.key);return!!this.regexp&&this.regexp.test(Z)}serialize(){const G=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${G}`}keys(){return[this.key]}negate(){return ContextKeyNotRegexExpr.create(this)}}class ContextKeyNotRegexExpr{constructor(G){this._actual=G,this.type=8}static create(G){return new ContextKeyNotRegexExpr(G)}cmp(G){return G.type!==this.type?this.type-G.type:this._actual.cmp(G._actual)}equals(G){return G.type===this.type&&this._actual.equals(G._actual)}evaluate(G){return!this._actual.evaluate(G)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class ContextKeyAndExpr{constructor(G){this.expr=G,this.type=6}static create(G){return ContextKeyAndExpr._normalizeArr(G)}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.lengthG.expr.length)return 1;for(let Z=0,ne=this.expr.length;Z1;){const G=Z[Z.length-1];if(9!==G.type)break;Z.pop();const ne=Z.pop(),ie=ContextKeyOrExpr.create(G.expr.map(G=>ContextKeyAndExpr.create([G,ne])));ie&&(Z.push(ie),Z.sort(cmp))}return 1===Z.length?Z[0]:new ContextKeyAndExpr(Z)}}serialize(){return this.expr.map(G=>G.serialize()).join(" && ")}keys(){const G=[];for(let Z of this.expr)G.push(...Z.keys());return G}negate(){let G=[];for(let Z of this.expr)G.push(Z.negate());return ContextKeyOrExpr.create(G)}}class ContextKeyOrExpr{constructor(G){this.expr=G,this.type=9}static create(G){const Z=ContextKeyOrExpr._normalizeArr(G);if(0!==Z.length)return 1===Z.length?Z[0]:new ContextKeyOrExpr(Z)}cmp(G){if(G.type!==this.type)return this.type-G.type;if(this.expr.lengthG.expr.length)return 1;for(let Z=0,ne=this.expr.length;ZG.serialize()).join(" || ")}keys(){const G=[];for(let Z of this.expr)G.push(...Z.keys());return G}negate(){let G=[];for(let Z of this.expr)G.push(Z.negate());const terminals=G=>9===G.type?G.expr:[G];for(;G.length>1;){const Z=G.shift(),ne=G.shift(),ie=[];for(const G of terminals(Z))for(const Z of terminals(ne))ie.push(ContextKeyExpr.and(G,Z));G.unshift(ContextKeyExpr.or(...ie))}return G[0]}}class RawContextKey extends ContextKeyDefinedExpr{constructor(G,Z,ne){super(G),this._defaultValue=Z,"object"==typeof ne?RawContextKey._info.push(Object.assign(Object.assign({},ne),{key:G})):!0!==ne&&RawContextKey._info.push({key:G,description:ne,type:null!=Z?typeof Z:void 0})}static all(){return RawContextKey._info.values()}bindTo(G){return G.createKey(this.key,this._defaultValue)}getValue(G){return G.getContextKeyValue(this.key)}toNegated(){return ContextKeyExpr.not(this.key)}isEqualTo(G){return ContextKeyExpr.equals(this.key,G)}}RawContextKey._info=[];const Ce=Object(se.c)("contextKeyService"),Se="setContext";function cmp1(G,Z){return GZ?1:0}function cmp2(G,Z,ne,ie){return Gne?1:Zie?1:0}},262:function(G,Z,ne){"use strict";var ie;ne.d(Z,"b",(function(){return ie})),ne.d(Z,"c",(function(){return StandardAutoClosingPairConditional})),ne.d(Z,"a",(function(){return AutoClosingPairs})),function(G){G[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent"}(ie||(ie={}));class StandardAutoClosingPairConditional{constructor(G){if(this._standardAutoClosingPairConditionalBrand=void 0,this.open=G.open,this.close=G.close,this._standardTokenMask=0,Array.isArray(G.notIn))for(let Z=0,ne=G.notIn.length;Zse&&(se=G)}return se}if("string"==typeof G)return ie?"*"===G?5:G===ne?10:0:0;if(G){const{language:se,pattern:ce,scheme:fe,hasAccessToAllModels:me}=G;if(!ie&&!me)return 0;let Se=0;if(fe)if(fe===Z.scheme)Se=10;else{if("*"!==fe)return 0;Se=5}if(se)if(se===ne)Se=10;else{if("*"!==se)return 0;Se=Math.max(Se,5)}if(ce){let G;if(G="string"==typeof ce?ce:Object.assign(Object.assign({},ce),{base:Object(Ce.d)(ce.base)}),G!==Z.fsPath&&!Object(ge.a)(G,Z.fsPath))return 0;Se=10}return Se}return 0}var Se=ne(187);function isExclusive(G){return"string"!=typeof G&&(Array.isArray(G)?G.every(isExclusive):!!G.exclusive)}class languageFeatureRegistry_LanguageFeatureRegistry{constructor(){this._clock=0,this._entries=[],this._onDidChange=new ie.b}get onDidChange(){return this._onDidChange.event}register(G,Z){let ne={selector:G,provider:Z,_score:-1,_time:this._clock++};return this._entries.push(ne),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(ce.i)(()=>{if(ne){let G=this._entries.indexOf(ne);G>=0&&(this._entries.splice(G,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),ne=void 0)}})}has(G){return this.all(G).length>0}all(G){if(!G)return[];this._updateScores(G);const Z=[];for(let G of this._entries)G._score>0&&Z.push(G.provider);return Z}ordered(G){const Z=[];return this._orderedForEach(G,G=>Z.push(G.provider)),Z}orderedGroups(G){const Z=[];let ne,ie;return this._orderedForEach(G,G=>{ne&&ie===G._score?ne.push(G.provider):(ie=G._score,ne=[G.provider],Z.push(ne))}),Z}_orderedForEach(G,Z){if(G){this._updateScores(G);for(const G of this._entries)G._score>0&&Z(G)}}_updateScores(G){let Z={uri:G.uri.toString(),language:G.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==Z.language||this._lastCandidate.uri!==Z.uri){this._lastCandidate=Z;for(let Z of this._entries)if(Z._score=score(Z.selector,G.uri,G.getLanguageIdentifier().language,Object(Se.b)(G)),isExclusive(Z.selector)&&Z._score>0){for(let G of this._entries)G._score=0;Z._score=1e3;break}this._entries.sort(languageFeatureRegistry_LanguageFeatureRegistry._compareByScoreAndTime)}}static _compareByScoreAndTime(G,Z){return G._scoreZ._score?-1:G._timeZ._time?-1:0}}class languageFeatureRegistry_LanguageFeatureRequestDelays{constructor(G,Z,ne=Number.MAX_SAFE_INTEGER){this._registry=G,this.min=Z,this.max=ne,this._cache=new fe.a(50,.7)}_key(G){return G.id+Object(se.b)(this._registry.all(G))}_clamp(G){return void 0===G?this.min:Math.min(this.max,Math.max(this.min,Math.floor(1.3*G)))}get(G){const Z=this._key(G),ne=this._cache.get(Z);return this._clamp(null==ne?void 0:ne.value)}update(G,Z){const ne=this._key(G);let ie=this._cache.get(ne);return ie||(ie=new me.a,this._cache.set(ne,ie)),ie.update(Z),this.get(G)}}},27:function(G,Z,ne){"use strict";function isFalsyOrWhitespace(G){return!G||"string"!=typeof G||0===G.trim().length}ne.d(Z,"D",(function(){return isFalsyOrWhitespace})),ne.d(Z,"w",(function(){return format})),ne.d(Z,"t",(function(){return escape})),ne.d(Z,"u",(function(){return escapeRegExpCharacters})),ne.d(Z,"V",(function(){return trim})),ne.d(Z,"K",(function(){return ltrim})),ne.d(Z,"P",(function(){return rtrim})),ne.d(Z,"p",(function(){return convertSimple2RegExpPattern})),ne.d(Z,"U",(function(){return stripWildcards})),ne.d(Z,"q",(function(){return createRegExp})),ne.d(Z,"O",(function(){return regExpLeadsToEndlessLoop})),ne.d(Z,"N",(function(){return regExpFlags})),ne.d(Z,"R",(function(){return splitLines})),ne.d(Z,"v",(function(){return firstNonWhitespaceIndex})),ne.d(Z,"y",(function(){return getLeadingWhitespace})),ne.d(Z,"J",(function(){return lastNonWhitespaceIndex})),ne.d(Z,"f",(function(){return compare})),ne.d(Z,"h",(function(){return compareSubstring})),ne.d(Z,"g",(function(){return compareIgnoreCase})),ne.d(Z,"i",(function(){return compareSubstringIgnoreCase})),ne.d(Z,"H",(function(){return isLowerAsciiLetter})),ne.d(Z,"I",(function(){return isUpperAsciiLetter})),ne.d(Z,"s",(function(){return equalsIgnoreCase})),ne.d(Z,"S",(function(){return startsWithIgnoreCase})),ne.d(Z,"d",(function(){return commonPrefixLength})),ne.d(Z,"e",(function(){return commonSuffixLength})),ne.d(Z,"F",(function(){return isHighSurrogate})),ne.d(Z,"G",(function(){return isLowSurrogate})),ne.d(Z,"j",(function(){return computeCodePoint})),ne.d(Z,"A",(function(){return getNextCodePoint})),ne.d(Z,"L",(function(){return nextCharLength})),ne.d(Z,"M",(function(){return prevCharLength})),ne.d(Z,"r",(function(){return decodeUTF8})),ne.d(Z,"m",(function(){return containsRTL})),ne.d(Z,"k",(function(){return containsEmoji})),ne.d(Z,"B",(function(){return isBasicASCII})),ne.d(Z,"a",(function(){return me})),ne.d(Z,"n",(function(){return containsUnusualLineTerminators})),ne.d(Z,"l",(function(){return containsFullWidthCharacter})),ne.d(Z,"E",(function(){return isFullWidthCharacter})),ne.d(Z,"C",(function(){return isEmojiImprecise})),ne.d(Z,"b",(function(){return ge})),ne.d(Z,"T",(function(){return startsWithUTF8BOM})),ne.d(Z,"o",(function(){return containsUppercaseCharacter})),ne.d(Z,"Q",(function(){return singleLetterHash})),ne.d(Z,"x",(function(){return getGraphemeBreakType})),ne.d(Z,"c",(function(){return breakBetweenGraphemeBreakType})),ne.d(Z,"z",(function(){return getLeftDeleteOffset}));const ie=/{(\d+)}/g;function format(G,...Z){return 0===Z.length?G:G.replace(ie,(function(G,ne){const ie=parseInt(ne,10);return isNaN(ie)||ie<0||ie>=Z.length?G:Z[ie]}))}function escape(G){return G.replace(/[<>&]/g,(function(G){switch(G){case"<":return"<";case">":return">";case"&":return"&";default:return G}}))}function escapeRegExpCharacters(G){return G.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function trim(G,Z=" "){return rtrim(ltrim(G,Z),Z)}function ltrim(G,Z){if(!G||!Z)return G;const ne=Z.length;if(0===ne||0===G.length)return G;let ie=0;for(;G.indexOf(Z,ie)===ie;)ie+=ne;return G.substring(ie)}function rtrim(G,Z){if(!G||!Z)return G;const ne=Z.length,ie=G.length;if(0===ne||0===ie)return G;let se=ie,ce=-1;for(;ce=G.lastIndexOf(Z,se-1),-1!==ce&&ce+ne===se;){if(0===ce)return"";se=ce}return G.substring(0,se)}function convertSimple2RegExpPattern(G){return G.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function stripWildcards(G){return G.replace(/\*/g,"")}function createRegExp(G,Z,ne={}){if(!G)throw new Error("Cannot create regex from empty string");Z||(G=escapeRegExpCharacters(G)),ne.wholeWord&&(/\B/.test(G.charAt(0))||(G="\\b"+G),/\B/.test(G.charAt(G.length-1))||(G+="\\b"));let ie="";return ne.global&&(ie+="g"),ne.matchCase||(ie+="i"),ne.multiline&&(ie+="m"),ne.unicode&&(ie+="u"),new RegExp(G,ie)}function regExpLeadsToEndlessLoop(G){if("^"===G.source||"^$"===G.source||"$"===G.source||"^\\s*$"===G.source)return!1;return!(!G.exec("")||0!==G.lastIndex)}function regExpFlags(G){return(G.global?"g":"")+(G.ignoreCase?"i":"")+(G.multiline?"m":"")+(G.unicode?"u":"")}function splitLines(G){return G.split(/\r\n|\r|\n/)}function firstNonWhitespaceIndex(G){for(let Z=0,ne=G.length;Z=0;ne--){const Z=G.charCodeAt(ne);if(32!==Z&&9!==Z)return ne}return-1}function compare(G,Z){return GZ?1:0}function compareSubstring(G,Z,ne=0,ie=G.length,se=0,ce=Z.length){for(;nece)return 1}const fe=ie-ne,me=ce-se;return feme?1:0}function compareIgnoreCase(G,Z){return compareSubstringIgnoreCase(G,Z,0,G.length,0,Z.length)}function compareSubstringIgnoreCase(G,Z,ne=0,ie=G.length,se=0,ce=Z.length){for(;neme?1:0}function isLowerAsciiLetter(G){return G>=97&&G<=122}function isUpperAsciiLetter(G){return G>=65&&G<=90}function isAsciiLetter(G){return isLowerAsciiLetter(G)||isUpperAsciiLetter(G)}function equalsIgnoreCase(G,Z){return G.length===Z.length&&doEqualsIgnoreCase(G,Z)}function doEqualsIgnoreCase(G,Z,ne=G.length){for(let ie=0;ieG.length)&&doEqualsIgnoreCase(G,Z,ne)}function commonPrefixLength(G,Z){let ne,ie=Math.min(G.length,Z.length);for(ne=0;ne1){const ie=G.charCodeAt(Z-2);if(isHighSurrogate(ie))return computeCodePoint(ie,ne)}return ne}function nextCharLength(G,Z){const ne=GraphemeBreakTree.getInstance(),ie=Z,se=G.length,ce=getNextCodePoint(G,se,Z);Z+=ce>=65536?2:1;let fe=ne.getGraphemeBreakType(ce);for(;Z=65536?2:1,fe=ce}return Z-ie}function prevCharLength(G,Z){const ne=GraphemeBreakTree.getInstance(),ie=Z,se=getPrevCodePoint(G,Z);Z-=se>=65536?2:1;let ce=ne.getGraphemeBreakType(se);for(;Z>0;){const ie=getPrevCodePoint(G,Z),se=ne.getGraphemeBreakType(ie);if(breakBetweenGraphemeBreakType(se,ce))break;Z-=ie>=65536?2:1,ce=se}return ie-Z}function decodeUTF8(G){const Z=G.byteLength,ne=[];let ie=0;for(;ie=240&&ie+3>>0|(63&G[ie++])<<12>>>0|(63&G[ie++])<<6>>>0|(63&G[ie++])<<0>>>0:se>=224&&ie+2>>0|(63&G[ie++])<<6>>>0|(63&G[ie++])<<0>>>0:se>=192&&ie+1>>0|(63&G[ie++])<<0>>>0:G[ie++],ce>=0&&ce<=55295||ce>=57344&&ce<=65535)ne.push(String.fromCharCode(ce));else if(ce>=65536&&ce<=1114111){const G=ce-65536,Z=55296+((1047552&G)>>>10),ie=56320+((1023&G)>>>0);ne.push(String.fromCharCode(Z)),ne.push(String.fromCharCode(ie))}else ne.push(String.fromCharCode(65533))}return ne.join("")}const se=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function containsRTL(G){return se.test(G)}const ce=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function containsEmoji(G){return ce.test(G)}const fe=/^[\t\n\r\x20-\x7E]*$/;function isBasicASCII(G){return fe.test(G)}const me=/[\u2028\u2029]/;function containsUnusualLineTerminators(G){return me.test(G)}function containsFullWidthCharacter(G){for(let Z=0,ne=G.length;Z=11904&&G<=55215||G>=63744&&G<=64255||G>=65281&&G<=65374}function isEmojiImprecise(G){return G>=127462&&G<=127487||8986===G||8987===G||9200===G||9203===G||G>=9728&&G<=10175||11088===G||11093===G||G>=127744&&G<=128591||G>=128640&&G<=128764||G>=128992&&G<=129003||G>=129280&&G<=129535||G>=129648&&G<=129750}const ge=String.fromCharCode(65279);function startsWithUTF8BOM(G){return!!(G&&G.length>0&&65279===G.charCodeAt(0))}function containsUppercaseCharacter(G,Z=!1){return!!G&&(Z&&(G=G.replace(/\\./g,"")),G.toLowerCase()!==G)}function singleLetterHash(G){return(G%=52)<26?String.fromCharCode(97+G):String.fromCharCode(65+G-26)}function getGraphemeBreakType(G){return GraphemeBreakTree.getInstance().getGraphemeBreakType(G)}function breakBetweenGraphemeBreakType(G,Z){return 0===G?5!==Z&&7!==Z:(2!==G||3!==Z)&&(4===G||2===G||3===G||(4===Z||2===Z||3===Z||(8!==G||8!==Z&&9!==Z&&11!==Z&&12!==Z)&&((11!==G&&9!==G||9!==Z&&10!==Z)&&((12!==G&&10!==G||10!==Z)&&(5!==Z&&13!==Z&&(7!==Z&&(1!==G&&((13!==G||14!==Z)&&(6!==G||6!==Z)))))))))}class GraphemeBreakTree{constructor(){this._data=function getGraphemeBreakRawData(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}()}static getInstance(){return GraphemeBreakTree._INSTANCE||(GraphemeBreakTree._INSTANCE=new GraphemeBreakTree),GraphemeBreakTree._INSTANCE}getGraphemeBreakType(G){if(G<32)return 10===G?3:13===G?2:4;if(G<127)return 0;const Z=this._data,ne=Z.length/3;let ie=1;for(;ie<=ne;)if(GZ[3*ie+1]))return Z[3*ie+2];ie=2*ie+1}return 0}}function getLeftDeleteOffset(G,Z){if(0===G)return 0;const ne=function getOffsetBeforeLastEmojiComponent(G,Z){let ne=getPrevCodePoint(Z,G);G-=getUTF16Length(ne);for(;isEmojiModifier(ne)||65039===ne||8419===ne;){if(0===G)return;ne=getPrevCodePoint(Z,G),G-=getUTF16Length(ne)}if(!isEmojiImprecise(ne))return;if(G>=0){const ne=getPrevCodePoint(Z,G);8205===ne&&(G-=getUTF16Length(ne))}return G}(G,Z);if(void 0!==ne)return ne;return G-=getUTF16Length(getPrevCodePoint(Z,G))}function getUTF16Length(G){return G>=65536?2:1}function isEmojiModifier(G){return 127995<=G&&G<=127999}GraphemeBreakTree._INSTANCE=null},279:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return StandardMouseEvent})),ne.d(Z,"b",(function(){return StandardWheelEvent}));var ie=ne(130),se=ne(1670),ce=ne(46);class StandardMouseEvent{constructor(G){this.timestamp=Date.now(),this.browserEvent=G,this.leftButton=0===G.button,this.middleButton=1===G.button,this.rightButton=2===G.button,this.buttons=G.buttons,this.target=G.target,this.detail=G.detail||1,"dblclick"===G.type&&(this.detail=2),this.ctrlKey=G.ctrlKey,this.shiftKey=G.shiftKey,this.altKey=G.altKey,this.metaKey=G.metaKey,"number"==typeof G.pageX?(this.posx=G.pageX,this.posy=G.pageY):(this.posx=G.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=G.clientY+document.body.scrollTop+document.documentElement.scrollTop);let Z=se.a.getPositionOfChildWindowRelativeToAncestorWindow(self,G.view);this.posx-=Z.left,this.posy-=Z.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class StandardWheelEvent{constructor(G,Z=0,ne=0){if(this.browserEvent=G||null,this.target=G?G.target||G.targetNode||G.srcElement:null,this.deltaY=ne,this.deltaX=Z,G){let Z=G,ne=G;if(void 0!==Z.wheelDeltaY)this.deltaY=Z.wheelDeltaY/120;else if(void 0!==ne.VERTICAL_AXIS&&ne.axis===ne.VERTICAL_AXIS)this.deltaY=-ne.detail/3;else if("wheel"===G.type){const Z=G;Z.deltaMode===Z.DOM_DELTA_LINE?ie.g&&!ce.f?this.deltaY=-G.deltaY/3:this.deltaY=-G.deltaY:this.deltaY=-G.deltaY/40}if(void 0!==Z.wheelDeltaX)ie.h&&ce.j?this.deltaX=-Z.wheelDeltaX/120:this.deltaX=Z.wheelDeltaX/120;else if(void 0!==ne.HORIZONTAL_AXIS&&ne.axis===ne.HORIZONTAL_AXIS)this.deltaX=-G.detail/3;else if("wheel"===G.type){const Z=G;Z.deltaMode===Z.DOM_DELTA_LINE?ie.g&&!ce.f?this.deltaX=-G.deltaX/3:this.deltaX=-G.deltaX:this.deltaX=-G.deltaX/40}0===this.deltaY&&0===this.deltaX&&G.wheelDelta&&(this.deltaY=G.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},2853:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearGetThemeCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(7315)),ce=_interopRequireDefault(ne(7317)),fe=ne(1152);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},2854:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},2857:function(G,Z){const ne=Object.freeze({loose:!0}),ie=Object.freeze({});G.exports=G=>G?"object"!=typeof G?ne:G:ie},2858:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z,ne)=>{const se=new ie(G,ne),ce=new ie(Z,ne);return se.compare(ce)||se.compareBuild(ce)}},2859:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>ie(G,Z,ne)<0},286:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.checkStrictMode=Z.getErrorPath=Z.Type=Z.useFunc=Z.setEvaluated=Z.evaluatedPropsToName=Z.mergeEvaluated=Z.eachItem=Z.unescapeJsonPointer=Z.escapeJsonPointer=Z.escapeFragment=Z.unescapeFragment=Z.schemaRefOrVal=Z.schemaHasRulesButRef=Z.schemaHasRules=Z.checkUnknownRules=Z.alwaysValidSchema=Z.toHash=void 0;const ie=ne(233),se=ne(2028);function checkUnknownRules(G,Z=G.schema){const{opts:ne,self:ie}=G;if(!ne.strictSchema)return;if("boolean"==typeof Z)return;const se=ie.RULES.keywords;for(const ne in Z)se[ne]||checkStrictMode(G,`unknown keyword: "${ne}"`)}function schemaHasRules(G,Z){if("boolean"==typeof G)return!G;for(const ne in G)if(Z[ne])return!0;return!1}function escapeJsonPointer(G){return"number"==typeof G?""+G:G.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(G){return G.replace(/~1/g,"/").replace(/~0/g,"~")}function makeMergeEvaluated({mergeNames:G,mergeToName:Z,mergeValues:ne,resultToName:se}){return(ce,fe,me,ge)=>{const Ce=void 0===me?fe:me instanceof ie.Name?(fe instanceof ie.Name?G(ce,fe,me):Z(ce,fe,me),me):fe instanceof ie.Name?(Z(ce,me,fe),fe):ne(fe,me);return ge!==ie.Name||Ce instanceof ie.Name?Ce:se(ce,Ce)}}function evaluatedPropsToName(G,Z){if(!0===Z)return G.var("props",!0);const ne=G.var("props",ie._`{}`);return void 0!==Z&&setEvaluated(G,ne,Z),ne}function setEvaluated(G,Z,ne){Object.keys(ne).forEach(ne=>G.assign(ie._`${Z}${(0,ie.getProperty)(ne)}`,!0))}Z.toHash=function toHash(G){const Z={};for(const ne of G)Z[ne]=!0;return Z},Z.alwaysValidSchema=function alwaysValidSchema(G,Z){return"boolean"==typeof Z?Z:0===Object.keys(Z).length||(checkUnknownRules(G,Z),!schemaHasRules(Z,G.self.RULES.all))},Z.checkUnknownRules=checkUnknownRules,Z.schemaHasRules=schemaHasRules,Z.schemaHasRulesButRef=function schemaHasRulesButRef(G,Z){if("boolean"==typeof G)return!G;for(const ne in G)if("$ref"!==ne&&Z.all[ne])return!0;return!1},Z.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:G,schemaPath:Z},ne,se,ce){if(!ce){if("number"==typeof ne||"boolean"==typeof ne)return ne;if("string"==typeof ne)return ie._`${ne}`}return ie._`${G}${Z}${(0,ie.getProperty)(se)}`},Z.unescapeFragment=function unescapeFragment(G){return unescapeJsonPointer(decodeURIComponent(G))},Z.escapeFragment=function escapeFragment(G){return encodeURIComponent(escapeJsonPointer(G))},Z.escapeJsonPointer=escapeJsonPointer,Z.unescapeJsonPointer=unescapeJsonPointer,Z.eachItem=function eachItem(G,Z){if(Array.isArray(G))for(const ne of G)Z(ne);else Z(G)},Z.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(G,Z,ne)=>G.if(ie._`${ne} !== true && ${Z} !== undefined`,()=>{G.if(ie._`${Z} === true`,()=>G.assign(ne,!0),()=>G.assign(ne,ie._`${ne} || {}`).code(ie._`Object.assign(${ne}, ${Z})`))}),mergeToName:(G,Z,ne)=>G.if(ie._`${ne} !== true`,()=>{!0===Z?G.assign(ne,!0):(G.assign(ne,ie._`${ne} || {}`),setEvaluated(G,ne,Z))}),mergeValues:(G,Z)=>!0===G||{...G,...Z},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(G,Z,ne)=>G.if(ie._`${ne} !== true && ${Z} !== undefined`,()=>G.assign(ne,ie._`${Z} === true ? true : ${ne} > ${Z} ? ${ne} : ${Z}`)),mergeToName:(G,Z,ne)=>G.if(ie._`${ne} !== true`,()=>G.assign(ne,!0===Z||ie._`${ne} > ${Z} ? ${ne} : ${Z}`)),mergeValues:(G,Z)=>!0===G||Math.max(G,Z),resultToName:(G,Z)=>G.var("items",Z)})},Z.evaluatedPropsToName=evaluatedPropsToName,Z.setEvaluated=setEvaluated;const ce={};var fe;function checkStrictMode(G,Z,ne=G.opts.strictSchema){if(ne){if(Z="strict mode: "+Z,!0===ne)throw new Error(Z);G.self.logger.warn(Z)}}Z.useFunc=function useFunc(G,Z){return G.scopeValue("func",{ref:Z,code:ce[Z.code]||(ce[Z.code]=new se._Code(Z.code))})},function(G){G[G.Num=0]="Num",G[G.Str=1]="Str"}(fe=Z.Type||(Z.Type={})),Z.getErrorPath=function getErrorPath(G,Z,ne){if(G instanceof ie.Name){const se=Z===fe.Num;return ne?se?ie._`"[" + ${G} + "]"`:ie._`"['" + ${G} + "']"`:se?ie._`"/" + ${G}`:ie._`"/" + ${G}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return ne?(0,ie.getProperty)(G).toString():"/"+escapeJsonPointer(G)},Z.checkStrictMode=checkStrictMode},2860:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>ie(G,Z,ne)>=0},2861:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>ie(G,Z,ne)<=0},2862:function(G,Z,ne){const ie=ne(572),se=ne(2005),{ANY:ce}=se,fe=ne(757),me=ne(2006),ge=ne(2004),Ce=ne(2859),Se=ne(2861),Me=ne(2860);G.exports=(G,Z,ne,ke)=>{let xe,De,Ie,Re,ze;switch(G=new ie(G,ke),Z=new fe(Z,ke),ne){case">":xe=ge,De=Se,Ie=Ce,Re=">",ze=">=";break;case"<":xe=Ce,De=Me,Ie=ge,Re="<",ze="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(me(G,Z,ke))return!1;for(let ne=0;ne{G.semver===ce&&(G=new se(">=0.0.0")),fe=fe||G,me=me||G,xe(G.semver,fe.semver,ke)?fe=G:Ie(G.semver,me.semver,ke)&&(me=G)}),fe.operator===Re||fe.operator===ze)return!1;if((!me.operator||me.operator===Re)&&De(G,me.semver))return!1;if(me.operator===ze&&Ie(G,me.semver))return!1}return!0}},2863:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=185)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},150:function(G,Z){G.exports=ne(470)},151:function(G,Z){G.exports=ne(271)},152:function(G,Z){G.exports=ne(182)},16:function(G,Z){G.exports=ne(2007)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},185:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Jt})),ne.d(Z,"PopoverContext",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(93),ge=ne(150),Ce=ne.n(ge),Se=ne(58),Me=ne.n(Se),ke=ne(151),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(15),ze=ne.n(Re),$e=ne(152),Je=ne.n($e),it=ne(19),ot=ne.n(it),at=ne(71),st=ne.n(at),ct=ne(9),ut=ne.n(ct),dt=ne(5),ht=ne.n(dt),ft=ne(33),_t=ne.n(ft),yt=ne(0),vt=ne(43),wt=ne(16),Ct=ne.n(wt),St=ne(85),Mt=ne.n(St),kt=ne(53),xt=ne.n(kt),Lt=ne(31);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2864)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(2865)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(4084)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(7358)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},2864:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSortedTabbableElements=getSortedTabbableElements,Z.isTabKey=isTabKey,Z.handleTab=function handleTab(G,Z){if(!G.contains(document.activeElement))return null;if(!isTabKey(Z))return null;var ne=getSortedTabbableElements(G);if(0===ne.length)return document.activeElement===G?(Z.preventDefault(),G):null;var ie=Z&&Z.target||G.querySelector(":focus"),se=ne.indexOf(ie);-1===se&&(se=Z.shiftKey?0:ne.length-1);Z.shiftKey?ne.unshift(ne.pop()):ne.push(ne.shift());return Z.preventDefault(),ne[se].focus(),ne[se]},Z.takeFocus=function takeFocus(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(1154),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},2865:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(2866)}})},2866:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=192)}({1:function(G,Z){G.exports=ne(2)},192:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Me})),ne.d(Z,"AnimationToggleContext",(function(){return me})),ne.d(Z,"AnimationToggleProvider",(function(){return xe})),ne.d(Z,"useAnimationToggle",(function(){return ge}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=se.a.createContext(!0);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635ZM16 10.5015C16 13.539 13.5376 16.0015 10.5 16.0015C7.46243 16.0015 5 13.539 5 10.5015C5 7.4639 7.46243 5.00146 10.5 5.00146C13.5376 5.00146 16 7.4639 16 10.5015Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Magnifier(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="magnifier-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2869:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=148)}({0:function(G,Z){G.exports=ne(0)},148:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Search}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{const{error:Z,displayValue:ne}=G,ie=(0,ce.default)(G,Ce);return fe.default.createElement(ge.Styled,(0,se.default)({"data-test":"absolute-value"},ie,{__self:void 0,__source:{fileName:"/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/AbsoluteValue.tsx",lineNumber:14,columnNumber:9}}),Z&&(0,me._)("Invalid Value"),!Z&&ne)};Z.default=_default},2873:function(G,Z){G.exports=function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))},G.exports.default=G.exports,G.exports.__esModule=!0},2874:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(763),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},2876:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(2019)}})},2877:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=254)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},254:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M7.27904 9.00002C6.84633 9.00002 6.61792 9.51239 6.90715 9.83423L11.408 14.8426C11.6067 15.0637 11.9533 15.0636 12.1519 14.8425L16.6502 9.8341C16.9392 9.51223 16.7108 9 16.2782 9L7.27904 9.00002Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmalldown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2878:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(0)},13:function(G,Z){G.exports=ne(7425)},3:function(G,Z){G.exports=ne(643)},38:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cancel}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(13),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Mt={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),openInNewContext:fe.a.bool,to:fe.a.string};function Link(G){var Z=G.children,ne=_objectWithoutProperties(G,["children"]);return se.a.createElement(St,ne,Z)}Link.propTypes=Mt;var kt=Link,xt=ne(6),Lt=ne.n(xt),Tt=ne(12),At=ne.n(Tt),Dt=vt.a.p.withConfig({displayName:"TitleStyles__StyledTitle",componentId:"sc-6gbjha-0"})([""," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:Object(yt.css)(["font-size:14px;line-height:20px;"])})),Et=vt.a.div.withConfig({displayName:"MessageStyles__StyledContent",componentId:"eg66af-0"})(["",";",""],_t.mixins.reset("inline"),Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorActive)})),jt=vt()(At.a).withConfig({displayName:"MessageStyles__StyledRemove",componentId:"eg66af-1"})(["",";border:1px solid transparent;border-radius:",";color:",";",";cursor:pointer;position:absolute;"," padding:8px;&:hover,&:focus{background:",";border:",";color:",";}&:active{",";}",""],_t.mixins.reset("flex"),Object(_t.pick)({prisma:"50%",enterprise:_t.variables.borderRadius}),Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:{dark:_t.variables.gray96,light:_t.variables.gray45}}),(function(G){return"banner"===G.$appearance&&Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorInverted)})}),Object(_t.pick)({prisma:Object(yt.css)(["top:1px;right:2px;"]),enterprise:Object(yt.css)(["top:6px;right:8px;"])}),Object(_t.pick)({prisma:_t.variables.interactiveColorOverlayHover,enterprise:{dark:_t.variables.gray30,light:_t.variables.gray92}}),Object(_t.pick)({prisma:Object(yt.css)(["1px solid inherit"]),enterprise:Object(yt.css)(["1px solid ",""],_t.variables.gray80)}),Object(_t.pick)({enterprise:{dark:_t.variables.gray96,light:_t.variables.linkColor},prisma:_t.variables.contentColorActive}),Object(_t.pick)({prisma:Object(yt.css)(["background:",";"],_t.variables.interactiveColorOverlayActive),enterprise:Object(yt.css)(["box-shadow:",";"],_t.variables.focusShadow)}),Object(_t.pick)({prisma:Object(yt.css)(["&:focus{box-shadow:0 0 0 3px ",";}"],_t.variables.focusColor)})),It=vt.a.span.withConfig({displayName:"MessageStyles__StyledIconWrapper",componentId:"eg66af-2"})(["position:absolute;top:",";left:0;width:",";height:calc(100% - 8px);text-align:center;color:",";"," border-top-left-radius:inherit;border-bottom-left-radius:inherit;"," ",";"],Object(_t.pick)({prisma:"0px",enterprise:"7px"}),Object(_t.pick)({prisma:"24px",enterprise:"25px"}),_t.variables.white,Object(_t.pick)({prisma:Object(yt.css)(["padding-top:8px;"])}),Object(_t.pickVariant)("$type",{info:Object(yt.css)(["color:",";"],Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:_t.variables.infoColor})),success:Object(yt.css)(["color:",";"],_t.variables.accentColorPositive),warning:Object(yt.css)(["color:",";"],_t.variables.accentColorWarning),error:Object(yt.css)(["color:",";"],_t.variables.accentColorNegative)}),(function(G){return G.$fillStyle&&Object(_t.pick)({prisma:Object(yt.css)(["background-color:",";"],Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,success:_t.variables.accentColorPositive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative}))})})),Nt=vt()(Lt.a).withConfig({displayName:"MessageStyles__StyledBox",componentId:"eg66af-3"})(["",";position:relative;border-radius:",";margin-bottom:",";padding:",";word-wrap:break-word;"," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:_t.variables.borderRadius,enterprise:"5px"}),_t.variables.spacingSmall,Object(_t.pickVariant)("$hasRemoveIcon",{true:{prisma:"10px 40px 10px 28px",enterprise:"10px 40px 10px 40px"},false:{prisma:"10px 8px 10px 28px",enterprise:"10px 10px 10px 40px"}}),(function(G){return G.$fillStyle&&Object(_t.pick)({enterprise:Object(yt.css)(["& > ","{left:",";}",""],It,_t.variables.spacingXSmall,Object(_t.pickVariant)("$type",{info:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.infoColorL50,_t.variables.infoColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.infoColor,.5))})),success:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.successColorL50,_t.variables.successColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.successColor,.5))})),warning:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.warningColorL50,_t.variables.warningColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.warningColor,.5))})),error:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.errorColorL50,_t.variables.errorColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.errorColor,.5))}))})),prisma:Object(yt.css)(["border:1px solid transparent;background-color:",";box-shadow:",";& > ","{color:",";}"],_t.variables.backgroundColorPopup,_t.variables.embossShadow,It,_t.variables.backgroundColorPopup)})}),Object(_t.pick)({prisma:Object(yt.css)(["& ","{color:",";}"],Dt,Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative,success:_t.variables.accentColorPositive}))}));function Title_objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function Title_objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Rt={children:fe.a.node};function Title(G){var Z=G.children,ne=Title_objectWithoutProperties(G,["children"]);return se.a.createElement(Dt,ne,Z)}Title.propTypes=Rt;var zt=Title;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var qt={appearance:fe.a.oneOf(["default","fill","banner"]),children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),onRequestRemove:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"])},Wt=Object.freeze({info:at.a,warning:dt.a,error:it.a,success:ct.a}),Bt=Object.freeze({info:Re.a,warning:$e.a,error:De.a,success:ge.a});function Message(G){var Z=G.appearance,ne=void 0===Z?"default":Z,ce=G.children,fe=G.type,me=void 0===fe?"warning":fe,ge=G.onRequestRemove,Ce=Message_objectWithoutProperties(G,["appearance","children","type","onRequestRemove"]),Me=Object(_t.useSplunkTheme)().isEnterprise;var xe=Object(ie.useCallback)((function(G){null==ge||ge(G)}),[ge]);if("banner"===ne)return se.a.createElement(ft.a,_extends({type:me,"data-test":"banner",onRequestClose:xe},Ce),ce);var De=(Me?Wt:Bt)[me],Ie="fill"===ne,Re="default"===ne||"fill"===ne;return se.a.createElement(Nt,_extends({$appearance:ne,$fillStyle:Ie,$hasRemoveIcon:!!ge,$type:me,"data-test-type":me,"data-test":"message"},Ce),Re&&se.a.createElement(It,{$fillStyle:Ie,$type:me},Me?se.a.createElement(De,{height:"24px",width:"24px",hideDefaultTooltip:!0,screenReaderText:null}):se.a.createElement(De,{variant:"filled",style:{verticalAlign:"bottom"}})),se.a.createElement(Et,{"data-test":"content",$fillStyle:Ie},ce),ge&&se.a.createElement(jt,{"data-test":"remove",onClick:xe,$appearance:ne},Me?se.a.createElement(ke.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(Se.a,{height:"20px",width:"20px"})))}Message.propTypes=qt,Message.Title=zt,Message.Link=kt;var Ft=Message},2:function(G,Z){G.exports=ne(0)},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},3:function(G,Z){G.exports=ne(3)},37:function(G,Z){G.exports=ne(1312)},6:function(G,Z){G.exports=ne(604)},72:function(G,Z){G.exports=ne(4121)},73:function(G,Z){G.exports=ne(4122)},98:function(G,Z){G.exports=ne(4123)},99:function(G,Z){G.exports=ne(4124)}})},2881:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=174)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},12:function(G,Z){G.exports=ne(530)},145:function(G,Z){G.exports=ne(7434)},174:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return on})),ne.d(Z,"Item",(function(){return Vt})),ne.d(Z,"Heading",(function(){return ht})),ne.d(Z,"Divider",(function(){return Je})),ne.d(Z,"MenuContext",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(5),ge=ne.n(me),Ce=ne(21),Se=ne(31),Me=ne(7),ke=ne(48),xe=ne.n(ke),De=ne(3),Ie=ne.n(De),Re=ne(0),ze=Ie.a.div.withConfig({displayName:"DividerStyles__Styled",componentId:"l3zfh3-0"})(["border-top:1px solid ",";",""],Object(Re.pick)({enterprise:Re.variables.borderColor,prisma:Re.variables.neutral200}),Object(Re.pick)({prisma:{comfortable:Object(De.css)(["margin:8px 0;"]),compact:Object(De.css)(["margin:6px 0;"])}})),$e=Object(ie.createContext)({role:"menu"});function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var dt={children:fe.a.node,title:fe.a.bool,outerStyle:fe.a.object};function Heading(G){var Z=G.children,ne=G.title,ce=G.outerStyle,fe=_objectWithoutProperties(G,["children","title","outerStyle"]),me=Object(ie.useContext)($e).role,ge="prisma"===st()().family?se.a.createElement(ut,Heading_extends({as:ne?"h4":"h5",style:ce,"data-test":"heading"},fe),Z):se.a.createElement(ot.a,Heading_extends({style:_objectSpread(_objectSpread({},ce),{},{margin:0}),level:ne?4:"ss","data-test":"heading"},fe),Z);return se.a.createElement(ct,{"aria-hidden":"listbox"===me},ge)}Heading.propTypes=dt,Heading.filterConsecutive=!0,Heading.filterLast=!0,Heading.as="Heading";var ht=Heading,ft=ne(23),_t=ne.n(ft),yt=ne(145),vt=ne.n(yt),wt=ne(78),Ct=ne.n(wt),St=ne(97),Mt=ne.n(St),kt=ne(38),xt=ne.n(kt),Lt=ne(25),Tt=ne(96),At=ne.n(Tt),Dt=ne(65),Et=ne.n(Dt),jt=ne(4),It=Object(jt._)("Open externally"),Nt=Object(De.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),Rt=Ie()(Et.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-1turs2s-0"})([""," margin:0 0 0 3px;"],Nt),zt=Ie()(At.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-1turs2s-1"})([""," margin:0 0 0 4px;"],Nt);var qt=function External(){var G=Object(Re.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(Rt,{screenReaderText:It}):se.a.createElement(zt,{"aria-label":It,height:ne,width:ne},se.a.createElement("title",null,It))},Wt=ne(10),Bt=ne(91);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Item_extends(){return(Item_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Qt={children:fe.a.node,controlledExternally:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),retainFocus:fe.a.bool,stopScrollPropagation:fe.a.bool};function Menu(G){var Z=G.children,ne=G.controlledExternally,ce=G.elementRef,fe=G.retainFocus,me=G.stopScrollPropagation,ke=Menu_objectWithoutProperties(G,["children","controlledExternally","elementRef","retainFocus","stopScrollPropagation"]),De=Object(ie.useContext)($e).role,Ie=void 0===De?"menu":De,Re=Object(ie.useContext)(Ce.PopoverContext).retainFocus,ze=xe()(),Je=!0;null!=fe?Je=fe:null!=Re&&(Je=Re);var it,ot=se.a.useRef(0),at=[],st=0,ct=!1,ut=!1,dt=!1,ht=Object(ie.useCallback)((function(G,Z){var ne=Z.itemKey;null!=ne&&(ot.current=ne)}),[]),ft=ie.Children.toArray(Z).filter(ie.isValidElement).reduce((function(G,Z,ie,ce){if("Divider"===Z.type.as&&0===G.length)return G;if(("Heading"===Z.type.as||"Divider"===Z.type.as)&&!Z.props.title&&Z.type.filterConsecutive&&ce.length>ie+1){var fe=ce[ie+1];if("Heading"===fe.type.as||"Divider"===fe.type.as)return G}if(("Divider"===Z.type.as||"Heading"===Z.type.as)&&ie===ce.length-1)return G;if("Divider"!==Z.type.as&&"Heading"!==Z.type.as&&"string"!=typeof Z.type){var me=se.a.createRef();at.push(me),null!=it||"disabled"in Z.props&&Z.props.disabled||(it=st),ot.current===st&&"disabled"in Z.props&&Z.props.disabled&&(ct=!0),"selected"in Z.props&&Z.props.selected&&(ut=!0,"disabled"in Z.props&&!Z.props.disabled&&(dt=!0));var ge=ne||ot.current!==st?-1:void 0;return G.push(se.a.cloneElement(Z,{itemKey:st,onFocus:ht,preventFocus:ne,ref:function ref(G){Object(Wt.a)(Z.ref,G),Object(Wt.a)(me,G)},tabIndex:ge})),st+=1,G}return G.push(Z),G}),[]);it===ot.current||ut&&!dt||!ct||null==it||(ot.current=it,ze());var _t={"data-test":"menu",onKeyDown:function handleKeyDown(G){var Z,ne,ie,se=Object(Me.keycode)(G.nativeEvent),ce=ot.current;("down"===se||Je&&Object(Se.isTabKey)(G)?Z=Object(Jt.a)(at,ce,ce+1):"up"===se||Je&&Object(Se.isTabKey)(G)&&G.shiftKey?Z=Object(Jt.b)(at,ce,ce-1):"home"===se?Z=Object(Jt.a)(at,ce,0):"end"===se&&(Z=Object(Jt.b)(at,ce,at.length-1)),null!=Z)&&(null===(ne=Z.current)||void 0===ne||null===(ie=ne.focus)||void 0===ie||ie.call(ne),G.preventDefault())},role:Ie,tabIndex:null!=it||ne?void 0:0};return me?se.a.createElement(Zt,Menu_extends({},_t,{elementRef:ce,stopScrollPropagation:!0},ge()(ke,"tagName")),ft):se.a.createElement(Gt,Menu_extends({},_t,{ref:ce},ke),ft)}Menu.propTypes=Qt,Menu.defaultProps={stopScrollPropagation:!1},Menu.Item=Vt,Menu.Divider=Je,Menu.Heading=ht;var on=Menu},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(1308)},23:function(G,Z){G.exports=ne(78)},25:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2875)},38:function(G,Z){G.exports=ne(4130)},39:function(G,Z){G.exports=ne(2024)},4:function(G,Z){G.exports=ne(371)},48:function(G,Z){G.exports=ne(7435)},5:function(G,Z){G.exports=ne(41)},60:function(G,Z,ne){"use strict";function getNextListItem(G,Z,ne){for(var ie=0;ie0;ie-=1){var se,ce=(ie+ne)%G.length;if(!0!==(null===(se=G[ce].current)||void 0===se?void 0:se.props.disabled))return G[ce]}return G[Z]}ne.d(Z,"a",(function(){return getNextListItem})),ne.d(Z,"b",(function(){return getPrevListItem}))},65:function(G,Z){G.exports=ne(2879)},7:function(G,Z){G.exports=ne(763)},70:function(G,Z){G.exports=ne(1159)},78:function(G,Z){G.exports=ne(2882)},80:function(G,Z){G.exports=ne(4132)},89:function(G,Z){G.exports=ne(7436)},91:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie=function scrollIntoViewIfNeeded(G){if(G){var Z=G.offsetParent;Z&&(Z.scrollTop+Z.clientHeightG.offsetTop&&(Z.scrollTop=G.offsetTop))}}},96:function(G,Z){G.exports=ne(4116)},97:function(G,Z){G.exports=ne(4131)}})},2882:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=306)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},306:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.59294C21.0977 5.98347 21.0977 6.61663 20.7071 7.00716L10.1447 17.5695C9.55896 18.1553 8.60922 18.1553 8.02343 17.5695L3.29289 12.839C2.90237 12.4485 2.90237 11.8153 3.29289 11.4248C3.68342 11.0343 4.31658 11.0343 4.70711 11.4248L9.08409 15.8018L19.2929 5.59294C19.6835 5.20242 20.3166 5.20242 20.7071 5.59294Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Checkmark(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkmark-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2883:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getDefaultSaveImageCommandName=Z.getDefaultCommandMap=Z.getDefaultToolbarCommands=void 0;var ie=ne(7473),se=ne(7474),ce=ne(7475),fe=ne(7476),me=ne(7477),ge=ne(7478),Ce=ne(7479),Se=ne(7480),Me=ne(7481),ke=ne(7482);Z.getDefaultToolbarCommands=function getDefaultToolbarCommands(){return[["header","bold","italic","strikethrough"],["link","quote","code","image"],["unordered-list","ordered-list","checked-list"]]},Z.getDefaultCommandMap=function getDefaultCommandMap(){return{header:ie.headerCommand,bold:se.boldCommand,italic:ce.italicCommand,strikethrough:fe.strikeThroughCommand,link:me.linkCommand,quote:ge.quoteCommand,code:Ce.codeCommand,image:Me.imageCommand,"unordered-list":Se.unorderedListCommand,"ordered-list":Se.orderedListCommand,"checked-list":Se.checkedListCommand,"save-image":ke.saveImageCommand}},Z.getDefaultSaveImageCommandName=function getDefaultSaveImageCommandName(){return"save-image"}},2884:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(1249);ie.code='require("ajv/dist/runtime/equal").default',Z.default=ie},2885:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(324)),ce=ie(ne(17)),fe=ie(ne(18)),me=ie(ne(11)),ge=ie(ne(548)),Ce=ie(ne(42)),Se=ne(16),Me=ne(5),ke=ne(100),xe=ne(387),De=ne(76),Ie=ne(119),Re=ne(129);ne(29);var ze=["title","_key","kpis.title","kpis._key","kpis.unit"],$e=function(){function GlassTableDataProvider(){(0,ce.default)(this,GlassTableDataProvider),(0,me.default)(this,"_fetchServices",G=>{var Z={count:xe.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED,fields:ze,filterString:"",offset:0,sort_dir:"asc",sort_key:"identifying_name"},ne=(0,ge.default)(G,Z),ie={count:ne.count,fields:ne.fields.join(","),filter:ne.filterString?JSON.stringify((0,ke.createJSONFilter)(ne.filterString)):"",offset:ne.offset,output_mode:"json",sort_dir:ne.sort_dir,sort_key:ne.sort_key};return(0,Ie.retrieveServices)(ie).then(G=>G.data).then(G=>{var Z=G.map(G=>{var{title:Z,_key:ne,kpis:ie}=G;return{svc_title:Z,svc_id:ne,kpis:ie.sort((G,Z)=>G._key.startsWith(De.HEALTH_SCORE_KPI_PREFIX)?-1:Z._key.startsWith(De.HEALTH_SCORE_KPI_PREFIX)?1:0)}});return this._setServices(Z,ne),Z}).catch(G=>(0,Re.handleError)(G,(0,Me.gettext)("Could not fetch the service collection. Try refreshing the page.")).then(G=>G))}),(0,me.default)(this,"_fetchService",G=>(0,Ie.retrieveService)(G).then(G=>G.data).then(Z=>{var ne={svc_title:Z.title,svc_id:Z._key,kpis:Z.kpis.sort((G,Z)=>G._key.startsWith(De.HEALTH_SCORE_KPI_PREFIX)?-1:Z._key.startsWith(De.HEALTH_SCORE_KPI_PREFIX)?1:0)};return this._setService(G,ne),ne}).catch(Z=>{(0,Re.handleError)(Z,(0,Se.sprintf)((0,Me.gettext)("Could not fetch the service with ID: %s. Try refreshing the page."),G)).then(G=>G)})),(0,me.default)(this,"checkPermission",G=>this.availableServices.indexOf(G)>-1),this.totalCountOfServices=null,this.currentServicesListing=null,this.currentFilters={count:xe.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED,filter:"",offset:0},this.servicesPerIDMapCache={},this.availableServices=[],this.servicesKeyToTitleMap={}}var G,Z,ne,ie,$e;return(0,fe.default)(GlassTableDataProvider,[{key:"_setServices",value:function _setServices(G,Z){(0,Ce.default)(G,G=>{this.servicesKeyToTitleMap[G.svc_id]=G.svc_title,this.servicesPerIDMapCache[G.svc_id]=G}),this.currentServicesListing=G,this.currentFilters={count:Z.count,filter:Z.filterString,offset:Z.offset}}},{key:"_setService",value:function _setService(G,Z){this.servicesPerIDMapCache[G]=Z}},{key:"getServices",value:($e=(0,se.default)((function*(G){var Z=G.filterString.toLowerCase();return this.currentServicesListing&&Z===this.currentFilters.filter&&G.count===this.currentFilters.count&&G.offset===this.currentFilters.offset?this.currentServicesListing:(G.filterString=Z,yield this._fetchServices(G))})),function getServices(G){return $e.apply(this,arguments)})},{key:"getService",value:(ie=(0,se.default)((function*(G){return this.servicesPerIDMapCache[G]?this.servicesPerIDMapCache[G]:yield this._fetchService(G)})),function getService(G){return ie.apply(this,arguments)})},{key:"getServiceTitle",value:function getServiceTitle(G){return this.servicesKeyToTitleMap[G]?this.servicesKeyToTitleMap[G]:""}},{key:"registerAvailableServices",value:(ne=(0,se.default)((function*(){return(0,Ie.retrieveServices)({count:0,fields:["_key"],offset:0}).then(G=>G.data).then(G=>{this.availableServices=G.map(G=>{var{_key:Z}=G;return Z})}).catch(G=>{(0,Re.handleError)(G,(0,Me.gettext)("Could not fetch the all services. Try refreshing the page.")).then(G=>G)})})),function registerAvailableServices(){return ne.apply(this,arguments)})},{key:"_getTotalCountOfServices",value:function _getTotalCountOfServices(G){var Z=(0,ge.default)(G,{count:0});return(0,Ie.retrieveServicesCount)(Z).then(G=>G.data).then(Z=>{var ne=Z&&Z.count;return!G&&ne&&(this.totalCountOfServices=ne),ne}).catch(G=>{(0,Re.handleError)(G,(0,Me.gettext)("Could not fetch the total number of service with ID. Try refreshing the page.")).then(G=>G)})}},{key:"getTotalCountOfServices",value:(Z=(0,se.default)((function*(G){return G?yield this._getTotalCountOfServices(G):null===this.totalCountOfServices?yield this._getTotalCountOfServices():this.totalCountOfServices})),function getTotalCountOfServices(G){return Z.apply(this,arguments)})},{key:"getServiceSwappingServiceTitles",value:(G=(0,se.default)((function*(G){var Z={count:0,fields:ze.join(","),filter:JSON.stringify((0,ke.createJSONFilterMultipleObjects)("$or","_key",G)),offset:0,sort_dir:"asc",sort_key:"identifying_name"};return(0,Ie.retrieveServices)(Z).then(G=>G.data).then(G=>{(0,Ce.default)(G,G=>{this.servicesKeyToTitleMap[G._key]=G.title,this.servicesPerIDMapCache[G._key]=G,this.servicesPerIDMapCache[G._key].svc_id=G._key,this.servicesPerIDMapCache[G._key].svc_title=G.title})}).catch(G=>{(0,Re.handleError)(G,(0,Me.gettext)("Could not fetch the service selected for service swapping. Try refreshing the page.")).then(G=>G)})})),function getServiceSwappingServiceTitles(Z){return G.apply(this,arguments)})}],[{key:"getInstance",value:function getInstance(){return null===GlassTableDataProvider.myInstance&&(GlassTableDataProvider.myInstance=new GlassTableDataProvider),this.myInstance}}]),GlassTableDataProvider}();(0,me.default)($e,"myInstance",null);var Je=$e;Z.default=Je,G.exports=Z.default},2886:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearGetThemeCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(7701)),ce=_interopRequireDefault(ne(7703)),fe=ne(1162);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},2887:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},2893:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},198:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"isInternalLink",(function(){return at})),ne.d(Z,"NavigationContext",(function(){return ze})),ne.d(Z,"NavigationProvider",(function(){return NavigationProvider}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=(ne(11),ne(23)),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(22),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),De.variables.contentColorDisabled),Re={children:fe.a.node,onClick:fe.a.func,prefix:fe.a.string},ze=se.a.createContext({});function NavigationProvider(G){var Z=G.children,ne=G.onClick,ie=G.prefix;return se.a.createElement(ze.Provider,{value:{onClick:ne,prefix:ie}},Z)}NavigationProvider.propTypes=Re;var $e=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne ","{border-color:",";}"],dt,De.mixins.colorWithAlpha(De.variables.focusColor,.8))}),ut,Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray96,dark:"#b1bcc7"}),prisma:De.variables.white}),dt,Object(De.pick)({prisma:De.variables.interactiveColorOverlayHover}),Object(De.pick)({enterprise:{light:De.variables.borderLightColor,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray30},prisma:De.variables.interactiveColorBackgroundDisabled}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.06);"])}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:transparent;background-color:",";"],Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.accentColorL40,dark:De.variables.accentColorD20}),prisma:De.mixins.colorWithAlpha(De.variables.interactiveColorPrimary,.7)}))}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";background-color:",";",""],Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.transparent}),Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({prisma:Object(Ie.css)(["box-shadow:",";"],De.variables.embossShadow)}))}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}),Object(De.pick)({prisma:Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})),ft=ht.withComponent("span"),_t=Re.a.label.withConfig({displayName:"SwitchStyles__StyledLabel",componentId:"sc-844ieu-6"})([""," flex:1 1 auto;padding-left:",";color:inherit;",";"],De.mixins.reset("inline-block"),Object(De.pick)({enterprise:Object(Ie.css)(["",";"],De.variables.spacingQuarter),prisma:"8px"}),(function(G){return!G.$disabled&&Object(Ie.css)(["cursor:pointer;"])}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},2897:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},2901:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(7749)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},2902:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.clearGetThemeCache=Z.default=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(7765)),ce=_interopRequireDefault(ne(7767)),fe=ne(1164);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:{},Z=(0,fe.addThemeDefaults)(G),ne=Z.family,ie=Z.colorScheme,me=Z.density,ge="prisma"===ne,Ce="enterprise"===ne,Se="comfortable"===me,Me="compact"===me,ke="dark"===ie,xe="light"===ie;return Object.freeze(_objectSpread({colorScheme:ie,density:me,family:ne,isPrisma:ge,isEnterprise:Ce,isComfortable:Se,isCompact:Me,isDark:ke,isLight:xe},"enterprise"===ne?(0,se.default)({colorScheme:ie,density:me}):(0,ce.default)({colorScheme:ie,density:me})))}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density;return"".concat(Z).concat(ne).concat(ie)}));Z.clearGetThemeCache=function clearGetThemeCache(){var G,Z;return null===(G=(Z=me.cache).clear)||void 0===G?void 0:G.call(Z)};var ge=me;Z.default=ge},2903:function(G,Z,ne){"use strict";function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2907)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(2908)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(4218)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(7778)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},2907:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSortedTabbableElements=getSortedTabbableElements,Z.isTabKey=isTabKey,Z.handleTab=function handleTab(G,Z){if(!G.contains(document.activeElement))return null;if(!isTabKey(Z))return null;var ne=getSortedTabbableElements(G);if(0===ne.length)return document.activeElement===G?(Z.preventDefault(),G):null;var ie=Z&&Z.target||G.querySelector(":focus"),se=ne.indexOf(ie);-1===se&&(se=Z.shiftKey?0:ne.length-1);Z.shiftKey?ne.unshift(ne.pop()):ne.push(ne.shift());return Z.preventDefault(),ne[se].focus(),ne[se]},Z.takeFocus=function takeFocus(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(1318),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},2908:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(2909)}})},2909:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=192)}({1:function(G,Z){G.exports=ne(2)},192:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Me})),ne.d(Z,"AnimationToggleContext",(function(){return me})),ne.d(Z,"AnimationToggleProvider",(function(){return xe})),ne.d(Z,"useAnimationToggle",(function(){return ge}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=se.a.createContext(!0);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},2912:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=197)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},107:function(G,Z){G.exports=ne(4235)},11:function(G,Z){G.exports=ne(63)},14:function(G,Z){G.exports=ne(1319)},166:function(G,Z){G.exports=ne(7791)},17:function(G,Z){G.exports=ne(1321)},197:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Gt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(63),De=ne.n(xe),Ie=ne(107),Re=ne(26),ze=ne.n(Re),$e=ne(27),Je=ne.n($e),it=ne(54),ot=ne.n(it),at=ne(49),st=ne.n(at),ct=ne(14),ut=ne.n(ct),dt=ne(166),ht=ne.n(dt),ft=ne(0),_t=ne(41),yt=ne(4),vt=ne(34),wt=ne.n(vt);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635ZM16 10.5015C16 13.539 13.5376 16.0015 10.5 16.0015C7.46243 16.0015 5 13.539 5 10.5015C5 7.4639 7.46243 5.00146 10.5 5.00146C13.5376 5.00146 16 7.4639 16 10.5015Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0509 16.4635C13.7888 17.4283 12.2113 18.0015 10.5 18.0015C6.35786 18.0015 3 14.6436 3 10.5015C3 6.35933 6.35786 3.00146 10.5 3.00146C14.6421 3.00146 18 6.35933 18 10.5015C18 12.2112 17.4279 13.7873 16.4647 15.0489L20.7077 19.292C21.0983 19.6825 21.0983 20.3156 20.7077 20.7062C20.3172 21.0967 19.6841 21.0967 19.2935 20.7062L15.0509 16.4635Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Magnifier(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="magnifier-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},2914:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=148)}({0:function(G,Z){G.exports=ne(0)},148:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Search}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{ie.setState({open:!1})}),ie.state={open:ie.props.open},ie}return(0,ce.default)(MessageBanner,[{key:"render",value:function render(){var{children:G,appearance:Z,style:ne,type:ie,onBannerClose:se,isBannerCloseFlag:ce}=this.props,{open:fe}=this.state;return Me.default.createElement(Me.Fragment,null,fe&&Me.default.createElement(De.default,{"data-test-itsi":"message-banner-message",appearance:Z,onRequestRemove:ce?se:this.handleClose,type:ie,style:ne},G))}}]),MessageBanner}(Me.Component);ze.propTypes=Ie,ze.defaultProps=Re;var $e=ze;Z.default=$e,G.exports=Z.default},295:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return ce})),ne.d(Z,"a",(function(){return fe}));var ie=ne(60),se=ne(26);const ce=Object(ie.c)("accessibilityService"),fe=new se.c("accessibilityModeEnabled",!1)},296:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return registerIcon})),ne.d(Z,"a",(function(){return getIconRegistry})),ne.d(Z,"c",(function(){return xe}));var ie=ne(180),se=ne(50),ce=ne(19),fe=ne(4),me=ne(1349),ge=ne(57),Ce=ne(67);const Se=new class IconRegistry{constructor(){this._onDidChange=new ce.b,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:Object(fe.a)("iconDefintion.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:Object(fe.a)("iconDefintion.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${Ce.a.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(G,Z,ne,ie){const se=this.iconsById[G];if(se){if(ne&&!se.description){se.description=ne,this.iconSchema.properties[G].markdownDescription=`${ne} $(${G})`;const Z=this.iconReferenceSchema.enum.indexOf(G);-1!==Z&&(this.iconReferenceSchema.enumDescriptions[Z]=ne),this._onDidChange.fire()}return se}let ce={id:G,description:ne,defaults:Z,deprecationMessage:ie};this.iconsById[G]=ce;let fe={$ref:"#/definitions/icons"};return ie&&(fe.deprecationMessage=ie),ne&&(fe.markdownDescription=`${ne}: $(${G})`),this.iconSchema.properties[G]=fe,this.iconReferenceSchema.enum.push(G),this.iconReferenceSchema.enumDescriptions.push(ne||""),this._onDidChange.fire(),{id:G}}getIcons(){return Object.keys(this.iconsById).map(G=>this.iconsById[G])}getIcon(G){return this.iconsById[G]}getIconSchema(){return this.iconSchema}getIconFont(G){return this.iconFontsById[G]}toString(){const sorter=(G,Z)=>G.id.localeCompare(Z.id),classNames=G=>{for(;se.d.isThemeIcon(G.defaults);)G=this.iconsById[G.defaults.id];return"codicon codicon-"+(G?G.id:"")};let G=[];G.push("| preview | identifier | default codicon ID | description"),G.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const Z=Object.keys(this.iconsById).map(G=>this.iconsById[G]);for(const ne of Z.filter(G=>!!G.description).sort(sorter))G.push(`||${ne.id}|${se.d.isThemeIcon(ne.defaults)?ne.defaults.id:ne.id}|${ne.description||""}|`);G.push("| preview | identifier "),G.push("| ----------- | --------------------------------- |");for(const ne of Z.filter(G=>!se.d.isThemeIcon(G.defaults)).sort(sorter))G.push(`||${ne.id}|`);return G.join("\n")}};function registerIcon(G,Z,ne,ie){return Se.registerIcon(G,Z,ne,ie)}function getIconRegistry(){return Se}ie.a.add("base.contributions.icons",Se),function initialize(){for(const G of Ce.d.all)Se.registerIcon(G.id,G.definition,G.description);Ce.d.onDidRegister(G=>Se.registerIcon(G.id,G.definition,G.description))}();let Me=ie.a.as(me.a.JSONContribution);Me.registerSchema("vscode://schemas/icons",Se.getIconSchema());const ke=new ge.e(()=>Me.notifySchemaChanged("vscode://schemas/icons"),200);Se.onDidChange(()=>{ke.isScheduled()||ke.schedule()});const xe=registerIcon("widget-close",Ce.b.close,Object(fe.a)("widgetClose","Icon for the close action in widgets."))},297:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return MoveOperations}));var ie=ne(71),se=ne(34),ce=ne(12),fe=ne(27),me=ne(1673);class CursorPosition{constructor(G,Z,ne){this._cursorPositionBrand=void 0,this.lineNumber=G,this.column=Z,this.leftoverVisibleColumns=ne}}class MoveOperations{static leftPosition(G,Z){if(Z.column>G.getLineMinColumn(Z.lineNumber))return Z.delta(void 0,-fe.M(G.getLineContent(Z.lineNumber),Z.column-1));if(Z.lineNumber>1){const ne=Z.lineNumber-1;return new se.a(ne,G.getLineMaxColumn(ne))}return Z}static leftPositionAtomicSoftTabs(G,Z,ne){if(Z.column<=G.getLineIndentColumn(Z.lineNumber)){const ie=G.getLineMinColumn(Z.lineNumber),ce=G.getLineContent(Z.lineNumber),fe=me.a.atomicPosition(ce,Z.column-1,ne,0);if(-1!==fe&&fe+1>=ie)return new se.a(Z.lineNumber,fe+1)}return this.leftPosition(G,Z)}static left(G,Z,ne){const ie=G.stickyTabStops?MoveOperations.leftPositionAtomicSoftTabs(Z,ne,G.tabSize):MoveOperations.leftPosition(Z,ne);return new CursorPosition(ie.lineNumber,ie.column,0)}static moveLeft(G,Z,ne,ie,se){let ce,fe;if(ne.hasSelection()&&!ie)ce=ne.selection.startLineNumber,fe=ne.selection.startColumn;else{const ie=ne.position.delta(void 0,-(se-1)),me=Z.normalizePosition(MoveOperations.clipPositionColumn(ie,Z),0),ge=MoveOperations.left(G,Z,me);ce=ge.lineNumber,fe=ge.column}return ne.move(ie,ce,fe,0)}static clipPositionColumn(G,Z){return new se.a(G.lineNumber,MoveOperations.clipRange(G.column,Z.getLineMinColumn(G.lineNumber),Z.getLineMaxColumn(G.lineNumber)))}static clipRange(G,Z,ne){return Gne?ne:G}static rightPosition(G,Z,ne){return neCe?(ne=Ce,se=me?Z.getLineMaxColumn(ne):Math.min(Z.getLineMaxColumn(ne),se)):se=ie.a.columnFromVisibleColumn2(G,Z,ne,ge),ce=Se?0:ge-ie.a.visibleColumnFromColumn(Z.getLineContent(ne),se,G.tabSize),new CursorPosition(ne,se,ce)}static moveDown(G,Z,ne,ie,se){let ce,fe;ne.hasSelection()&&!ie?(ce=ne.selection.endLineNumber,fe=ne.selection.endColumn):(ce=ne.position.lineNumber,fe=ne.position.column);let me=MoveOperations.down(G,Z,ce,fe,ne.leftoverVisibleColumns,se,!0);return ne.move(ie,me.lineNumber,me.column,me.leftoverVisibleColumns)}static translateDown(G,Z,ne){let fe=ne.selection,me=MoveOperations.down(G,Z,fe.selectionStartLineNumber,fe.selectionStartColumn,ne.selectionStartLeftoverVisibleColumns,1,!1),ge=MoveOperations.down(G,Z,fe.positionLineNumber,fe.positionColumn,ne.leftoverVisibleColumns,1,!1);return new ie.f(new ce.a(me.lineNumber,me.column,me.lineNumber,me.column),me.leftoverVisibleColumns,new se.a(ge.lineNumber,ge.column),ge.leftoverVisibleColumns)}static up(G,Z,ne,se,ce,fe,me){const ge=ie.a.visibleColumnFromColumn(Z.getLineContent(ne),se,G.tabSize)+ce,Ce=1===ne&&1===se;return(ne-=fe)<1?(ne=1,se=me?Z.getLineMinColumn(ne):Math.min(Z.getLineMaxColumn(ne),se)):se=ie.a.columnFromVisibleColumn2(G,Z,ne,ge),ce=Ce?0:ge-ie.a.visibleColumnFromColumn(Z.getLineContent(ne),se,G.tabSize),new CursorPosition(ne,se,ce)}static moveUp(G,Z,ne,ie,se){let ce,fe;ne.hasSelection()&&!ie?(ce=ne.selection.startLineNumber,fe=ne.selection.startColumn):(ce=ne.position.lineNumber,fe=ne.position.column);let me=MoveOperations.up(G,Z,ce,fe,ne.leftoverVisibleColumns,se,!0);return ne.move(ie,me.lineNumber,me.column,me.leftoverVisibleColumns)}static translateUp(G,Z,ne){let fe=ne.selection,me=MoveOperations.up(G,Z,fe.selectionStartLineNumber,fe.selectionStartColumn,ne.selectionStartLeftoverVisibleColumns,1,!1),ge=MoveOperations.up(G,Z,fe.positionLineNumber,fe.positionColumn,ne.leftoverVisibleColumns,1,!1);return new ie.f(new ce.a(me.lineNumber,me.column,me.lineNumber,me.column),me.leftoverVisibleColumns,new se.a(ge.lineNumber,ge.column),ge.leftoverVisibleColumns)}static _isBlankLine(G,Z){return 0===G.getLineFirstNonWhitespaceColumn(Z)}static moveToPrevBlankLine(G,Z,ne,ie){let se=ne.position.lineNumber;for(;se>1&&this._isBlankLine(Z,se);)se--;for(;se>1&&!this._isBlankLine(Z,se);)se--;return ne.move(ie,se,Z.getLineMinColumn(se),0)}static moveToNextBlankLine(G,Z,ne,ie){const se=Z.getLineCount();let ce=ne.position.lineNumber;for(;ceie.a.None,registerValidator:()=>ie.a.None,registerExternalUriResolver:()=>ie.a.None,setDefaultExternalOpener(){},registerExternalOpener:()=>ie.a.None,open(){return __awaiter(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(G){return __awaiter(this,void 0,void 0,(function*(){return{resolved:G,dispose(){}}}))}});function matchesScheme(G,Z){return ce.a.isUri(G)?Object(se.s)(G.scheme,Z):Object(se.S)(G,Z+":")}},3117:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie}));var ie=ne(57),se=ne(44),ce=ne(51),fe=ne(700),me=ne(10),ge=ne(14),Ce=ne(127),Se=ne(12),Me=ne(117),ke=ne(35),xe=ne(1672),De=ne(156),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ie=class ColorDetector extends me.a{constructor(G,Z,ne){super(),this._editor=G,this._codeEditorService=Z,this._configurationService=ne,this._localToDispose=this._register(new me.b),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(G.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(G.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(ke.c.onDidChange(()=>this.onModelChanged())),this._register(G.onDidChangeConfiguration(()=>{let G=this._isEnabled;this._isEnabled=this.isEnabled(),G!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const G=this._editor.getModel();if(!G)return!1;const Z=G.getLanguageIdentifier(),ne=this._configurationService.getValue(Z.language);if(ne&&"object"==typeof ne){const G=ne.colorDecorators;if(G&&void 0!==G.enable&&!G.enable)return G.enable}return this._editor.getOption(15)}static get(G){return G.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const G=this._editor.getModel();G&&ke.c.has(G)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new ie.g,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},ColorDetector.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(ie.h)(G=>{const Z=this._editor.getModel();return Z?Object(xe.b)(Z,G):Promise.resolve([])}),this._computePromise.then(G=>{this.updateDecorations(G),this.updateColorDecorators(G),this._computePromise=null},ce.e)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(G){const Z=G.map(G=>({range:{startLineNumber:G.colorInfo.range.startLineNumber,startColumn:G.colorInfo.range.startColumn,endLineNumber:G.colorInfo.range.endLineNumber,endColumn:G.colorInfo.range.endColumn},options:Me.a.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,Z),this._colorDatas=new Map,this._decorationsIds.forEach((Z,ne)=>this._colorDatas.set(Z,G[ne]))}updateColorDecorators(G){let Z=[],ne={};for(let ie=0;ie{ne[G]||this._codeEditorService.removeDecorationType(G)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,Z)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(G=>{this._codeEditorService.removeDecorationType(G)})}getColorData(G){const Z=this._editor.getModel();if(!Z)return null;const ne=Z.getDecorationsInRange(Se.a.fromPositions(G,G)).filter(G=>this._colorDatas.has(G.id));return 0===ne.length?null:this._colorDatas.get(ne[0].id)}};Ie.ID="editor.contrib.colorDetector",Ie.RECOMPUTE_TIME=1e3,Ie=__decorate([__param(1,Ce.a),__param(2,De.a)],Ie),Object(ge.l)(Ie.ID,Ie)},3118:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"ModesHoverController",(function(){return Un}));var ie=ne(4),se=ne(165),ce=ne(10),fe=ne(14),me=ne(12),ge=ne(23),Ce=ne(373),Se=ne(6),Me=ne(34),ke=ne(117),xe=ne(35),De=ne(57),Ie=ne(51);class hoverOperation_HoverOperation{constructor(G,Z,ne,ie,se){this._computer=G,this._state=0,this._hoverTime=se,this._firstWaitScheduler=new De.e(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new De.e(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new De.e(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=Z,this._errorCallback=ne,this._progressCallback=ie}setHoverTime(G){this._hoverTime=G}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(De.h)(G=>this._computer.computeAsync(G)),this._asyncComputationPromise.then(G=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(G)},G=>this._onError(G))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(G){G&&this._computer.onResult(G,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(G){this._completeCallback(G)}_onError(G){this._errorCallback?this._errorCallback(G):Object(Ie.e)(G)}_onProgress(G){this._progressCallback(G)}start(G){if(0===G)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}var Re=ne(69),ze=ne(316),$e=(ne(7510),ne(416));const Je=Se.a;class hoverWidget_HoverWidget extends ce.a{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new $e.a(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class hoverWidget_HoverAction extends ce.a{constructor(G,Z,ne){super(),this.actionContainer=Se.q(G,Je("div.action-container")),this.action=Se.q(this.actionContainer,Je("a.action")),this.action.setAttribute("href","#"),this.action.setAttribute("role","button"),Z.iconClass&&Se.q(this.action,Je("span.icon."+Z.iconClass));Se.q(this.action,Je("span")).textContent=ne?`${Z.label} (${ne})`:Z.label,this._register(Se.i(this.actionContainer,Se.d.CLICK,G=>{G.stopPropagation(),G.preventDefault(),Z.run(this.actionContainer)})),this.setEnabled(!0)}static render(G,Z,ne){return new hoverWidget_HoverAction(G,Z,ne)}setEnabled(G){G?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var it=ne(222),ot=ne(181),at=ne(1350),st=ne(306),ct=ne(2113),ut=ne(448),dt=ne(650),ht=ne(241),ft=ne(331),_t=ne(50),yt=ne(13),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const vt=Se.a;class MarkerHover{constructor(G,Z,ne){this.owner=G,this.range=Z,this.marker=ne}isValidForHoverAnchor(G){return 1===G.type&&this.range.startColumn<=G.range.startColumn&&this.range.endColumn>=G.range.endColumn}}const wt={type:1,filter:{include:ht.b.QuickFix}};let Ct=class MarkerHoverParticipant{constructor(G,Z,ne,ie){this._editor=G,this._hover=Z,this._markerDecorationsService=ne,this._openerService=ie,this.recentMarkerCodeActionsInfo=void 0}computeSync(G,Z){if(!this._editor.hasModel()||1!==G.type)return[];const ne=this._editor.getModel(),ie=G.range.startLineNumber,se=ne.getLineMaxColumn(ie),ce=[];for(const fe of Z){const Z=fe.range.startLineNumber===ie?fe.range.startColumn:1,ge=fe.range.endLineNumber===ie?fe.range.endColumn:se,Ce=this._markerDecorationsService.getMarker(ne.uri,fe);if(!Ce)continue;const Se=new me.a(G.range.startLineNumber,Z,G.range.startLineNumber,ge);ce.push(new MarkerHover(this,Se,Ce))}return ce}renderHoverParts(G,Z,ne){if(!G.length)return ce.a.None;const ie=new ce.b;G.forEach(G=>Z.appendChild(this.renderMarkerHover(G,ie)));const se=1===G.length?G[0]:G.sort((G,Z)=>it.c.compare(G.marker.severity,Z.marker.severity))[0];return this.renderMarkerStatusbar(se,ne,ie),ie}renderMarkerHover(G,Z){const ne=vt("div.hover-row"),ie=Se.q(ne,vt("div.marker.hover-contents")),{source:se,message:ce,code:fe,relatedInformation:me}=G.marker;this._editor.applyFontInfo(ie);const ge=Se.q(ie,vt("span"));if(ge.style.whiteSpace="pre-wrap",ge.innerText=ce,se||fe)if(fe&&"string"!=typeof fe){const G=vt("span");if(se){Se.q(G,vt("span")).innerText=se}const ne=Se.q(G,vt("a.code-link"));ne.setAttribute("href",fe.target.toString()),Z.add(Se.i(ne,"click",G=>{this._openerService.open(fe.target,{allowCommands:!0}),G.preventDefault(),G.stopPropagation()}));Se.q(ne,vt("span")).innerText=fe.value;const ce=Se.q(ie,G);ce.style.opacity="0.6",ce.style.paddingLeft="6px"}else{const G=Se.q(ie,vt("span"));G.style.opacity="0.6",G.style.paddingLeft="6px",G.innerText=se&&fe?`${se}(${fe})`:se||`(${fe})`}if(Object(Re.n)(me))for(const{message:G,resource:ne,startLineNumber:se,startColumn:ce}of me){const fe=Se.q(ie,vt("div"));fe.style.marginTop="8px";const me=Se.q(fe,vt("a"));me.innerText=`${Object(ot.b)(ne)}(${se}, ${ce}): `,me.style.cursor="pointer",Z.add(Se.i(me,"click",G=>{G.stopPropagation(),G.preventDefault(),this._openerService&&this._openerService.open(ne,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:se,startColumn:ce}}}).catch(Ie.e)}));const ge=Se.q(fe,vt("span"));ge.innerText=G,this._editor.applyFontInfo(ge)}return ne}renderMarkerStatusbar(G,Z,ne){if(G.marker.severity!==it.c.Error&&G.marker.severity!==it.c.Warning&&G.marker.severity!==it.c.Info||Z.addAction({label:ie.a("view problem","View Problem"),commandId:ct.NextMarkerAction.ID,run:()=>{this._hover.hide(),ct.MarkerController.get(this._editor).showAtMarker(G.marker),this._editor.focus()}}),!this._editor.getOption(79)){const se=Z.append(vt("div"));this.recentMarkerCodeActionsInfo&&(it.a.makeKey(this.recentMarkerCodeActionsInfo.marker)===it.a.makeKey(G.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(se.textContent=ie.a("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const fe=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ce.a.None:ne.add(Object(De.i)(()=>se.textContent=ie.a("checkingForQuickFixes","Checking for quick fixes..."),200));se.textContent||(se.textContent=String.fromCharCode(160));const me=this.getCodeActions(G.marker);ne.add(Object(ce.i)(()=>me.cancel())),me.then(me=>{if(fe.dispose(),this.recentMarkerCodeActionsInfo={marker:G.marker,hasCodeActions:me.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return me.dispose(),void(se.textContent=ie.a("noQuickFixes","No quick fixes available"));se.style.display="none";let ge=!1;ne.add(Object(ce.i)(()=>{ge||me.dispose()})),Z.addAction({label:ie.a("quick fixes","Quick Fix..."),commandId:dt.e.Id,run:G=>{ge=!0;const Z=dt.f.get(this._editor),ne=Se.D(G);this._hover.hide(),Z.showCodeActions(wt,me,{x:ne.left+6,y:ne.top+ne.height+6})}})})}}getCodeActions(G){return Object(De.h)(Z=>Object(ut.d)(this._editor.getModel(),new me.a(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn),wt,ft.b.None,Z))}};Ct=__decorate([__param(2,at.a),__param(3,st.a)],Ct),Object(_t.f)((G,Z)=>{const ne=G.getColor(yt.Jc);ne&&Z.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${ne}; }`);const ie=G.getColor(yt.Ic);ie&&Z.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${ie}; }`)});var St=ne(60),Mt=ne(379),kt=ne(997),xt=ne(103);function getHover(G,Z,ne){const ie=xe.p.ordered(G).map(ie=>Promise.resolve(ie.provideHover(G,Z,ne)).then(G=>G&&function isValid(G){const Z=void 0!==G.range,ne=void 0!==G.contents&&G.contents&&G.contents.length>0;return Z&&ne}(G)?G:void 0,G=>{Object(Ie.f)(G)}));return Promise.all(ie).then(Re.e)}Object(fe.n)("_executeHoverProvider",(G,Z)=>getHover(G,Z,xt.a.None));var Lt=ne(156),markdownHoverParticipant_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},markdownHoverParticipant_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const Tt=Se.a;class MarkdownHover{constructor(G,Z,ne){this.owner=G,this.range=Z,this.contents=ne}isValidForHoverAnchor(G){return 1===G.type&&this.range.startColumn<=G.range.startColumn&&this.range.endColumn>=G.range.endColumn}}let At=class MarkdownHoverParticipant{constructor(G,Z,ne,ie,se){this._editor=G,this._hover=Z,this._modeService=ne,this._openerService=ie,this._configurationService=se}createLoadingMessage(G){return new MarkdownHover(this,G.range,[(new Mt.a).appendText(ie.a("modesContentHover.loading","Loading..."))])}computeSync(G,Z){if(!this._editor.hasModel()||1!==G.type)return[];const ne=this._editor.getModel(),se=G.range.startLineNumber,ce=ne.getLineMaxColumn(se),fe=[];for(const ne of Z){const Z=ne.range.startLineNumber===se?ne.range.startColumn:1,ie=ne.range.endLineNumber===se?ne.range.endColumn:ce,ge=ne.options.hoverMessage;if(!ge||Object(Mt.b)(ge))continue;const Ce=new me.a(G.range.startLineNumber,Z,G.range.startLineNumber,ie);fe.push(new MarkdownHover(this,Ce,Object(Re.c)(ge)))}const ge=this._editor.getModel().getLineLength(se),Ce=this._configurationService.getValue("editor.maxTokenizationLineLength");return"number"==typeof Ce&&ge>=Ce&&fe.push(new MarkdownHover(this,new me.a(se,1,se,ge+1),[{value:ie.a("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}])),fe}computeAsync(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||1!==G.type)return Promise.resolve([]);const Z=this._editor.getModel();if(!xe.p.has(Z))return Promise.resolve([]);const ie=yield getHover(Z,new Me.a(G.range.startLineNumber,G.range.startColumn),ne),se=[];for(const Z of ie){if(Object(Mt.b)(Z.contents))continue;const ne=Z.range?me.a.lift(Z.range):G.range;se.push(new MarkdownHover(this,ne,Z.contents))}return se}))}renderHoverParts(G,Z,ne){const ie=new ce.b;for(const ne of G)for(const G of ne.contents){if(Object(Mt.b)(G))continue;const ne=Tt("div.hover-row.markdown-hover"),se=Se.q(ne,Tt("div.hover-contents")),ce=ie.add(new kt.a({editor:this._editor},this._modeService,this._openerService));ie.add(ce.onDidRenderAsync(()=>{se.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));const fe=ie.add(ce.render(G));se.appendChild(fe.element),Z.appendChild(ne)}return ie}};At=markdownHoverParticipant_decorate([markdownHoverParticipant_param(2,Ce.a),markdownHoverParticipant_param(3,st.a),markdownHoverParticipant_param(4,Lt.a)],At);class HoverRangeAnchor{constructor(G,Z){this.priority=G,this.range=Z,this.type=1}equals(G){return 1===G.type&&this.range.equalsRange(G.range)}canAdoptVisibleHover(G,Z){return 1===G.type&&Z.lineNumber===this.range.startLineNumber}}class HoverForeignElementAnchor{constructor(G,Z,ne){this.priority=G,this.owner=Z,this.range=ne,this.type=2}equals(G){return 2===G.type&&this.owner===G.owner}canAdoptVisibleHover(G,Z){return 2===G.type&&this.owner===G.owner}}var Dt=ne(832),Et=ne(98),jt=ne(92),It=ne(26),inlineCompletionsHoverParticipant_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},inlineCompletionsHoverParticipant_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class InlineCompletionsHover{constructor(G,Z,ne){this.owner=G,this.range=Z,this.controller=ne}isValidForHoverAnchor(G){return 1===G.type&&this.range.startColumn<=G.range.startColumn&&this.range.endColumn>=G.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}}let Nt=class InlineCompletionsHoverParticipant{constructor(G,Z,ne,ie,se){this._editor=G,this._commandService=ne,this._menuService=ie,this._contextKeyService=se}suggestHoverAnchor(G){const Z=Dt.GhostTextController.get(this._editor);if(!Z)return null;if(8===G.target.type){const ne=G.target.detail;if(Z.shouldShowHoverAtViewZone(ne.viewZoneId))return new HoverForeignElementAnchor(1e3,this,me.a.fromPositions(ne.positionBefore||ne.position,ne.positionBefore||ne.position))}if(7===G.target.type&&G.target.range&&Z.shouldShowHoverAt(G.target.range))return new HoverForeignElementAnchor(1e3,this,G.target.range);if(6===G.target.type&&G.target.range&&G.target.detail){if(G.target.detail.mightBeForeignElement&&Z.shouldShowHoverAt(G.target.range))return new HoverForeignElementAnchor(1e3,this,G.target.range)}return null}computeSync(G,Z){const ne=Dt.GhostTextController.get(this._editor);return ne&&ne.shouldShowHoverAt(G.range)?[new InlineCompletionsHover(this,G.range,ne)]:[]}renderHoverParts(G,Z,ne){const se=new ce.b,fe=se.add(this._menuService.createMenu(jt.b.InlineCompletionsActions,this._contextKeyService)),me=ne.addAction({label:ie.a("showNextInlineSuggestion","Next"),commandId:Dt.ShowNextInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(Dt.ShowNextInlineSuggestionAction.ID)}),ge=ne.addAction({label:ie.a("showPreviousInlineSuggestion","Previous"),commandId:Dt.ShowPreviousInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(Dt.ShowPreviousInlineSuggestionAction.ID)});ne.addAction({label:ie.a("acceptInlineSuggestion","Accept"),commandId:Dt.commitInlineSuggestionAction.id,run:()=>this._commandService.executeCommand(Dt.commitInlineSuggestionAction.id)});const Ce=[me,ge];for(const G of Ce)G.setEnabled(!1);G[0].hasMultipleSuggestions().then(G=>{for(const Z of Ce)Z.setEnabled(G)});for(const[G,Z]of fe.getActions())for(const G of Z)G instanceof jt.c&&ne.addAction({label:G.label,commandId:G.item.id,run:()=>this._commandService.executeCommand(G.item.id)});return se}};Nt=inlineCompletionsHoverParticipant_decorate([inlineCompletionsHoverParticipant_param(2,Et.b),inlineCompletionsHoverParticipant_param(3,jt.a),inlineCompletionsHoverParticipant_param(4,It.b)],Nt);var Rt=ne(1672),zt=ne(3117),qt=ne(44),Wt=ne(19);class colorPickerModel_ColorPickerModel{constructor(G,Z,ne){this.presentationIndex=ne,this._onColorFlushed=new Wt.b,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Wt.b,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Wt.b,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=G,this._color=G,this._colorPresentations=Z}get color(){return this._color}set color(G){this._color.equals(G)||(this._color=G,this._onDidChangeColor.fire(G))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(G){this._colorPresentations=G,this.presentationIndex>G.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(G,Z){for(let G=0;G{this.backgroundColor=G.getColor(yt.E)||qt.a.white})),this._register(Se.i(this.pickedColorNode,Se.d.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Se.i(ie,Se.d.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(Z.onDidChangeColor(this.onDidChangeColor,this)),this._register(Z.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=qt.a.Format.CSS.format(Z.color)||"",this.pickedColorNode.classList.toggle("light",Z.color.rgba.a<.5?this.backgroundColor.isLighter():Z.color.isLighter())}onDidChangeColor(G){this.pickedColorNode.style.backgroundColor=qt.a.Format.CSS.format(G)||"",this.pickedColorNode.classList.toggle("light",G.rgba.a<.5?this.backgroundColor.isLighter():G.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class colorPickerWidget_ColorPickerBody extends ce.a{constructor(G,Z,ne){super(),this.model=Z,this.pixelRatio=ne,this.domNode=Ht(".colorpicker-body"),Se.q(G,this.domNode),this.saturationBox=new colorPickerWidget_SaturationBox(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new colorPickerWidget_OpacityStrip(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new HueStrip(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:G,v:Z}){const ne=this.model.color.hsva;this.model.color=new qt.a(new qt.b(ne.h,G,Z,ne.a))}onDidOpacityChange(G){const Z=this.model.color.hsva;this.model.color=new qt.a(new qt.b(Z.h,Z.s,Z.v,G))}onDidHueChange(G){const Z=this.model.color.hsva,ne=360*(1-G);this.model.color=new qt.a(new qt.b(360===ne?0:ne,Z.s,Z.v,Z.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class colorPickerWidget_SaturationBox extends ce.a{constructor(G,Z,ne){super(),this.model=Z,this.pixelRatio=ne,this._onDidChange=new Wt.b,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Wt.b,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Ht(".saturation-wrap"),Se.q(G,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",Se.q(this.domNode,this.canvas),this.selection=Ht(".saturation-selection"),Se.q(this.domNode,this.selection),this.layout(),this._register(Se.g(this.domNode,G=>this.onMouseDown(G))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(G){this.monitor=this._register(new Ft.a);const Z=Se.D(this.domNode);G.target!==this.selection&&this.onDidChangePosition(G.offsetX,G.offsetY),this.monitor.startMonitoring(G.target,G.buttons,Ft.b,G=>this.onDidChangePosition(G.posx-Z.left,G.posy-Z.top),()=>null);const ne=Se.h(document,()=>{this._onColorFlushed.fire(),ne.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(G,Z){const ne=Math.max(0,Math.min(1,G/this.width)),ie=Math.max(0,Math.min(1,1-Z/this.height));this.paintSelection(ne,ie),this._onDidChange.fire({s:ne,v:ie})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();const G=this.model.color.hsva;this.paintSelection(G.s,G.v)}paint(){const G=this.model.color.hsva,Z=new qt.a(new qt.b(G.h,1,1,1)),ne=this.canvas.getContext("2d"),ie=ne.createLinearGradient(0,0,this.canvas.width,0);ie.addColorStop(0,"rgba(255, 255, 255, 1)"),ie.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),ie.addColorStop(1,"rgba(255, 255, 255, 0)");const se=ne.createLinearGradient(0,0,0,this.canvas.height);se.addColorStop(0,"rgba(0, 0, 0, 0)"),se.addColorStop(1,"rgba(0, 0, 0, 1)"),ne.rect(0,0,this.canvas.width,this.canvas.height),ne.fillStyle=qt.a.Format.CSS.format(Z),ne.fill(),ne.fillStyle=ie,ne.fill(),ne.fillStyle=se,ne.fill()}paintSelection(G,Z){this.selection.style.left=G*this.width+"px",this.selection.style.top=this.height-Z*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class colorPickerWidget_Strip extends ce.a{constructor(G,Z){super(),this.model=Z,this._onDidChange=new Wt.b,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Wt.b,this.onColorFlushed=this._onColorFlushed.event,this.domNode=Se.q(G,Ht(".strip")),this.overlay=Se.q(this.domNode,Ht(".overlay")),this.slider=Se.q(this.domNode,Ht(".slider")),this.slider.style.top="0px",this._register(Se.g(this.domNode,G=>this.onMouseDown(G))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const G=this.getValue(this.model.color);this.updateSliderPosition(G)}onMouseDown(G){const Z=this._register(new Ft.a),ne=Se.D(this.domNode);this.domNode.classList.add("grabbing"),G.target!==this.slider&&this.onDidChangeTop(G.offsetY),Z.startMonitoring(G.target,G.buttons,Ft.b,G=>this.onDidChangeTop(G.posy-ne.top),()=>null);const ie=Se.h(document,()=>{this._onColorFlushed.fire(),ie.dispose(),Z.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(G){const Z=Math.max(0,Math.min(1,1-G/this.height));this.updateSliderPosition(Z),this._onDidChange.fire(Z)}updateSliderPosition(G){this.slider.style.top=(1-G)*this.height+"px"}}class colorPickerWidget_OpacityStrip extends colorPickerWidget_Strip{constructor(G,Z){super(G,Z),this.domNode.classList.add("opacity-strip"),this._register(Z.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(G){const{r:Z,g:ne,b:ie}=G.rgba,se=new qt.a(new qt.c(Z,ne,ie,1)),ce=new qt.a(new qt.c(Z,ne,ie,0));this.overlay.style.background=`linear-gradient(to bottom, ${se} 0%, ${ce} 100%)`}getValue(G){return G.hsva.a}}class HueStrip extends colorPickerWidget_Strip{constructor(G,Z){super(G,Z),this.domNode.classList.add("hue-strip")}getValue(G){return 1-G.hsva.h/360}}class colorPickerWidget_ColorPickerWidget extends ze.a{constructor(G,Z,ne,ie){super(),this.model=Z,this.pixelRatio=ne,this._register(Object(Bt.l)(()=>this.layout()));const se=Ht(".colorpicker-widget");G.appendChild(se);const ce=new colorPickerWidget_ColorPickerHeader(se,this.model,ie);this.body=new colorPickerWidget_ColorPickerBody(se,this.model,this.pixelRatio),this._register(ce),this._register(this.body)}layout(){this.body.layout()}}var colorHoverParticipant_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},colorHoverParticipant_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},colorHoverParticipant_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class ColorHover{constructor(G,Z,ne,ie){this.owner=G,this.range=Z,this.model=ne,this.provider=ie,this.forceShowAtRange=!0}isValidForHoverAnchor(G){return 1===G.type&&this.range.startColumn<=G.range.startColumn&&this.range.endColumn>=G.range.endColumn}}let $t=class ColorHoverParticipant{constructor(G,Z,ne){this._editor=G,this._hover=Z,this._themeService=ne}computeSync(G,Z){return[]}computeAsync(G,Z,ne){return colorHoverParticipant_awaiter(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return[];const G=zt.a.get(this._editor);for(const ne of Z){const Z=G.getColorData(ne.range.getStartPosition());if(Z){return[yield this._createColorHover(this._editor.getModel(),Z.colorInfo,Z.provider)]}}return[]}))}_createColorHover(G,Z,ne){return colorHoverParticipant_awaiter(this,void 0,void 0,(function*(){const ie=G.getValueInRange(Z.range),{red:se,green:ce,blue:fe,alpha:ge}=Z.color,Ce=new qt.c(Math.round(255*se),Math.round(255*ce),Math.round(255*fe),ge),Se=new qt.a(Ce),Me=yield Object(Rt.a)(G,Z,ne,xt.a.None),ke=new colorPickerModel_ColorPickerModel(Se,[],0);return ke.colorPresentations=Me||[],ke.guessColorPresentation(Se,ie),new ColorHover(this,me.a.lift(Z.range),ke,ne)}))}renderHoverParts(G,Z,ne){if(0===G.length||!this._editor.hasModel())return ce.a.None;const ie=new ce.b,se=G[0],fe=this._editor.getModel(),ge=se.model,Ce=ie.add(new colorPickerWidget_ColorPickerWidget(Z,ge,this._editor.getOption(127),this._themeService));let Se=new me.a(se.range.startLineNumber,se.range.startColumn,se.range.endLineNumber,se.range.endColumn);const updateEditorModel=()=>{let G,Z;if(ge.presentation.textEdit){G=[ge.presentation.textEdit],Z=new me.a(ge.presentation.textEdit.range.startLineNumber,ge.presentation.textEdit.range.startColumn,ge.presentation.textEdit.range.endLineNumber,ge.presentation.textEdit.range.endColumn);const ne=this._editor.getModel()._setTrackedRange(null,Z,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",G),Z=this._editor.getModel()._getTrackedRange(ne)||Z}else G=[{identifier:null,range:Se,text:ge.presentation.label,forceMoveMarkers:!1}],Z=Se.setEndPosition(Se.endLineNumber,Se.startColumn+ge.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",G);ge.presentation.additionalTextEdits&&(G=[...ge.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",G),this._hover.hide()),this._editor.pushUndoStop(),Se=Z},updateColorPresentations=G=>Object(Rt.a)(fe,{range:Se,color:{red:G.rgba.r/255,green:G.rgba.g/255,blue:G.rgba.b/255,alpha:G.rgba.a}},se.provider,xt.a.None).then(G=>{ge.colorPresentations=G||[]});return ie.add(ge.onColorFlushed(G=>{updateColorPresentations(G).then(updateEditorModel)})),ie.add(ge.onDidChangeColor(updateColorPresentations)),this._hover.setColorPicker(Ce),ie}};$t=colorHoverParticipant_decorate([colorHoverParticipant_param(2,_t.b)],$t);var Vt=ne(175),modesContentHover_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},modesContentHover_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},modesContentHover_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const Yt=Se.a;let Ut=class EditorHoverStatusBar extends ce.a{constructor(G){super(),this._keybindingService=G,this._hasContent=!1,this.hoverElement=Yt("div.hover-row.status-bar"),this.actionsElement=Se.q(this.hoverElement,Yt("div.actions"))}get hasContent(){return this._hasContent}addAction(G){const Z=this._keybindingService.lookupKeybinding(G.commandId),ne=Z?Z.getLabel():null;return this._hasContent=!0,this._register(hoverWidget_HoverAction.render(this.actionsElement,G,ne))}append(G){const Z=Se.q(this.actionsElement,G);return this._hasContent=!0,Z}};Ut=modesContentHover_decorate([modesContentHover_param(0,Vt.a)],Ut);class modesContentHover_ModesContentComputer{constructor(G,Z){this._participants=Z,this._editor=G,this._result=[],this._anchor=null}setAnchor(G){this._anchor=G,this._result=[]}clearResult(){this._result=[]}static _getLineDecorations(G,Z){if(1!==Z.type)return[];const ne=G.getModel(),ie=Z.range.startLineNumber,se=ne.getLineMaxColumn(ie);return G.getLineDecorations(ie).filter(G=>{if(G.options.isWholeLine)return!0;const ne=G.range.startLineNumber===ie?G.range.startColumn:1,ce=G.range.endLineNumber===ie?G.range.endColumn:se;return!(ne>Z.range.startColumn||Z.range.endColumn>ce)})}computeAsync(G){return modesContentHover_awaiter(this,void 0,void 0,(function*(){const Z=this._anchor;if(!this._editor.hasModel()||!Z)return Promise.resolve([]);const ne=modesContentHover_ModesContentComputer._getLineDecorations(this._editor,Z),ie=yield Promise.all(this._participants.map(ie=>this._computeAsync(ie,ne,Z,G)));return Object(Re.k)(ie)}))}_computeAsync(G,Z,ne,ie){return modesContentHover_awaiter(this,void 0,void 0,(function*(){return G.computeAsync?G.computeAsync(ne,Z,ie):[]}))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const G=modesContentHover_ModesContentComputer._getLineDecorations(this._editor,this._anchor);let Z=[];for(const ne of this._participants)Z=Z.concat(ne.computeSync(this._anchor,G));return Object(Re.e)(Z)}onResult(G,Z){this._result=Z?G.concat(this._result):this._result.concat(G)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){if(this._anchor)for(const G of this._participants)if(G.createLoadingMessage){const Z=G.createLoadingMessage(this._anchor);if(Z)return this._result.slice(0).concat([Z])}return this._result.slice(0)}}let Kt=class ModesContentHoverWidget extends ze.a{constructor(G,Z,ne,ie){super(),this._hoverVisibleKey=Z,this._keybindingService=ie,this.allowEditorOverflow=!0,this._participants=[ne.createInstance($t,G,this),ne.createInstance(At,G,this),ne.createInstance(Nt,G,this),ne.createInstance(Ct,G,this)],this._hover=this._register(new hoverWidget_HoverWidget),this._id=ModesContentHoverWidget.ID,this._editor=G,this._isVisible=!1,this._stoleFocus=!1,this._renderDisposable=null,this.onkeydown(this._hover.containerDomNode,G=>{G.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(41)&&this._updateFont()})),this._editor.onDidLayoutChange(()=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1,this._messages=[],this._lastAnchor=null,this._computer=new modesContentHover_ModesContentComputer(this._editor,this._participants),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new hoverOperation_HoverOperation(this._computer,G=>this._withResult(G,!0),null,G=>this._withResult(G,!1),this._editor.getOption(51).delay),this._register(Se.o(this.getDomNode(),Se.d.FOCUS,()=>{this._colorPicker&&this.getDomNode().classList.add("colorpicker-hover")})),this._register(Se.o(this.getDomNode(),Se.d.BLUR,()=>{this.getDomNode().classList.remove("colorpicker-hover")})),this._register(G.onDidChangeConfiguration(()=>{this._hoverOperation.setHoverTime(this._editor.getOption(51).delay)})),this._register(xe.F.onDidChange(()=>{this._isVisible&&this._lastAnchor&&this._messages.length>0&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastAnchor,this._messages))}))}dispose(){this._hoverOperation.cancel(),this._editor.removeContentWidget(this),super.dispose()}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}_shouldShowAt(G){const Z=G.target.type;if(6===Z)return!0;if(7===Z){const Z=this._editor.getOption(41).typicalHalfwidthCharacterWidth/2,ne=G.target.detail;if(ne&&!ne.isAfterLines&&"number"==typeof ne.horizontalDistanceToText&&ne.horizontalDistanceToTextG.startsWith("ced-colorBox"))&&G.target.range.endColumn-G.target.range.startColumn==1?new me.a(G.target.range.startLineNumber,G.target.range.startColumn+1,G.target.range.endLineNumber,G.target.range.endColumn+1):G.target.range;ne.push(new HoverRangeAnchor(0,ie))}return 0!==ne.length&&(ne.sort((G,Z)=>Z.priority-G.priority),this._startShowingAt(ne[0],0,!1),!0)}_showAt(G,Z,ne){this._showAtPosition=G,this._showAtRange=Z,this._hoverVisibleKey.set(!0),this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=ne,ne&&this._hover.containerDomNode.focus()}getPosition(){return this._isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(G=>this._editor.applyFontInfo(G))}_updateContents(G){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(G),this._updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}layout(){const G=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:Z,lineHeight:ne}=this._editor.getOption(41);this._hover.contentsDomNode.style.fontSize=Z+"px",this._hover.contentsDomNode.style.lineHeight=ne+"px",this._hover.contentsDomNode.style.maxHeight=G+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}onModelDecorationsChanged(){this._isChangingDecorations||this._isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAtRange(G,Z,ne){this._startShowingAt(new HoverRangeAnchor(0,G),Z,ne)}_startShowingAt(G,Z,ne){if(!this._lastAnchor||!this._lastAnchor.equals(G)){if(this._hoverOperation.cancel(),this._isVisible)if(this._showAtPosition&&this._lastAnchor&&G.canAdoptVisibleHover(this._lastAnchor,this._showAtPosition)){const Z=this._messages.filter(Z=>Z.isValidForHoverAnchor(G));if(0===Z.length)this.hide();else{if(Z.length===this._messages.length)return;this._renderMessages(G,Z)}}else this.hide();this._lastAnchor=G,this._computer.setAnchor(G),this._shouldFocus=ne,this._hoverOperation.start(Z)}}hide(){this._lastAnchor=null,this._hoverOperation.cancel(),this._isVisible&&(setTimeout(()=>{this._isVisible||this._hoverVisibleKey.set(!1)},0),this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}setColorPicker(G){this._colorPicker=G}onContentsChanged(){this._hover.onContentsChanged()}_withResult(G,Z){this._messages=G,this._lastAnchor&&this._messages.length>0?this._renderMessages(this._lastAnchor,this._messages):Z&&this.hide()}_renderMessages(G,Z){this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null;let ne=1073741824,ie=Z[0].range,se=null,fe=document.createDocumentFragment();const ge=new ce.b,Ce=new Map;for(const G of Z){ne=Math.min(ne,G.range.startColumn),ie=me.a.plusRange(ie,G.range),G.forceShowAtRange&&(se=G.range),Ce.has(G.owner)||Ce.set(G.owner,[]);Ce.get(G.owner).push(G)}const Se=ge.add(new Ut(this._keybindingService));for(const[G,Z]of Ce)ge.add(G.renderHoverParts(Z,fe,Se));Se.hasContent&&fe.appendChild(Se.hoverElement),this._renderDisposable=ge,fe.hasChildNodes()&&(se?this._showAt(se.getStartPosition(),se,this._shouldFocus):this._showAt(new Me.a(G.range.startLineNumber,ne),ie,this._shouldFocus),this._updateContents(fe)),this._colorPicker&&this._colorPicker.layout(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,ie?[{range:ie,options:ModesContentHoverWidget._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}};Kt.ID="editor.contrib.modesContentHoverWidget",Kt._DECORATION_OPTIONS=ke.a.register({description:"content-hover-highlight",className:"hoverHighlight"}),Kt=modesContentHover_decorate([modesContentHover_param(2,St.a),modesContentHover_param(3,Vt.a)],Kt);class hoverWidgets_GlyphHoverWidget extends ze.a{constructor(G,Z){super(),this._id=G,this._editor=Z,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(41)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(G){this._isVisible=G,this._domNode.classList.toggle("hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(G){this._showAtLineNumber=G,this.isVisible||(this.isVisible=!0);const Z=this._editor.getLayoutInfo(),ne=this._editor.getTopForLineNumber(this._showAtLineNumber),ie=this._editor.getScrollTop(),se=this._editor.getOption(57),ce=ne-ie-(this._domNode.clientHeight-se)/2;this._domNode.style.left=Z.glyphMarginLeft+Z.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(ce),0)+"px"}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){[...Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),...Array.prototype.slice.call(this._domNode.getElementsByClassName("code"))].forEach(G=>this._editor.applyFontInfo(G))}updateContents(G){this._domNode.textContent="",this._domNode.appendChild(G),this.updateFont()}}class modesGlyphHover_MarginComputer{constructor(G){this._editor=G,this._lineNumber=-1,this._result=[]}setLineNumber(G){this._lineNumber=G,this._result=[]}clearResult(){this._result=[]}computeSync(){const toHoverMessage=G=>({value:G}),G=this._editor.getLineDecorations(this._lineNumber),Z=[];if(!G)return Z;for(const ne of G){if(!ne.options.glyphMarginClassName)continue;const G=ne.options.glyphMarginHoverMessage;G&&!Object(Mt.b)(G)&&Z.push(...Object(Re.c)(G).map(toHoverMessage))}return Z}onResult(G,Z){this._result=this._result.concat(G)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class modesGlyphHover_ModesGlyphHoverWidget extends hoverWidgets_GlyphHoverWidget{constructor(G,Z,ne=st.b){super(modesGlyphHover_ModesGlyphHoverWidget.ID,G),this._renderDisposeables=this._register(new ce.b),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new kt.a({editor:this._editor},Z,ne)),this._computer=new modesGlyphHover_MarginComputer(this._editor),this._hoverOperation=new hoverOperation_HoverOperation(this._computer,G=>this._withResult(G),void 0,G=>this._withResult(G),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(G){this._lastLineNumber!==G&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=G,this._computer.setLineNumber(G),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(G){this._messages=G,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(G,Z){this._renderDisposeables.clear();const ne=document.createDocumentFragment();for(const G of Z){const Z=this._markdownRenderer.render(G.value);this._renderDisposeables.add(Z),ne.appendChild(Object(Se.a)("div.hover-row",void 0,Z.element))}this.updateContents(ne),this.showAt(G)}}modesGlyphHover_ModesGlyphHoverWidget.ID="editor.contrib.modesGlyphHoverWidget";ne(7577);var Gt=ne(320),goToSymbol_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function getLocationLinks(G,Z,ne,ie){const se=ne.ordered(G).map(ne=>Promise.resolve(ie(ne,G,Z)).then(void 0,G=>{Object(Ie.f)(G)}));return Promise.all(se).then(G=>{const Z=[];for(let ne of G)Array.isArray(ne)?Z.push(...ne):ne&&Z.push(ne);return Z})}function getDefinitionsAtPosition(G,Z,ne){return getLocationLinks(G,Z,xe.f,(G,Z,ie)=>G.provideDefinition(Z,ie,ne))}function getDeclarationsAtPosition(G,Z,ne){return getLocationLinks(G,Z,xe.e,(G,Z,ie)=>G.provideDeclaration(Z,ie,ne))}function getImplementationsAtPosition(G,Z,ne){return getLocationLinks(G,Z,xe.q,(G,Z,ie)=>G.provideImplementation(Z,ie,ne))}function getTypeDefinitionsAtPosition(G,Z,ne){return getLocationLinks(G,Z,xe.G,(G,Z,ie)=>G.provideTypeDefinition(Z,ie,ne))}function getReferencesAtPosition(G,Z,ne,ie){return getLocationLinks(G,Z,xe.y,(G,Z,se)=>goToSymbol_awaiter(this,void 0,void 0,(function*(){const ce=yield G.provideReferences(Z,se,{includeDeclaration:!0},ie);if(!ne||!ce||2!==ce.length)return ce;const fe=yield G.provideReferences(Z,se,{includeDeclaration:!1},ie);return fe&&1===fe.length?fe:ce})))}function _sortedAndDeduped(G){return goToSymbol_awaiter(this,void 0,void 0,(function*(){const Z=yield G(),ne=new Gt.c(Z,""),ie=ne.references.map(G=>G.link);return ne.dispose(),ie}))}Object(fe.n)("_executeDefinitionProvider",(G,Z)=>_sortedAndDeduped(()=>getDefinitionsAtPosition(G,Z,xt.a.None))),Object(fe.n)("_executeDeclarationProvider",(G,Z)=>_sortedAndDeduped(()=>getDeclarationsAtPosition(G,Z,xt.a.None))),Object(fe.n)("_executeImplementationProvider",(G,Z)=>_sortedAndDeduped(()=>getImplementationsAtPosition(G,Z,xt.a.None))),Object(fe.n)("_executeTypeDefinitionProvider",(G,Z)=>_sortedAndDeduped(()=>getTypeDefinitionsAtPosition(G,Z,xt.a.None))),Object(fe.n)("_executeReferenceProvider",(G,Z)=>_sortedAndDeduped(()=>getReferencesAtPosition(G,Z,!1,xt.a.None)));var Zt=ne(417),Jt=ne(332),Qt=ne(215),on=ne(46),sn=ne(497),cn=ne(127),dn=ne(827),mn=ne(224),_n=ne(1366),gn=ne(193),bn=ne(533),yn=ne(378),symbolNavigation_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},symbolNavigation_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const vn=new It.c("hasSymbols",!1,Object(ie.a)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),wn=Object(St.c)("ISymbolNavigationService");let Cn=class SymbolNavigationService{constructor(G,Z,ne,ie){this._editorService=Z,this._notificationService=ne,this._keybindingService=ie,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=vn.bindTo(G)}reset(){var G,Z;this._ctxHasSymbols.reset(),null===(G=this._currentState)||void 0===G||G.dispose(),null===(Z=this._currentMessage)||void 0===Z||Z.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(G){const Z=G.parent.parent;if(Z.references.length<=1)return void this.reset();this._currentModel=Z,this._currentIdx=Z.references.indexOf(G),this._ctxHasSymbols.set(!0),this._showMessage();const ne=new On(this._editorService),ie=ne.onDidChange(G=>{if(this._ignoreEditorChange)return;const ne=this._editorService.getActiveCodeEditor();if(!ne)return;const ie=ne.getModel(),se=ne.getPosition();if(!ie||!se)return;let ce=!1,fe=!1;for(const G of Z.references)if(Object(ot.f)(G.uri,ie.uri))ce=!0,fe=fe||me.a.containsPosition(G.range,se);else if(ce)break;ce&&fe||this.reset()});this._currentState=Object(ce.e)(ne,ie)}revealNext(G){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const Z=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:Z.uri,options:{selection:me.a.collapseToStart(Z.range),selectionRevealType:3}},G).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var G;null===(G=this._currentMessage)||void 0===G||G.dispose();const Z=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),ne=Z?Object(ie.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,Z.getLabel()):Object(ie.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(ne)}};Cn=symbolNavigation_decorate([symbolNavigation_param(0,It.b),symbolNavigation_param(1,cn.a),symbolNavigation_param(2,gn.a),symbolNavigation_param(3,Vt.a)],Cn),Object(bn.b)(wn,Cn,!0),Object(fe.k)(new class extends fe.c{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:vn,kbOpts:{weight:100,primary:70}})}runEditorCommand(G,Z){return G.get(wn).revealNext(Z)}}),yn.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:vn,primary:9,handler(G){G.get(wn).reset()}});let On=class EditorState{constructor(G){this._listener=new Map,this._disposables=new ce.b,this._onDidChange=new Wt.b,this.onDidChange=this._onDidChange.event,this._disposables.add(G.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(G.onCodeEditorAdd(this._onDidAddEditor,this)),G.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(ce.f)(this._listener.values())}_onDidAddEditor(G){this._listener.set(G,Object(ce.e)(G.onDidChangeCursorPosition(Z=>this._onDidChange.fire({editor:G})),G.onDidChangeModelContent(Z=>this._onDidChange.fire({editor:G}))))}_onDidRemoveEditor(G){var Z;null===(Z=this._listener.get(G))||void 0===Z||Z.dispose(),this._listener.delete(G)}};On=symbolNavigation_decorate([symbolNavigation_param(0,cn.a)],On);var Mn,kn,xn,Tn,Dn,En,jn,Pn,Nn=ne(94),qn=ne(54),Wn=ne(903),goToCommands_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};jt.d.appendMenuItem(jt.b.EditorContext,{submenu:jt.b.EditorContextPeek,title:ie.a("peek.submenu","Peek"),group:"navigation",order:100});const Bn=new Set;function registerGoToAction(G){const Z=new G;return Object(fe.m)(Z),Bn.add(Z.id),Z}class goToCommands_SymbolNavigationAction extends fe.b{constructor(G,Z){super(Z),this._configuration=G}run(G,Z){if(!Z.hasModel())return Promise.resolve(void 0);const ne=G.get(gn.a),ie=G.get(cn.a),se=G.get(ft.a),ce=G.get(wn),fe=Z.getModel(),me=Z.getPosition(),ge=new Jt.b(Z,5),Ce=Object(De.l)(this._getLocationModel(fe,me,ge.token),ge.token).then(G=>goToCommands_awaiter(this,void 0,void 0,(function*(){if(!G||ge.token.isCancellationRequested)return;let ne;if(Object(Qt.a)(G.ariaMessage),G.referenceAt(fe.uri,me)){const G=this._getAlternativeCommand(Z);G!==this.id&&Bn.has(G)&&(ne=Z.getAction(G))}const se=G.references.length;if(0===se){if(!this._configuration.muteMessage){const G=fe.getWordAtPosition(me);dn.a.get(Z).showMessage(this._getNoResultFoundMessage(G),me)}}else{if(1!==se||!ne)return this._onResult(ie,ce,Z,G);ne.run()}})),G=>{ne.error(G)}).finally(()=>{ge.dispose()});return se.showWhile(Ce,250),Ce}_onResult(G,Z,ne,ie){return goToCommands_awaiter(this,void 0,void 0,(function*(){const se=this._getGoToPreference(ne);if(ne instanceof Wn.a||!(this._configuration.openInPeek||"peek"===se&&ie.references.length>1)){const ce=ie.firstReference(),fe=ie.references.length>1&&"gotoAndPeek"===se,me=yield this._openReference(ne,G,ce,this._configuration.openToSide,!fe);fe&&me?this._openInPeek(me,ie):ie.dispose(),"goto"===se&&Z.put(ce)}else this._openInPeek(ne,ie)}))}_openReference(G,Z,ne,ie,se){return goToCommands_awaiter(this,void 0,void 0,(function*(){let ce=void 0;if(Object(xe.J)(ne)&&(ce=ne.targetSelectionRange),ce||(ce=ne.range),!ce)return;const fe=yield Z.openCodeEditor({resource:ne.uri,options:{selection:me.a.collapseToStart(ce),selectionRevealType:3}},G,ie);if(fe){if(se){const G=fe.getModel(),Z=fe.deltaDecorations([],[{range:ce,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{fe.getModel()===G&&fe.deltaDecorations(Z,[])},350)}return fe}}))}_openInPeek(G,Z){let ne=_n.a.get(G);ne&&G.hasModel()?ne.toggleWidget(G.getSelection(),Object(De.h)(G=>Promise.resolve(Z)),this._configuration.openInPeek):Z.dispose()}}class goToCommands_DefinitionAction extends goToCommands_SymbolNavigationAction{_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getDefinitionsAtPosition(G,Z,ne),ie.a("def.title","Definitions"))}))}_getNoResultFoundMessage(G){return G&&G.word?ie.a("noResultWord","No definition found for '{0}'",G.word):ie.a("generic.noResults","No definition found")}_getAlternativeCommand(G){return G.getOption(48).alternativeDefinitionCommand}_getGoToPreference(G){return G.getOption(48).multipleDefinitions}}const Hn=on.i&&!Bt.i?2118:70;registerGoToAction(((Mn=class GoToDefinitionAction extends goToCommands_DefinitionAction{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:GoToDefinitionAction.id,label:ie.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:It.a.and(ge.a.hasDefinitionProvider,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:Hn,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:jt.b.MenubarGoMenu,group:"4_symbol_nav",order:2,title:ie.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}}),Et.a.registerCommandAlias("editor.action.goToDeclaration",GoToDefinitionAction.id)}}).id="editor.action.revealDefinition",Mn)),registerGoToAction(((kn=class OpenDefinitionToSideAction extends goToCommands_DefinitionAction{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:OpenDefinitionToSideAction.id,label:ie.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:It.a.and(ge.a.hasDefinitionProvider,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:Object(se.a)(2089,Hn),weight:100}}),Et.a.registerCommandAlias("editor.action.openDeclarationToTheSide",OpenDefinitionToSideAction.id)}}).id="editor.action.revealDefinitionAside",kn)),registerGoToAction(((xn=class PeekDefinitionAction extends goToCommands_DefinitionAction{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:PeekDefinitionAction.id,label:ie.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:It.a.and(ge.a.hasDefinitionProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:jt.b.EditorContextPeek,group:"peek",order:2}}),Et.a.registerCommandAlias("editor.action.previewDeclaration",PeekDefinitionAction.id)}}).id="editor.action.peekDefinition",xn));class goToCommands_DeclarationAction extends goToCommands_SymbolNavigationAction{_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getDeclarationsAtPosition(G,Z,ne),ie.a("decl.title","Declarations"))}))}_getNoResultFoundMessage(G){return G&&G.word?ie.a("decl.noResultWord","No declaration found for '{0}'",G.word):ie.a("decl.generic.noResults","No declaration found")}_getAlternativeCommand(G){return G.getOption(48).alternativeDeclarationCommand}_getGoToPreference(G){return G.getOption(48).multipleDeclarations}}registerGoToAction(((Tn=class GoToDeclarationAction extends goToCommands_DeclarationAction{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:GoToDeclarationAction.id,label:ie.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:It.a.and(ge.a.hasDeclarationProvider,ge.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:jt.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:ie.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})}_getNoResultFoundMessage(G){return G&&G.word?ie.a("decl.noResultWord","No declaration found for '{0}'",G.word):ie.a("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",Tn)),registerGoToAction(class PeekDeclarationAction extends goToCommands_DeclarationAction{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:ie.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:It.a.and(ge.a.hasDeclarationProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:jt.b.EditorContextPeek,group:"peek",order:3}})}});class goToCommands_TypeDefinitionAction extends goToCommands_SymbolNavigationAction{_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getTypeDefinitionsAtPosition(G,Z,ne),ie.a("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(G){return G&&G.word?ie.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",G.word):ie.a("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(G){return G.getOption(48).alternativeTypeDefinitionCommand}_getGoToPreference(G){return G.getOption(48).multipleTypeDefinitions}}registerGoToAction(((Dn=class GoToTypeDefinitionAction extends goToCommands_TypeDefinitionAction{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:GoToTypeDefinitionAction.ID,label:ie.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:It.a.and(ge.a.hasTypeDefinitionProvider,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:jt.b.MenubarGoMenu,group:"4_symbol_nav",order:3,title:ie.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})}}).ID="editor.action.goToTypeDefinition",Dn)),registerGoToAction(((En=class PeekTypeDefinitionAction extends goToCommands_TypeDefinitionAction{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:PeekTypeDefinitionAction.ID,label:ie.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:It.a.and(ge.a.hasTypeDefinitionProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:jt.b.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",En));class goToCommands_ImplementationAction extends goToCommands_SymbolNavigationAction{_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getImplementationsAtPosition(G,Z,ne),ie.a("impl.title","Implementations"))}))}_getNoResultFoundMessage(G){return G&&G.word?ie.a("goToImplementation.noResultWord","No implementation found for '{0}'",G.word):ie.a("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(G){return G.getOption(48).alternativeImplementationCommand}_getGoToPreference(G){return G.getOption(48).multipleImplementations}}registerGoToAction(((jn=class GoToImplementationAction extends goToCommands_ImplementationAction{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:GoToImplementationAction.ID,label:ie.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:It.a.and(ge.a.hasImplementationProvider,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:jt.b.MenubarGoMenu,group:"4_symbol_nav",order:4,title:ie.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",jn)),registerGoToAction(((Pn=class PeekImplementationAction extends goToCommands_ImplementationAction{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:PeekImplementationAction.ID,label:ie.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:It.a.and(ge.a.hasImplementationProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:jt.b.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",Pn));class goToCommands_ReferencesAction extends goToCommands_SymbolNavigationAction{_getNoResultFoundMessage(G){return G?ie.a("references.no","No references found for '{0}'",G.word):ie.a("references.noGeneric","No references found")}_getAlternativeCommand(G){return G.getOption(48).alternativeReferenceCommand}_getGoToPreference(G){return G.getOption(48).multipleReferences}}registerGoToAction(class GoToReferencesAction extends goToCommands_ReferencesAction{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:ie.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:It.a.and(ge.a.hasReferenceProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:jt.b.MenubarGoMenu,group:"4_symbol_nav",order:5,title:ie.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})}_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getReferencesAtPosition(G,Z,!0,ne),ie.a("ref.title","References"))}))}}),registerGoToAction(class PeekReferencesAction extends goToCommands_ReferencesAction{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:ie.a("references.action.label","Peek References"),alias:"Peek References",precondition:It.a.and(ge.a.hasReferenceProvider,mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:jt.b.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(yield getReferencesAtPosition(G,Z,!1,ne),ie.a("ref.title","References"))}))}});class goToCommands_GenericGoToLocationAction extends goToCommands_SymbolNavigationAction{constructor(G,Z,ne){super(G,{id:"editor.action.goToLocation",label:ie.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:It.a.and(mn.b.notInPeekEditor,ge.a.isInWalkThroughSnippet.toNegated())}),this._references=Z,this._gotoMultipleBehaviour=ne}_getLocationModel(G,Z,ne){return goToCommands_awaiter(this,void 0,void 0,(function*(){return new Gt.c(this._references,ie.a("generic.title","Locations"))}))}_getNoResultFoundMessage(G){return G&&ie.a("generic.noResult","No results for '{0}'",G.word)||""}_getGoToPreference(G){var Z;return null!==(Z=this._gotoMultipleBehaviour)&&void 0!==Z?Z:G.getOption(48).multipleReferences}_getAlternativeCommand(){return""}}Et.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Nn.a},{name:"position",description:"The position at which to start",constraint:Me.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(G,Z,ne,ie,se,ce,fe)=>goToCommands_awaiter(void 0,void 0,void 0,(function*(){Object(qn.c)(Nn.a.isUri(Z)),Object(qn.c)(Me.a.isIPosition(ne)),Object(qn.c)(Array.isArray(ie)),Object(qn.c)(void 0===se||"string"==typeof se),Object(qn.c)(void 0===fe||"boolean"==typeof fe);const me=G.get(cn.a),ge=yield me.openCodeEditor({resource:Z},me.getFocusedCodeEditor());if(Object(sn.b)(ge))return ge.setPosition(ne),ge.revealPositionInCenterIfOutsideViewport(ne,0),ge.invokeWithinContext(G=>{const Z=new class extends goToCommands_GenericGoToLocationAction{_getNoResultFoundMessage(G){return ce||super._getNoResultFoundMessage(G)}}({muteMessage:!Boolean(ce),openInPeek:Boolean(fe),openToSide:!1},ie,se);G.get(St.a).invokeFunction(Z.run.bind(Z),ge)})}))}),Et.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:Nn.a},{name:"position",description:"The position at which to start",constraint:Me.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(G,Z,ne,ie,se)=>goToCommands_awaiter(void 0,void 0,void 0,(function*(){G.get(Et.b).executeCommand("editor.action.goToLocations",Z,ne,ie,se,void 0,!0)}))}),Et.a.registerCommand({id:"editor.action.findReferences",handler:(G,Z,ne)=>{Object(qn.c)(Nn.a.isUri(Z)),Object(qn.c)(Me.a.isIPosition(ne));const se=G.get(cn.a);return se.openCodeEditor({resource:Z},se.getFocusedCodeEditor()).then(G=>{if(!Object(sn.b)(G)||!G.hasModel())return;const Z=_n.a.get(G);if(!Z)return;const se=Object(De.h)(Z=>getReferencesAtPosition(G.getModel(),Me.a.lift(ne),!1,Z).then(G=>new Gt.c(G,ie.a("ref.title","References")))),ce=new me.a(ne.lineNumber,ne.column,ne.lineNumber,ne.column);return Promise.resolve(Z.toggleWidget(ce,se,!1))})}}),Et.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var $n=ne(2110),goToDefinitionAtPosition_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},goToDefinitionAtPosition_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Vn=class GotoDefinitionAtPositionEditorContribution{constructor(G,Z,ne){this.textModelResolverService=Z,this.modeService=ne,this.toUnhook=new ce.b,this.toUnhookForKeyboard=new ce.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=G;let ie=new $n.a(G);this.toUnhook.add(ie),this.toUnhook.add(ie.onMouseMoveOrRelevantKeyDown(([G,Z])=>{this.startFindDefinitionFromMouse(G,Object(qn.o)(Z))})),this.toUnhook.add(ie.onExecute(G=>{this.isEnabled(G)&&this.gotoDefinition(G.target.position,G.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},G=>{this.removeLinkDecorations(),Object(Ie.e)(G)})})),this.toUnhook.add(ie.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(G){return G.getContribution(GotoDefinitionAtPositionEditorContribution.ID)}startFindDefinitionFromCursor(G){return this.startFindDefinition(G).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(G=>{G&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(G,Z){if(9===G.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(G,Z))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const ne=G.target.position;this.startFindDefinition(ne)}startFindDefinition(G){var Z;this.toUnhookForKeyboard.clear();const ne=G?null===(Z=this.editor.getModel())||void 0===Z?void 0:Z.getWordAtPosition(G):null;if(!ne)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===ne.startColumn&&this.currentWordAtPosition.endColumn===ne.endColumn&&this.currentWordAtPosition.word===ne.word)return Promise.resolve(0);this.currentWordAtPosition=ne;let se=new Jt.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(De.h)(Z=>this.findDefinition(G,Z)),this.previousPromise.then(Z=>{if(Z&&Z.length&&se.validate(this.editor))if(Z.length>1)this.addDecoration(new me.a(G.lineNumber,ne.startColumn,G.lineNumber,ne.endColumn),(new Mt.a).appendText(ie.a("multipleResults","Click to show {0} definitions.",Z.length)));else{let ie=Z[0];if(!ie.uri)return;this.textModelResolverService.createModelReference(ie.uri).then(Z=>{if(!Z.object||!Z.object.textEditorModel)return void Z.dispose();const{object:{textEditorModel:se}}=Z,{startLineNumber:ce}=ie.range;if(ce<1||ce>se.getLineCount())return void Z.dispose();const fe=this.getPreviewValue(se,ce,ie);let ge;ge=ie.originSelectionRange?me.a.lift(ie.originSelectionRange):new me.a(G.lineNumber,ne.startColumn,G.lineNumber,ne.endColumn);const Ce=this.modeService.getModeIdByFilepathOrFirstLine(se.uri);this.addDecoration(ge,(new Mt.a).appendCodeblock(Ce||"",fe)),Z.dispose()})}else this.removeLinkDecorations()}).then(void 0,Ie.e)}getPreviewValue(G,Z,ne){let ie=ne.targetSelectionRange?ne.range:this.getPreviewRangeBasedOnBrackets(G,Z);ie.endLineNumber-ie.startLineNumber>=GotoDefinitionAtPositionEditorContribution.MAX_SOURCE_PREVIEW_LINES&&(ie=this.getPreviewRangeBasedOnIndentation(G,Z));return this.stripIndentationFromPreviewRange(G,Z,ie)}stripIndentationFromPreviewRange(G,Z,ne){let ie=G.getLineFirstNonWhitespaceColumn(Z);for(let se=Z+1;sene)return new me.a(Z,1,ne+1,1);ce=G.findNextBracket(new Me.a(ge,Ce))}return new me.a(Z,1,ne+1,1)}addDecoration(G,Z){const ne={range:G,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:Z}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[ne])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(G,Z){return this.editor.hasModel()&&G.isNoneOrSingleMouseDown&&6===G.target.type&&(G.hasTriggerModifier||!!Z&&Z.keyCodeIsTriggerKey)&&xe.f.has(this.editor.getModel())}findDefinition(G,Z){const ne=this.editor.getModel();return ne?getDefinitionsAtPosition(ne,G,Z):Promise.resolve(null)}gotoDefinition(G,Z){return this.editor.setPosition(G),this.editor.invokeWithinContext(G=>{const ne=!Z&&this.editor.getOption(76)&&!this.isInPeekEditor(G);return new goToCommands_DefinitionAction({openToSide:Z,openInPeek:ne,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(G,this.editor)})}isInPeekEditor(G){const Z=G.get(It.b);return mn.b.inPeekEditor.getValue(Z)}dispose(){this.toUnhook.dispose()}};Vn.ID="editor.contrib.gotodefinitionatposition",Vn.MAX_SOURCE_PREVIEW_LINES=8,Vn=goToDefinitionAtPosition_decorate([goToDefinitionAtPosition_param(1,Zt.a),goToDefinitionAtPosition_param(2,Ce.a)],Vn),Object(fe.l)(Vn.ID,Vn),Object(_t.f)((G,Z)=>{const ne=G.getColor(yt.q);ne&&Z.addRule(`.monaco-editor .goto-definition-link { color: ${ne} !important; }`)});var hover_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},hover_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Un=class ModesHoverController{constructor(G,Z,ne,ie,se){this._editor=G,this._instantiationService=Z,this._openerService=ne,this._modeService=ie,this._toUnhook=new ce.b,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(G=>{G.hasChanged(51)&&(this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=ge.a.hoverVisible.bindTo(se)}static get(G){return G.getContribution(ModesHoverController.ID)}_hookEvents(){const hideWidgetsEventHandler=()=>this._hideWidgets(),G=this._editor.getOption(51);this._isHoverEnabled=G.enabled,this._isHoverSticky=G.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(G=>this._onEditorMouseDown(G))),this._toUnhook.add(this._editor.onMouseUp(G=>this._onEditorMouseUp(G))),this._toUnhook.add(this._editor.onMouseMove(G=>this._onEditorMouseMove(G))),this._toUnhook.add(this._editor.onKeyDown(G=>this._onKeyDown(G))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(G=>this._onEditorMouseMove(G))),this._toUnhook.add(this._editor.onKeyDown(G=>this._onKeyDown(G)))),this._toUnhook.add(this._editor.onMouseLeave(hideWidgetsEventHandler)),this._toUnhook.add(this._editor.onDidChangeModel(hideWidgetsEventHandler)),this._toUnhook.add(this._editor.onDidScrollChange(G=>this._onEditorScrollChanged(G)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){var G,Z;null===(G=this._contentWidget)||void 0===G||G.onModelDecorationsChanged(),null===(Z=this._glyphWidget)||void 0===Z||Z.onModelDecorationsChanged()}_onEditorScrollChanged(G){(G.scrollTopChanged||G.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(G){this._isMouseDown=!0;const Z=G.target.type;9!==Z||G.target.detail!==Kt.ID?12===Z&&G.target.detail===modesGlyphHover_ModesGlyphHoverWidget.ID||(12!==Z&&G.target.detail!==modesGlyphHover_ModesGlyphHoverWidget.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(G){this._isMouseDown=!1}_onEditorMouseMove(G){var Z,ne,ie,se,ce;let fe=G.target.type;if(this._isMouseDown&&this._hoverClicked)return;if(this._isHoverSticky&&9===fe&&G.target.detail===Kt.ID)return;if(this._isHoverSticky&&!(null===(ne=null===(Z=G.event.browserEvent.view)||void 0===Z?void 0:Z.getSelection())||void 0===ne?void 0:ne.isCollapsed))return;if(!this._isHoverSticky&&9===fe&&G.target.detail===Kt.ID&&(null===(ie=this._contentWidget)||void 0===ie?void 0:ie.isColorPickerVisible()))return;if(this._isHoverSticky&&12===fe&&G.target.detail===modesGlyphHover_ModesGlyphHoverWidget.ID)return;if(!this._isHoverEnabled)return void this._hideWidgets();if(!this._getOrCreateContentWidget().maybeShowAt(G))return 2===fe&&G.target.position?(null===(ce=this._contentWidget)||void 0===ce||ce.hide(),this._glyphWidget||(this._glyphWidget=new modesGlyphHover_ModesGlyphHoverWidget(this._editor,this._modeService,this._openerService)),void this._glyphWidget.startShowingAt(G.target.position.lineNumber)):void this._hideWidgets();null===(se=this._glyphWidget)||void 0===se||se.hide()}_onKeyDown(G){5!==G.keyCode&&6!==G.keyCode&&57!==G.keyCode&&4!==G.keyCode&&this._hideWidgets()}_hideWidgets(){var G,Z,ne;this._isMouseDown&&this._hoverClicked&&(null===(G=this._contentWidget)||void 0===G?void 0:G.isColorPickerVisible())||(this._hoverClicked=!1,null===(Z=this._glyphWidget)||void 0===Z||Z.hide(),null===(ne=this._contentWidget)||void 0===ne||ne.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(Kt,this._editor,this._hoverVisibleKey)),this._contentWidget}isColorPickerVisible(){var G;return(null===(G=this._contentWidget)||void 0===G?void 0:G.isColorPickerVisible())||!1}showContentHover(G,Z,ne){this._getOrCreateContentWidget().startShowingAtRange(G,Z,ne)}dispose(){var G,Z;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(G=this._glyphWidget)||void 0===G||G.dispose(),null===(Z=this._contentWidget)||void 0===Z||Z.dispose()}};Un.ID="editor.contrib.hover",Un=hover_decorate([hover_param(1,St.a),hover_param(2,st.a),hover_param(3,Ce.a),hover_param(4,It.b)],Un);class hover_ShowHoverAction extends fe.b{constructor(){super({id:"editor.action.showHover",label:ie.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:ge.a.editorTextFocus,primary:Object(se.a)(2089,2087),weight:100}})}run(G,Z){if(!Z.hasModel())return;let ne=Un.get(Z);if(!ne)return;const ie=Z.getPosition(),se=new me.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column),ce=2===Z.getOption(2);ne.showContentHover(se,1,ce)}}class hover_ShowDefinitionPreviewHoverAction extends fe.b{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:ie.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(G,Z){let ne=Un.get(Z);if(!ne)return;const ie=Z.getPosition();if(!ie)return;const se=new me.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column);Vn.get(Z).startFindDefinitionFromCursor(ie).then(()=>{ne.showContentHover(se,1,!0)})}}Object(fe.l)(Un.ID,Un),Object(fe.j)(hover_ShowHoverAction),Object(fe.j)(hover_ShowDefinitionPreviewHoverAction),Object(_t.f)((G,Z)=>{const ne=G.getColor(yt.H);ne&&Z.addRule(`.monaco-editor .hoverHighlight { background-color: ${ne}; }`);const ie=G.getColor(yt.E);ie&&Z.addRule(`.monaco-editor .monaco-hover { background-color: ${ie}; }`);const se=G.getColor(yt.F);se&&(Z.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${se}; }`),Z.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${se.transparent(.5)}; }`),Z.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${se.transparent(.5)}; }`),Z.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${se.transparent(.5)}; }`));const ce=G.getColor(yt.Jc);ce&&Z.addRule(`.monaco-editor .monaco-hover a { color: ${ce}; }`);const fe=G.getColor(yt.Ic);fe&&Z.addRule(`.monaco-editor .monaco-hover a:hover { color: ${fe}; }`);const me=G.getColor(yt.G);me&&Z.addRule(`.monaco-editor .monaco-hover { color: ${me}; }`);const ge=G.getColor(yt.I);ge&&Z.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${ge}; }`);const Ce=G.getColor(yt.Hc);Ce&&Z.addRule(`.monaco-editor .monaco-hover code { background-color: ${Ce}; }`)})},3120:function(G,Z,ne){G.exports=function(){"use strict";function _defineProperties(G,Z){for(var ne=0;neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=G.length?{done:!0}:{done:!1,value:G[ie++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(ne=G[Symbol.iterator]()).next.bind(ne)}var G=function createCommonjsModule(G){var Z={exports:{}};return G(Z,Z.exports),Z.exports}((function(G){function getDefaults(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}G.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:getDefaults,changeDefaults:function changeDefaults(Z){G.exports.defaults=Z}}})),Z=/[&<>"']/,ne=/[&<>"']/g,ie=/[<>"']|&(?!#?\w+;)/,se=/[<>"']|&(?!#?\w+;)/g,ce={"&":"&","<":"<",">":">",'"':""","'":"'"},fe=function getEscapeReplacement(G){return ce[G]},me=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function unescape(G){return G.replace(me,(function(G,Z){return"colon"===(Z=Z.toLowerCase())?":":"#"===Z.charAt(0)?"x"===Z.charAt(1)?String.fromCharCode(parseInt(Z.substring(2),16)):String.fromCharCode(+Z.substring(1)):""}))}var ge=/(^|[^\[])\^/g,Ce=/[^\w:]/g,Se=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,Me={},ke=/^[^:]+:\/*[^/]*$/,xe=/^([^:]+:)[\s\S]*$/,De=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(G,Z){Me[" "+G]||(ke.test(G)?Me[" "+G]=G+"/":Me[" "+G]=rtrim(G,"/",!0));var ne=-1===(G=Me[" "+G]).indexOf(":");return"//"===Z.substring(0,2)?ne?Z:G.replace(xe,"$1")+Z:"/"===Z.charAt(0)?ne?Z:G.replace(De,"$1")+Z:G+Z}function rtrim(G,Z,ne){var ie=G.length;if(0===ie)return"";for(var se=0;se=0&&"\\"===ne[se];)ie=!ie;return ie?"|":" |"})).split(/ \|/),ie=0;if(ne.length>Z)ne.splice(Z);else for(;ne.length1;)1&Z&&(ne+=G),Z>>=1,G+=G;return ne+G},dt=G.defaults,ht=at,ft=ot,_t=Ie,yt=st;function outputLink(G,Z,ne){var ie=Z.href,se=Z.title?_t(Z.title):null,ce=G[1].replace(/\\([\[\]])/g,"$1");return"!"!==G[0].charAt(0)?{type:"link",raw:ne,href:ie,title:se,text:ce}:{type:"image",raw:ne,href:ie,title:se,text:_t(ce)}}var vt=function(){function Tokenizer(G){this.options=G||dt}var G=Tokenizer.prototype;return G.space=function space(G){var Z=this.rules.block.newline.exec(G);if(Z)return Z[0].length>1?{type:"space",raw:Z[0]}:{raw:"\n"}},G.code=function code(G){var Z=this.rules.block.code.exec(G);if(Z){var ne=Z[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Z[0],codeBlockStyle:"indented",text:this.options.pedantic?ne:ht(ne,"\n")}}},G.fences=function fences(G){var Z=this.rules.block.fences.exec(G);if(Z){var ne=Z[0],ie=function indentCodeCompensation(G,Z){var ne=G.match(/^(\s+)(?:```)/);if(null===ne)return Z;var ie=ne[1];return Z.split("\n").map((function(G){var Z=G.match(/^\s+/);return null===Z?G:Z[0].length>=ie.length?G.slice(ie.length):G})).join("\n")}(ne,Z[3]||"");return{type:"code",raw:ne,lang:Z[2]?Z[2].trim():Z[2],text:ie}}},G.heading=function heading(G){var Z=this.rules.block.heading.exec(G);if(Z){var ne=Z[2].trim();if(/#$/.test(ne)){var ie=ht(ne,"#");this.options.pedantic?ne=ie.trim():ie&&!/ $/.test(ie)||(ne=ie.trim())}return{type:"heading",raw:Z[0],depth:Z[1].length,text:ne}}},G.nptable=function nptable(G){var Z=this.rules.block.nptable.exec(G);if(Z){var ne={type:"table",header:ft(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split("\n"):[],raw:Z[0]};if(ne.header.length===ne.align.length){var ie,se=ne.align.length;for(ie=0;ie ?/gm,"");return{type:"blockquote",raw:Z[0],text:ne}}},G.list=function list(G){var Z=this.rules.block.list.exec(G);if(Z){var ne,ie,se,ce,fe,me,ge,Ce,Se=Z[0],Me=Z[2],ke=Me.length>1,list={type:"list",raw:Se,ordered:ke,start:ke?+Me.slice(0,-1):"",loose:!1,items:[]},xe=Z[0].match(this.rules.block.item),De=!1,Ie=xe.length;se=this.rules.block.listItemStart.exec(xe[0]);for(var Re=0;Rese[1].length:ce[1].length>se[0].length||ce[1].length>3){xe.splice(Re,2,xe[Re]+"\n"+xe[Re+1]),Re--,Ie--;continue}(!this.options.pedantic||this.options.smartLists?ce[2][ce[2].length-1]!==Me[Me.length-1]:ke===(1===ce[2].length))&&(fe=xe.slice(Re+1).join("\n"),list.raw=list.raw.substring(0,list.raw.length-fe.length),Re=Ie-1),se=ce}ie=ne.length,~(ne=ne.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(ie-=ne.length,ne=this.options.pedantic?ne.replace(/^ {1,4}/gm,""):ne.replace(new RegExp("^ {1,"+ie+"}","gm"),"")),me=De||/\n\n(?!\s*$)/.test(ne),Re!==Ie-1&&(De="\n"===ne.charAt(ne.length-1),me||(me=De)),me&&(list.loose=!0),this.options.gfm&&(Ce=void 0,(ge=/^\[[ xX]\] /.test(ne))&&(Ce=" "!==ne[1],ne=ne.replace(/^\[[ xX]\] +/,""))),list.items.push({type:"list_item",raw:Se,task:ge,checked:Ce,loose:me,text:ne})}return list}},G.html=function html(G){var Z=this.rules.block.html.exec(G);if(Z)return{type:this.options.sanitize?"paragraph":"html",raw:Z[0],pre:!this.options.sanitizer&&("pre"===Z[1]||"script"===Z[1]||"style"===Z[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Z[0]):_t(Z[0]):Z[0]}},G.def=function def(G){var Z=this.rules.block.def.exec(G);if(Z)return Z[3]&&(Z[3]=Z[3].substring(1,Z[3].length-1)),{tag:Z[1].toLowerCase().replace(/\s+/g," "),raw:Z[0],href:Z[2],title:Z[3]}},G.table=function table(G){var Z=this.rules.block.table.exec(G);if(Z){var ne={type:"table",header:ft(Z[1].replace(/^ *| *\| *$/g,"")),align:Z[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Z[3]?Z[3].replace(/\n$/,"").split("\n"):[]};if(ne.header.length===ne.align.length){ne.raw=Z[0];var ie,se=ne.align.length;for(ie=0;ie/i.test(ie[0])&&(Z=!1),!ne&&/^<(pre|code|kbd|script)(\s|>)/i.test(ie[0])?ne=!0:ne&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ie[0])&&(ne=!1),{type:this.options.sanitize?"text":"html",raw:ie[0],inLink:Z,inRawBlock:ne,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):_t(ie[0]):ie[0]}},G.link=function link(G){var Z=this.rules.inline.link.exec(G);if(Z){var ne=Z[2].trim();if(!this.options.pedantic&&/^$/.test(ne))return;var ie=ht(ne.slice(0,-1),"\\");if((ne.length-ie.length)%2==0)return}else{var se=yt(Z[2],"()");if(se>-1){var ce=(0===Z[0].indexOf("!")?5:4)+Z[1].length+se;Z[2]=Z[2].substring(0,se),Z[0]=Z[0].substring(0,ce).trim(),Z[3]=""}}var fe=Z[2],me="";if(this.options.pedantic){var link=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(fe);link&&(fe=link[1],me=link[3])}else me=Z[3]?Z[3].slice(1,-1):"";return fe=fe.trim(),/^$/.test(ne)?fe.slice(1):fe.slice(1,-1)),outputLink(Z,{href:fe?fe.replace(this.rules.inline._escapes,"$1"):fe,title:me?me.replace(this.rules.inline._escapes,"$1"):me},Z[0])}},G.reflink=function reflink(G,Z){var ne;if((ne=this.rules.inline.reflink.exec(G))||(ne=this.rules.inline.nolink.exec(G))){var ie=(ne[2]||ne[1]).replace(/\s+/g," ");if(!(ie=Z[ie.toLowerCase()])||!ie.href){var se=ne[0].charAt(0);return{type:"text",raw:se,text:se}}return outputLink(ne,ie,ne[0])}},G.emStrong=function emStrong(G,Z,ne){void 0===ne&&(ne="");var ie=this.rules.inline.emStrong.lDelim.exec(G);if(ie&&(!ie[3]||!ne.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var se=ie[1]||ie[2]||"";if(!se||se&&(""===ne||this.rules.inline.punctuation.exec(ne))){var ce,fe,me=ie[0].length-1,ge=me,Ce=0,Se="*"===ie[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Se.lastIndex=0,Z=Z.slice(-1*G.length+me);null!=(ie=Se.exec(Z));)if(ce=ie[1]||ie[2]||ie[3]||ie[4]||ie[5]||ie[6])if(fe=ce.length,ie[3]||ie[4])ge+=fe;else if(!((ie[5]||ie[6])&&me%3)||(me+fe)%3){if(!((ge-=fe)>0)){if(ge+Ce-fe<=0&&!Z.slice(Se.lastIndex).match(Se)&&(fe=Math.min(fe,fe+ge+Ce)),Math.min(me,fe)%2)return{type:"em",raw:G.slice(0,me+ie.index+fe+1),text:G.slice(1,me+ie.index+fe)};if(Math.min(me,fe)%2==0)return{type:"strong",raw:G.slice(0,me+ie.index+fe+1),text:G.slice(2,me+ie.index+fe-1)}}}else Ce+=fe}}},G.codespan=function codespan(G){var Z=this.rules.inline.code.exec(G);if(Z){var ne=Z[2].replace(/\n/g," "),ie=/[^ ]/.test(ne),se=/^ /.test(ne)&&/ $/.test(ne);return ie&&se&&(ne=ne.substring(1,ne.length-1)),ne=_t(ne,!0),{type:"codespan",raw:Z[0],text:ne}}},G.br=function br(G){var Z=this.rules.inline.br.exec(G);if(Z)return{type:"br",raw:Z[0]}},G.del=function del(G){var Z=this.rules.inline.del.exec(G);if(Z)return{type:"del",raw:Z[0],text:Z[2]}},G.autolink=function autolink(G,Z){var ne,ie,se=this.rules.inline.autolink.exec(G);if(se)return ie="@"===se[2]?"mailto:"+(ne=_t(this.options.mangle?Z(se[1]):se[1])):ne=_t(se[1]),{type:"link",raw:se[0],text:ne,href:ie,tokens:[{type:"text",raw:ne,text:ne}]}},G.url=function url(G,Z){var ne;if(ne=this.rules.inline.url.exec(G)){var ie,se;if("@"===ne[2])se="mailto:"+(ie=_t(this.options.mangle?Z(ne[0]):ne[0]));else{var ce;do{ce=ne[0],ne[0]=this.rules.inline._backpedal.exec(ne[0])[0]}while(ce!==ne[0]);ie=_t(ne[0]),se="www."===ne[1]?"http://"+ie:ie}return{type:"link",raw:ne[0],text:ie,href:se,tokens:[{type:"text",raw:ie,text:ie}]}}},G.inlineText=function inlineText(G,Z,ne){var ie,se=this.rules.inline.text.exec(G);if(se)return ie=Z?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):_t(se[0]):se[0]:_t(this.options.smartypants?ne(se[0]):se[0]),{type:"text",raw:se[0],text:ie}},Tokenizer}(),wt=Je,Ct=ze,St=it,Mt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:wt,table:wt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Mt.def=Ct(Mt.def).replace("label",Mt._label).replace("title",Mt._title).getRegex(),Mt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Mt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Mt.item=Ct(Mt.item,"gm").replace(/bull/g,Mt.bullet).getRegex(),Mt.listItemStart=Ct(/^( *)(bull)/).replace("bull",Mt.bullet).getRegex(),Mt.list=Ct(Mt.list).replace(/bull/g,Mt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Mt.def.source+")").getRegex(),Mt._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Mt._comment=/|$)/,Mt.html=Ct(Mt.html,"i").replace("comment",Mt._comment).replace("tag",Mt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mt.paragraph=Ct(Mt._paragraph).replace("hr",Mt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mt._tag).getRegex(),Mt.blockquote=Ct(Mt.blockquote).replace("paragraph",Mt.paragraph).getRegex(),Mt.normal=St({},Mt),Mt.gfm=St({},Mt.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Mt.gfm.nptable=Ct(Mt.gfm.nptable).replace("hr",Mt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mt._tag).getRegex(),Mt.gfm.table=Ct(Mt.gfm.table).replace("hr",Mt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",Mt._tag).getRegex(),Mt.pedantic=St({},Mt.normal,{html:Ct("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Mt._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:wt,paragraph:Ct(Mt.normal._paragraph).replace("hr",Mt.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Mt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var kt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:wt,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:wt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};kt.punctuation=Ct(kt.punctuation).replace(/punctuation/g,kt._punctuation).getRegex(),kt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,kt.escapedEmSt=/\\\*|\\_/g,kt._comment=Ct(Mt._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),kt.emStrong.lDelim=Ct(kt.emStrong.lDelim).replace(/punct/g,kt._punctuation).getRegex(),kt.emStrong.rDelimAst=Ct(kt.emStrong.rDelimAst,"g").replace(/punct/g,kt._punctuation).getRegex(),kt.emStrong.rDelimUnd=Ct(kt.emStrong.rDelimUnd,"g").replace(/punct/g,kt._punctuation).getRegex(),kt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,kt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,kt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,kt.autolink=Ct(kt.autolink).replace("scheme",kt._scheme).replace("email",kt._email).getRegex(),kt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,kt.tag=Ct(kt.tag).replace("comment",kt._comment).replace("attribute",kt._attribute).getRegex(),kt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,kt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,kt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,kt.link=Ct(kt.link).replace("label",kt._label).replace("href",kt._href).replace("title",kt._title).getRegex(),kt.reflink=Ct(kt.reflink).replace("label",kt._label).getRegex(),kt.reflinkSearch=Ct(kt.reflinkSearch,"g").replace("reflink",kt.reflink).replace("nolink",kt.nolink).getRegex(),kt.normal=St({},kt),kt.pedantic=St({},kt.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ct(/^!?\[(label)\]\((.*?)\)/).replace("label",kt._label).getRegex(),reflink:Ct(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kt._label).getRegex()}),kt.gfm=St({},kt.normal,{escape:Ct(kt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(ne="x"+ne.toString(16)),ie+="&#"+ne+";";return ie}var Et=function(){function Lexer(G){this.tokens=[],this.tokens.links=Object.create(null),this.options=G||Lt,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Z={block:Tt.normal,inline:At.normal};this.options.pedantic?(Z.block=Tt.pedantic,Z.inline=At.pedantic):this.options.gfm&&(Z.block=Tt.gfm,this.options.breaks?Z.inline=At.breaks:Z.inline=At.gfm),this.tokenizer.rules=Z}Lexer.lex=function lex(G,Z){return new Lexer(Z).lex(G)},Lexer.lexInline=function lexInline(G,Z){return new Lexer(Z).inlineTokens(G)};var G=Lexer.prototype;return G.lex=function lex(G){return G=G.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(G,this.tokens,!0),this.inline(this.tokens),this.tokens},G.blockTokens=function blockTokens(G,Z,ne){var ie,se,ce,fe;for(void 0===Z&&(Z=[]),void 0===ne&&(ne=!0),this.options.pedantic&&(G=G.replace(/^ +$/gm,""));G;)if(ie=this.tokenizer.space(G))G=G.substring(ie.raw.length),ie.type&&Z.push(ie);else if(ie=this.tokenizer.code(G))G=G.substring(ie.raw.length),(fe=Z[Z.length-1])&&"paragraph"===fe.type?(fe.raw+="\n"+ie.raw,fe.text+="\n"+ie.text):Z.push(ie);else if(ie=this.tokenizer.fences(G))G=G.substring(ie.raw.length),Z.push(ie);else if(ie=this.tokenizer.heading(G))G=G.substring(ie.raw.length),Z.push(ie);else if(ie=this.tokenizer.nptable(G))G=G.substring(ie.raw.length),Z.push(ie);else if(ie=this.tokenizer.hr(G))G=G.substring(ie.raw.length),Z.push(ie);else if(ie=this.tokenizer.blockquote(G))G=G.substring(ie.raw.length),ie.tokens=this.blockTokens(ie.text,[],ne),Z.push(ie);else if(ie=this.tokenizer.list(G)){for(G=G.substring(ie.raw.length),ce=ie.items.length,se=0;se0)for(;null!=(fe=this.tokenizer.rules.inline.reflinkSearch.exec(Ce));)Se.includes(fe[0].slice(fe[0].lastIndexOf("[")+1,-1))&&(Ce=Ce.slice(0,fe.index)+"["+Dt("a",fe[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(fe=this.tokenizer.rules.inline.blockSkip.exec(Ce));)Ce=Ce.slice(0,fe.index)+"["+Dt("a",fe[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(fe=this.tokenizer.rules.inline.escapedEmSt.exec(Ce));)Ce=Ce.slice(0,fe.index)+"++"+Ce.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;G;)if(me||(ge=""),me=!1,se=this.tokenizer.escape(G))G=G.substring(se.raw.length),Z.push(se);else if(se=this.tokenizer.tag(G,ne,ie)){G=G.substring(se.raw.length),ne=se.inLink,ie=se.inRawBlock;var Me=Z[Z.length-1];Me&&"text"===se.type&&"text"===Me.type?(Me.raw+=se.raw,Me.text+=se.text):Z.push(se)}else if(se=this.tokenizer.link(G))G=G.substring(se.raw.length),"link"===se.type&&(se.tokens=this.inlineTokens(se.text,[],!0,ie)),Z.push(se);else if(se=this.tokenizer.reflink(G,this.tokens.links)){G=G.substring(se.raw.length);var ke=Z[Z.length-1];"link"===se.type?(se.tokens=this.inlineTokens(se.text,[],!0,ie),Z.push(se)):ke&&"text"===se.type&&"text"===ke.type?(ke.raw+=se.raw,ke.text+=se.text):Z.push(se)}else if(se=this.tokenizer.emStrong(G,Ce,ge))G=G.substring(se.raw.length),se.tokens=this.inlineTokens(se.text,[],ne,ie),Z.push(se);else if(se=this.tokenizer.codespan(G))G=G.substring(se.raw.length),Z.push(se);else if(se=this.tokenizer.br(G))G=G.substring(se.raw.length),Z.push(se);else if(se=this.tokenizer.del(G))G=G.substring(se.raw.length),se.tokens=this.inlineTokens(se.text,[],ne,ie),Z.push(se);else if(se=this.tokenizer.autolink(G,mangle))G=G.substring(se.raw.length),Z.push(se);else if(ne||!(se=this.tokenizer.url(G,mangle))){if(se=this.tokenizer.inlineText(G,ie,smartypants))G=G.substring(se.raw.length),"_"!==se.raw.slice(-1)&&(ge=se.raw.slice(-1)),me=!0,(ce=Z[Z.length-1])&&"text"===ce.type?(ce.raw+=se.raw,ce.text+=se.text):Z.push(se);else if(G){var xe="Infinite loop on byte: "+G.charCodeAt(0);if(this.options.silent){console.error(xe);break}throw new Error(xe)}}else G=G.substring(se.raw.length),Z.push(se);return Z},function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Lexer,null,[{key:"rules",get:function get(){return{block:Tt,inline:At}}}]),Lexer}(),jt=G.defaults,It=$e,Nt=Ie,Rt=function(){function Renderer(G){this.options=G||jt}var G=Renderer.prototype;return G.code=function code(G,Z,ne){var ie=(Z||"").match(/\S*/)[0];if(this.options.highlight){var se=this.options.highlight(G,ie);null!=se&&se!==G&&(ne=!0,G=se)}return G=G.replace(/\n$/,"")+"\n",ie?'
'+(ne?G:Nt(G,!0))+"
\n":"
"+(ne?G:Nt(G,!0))+"
\n"},G.blockquote=function blockquote(G){return"
\n"+G+"
\n"},G.html=function html(G){return G},G.heading=function heading(G,Z,ne,ie){return this.options.headerIds?"'+G+"\n":""+G+"\n"},G.hr=function hr(){return this.options.xhtml?"
\n":"
\n"},G.list=function list(G,Z,ne){var ie=Z?"ol":"ul";return"<"+ie+(Z&&1!==ne?' start="'+ne+'"':"")+">\n"+G+"\n"},G.listitem=function listitem(G){return"
  • "+G+"
  • \n"},G.checkbox=function checkbox(G){return" "},G.paragraph=function paragraph(G){return"

    "+G+"

    \n"},G.table=function table(G,Z){return Z&&(Z=""+Z+""),"\n\n"+G+"\n"+Z+"
    \n"},G.tablerow=function tablerow(G){return"\n"+G+"\n"},G.tablecell=function tablecell(G,Z){var ne=Z.header?"th":"td";return(Z.align?"<"+ne+' align="'+Z.align+'">':"<"+ne+">")+G+"\n"},G.strong=function strong(G){return""+G+""},G.em=function em(G){return""+G+""},G.codespan=function codespan(G){return""+G+""},G.br=function br(){return this.options.xhtml?"
    ":"
    "},G.del=function del(G){return""+G+""},G.link=function link(G,Z,ne){if(null===(G=It(this.options.sanitize,this.options.baseUrl,G)))return ne;var ie='"},G.image=function image(G,Z,ne){if(null===(G=It(this.options.sanitize,this.options.baseUrl,G)))return ne;var ie=''+ne+'":">"},G.text=function text(G){return G},Renderer}(),zt=function(){function TextRenderer(){}var G=TextRenderer.prototype;return G.strong=function strong(G){return G},G.em=function em(G){return G},G.codespan=function codespan(G){return G},G.del=function del(G){return G},G.html=function html(G){return G},G.text=function text(G){return G},G.link=function link(G,Z,ne){return""+ne},G.image=function image(G,Z,ne){return""+ne},G.br=function br(){return""},TextRenderer}(),qt=function(){function Slugger(){this.seen={}}var G=Slugger.prototype;return G.serialize=function serialize(G){return G.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},G.getNextSafeSlug=function getNextSafeSlug(G,Z){var ne=G,ie=0;if(this.seen.hasOwnProperty(ne)){ie=this.seen[G];do{ne=G+"-"+ ++ie}while(this.seen.hasOwnProperty(ne))}return Z||(this.seen[G]=ie,this.seen[ne]=0),ne},G.slug=function slug(G,Z){void 0===Z&&(Z={});var slug=this.serialize(G);return this.getNextSafeSlug(slug,Z.dryrun)},Slugger}(),Wt=G.defaults,Bt=Re,Ft=function(){function Parser(G){this.options=G||Wt,this.options.renderer=this.options.renderer||new Rt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new zt,this.slugger=new qt}Parser.parse=function parse(G,Z){return new Parser(Z).parse(G)},Parser.parseInline=function parseInline(G,Z){return new Parser(Z).parseInline(G)};var G=Parser.prototype;return G.parse=function parse(G,Z){void 0===Z&&(Z=!0);var ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze,$e,Je,it="",ot=G.length;for(ne=0;ne0&&"text"===Re.tokens[0].type?(Re.tokens[0].text=Je+" "+Re.tokens[0].text,Re.tokens[0].tokens&&Re.tokens[0].tokens.length>0&&"text"===Re.tokens[0].tokens[0].type&&(Re.tokens[0].tokens[0].text=Je+" "+Re.tokens[0].tokens[0].text)):Re.tokens.unshift({type:"text",text:Je}):Ie+=Je),Ie+=this.parse(Re.tokens,De),Se+=this.renderer.listitem(Ie,$e,ze);it+=this.renderer.list(Se,ke,xe);continue;case"html":it+=this.renderer.html(Me.text);continue;case"paragraph":it+=this.renderer.paragraph(this.parseInline(Me.tokens));continue;case"text":for(Se=Me.tokens?this.parseInline(Me.tokens):Me.text;ne+1An error occurred:

    "+Vt(G.message+"",!0)+"
    ";throw G}}return marked.options=marked.setOptions=function(G){return Ht(marked.defaults,G),Ut(marked.defaults),marked},marked.getDefaults=Yt,marked.defaults=Kt,marked.use=function(G){var Z=Ht({},G);if(G.renderer&&function(){var ne=marked.defaults.renderer||new Rt,ie=function _loop(Z){var ie=ne[Z];ne[Z]=function(){for(var se=arguments.length,ce=new Array(se),fe=0;feAn error occurred:

    "+Vt(G.message+"",!0)+"
    ";throw G}},marked.Parser=Ft,marked.parser=Ft.parse,marked.Renderer=Rt,marked.TextRenderer=zt,marked.Lexer=Et,marked.lexer=Et.lex,marked.Tokenizer=vt,marked.Slugger=qt,marked.parse=marked,marked}()},316:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Widget}));var ie=ne(6),se=ne(205),ce=ne(279),fe=ne(10),me=ne(209);class Widget extends fe.a{onclick(G,Z){this._register(ie.i(G,ie.d.CLICK,G=>Z(new ce.a(G))))}onmousedown(G,Z){this._register(ie.i(G,ie.d.MOUSE_DOWN,G=>Z(new ce.a(G))))}onmouseover(G,Z){this._register(ie.i(G,ie.d.MOUSE_OVER,G=>Z(new ce.a(G))))}onnonbubblingmouseout(G,Z){this._register(ie.j(G,G=>Z(new ce.a(G))))}onkeydown(G,Z){this._register(ie.i(G,ie.d.KEY_DOWN,G=>Z(new se.a(G))))}onkeyup(G,Z){this._register(ie.i(G,ie.d.KEY_UP,G=>Z(new se.a(G))))}oninput(G,Z){this._register(ie.i(G,ie.d.INPUT,Z))}onblur(G,Z){this._register(ie.i(G,ie.d.BLUR,Z))}onfocus(G,Z){this._register(ie.i(G,ie.d.FOCUS,Z))}ignoreGesture(G){me.b.ignoreTarget(G)}}},317:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return clearAllFontInfos})),ne.d(Z,"a",(function(){return configuration_Configuration}));var ie=ne(130),se=ne(19),ce=ne(10),fe=ne(46);class CharWidthRequest{constructor(G,Z){this.chr=G,this.type=Z,this.width=0}fulfill(G){this.width=G}}class DomCharWidthReader{constructor(G,Z){this._bareFontInfo=G,this._requests=Z,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const G=document.createElement("div");G.style.position="absolute",G.style.top="-50000px",G.style.width="50000px";const Z=document.createElement("div");Z.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),Z.style.fontWeight=this._bareFontInfo.fontWeight,Z.style.fontSize=this._bareFontInfo.fontSize+"px",Z.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,Z.style.lineHeight=this._bareFontInfo.lineHeight+"px",Z.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",G.appendChild(Z);const ne=document.createElement("div");ne.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),ne.style.fontWeight="bold",ne.style.fontSize=this._bareFontInfo.fontSize+"px",ne.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,ne.style.lineHeight=this._bareFontInfo.lineHeight+"px",ne.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",G.appendChild(ne);const ie=document.createElement("div");ie.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),ie.style.fontWeight=this._bareFontInfo.fontWeight,ie.style.fontSize=this._bareFontInfo.fontSize+"px",ie.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,ie.style.lineHeight=this._bareFontInfo.lineHeight+"px",ie.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",ie.style.fontStyle="italic",G.appendChild(ie);const se=[];for(const G of this._requests){let ce;0===G.type&&(ce=Z),2===G.type&&(ce=ne),1===G.type&&(ce=ie),ce.appendChild(document.createElement("br"));const fe=document.createElement("span");DomCharWidthReader._render(fe,G),ce.appendChild(fe),se.push(fe)}this._container=G,this._testElements=se}static _render(G,Z){if(" "===Z.chr){let Z=" ";for(let G=0;G<8;G++)Z+=Z;G.innerText=Z}else{let ne=Z.chr;for(let G=0;G<8;G++)ne+=ne;G.textContent=ne}}_readFromDomElements(){for(let G=0,Z=this._requests.length;Gthis._values[G])}}function clearAllFontInfos(){configuration_CSSBasedConfiguration.INSTANCE.clearCache()}class configuration_CSSBasedConfiguration extends ce.a{constructor(){super(),this._onDidChange=this._register(new se.b),this.onDidChange=this._onDidChange.event,this._cache=new CSSBasedConfigurationCache,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new CSSBasedConfigurationCache,this._onDidChange.fire()}_writeToCache(G,Z){this._cache.put(G,Z),Z.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const G=this._cache.getValues();let Z=!1;for(const ne of G)ne.isTrusted||(Z=!0,this._cache.remove(ne));Z&&this._onDidChange.fire()}readConfiguration(G){if(!this._cache.has(G)){let Z=configuration_CSSBasedConfiguration._actualReadConfiguration(G);(Z.typicalHalfwidthCharacterWidth<=2||Z.typicalFullwidthCharacterWidth<=2||Z.spaceWidth<=2||Z.maxDigitWidth<=2)&&(Z=new Se.b({zoomLevel:ie.d(),pixelRatio:ie.a(),fontFamily:Z.fontFamily,fontWeight:Z.fontWeight,fontSize:Z.fontSize,fontFeatureSettings:Z.fontFeatureSettings,lineHeight:Z.lineHeight,letterSpacing:Z.letterSpacing,isMonospace:Z.isMonospace,typicalHalfwidthCharacterWidth:Math.max(Z.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(Z.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:Z.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(Z.spaceWidth,5),middotWidth:Math.max(Z.middotWidth,5),wsmiddotWidth:Math.max(Z.wsmiddotWidth,5),maxDigitWidth:Math.max(Z.maxDigitWidth,5)},!1)),this._writeToCache(G,Z)}return this._cache.get(G)}static createRequest(G,Z,ne,ie){const se=new CharWidthRequest(G,Z);return ne.push(se),ie&&ie.push(se),se}static _actualReadConfiguration(G){const Z=[],ne=[],se=this.createRequest("n",0,Z,ne),ce=this.createRequest("m",0,Z,null),fe=this.createRequest(" ",0,Z,ne),me=this.createRequest("0",0,Z,ne),ge=this.createRequest("1",0,Z,ne),Me=this.createRequest("2",0,Z,ne),ke=this.createRequest("3",0,Z,ne),xe=this.createRequest("4",0,Z,ne),De=this.createRequest("5",0,Z,ne),Ie=this.createRequest("6",0,Z,ne),Re=this.createRequest("7",0,Z,ne),ze=this.createRequest("8",0,Z,ne),$e=this.createRequest("9",0,Z,ne),Je=this.createRequest("→",0,Z,ne),it=this.createRequest("→",0,Z,null),ot=this.createRequest("·",0,Z,ne),at=this.createRequest(String.fromCharCode(11825),0,Z,null);this.createRequest("|",0,Z,ne),this.createRequest("/",0,Z,ne),this.createRequest("-",0,Z,ne),this.createRequest("_",0,Z,ne),this.createRequest("i",0,Z,ne),this.createRequest("l",0,Z,ne),this.createRequest("m",0,Z,ne),this.createRequest("|",1,Z,ne),this.createRequest("_",1,Z,ne),this.createRequest("i",1,Z,ne),this.createRequest("l",1,Z,ne),this.createRequest("m",1,Z,ne),this.createRequest("n",1,Z,ne),this.createRequest("|",2,Z,ne),this.createRequest("_",2,Z,ne),this.createRequest("i",2,Z,ne),this.createRequest("l",2,Z,ne),this.createRequest("m",2,Z,ne),this.createRequest("n",2,Z,ne),function readCharWidths(G,Z){new DomCharWidthReader(G,Z).read()}(G,Z);const st=Math.max(me.width,ge.width,Me.width,ke.width,xe.width,De.width,Ie.width,Re.width,ze.width,$e.width);let ct=G.fontFeatureSettings===Ce.e.OFF;const ut=ne[0].width;for(let G=1,Z=ne.length;ct&&G.001){ct=!1;break}}let dt=!0;ct&&it.width!==ut&&(dt=!1),it.width>Je.width&&(dt=!1);const ht=ie.b()>2e3;return new Se.b({zoomLevel:ie.d(),pixelRatio:ie.a(),fontFamily:G.fontFamily,fontWeight:G.fontWeight,fontSize:G.fontSize,fontFeatureSettings:G.fontFeatureSettings,lineHeight:G.lineHeight,letterSpacing:G.letterSpacing,isMonospace:ct,typicalHalfwidthCharacterWidth:se.width,typicalFullwidthCharacterWidth:ce.width,canUseHalfwidthRightwardsArrow:dt,spaceWidth:fe.width,middotWidth:ot.width,wsmiddotWidth:at.width,maxDigitWidth:st},ht)}}configuration_CSSBasedConfiguration.INSTANCE=new configuration_CSSBasedConfiguration;class configuration_Configuration extends ge.a{constructor(G,Z,ne=null,se){super(G,Z),this.accessibilityService=se,this._elementSizeObserver=this._register(new me.a(ne,Z.dimension,()=>this._recomputeOptions())),this._register(configuration_CSSBasedConfiguration.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(ie.l(G=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(G,Z){G.style.fontFamily=Z.getMassagedFontFamily(),G.style.fontWeight=Z.fontWeight,G.style.fontSize=Z.fontSize+"px",G.style.fontFeatureSettings=Z.fontFeatureSettings,G.style.lineHeight=Z.lineHeight+"px",G.style.letterSpacing=Z.letterSpacing+"px"}static applyFontInfo(G,Z){G.setFontFamily(Z.getMassagedFontFamily()),G.setFontWeight(Z.fontWeight),G.setFontSize(Z.fontSize),G.setFontFeatureSettings(Z.fontFeatureSettings),G.setLineHeight(Z.lineHeight),G.setLetterSpacing(Z.letterSpacing)}observeReferenceElement(G){this._elementSizeObserver.observe(G)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let G="";return ie.h||ie.k||(G+="no-user-select "),ie.h&&(G+="no-minimap-shadow "),fe.f&&(G+="mac "),G}_getEnvConfiguration(){return{extraEditorClassName:configuration_Configuration._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:ie.j||ie.g,pixelRatio:ie.a(),zoomLevel:ie.d(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(G){return configuration_CSSBasedConfiguration.INSTANCE.readConfiguration(G)}}},318:function(G,Z,ne){"use strict";ne.d(Z,"f",(function(){return ModelRawFlush})),ne.d(Z,"b",(function(){return LineInjectedText})),ne.d(Z,"g",(function(){return ModelRawLineChanged})),ne.d(Z,"h",(function(){return ModelRawLinesDeleted})),ne.d(Z,"i",(function(){return ModelRawLinesInserted})),ne.d(Z,"e",(function(){return ModelRawEOLChanged})),ne.d(Z,"d",(function(){return ModelRawContentChangedEvent})),ne.d(Z,"c",(function(){return ModelInjectedTextChangedEvent})),ne.d(Z,"a",(function(){return InternalModelContentChangeEvent}));class ModelRawFlush{constructor(){this.changeType=1}}class LineInjectedText{constructor(G,Z,ne,ie,se){this.ownerId=G,this.lineNumber=Z,this.column=ne,this.options=ie,this.order=se}static applyInjectedText(G,Z){if(!Z||0===Z.length)return G;let ne="",ie=0;for(const se of Z)ne+=G.substring(ie,se.column-1),ie=se.column-1,ne+=se.options.content;return ne+=G.substring(ie),ne}static fromDecorations(G){const Z=[];for(const ne of G)ne.options.before&&ne.options.before.content.length>0&&Z.push(new LineInjectedText(ne.ownerId,ne.range.startLineNumber,ne.range.startColumn,ne.options.before,0)),ne.options.after&&ne.options.after.content.length>0&&Z.push(new LineInjectedText(ne.ownerId,ne.range.endLineNumber,ne.range.endColumn,ne.options.after,1));return Z.sort((G,Z)=>G.lineNumber===Z.lineNumber?G.column===Z.column?G.order-Z.order:G.column-Z.column:G.lineNumber-Z.lineNumber),Z}}class ModelRawLineChanged{constructor(G,Z,ne){this.changeType=2,this.lineNumber=G,this.detail=Z,this.injectedText=ne}}class ModelRawLinesDeleted{constructor(G,Z){this.changeType=3,this.fromLineNumber=G,this.toLineNumber=Z}}class ModelRawLinesInserted{constructor(G,Z,ne,ie){this.changeType=4,this.injectedTexts=ie,this.fromLineNumber=G,this.toLineNumber=Z,this.detail=ne}}class ModelRawEOLChanged{constructor(){this.changeType=5}}class ModelRawContentChangedEvent{constructor(G,Z,ne,ie){this.changes=G,this.versionId=Z,this.isUndoing=ne,this.isRedoing=ie,this.resultingSelection=null}containsEvent(G){for(let Z=0,ne=this.changes.length;Zthis._onDidChangeReferenceRange.fire(G));this.references.push(G),ie.children.push(G)}}dispose(){Object(fe.f)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new ReferencesModel(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?Object(ie.a)("aria.result.0","No results found"):1===this.references.length?Object(ie.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(ie.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(ie.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(G,Z){let{parent:ne}=G,ie=ne.children.indexOf(G),se=ne.children.length,ce=ne.parent.groups.length;return 1===ce||Z&&ie+10?(ie=Z?(ie+1)%se:(ie+se-1)%se,ne.children[ie]):(ie=ne.parent.groups.indexOf(ne),Z?(ie=(ie+1)%ce,ne.parent.groups[ie].children[0]):(ie=(ie+ce-1)%ce,ne.parent.groups[ie].children[ne.parent.groups[ie].children.length-1]))}nearestReference(G,Z){const ne=this.references.map((ne,ie)=>({idx:ie,prefixLen:me.d(ne.uri.toString(),G.toString()),offsetDist:100*Math.abs(ne.range.startLineNumber-Z.lineNumber)+Math.abs(ne.range.startColumn-Z.column)})).sort((G,Z)=>G.prefixLen>Z.prefixLen?-1:G.prefixLenZ.offsetDist?1:0)[0];if(ne)return this.references[ne.idx]}referenceAt(G,Z){for(const ne of this.references)if(ne.uri.toString()===G.toString()&&Ce.a.containsPosition(ne.range,Z))return ne}firstReference(){for(const G of this.references)if(G.isProviderFirst)return G;return this.references[0]}static _compareReferences(G,Z){return ce.e.compare(G.uri,Z.uri)||Ce.a.compareRangesUsingStarts(G.range,Z.range)}}},329:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={getSettingsFromThemedProps:!0,getTheme:!0,mixins:!0,pick:!0,pickVariant:!0,SplunkThemeProvider:!0,useSplunkTheme:!0,withSplunkTheme:!0,variables:!0};Object.defineProperty(Z,"getSettingsFromThemedProps",{enumerable:!0,get:function get(){return se.default}}),Object.defineProperty(Z,"getTheme",{enumerable:!0,get:function get(){return ce.default}}),Object.defineProperty(Z,"mixins",{enumerable:!0,get:function get(){return fe.default}}),Object.defineProperty(Z,"pick",{enumerable:!0,get:function get(){return me.default}}),Object.defineProperty(Z,"pickVariant",{enumerable:!0,get:function get(){return ge.default}}),Object.defineProperty(Z,"SplunkThemeProvider",{enumerable:!0,get:function get(){return Ce.default}}),Object.defineProperty(Z,"useSplunkTheme",{enumerable:!0,get:function get(){return Se.default}}),Object.defineProperty(Z,"withSplunkTheme",{enumerable:!0,get:function get(){return Me.default}}),Object.defineProperty(Z,"variables",{enumerable:!0,get:function get(){return ke.default}});var se=_interopRequireDefault(ne(7764)),ce=_interopRequireDefault(ne(2902)),fe=_interopRequireDefault(ne(2904)),me=_interopRequireDefault(ne(2042)),ge=_interopRequireDefault(ne(7774)),Ce=_interopRequireDefault(ne(7775)),Se=_interopRequireDefault(ne(4217)),Me=_interopRequireDefault(ne(7776)),ke=_interopRequireDefault(ne(2905)),xe=ne(7777);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Object.keys(xe).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||Object.defineProperty(Z,G,{enumerable:!0,get:function get(){return xe[G]}}))}))},331:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return Progress})),ne.d(Z,"a",(function(){return se}));var ie=ne(60);class Progress{constructor(G){this.callback=G}report(G){this._value=G,this.callback(this._value)}}Progress.None=Object.freeze({report(){}});const se=Object(ie.c)("editorProgressService")},332:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return editorState_EditorState})),ne.d(Z,"b",(function(){return editorState_EditorStateCancellationTokenSource})),ne.d(Z,"d",(function(){return editorState_TextModelCancellationTokenSource})),ne.d(Z,"c",(function(){return StableEditorScrollState}));var ie=ne(27),se=ne(12),ce=ne(103),fe=ne(10),me=ne(14),ge=ne(26),Ce=ne(376),Se=ne(60),Me=ne(533),ke=ne(4);const xe=Object(Se.c)("IEditorCancelService"),De=new ge.c("cancellableOperation",!1,Object(ke.a)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Object(Me.b)(xe,class{constructor(){this._tokens=new WeakMap}add(G,Z){let ne,ie=this._tokens.get(G);return ie||(ie=G.invokeWithinContext(G=>({key:De.bindTo(G.get(ge.b)),tokens:new Ce.a})),this._tokens.set(G,ie)),ie.key.set(!0),ne=ie.tokens.push(Z),()=>{ne&&(ne(),ie.key.set(!ie.tokens.isEmpty()),ne=void 0)}}cancel(G){const Z=this._tokens.get(G);if(!Z)return;const ne=Z.tokens.pop();ne&&(ne.cancel(),Z.key.set(!Z.tokens.isEmpty()))}},!0);class keybindingCancellation_EditorKeybindingCancellationTokenSource extends ce.b{constructor(G,Z){super(Z),this.editor=G,this._unregister=G.invokeWithinContext(Z=>Z.get(xe).add(G,this))}dispose(){this._unregister(),super.dispose()}}Object(me.k)(new class extends me.c{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:De})}runEditorCommand(G,Z){G.get(xe).cancel(Z)}});class editorState_EditorState{constructor(G,Z){if(this.flags=Z,0!=(1&this.flags)){const Z=G.getModel();this.modelVersionId=Z?ie.w("{0}#{1}",Z.uri.toString(),Z.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=G.getPosition():this.position=null,0!=(2&this.flags)?this.selection=G.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=G.getScrollLeft(),this.scrollTop=G.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(G){if(!(G instanceof editorState_EditorState))return!1;const Z=G;return this.modelVersionId===Z.modelVersionId&&(this.scrollLeft===Z.scrollLeft&&this.scrollTop===Z.scrollTop&&(!(!this.position&&Z.position||this.position&&!Z.position||this.position&&Z.position&&!this.position.equals(Z.position))&&!(!this.selection&&Z.selection||this.selection&&!Z.selection||this.selection&&Z.selection&&!this.selection.equalsRange(Z.selection))))}validate(G){return this._equals(new editorState_EditorState(G,this.flags))}}class editorState_EditorStateCancellationTokenSource extends keybindingCancellation_EditorKeybindingCancellationTokenSource{constructor(G,Z,ne,ie){super(G,ie),this._listener=new fe.b,4&Z&&this._listener.add(G.onDidChangeCursorPosition(G=>{ne&&se.a.containsPosition(ne,G.position)||this.cancel()})),2&Z&&this._listener.add(G.onDidChangeCursorSelection(G=>{ne&&se.a.containsRange(ne,G.selection)||this.cancel()})),8&Z&&this._listener.add(G.onDidScrollChange(G=>this.cancel())),1&Z&&(this._listener.add(G.onDidChangeModel(G=>this.cancel())),this._listener.add(G.onDidChangeModelContent(G=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class editorState_TextModelCancellationTokenSource extends ce.b{constructor(G,Z){super(Z),this._listener=G.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class StableEditorScrollState{constructor(G,Z,ne){this._visiblePosition=G,this._visiblePositionScrollDelta=Z,this._cursorPosition=ne}static capture(G){let Z=null,ne=0;if(0!==G.getScrollTop()){const ie=G.getVisibleRanges();if(ie.length>0){Z=ie[0].getStartPosition();const se=G.getTopForPosition(Z.lineNumber,Z.column);ne=G.getScrollTop()-se}}return new StableEditorScrollState(Z,ne,G.getPosition())}restore(G){if(this._visiblePosition){const Z=G.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);G.setScrollTop(Z+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(G){const Z=G.getPosition();if(!this._cursorPosition||!Z)return;const ne=G.getTopForLineNumber(Z.lineNumber)-G.getTopForLineNumber(this._cursorPosition.lineNumber);G.setScrollTop(G.getScrollTop()+ne)}}},339:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={getSettingsFromThemedProps:!0,getTheme:!0,mixins:!0,pick:!0,pickVariant:!0,SplunkThemeProvider:!0,useSplunkTheme:!0,withSplunkTheme:!0,variables:!0};Object.defineProperty(Z,"getSettingsFromThemedProps",{enumerable:!0,get:function get(){return se.default}}),Object.defineProperty(Z,"getTheme",{enumerable:!0,get:function get(){return ce.default}}),Object.defineProperty(Z,"mixins",{enumerable:!0,get:function get(){return fe.default}}),Object.defineProperty(Z,"pick",{enumerable:!0,get:function get(){return me.default}}),Object.defineProperty(Z,"pickVariant",{enumerable:!0,get:function get(){return ge.default}}),Object.defineProperty(Z,"SplunkThemeProvider",{enumerable:!0,get:function get(){return Ce.default}}),Object.defineProperty(Z,"useSplunkTheme",{enumerable:!0,get:function get(){return Se.default}}),Object.defineProperty(Z,"withSplunkTheme",{enumerable:!0,get:function get(){return Me.default}}),Object.defineProperty(Z,"variables",{enumerable:!0,get:function get(){return ke.default}});var se=_interopRequireDefault(ne(2461)),ce=_interopRequireDefault(ne(1095)),fe=_interopRequireDefault(ne(2469)),me=_interopRequireDefault(ne(865)),ge=_interopRequireDefault(ne(2472)),Ce=_interopRequireDefault(ne(2473)),Se=_interopRequireDefault(ne(1533)),Me=_interopRequireDefault(ne(2474)),ke=_interopRequireDefault(ne(1097)),xe=ne(2475);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Object.keys(xe).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||Object.defineProperty(Z,G,{enumerable:!0,get:function get(){return xe[G]}}))}))},34:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Position}));class Position{constructor(G,Z){this.lineNumber=G,this.column=Z}with(G=this.lineNumber,Z=this.column){return G===this.lineNumber&&Z===this.column?this:new Position(G,Z)}delta(G=0,Z=0){return this.with(this.lineNumber+G,this.column+Z)}equals(G){return Position.equals(this,G)}static equals(G,Z){return!G&&!Z||!!G&&!!Z&&G.lineNumber===Z.lineNumber&&G.column===Z.column}isBefore(G){return Position.isBefore(this,G)}static isBefore(G,Z){return G.lineNumberZ&&(ne=Z,ie=G.model.getLineMaxColumn(ne)),ce.d.fromModelState(new ce.f(new Ce.a(fe.lineNumber,1,ne,ie),0,new ge.a(ne,ie),0))}const Se=Z.modelState.selectionStart.getStartPosition().lineNumber;if(fe.lineNumberSe){const ne=G.getLineCount();let ie=me.lineNumber+1,se=1;return ie>ne&&(ie=ne,se=G.getLineMaxColumn(ie)),ce.d.fromViewState(Z.viewState.move(Z.modelState.hasSelection(),ie,se,0))}{const G=Z.modelState.selectionStart.getEndPosition();return ce.d.fromModelState(Z.modelState.move(Z.modelState.hasSelection(),G.lineNumber,G.column,0))}}static word(G,Z,ne,ie){const se=G.model.validatePosition(ie);return ce.d.fromModelState(me.a.word(G.cursorConfig,G.model,Z.modelState,ne,se))}static cancelSelection(G,Z){if(!Z.modelState.hasSelection())return new ce.d(Z.modelState,Z.viewState);const ne=Z.viewState.position.lineNumber,ie=Z.viewState.position.column;return ce.d.fromViewState(new ce.f(new Ce.a(ne,ie,ne,ie),0,new ge.a(ne,ie),0))}static moveTo(G,Z,ne,ie,se){const fe=G.model.validatePosition(ie),me=se?G.coordinatesConverter.validateViewPosition(new ge.a(se.lineNumber,se.column),fe):G.coordinatesConverter.convertModelPositionToViewPosition(fe);return ce.d.fromViewState(Z.viewState.move(ne,me.lineNumber,me.column,0))}static simpleMove(G,Z,ne,ie,se,me){switch(ne){case 0:return 4===me?this._moveHalfLineLeft(G,Z,ie):this._moveLeft(G,Z,ie,se);case 1:return 4===me?this._moveHalfLineRight(G,Z,ie):this._moveRight(G,Z,ie,se);case 2:return 2===me?this._moveUpByViewLines(G,Z,ie,se):this._moveUpByModelLines(G,Z,ie,se);case 3:return 2===me?this._moveDownByViewLines(G,Z,ie,se):this._moveDownByModelLines(G,Z,ie,se);case 4:return 2===me?Z.map(Z=>ce.d.fromViewState(fe.a.moveToPrevBlankLine(G.cursorConfig,G,Z.viewState,ie))):Z.map(Z=>ce.d.fromModelState(fe.a.moveToPrevBlankLine(G.cursorConfig,G.model,Z.modelState,ie)));case 5:return 2===me?Z.map(Z=>ce.d.fromViewState(fe.a.moveToNextBlankLine(G.cursorConfig,G,Z.viewState,ie))):Z.map(Z=>ce.d.fromModelState(fe.a.moveToNextBlankLine(G.cursorConfig,G.model,Z.modelState,ie)));case 6:return this._moveToViewMinColumn(G,Z,ie);case 7:return this._moveToViewFirstNonWhitespaceColumn(G,Z,ie);case 8:return this._moveToViewCenterColumn(G,Z,ie);case 9:return this._moveToViewMaxColumn(G,Z,ie);case 10:return this._moveToViewLastNonWhitespaceColumn(G,Z,ie);default:return null}}static viewportMove(G,Z,ne,ie,se){const ce=G.getCompletelyVisibleViewRange(),fe=G.coordinatesConverter.convertViewRangeToModelRange(ce);switch(ne){case 11:{const ne=this._firstLineNumberInRange(G.model,fe,se),ce=G.model.getLineFirstNonWhitespaceColumn(ne);return[this._moveToModelPosition(G,Z[0],ie,ne,ce)]}case 13:{const ne=this._lastLineNumberInRange(G.model,fe,se),ce=G.model.getLineFirstNonWhitespaceColumn(ne);return[this._moveToModelPosition(G,Z[0],ie,ne,ce)]}case 12:{const ne=Math.round((fe.startLineNumber+fe.endLineNumber)/2),se=G.model.getLineFirstNonWhitespaceColumn(ne);return[this._moveToModelPosition(G,Z[0],ie,ne,se)]}case 14:{let ne=[];for(let se=0,fe=Z.length;sene.endLineNumber-1&&(se=ne.endLineNumber-1),sece.d.fromViewState(fe.a.moveLeft(G.cursorConfig,G,Z.viewState,ne,ie)))}static _moveHalfLineLeft(G,Z,ne){let ie=[];for(let se=0,me=Z.length;sece.d.fromViewState(fe.a.moveRight(G.cursorConfig,G,Z.viewState,ne,ie)))}static _moveHalfLineRight(G,Z,ne){let ie=[];for(let se=0,me=Z.length;se>>0}static getTokenType(G){return(1792&G)>>>8}static getFontStyle(G){return(14336&G)>>>11}static getForeground(G){return(8372224&G)>>>14}static getBackground(G){return(4286578688&G)>>>23}static getClassNameFromMetadata(G){let Z="mtk"+this.getForeground(G),ne=this.getFontStyle(G);return 1&ne&&(Z+=" mtki"),2&ne&&(Z+=" mtkb"),4&ne&&(Z+=" mtku"),Z}static getInlineStyleFromMetadata(G,Z){const ne=this.getForeground(G),ie=this.getFontStyle(G);let se=`color: ${Z[ne]};`;return 1&ie&&(se+="font-style: italic;"),2&ie&&(se+="font-weight: bold;"),4&ie&&(se+="text-decoration: underline;"),se}}const Ce=function(){let G=Object.create(null);return G[0]="symbol-method",G[1]="symbol-function",G[2]="symbol-constructor",G[3]="symbol-field",G[4]="symbol-variable",G[5]="symbol-class",G[6]="symbol-struct",G[7]="symbol-interface",G[8]="symbol-module",G[9]="symbol-property",G[10]="symbol-event",G[11]="symbol-operator",G[12]="symbol-unit",G[13]="symbol-value",G[14]="symbol-constant",G[15]="symbol-enum",G[16]="symbol-enum-member",G[17]="symbol-keyword",G[27]="symbol-snippet",G[18]="symbol-text",G[19]="symbol-color",G[20]="symbol-file",G[21]="symbol-reference",G[22]="symbol-customcolor",G[23]="symbol-folder",G[24]="symbol-type-parameter",G[25]="account",G[26]="issues",function(Z){const ne=G[Z];let ie=ne&&ge.d.get(ne);return ie||(console.info("No codicon found for CompletionItemKind "+Z),ie=ge.b.symbolProperty),ie.classNames}}();let Se=function(){let G=Object.create(null);return G.method=0,G.function=1,G.constructor=2,G.field=3,G.variable=4,G.class=5,G.struct=6,G.interface=7,G.module=8,G.property=9,G.event=10,G.operator=11,G.unit=12,G.value=13,G.constant=14,G.enum=15,G["enum-member"]=16,G.enumMember=16,G.keyword=17,G.snippet=27,G.text=18,G.color=19,G.file=20,G.reference=21,G.customcolor=22,G.folder=23,G["type-parameter"]=24,G.typeParameter=24,G.account=25,G.issue=26,function(Z,ne){let ie=G[Z];return void 0!==ie||ne||(ie=9),ie}}();var Me,ke,xe,De,Ie;function isLocationLink(G){return G&&ie.a.isUri(G.uri)&&se.a.isIRange(G.range)&&(se.a.isIRange(G.originSelectionRange)||se.a.isIRange(G.targetSelectionRange))}!function(G){G[G.Automatic=0]="Automatic",G[G.Explicit=1]="Explicit"}(Me||(Me={})),function(G){G[G.Invoke=1]="Invoke",G[G.TriggerCharacter=2]="TriggerCharacter",G[G.ContentChange=3]="ContentChange"}(ke||(ke={})),function(G){G[G.Text=0]="Text",G[G.Read=1]="Read",G[G.Write=2]="Write"}(xe||(xe={})),function(G){const Z=new Map;Z.set("file",0),Z.set("module",1),Z.set("namespace",2),Z.set("package",3),Z.set("class",4),Z.set("method",5),Z.set("property",6),Z.set("field",7),Z.set("constructor",8),Z.set("enum",9),Z.set("interface",10),Z.set("function",11),Z.set("variable",12),Z.set("constant",13),Z.set("string",14),Z.set("number",15),Z.set("boolean",16),Z.set("array",17),Z.set("object",18),Z.set("key",19),Z.set("null",20),Z.set("enum-member",21),Z.set("struct",22),Z.set("event",23),Z.set("operator",24),Z.set("type-parameter",25);const ne=new Map;ne.set(0,"file"),ne.set(1,"module"),ne.set(2,"namespace"),ne.set(3,"package"),ne.set(4,"class"),ne.set(5,"method"),ne.set(6,"property"),ne.set(7,"field"),ne.set(8,"constructor"),ne.set(9,"enum"),ne.set(10,"interface"),ne.set(11,"function"),ne.set(12,"variable"),ne.set(13,"constant"),ne.set(14,"string"),ne.set(15,"number"),ne.set(16,"boolean"),ne.set(17,"array"),ne.set(18,"object"),ne.set(19,"key"),ne.set(20,"null"),ne.set(21,"enum-member"),ne.set(22,"struct"),ne.set(23,"event"),ne.set(24,"operator"),ne.set(25,"type-parameter"),G.fromString=function fromString(G){return Z.get(G)},G.toString=function toString(G){return ne.get(G)},G.toCssClassName=function toCssClassName(G,Z){const ie=ne.get(G);let se=ie&&ge.d.get("symbol-"+ie);return se||(console.info("No codicon found for SymbolKind "+G),se=ge.b.symbolProperty),`${Z?"inline":"block"} ${se.classNames}`}}(De||(De={}));class FoldingRangeKind{constructor(G){this.value=G}}FoldingRangeKind.Comment=new FoldingRangeKind("comment"),FoldingRangeKind.Imports=new FoldingRangeKind("imports"),FoldingRangeKind.Region=new FoldingRangeKind("region"),function(G){G[G.Other=0]="Other",G[G.Type=1]="Type",G[G.Parameter=2]="Parameter"}(Ie||(Ie={}));const Re=new ce.a,ze=new ce.a,$e=new ce.a,Je=new ce.a,it=new ce.a,ot=new ce.a,at=new ce.a,st=new ce.a,ct=new ce.a,ut=new ce.a,dt=new ce.a,ht=new ce.a,ft=new ce.a,_t=new ce.a,yt=new ce.a,vt=new ce.a,wt=new ce.a,Ct=new ce.a,St=new ce.a,Mt=new ce.a,kt=new ce.a,xt=new ce.a,Lt=new ce.a,Tt=new ce.a,At=new ce.a,Dt=new class tokenizationRegistry_TokenizationRegistryImpl{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new fe.b,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(G){this._onDidChange.fire({changedLanguages:G,changedColorMap:!1})}register(G,Z){return this._map.set(G,Z),this.fire([G]),Object(me.i)(()=>{this._map.get(G)===Z&&(this._map.delete(G),this.fire([G]))})}registerPromise(G,Z){let ne=null,ie=!1;return this._promises.set(G,Z.then(Z=>{this._promises.delete(G),!ie&&Z&&(ne=this.register(G,Z))})),Object(me.i)(()=>{ie=!0,ne&&ne.dispose()})}getPromise(G){const Z=this.get(G);if(Z)return Promise.resolve(Z);const ne=this._promises.get(G);return ne?ne.then(Z=>this.get(G)):null}get(G){return this._map.get(G)||null}setColorMap(G){this._colorMap=G,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}},352:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return fe})),ne.d(Z,"c",(function(){return me})),ne.d(Z,"a",(function(){return ConsoleLogger})),ne.d(Z,"d",(function(){return LogService}));var ie=ne(60),se=ne(10),ce=ne(19);const fe=Object(ie.c)("logService");var me;!function(G){G[G.Trace=0]="Trace",G[G.Debug=1]="Debug",G[G.Info=2]="Info",G[G.Warning=3]="Warning",G[G.Error=4]="Error",G[G.Critical=5]="Critical",G[G.Off=6]="Off"}(me||(me={}));const ge=me.Info;class AbstractLogger extends se.a{constructor(){super(...arguments),this.level=ge,this._onDidChangeLogLevel=this._register(new ce.b)}setLevel(G){this.level!==G&&(this.level=G,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class ConsoleLogger extends AbstractLogger{constructor(G=ge){super(),this.setLevel(G)}trace(G,...Z){this.getLevel()<=me.Trace&&console.log("%cTRACE","color: #888",G,...Z)}debug(G,...Z){this.getLevel()<=me.Debug&&console.log("%cDEBUG","background: #eee; color: #888",G,...Z)}info(G,...Z){this.getLevel()<=me.Info&&console.log("%c INFO","color: #33f",G,...Z)}error(G,...Z){this.getLevel()<=me.Error&&console.log("%c ERR","color: #f33",G,...Z)}dispose(){}}class LogService extends se.a{constructor(G){super(),this.logger=G,this._register(G)}getLevel(){return this.logger.getLevel()}trace(G,...Z){this.logger.trace(G,...Z)}debug(G,...Z){this.logger.debug(G,...Z)}info(G,...Z){this.logger.info(G,...Z)}error(G,...Z){this.logger.error(G,...Z)}}},355:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return fe})),ne.d(Z,"b",(function(){return TextAreaState})),ne.d(Z,"a",(function(){return PagedScreenReaderStrategy}));var ie=ne(27),se=ne(34),ce=ne(12);const fe=!1;class TextAreaState{constructor(G,Z,ne,ie,se){this.value=G,this.selectionStart=Z,this.selectionEnd=ne,this.selectionStartPosition=ie,this.selectionEndPosition=se}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(G){return new TextAreaState(G.getValue(),G.getSelectionStart(),G.getSelectionEnd(),null,null)}collapseSelection(){return new TextAreaState(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(G,Z,ne){fe&&console.log("writeToTextArea "+G+": "+this.toString()),Z.setValue(G,this.value),ne&&Z.setSelectionRange(G,this.selectionStart,this.selectionEnd)}deduceEditorPosition(G){if(G<=this.selectionStart){const Z=this.value.substring(G,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,Z,-1)}if(G>=this.selectionEnd){const Z=this.value.substring(this.selectionEnd,G);return this._finishDeduceEditorPosition(this.selectionEndPosition,Z,1)}const Z=this.value.substring(this.selectionStart,G);if(-1===Z.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,Z,1);const ne=this.value.substring(G,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,ne,-1)}_finishDeduceEditorPosition(G,Z,ne){let ie=0,se=-1;for(;-1!==(se=Z.indexOf("\n",se+1));)ie++;return[G,ne*Z.length,ie]}static selectedText(G){return new TextAreaState(G,0,G.length,null,null)}static deduceInput(G,Z,ne){if(!G)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};fe&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+G.toString()),console.log("CURRENT STATE: "+Z.toString()));let se=G.value,ce=G.selectionStart,me=G.selectionEnd,ge=Z.value,Ce=Z.selectionStart,Se=Z.selectionEnd;const Me=se.substring(me),ke=ge.substring(Se),xe=ie.e(Me,ke);ge=ge.substring(0,ge.length-xe),se=se.substring(0,se.length-xe);const De=se.substring(0,ce),Ie=ge.substring(0,Ce),Re=ie.d(De,Ie);if(ge=ge.substring(Re),se=se.substring(Re),Ce-=Re,ce-=Re,Se-=Re,me-=Re,fe&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+se+">, selectionStart: "+ce+", selectionEnd: "+me),console.log("AFTER DIFFING CURRENT STATE: <"+ge+">, selectionStart: "+Ce+", selectionEnd: "+Se)),ne&&Ce===Se&&se.length>0){let G=null;if(Ce===ge.length?ge.startsWith(se)&&(G=ge.substring(se.length)):ge.endsWith(se)&&(G=ge.substring(0,ge.length-se.length)),null!==G&&G.length>0&&(/\uFE0F/.test(G)||ie.k(G)))return{text:G,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(Ce===Se){if(se===ge&&0===ce&&me===se.length&&Ce===ge.length&&-1===ge.indexOf("\n")&&ie.l(ge))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const G=De.length-Re;return fe&&console.log("REMOVE PREVIOUS: "+(De.length-Re)+" chars"),{text:ge,replacePrevCharCnt:G,replaceNextCharCnt:0,positionDelta:0}}return{text:ge,replacePrevCharCnt:me-ce,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(G,Z){if(!G)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(fe&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+G.toString()),console.log("CURRENT STATE: "+Z.toString())),G.value===Z.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:Z.selectionEnd-G.selectionEnd};const ne=Math.min(ie.d(G.value,Z.value),G.selectionEnd),se=Math.min(ie.e(G.value,Z.value),G.value.length-G.selectionEnd),ce=G.value.substring(ne,G.value.length-se),me=Z.value.substring(ne,Z.value.length-se),ge=G.selectionStart-ne,Ce=G.selectionEnd-ne,Se=Z.selectionStart-ne,Me=Z.selectionEnd-ne;return fe&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+ce+">, selectionStart: "+ge+", selectionEnd: "+Ce),console.log("AFTER DIFFING CURRENT STATE: <"+me+">, selectionStart: "+Se+", selectionEnd: "+Me)),{text:me,replacePrevCharCnt:Ce,replaceNextCharCnt:ce.length-Ce,positionDelta:Me-me.length}}}TextAreaState.EMPTY=new TextAreaState("",0,0,null,null);class PagedScreenReaderStrategy{static _getPageOfLine(G,Z){return Math.floor((G-1)/Z)}static _getRangeForPage(G,Z){const ne=G*Z,ie=ne+1,se=ne+Z;return new ce.a(ie,1,se+1,1)}static fromEditorSelection(G,Z,ne,ie,fe){const me=PagedScreenReaderStrategy._getPageOfLine(ne.startLineNumber,ie),ge=PagedScreenReaderStrategy._getRangeForPage(me,ie),Ce=PagedScreenReaderStrategy._getPageOfLine(ne.endLineNumber,ie),Se=PagedScreenReaderStrategy._getRangeForPage(Ce,ie),Me=ge.intersectRanges(new ce.a(1,1,ne.startLineNumber,ne.startColumn));let ke=Z.getValueInRange(Me,1);const xe=Z.getLineCount(),De=Z.getLineMaxColumn(xe),Ie=Se.intersectRanges(new ce.a(ne.endLineNumber,ne.endColumn,xe,De));let Re,ze=Z.getValueInRange(Ie,1);if(me===Ce||me+1===Ce)Re=Z.getValueInRange(ne,1);else{const G=ge.intersectRanges(ne),ie=Se.intersectRanges(ne);Re=Z.getValueInRange(G,1)+String.fromCharCode(8230)+Z.getValueInRange(ie,1)}if(fe){const G=500;ke.length>G&&(ke=ke.substring(ke.length-G,ke.length)),ze.length>G&&(ze=ze.substring(0,G)),Re.length>2*G&&(Re=Re.substring(0,G)+String.fromCharCode(8230)+Re.substring(Re.length-G,Re.length))}return new TextAreaState(ke+Re+ze,ke.length,ke.length+Re.length,new se.a(ne.startLineNumber,ne.startColumn),new se.a(ne.endLineNumber,ne.endColumn))}}},365:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return ce})),ne.d(Z,"b",(function(){return fe})),ne.d(Z,"a",(function(){return me})),ne.d(Z,"d",(function(){return nullTokenize})),ne.d(Z,"e",(function(){return nullTokenize2}));var ie=ne(579),se=ne(35);const ce=new class NullStateImpl{clone(){return this}equals(G){return this===G}},fe="vs.editor.nullMode",me=new se.u(fe,0);function nullTokenize(G,Z,ne,se){return new ie.b([new ie.a(se,"",G)],ne)}function nullTokenize2(G,Z,ne,se){let fe=new Uint32Array(2);return fe[0]=se,fe[1]=(16384|G<<0|2<<23)>>>0,new ie.c(fe,null===ne?ce:ne)}},371:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},373:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("modeService")},375:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Se})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"b",(function(){return storage_InMemoryStorageService}));var ie,se=ne(60),ce=ne(19),fe=ne(10),me=ne(54),ge=ne(57),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};!function(G){G[G.None=0]="None",G[G.Initialized=1]="Initialized",G[G.Closed=2]="Closed"}(ie||(ie={}));class storage_Storage extends fe.a{constructor(G,Z=Object.create(null)){super(),this.database=G,this.options=Z,this._onDidChangeStorage=this._register(new ce.b),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=ie.None,this.cache=new Map,this.flushDelayer=new ge.f(storage_Storage.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(G=>this.onDidChangeItemsExternal(G)))}onDidChangeItemsExternal(G){var Z,ne;null===(Z=G.changed)||void 0===Z||Z.forEach((G,Z)=>this.accept(Z,G)),null===(ne=G.deleted)||void 0===ne||ne.forEach(G=>this.accept(G,void 0))}accept(G,Z){if(this.state===ie.Closed)return;let ne=!1;if(Object(me.m)(Z))ne=this.cache.delete(G);else{this.cache.get(G)!==Z&&(this.cache.set(G,Z),ne=!0)}ne&&this._onDidChangeStorage.fire(G)}get(G,Z){const ne=this.cache.get(G);return Object(me.m)(ne)?Z:ne}getBoolean(G,Z){const ne=this.get(G);return Object(me.m)(ne)?Z:"true"===ne}getNumber(G,Z){const ne=this.get(G);return Object(me.m)(ne)?Z:parseInt(ne,10)}set(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(this.state===ie.Closed)return;if(Object(me.m)(Z))return this.delete(G);const ne=String(Z);return this.cache.get(G)!==ne?(this.cache.set(G,ne),this.pendingInserts.set(G,ne),this.pendingDeletes.delete(G),this._onDidChangeStorage.fire(G),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}delete(G){return __awaiter(this,void 0,void 0,(function*(){if(this.state===ie.Closed)return;return this.cache.delete(G)?(this.pendingDeletes.has(G)||this.pendingDeletes.add(G),this.pendingInserts.delete(G),this._onDidChangeStorage.fire(G),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return __awaiter(this,void 0,void 0,(function*(){if(!this.hasPending)return;const G={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(G).finally(()=>{var G;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(G=this.whenFlushedCallbacks.pop())||void 0===G||G()})}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}storage_Storage.DEFAULT_FLUSH_DELAY=100;class storage_InMemoryStorageDatabase{constructor(){this.onDidChangeItemsExternal=ce.c.None,this.items=new Map}updateItems(G){return __awaiter(this,void 0,void 0,(function*(){G.insert&&G.insert.forEach((G,Z)=>this.items.set(Z,G)),G.delete&&G.delete.forEach(G=>this.items.delete(G))}))}}const Ce="__$__targetStorageMarker",Se=Object(se.c)("storageService");var Me;!function(G){G[G.NONE=0]="NONE",G[G.SHUTDOWN=1]="SHUTDOWN"}(Me||(Me={}));class storage_AbstractStorageService extends fe.a{constructor(G={flushInterval:storage_AbstractStorageService.DEFAULT_FLUSH_INTERVAL}){super(),this.options=G,this._onDidChangeValue=this._register(new ce.e),this._onDidChangeTarget=this._register(new ce.e),this._onWillSaveState=this._register(new ce.b),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(G,Z){Z===Ce?(0===G?this._globalKeyTargets=void 0:1===G&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:G})):this._onDidChangeValue.fire({scope:G,key:Z,target:this.getKeyTargets(G)[Z]})}get(G,Z,ne){var ie;return null===(ie=this.getStorage(Z))||void 0===ie?void 0:ie.get(G,ne)}getBoolean(G,Z,ne){var ie;return null===(ie=this.getStorage(Z))||void 0===ie?void 0:ie.getBoolean(G,ne)}getNumber(G,Z,ne){var ie;return null===(ie=this.getStorage(Z))||void 0===ie?void 0:ie.getNumber(G,ne)}store(G,Z,ne,ie){Object(me.m)(Z)?this.remove(G,ne):this.withPausedEmitters(()=>{var se;this.updateKeyTarget(G,ne,ie),null===(se=this.getStorage(ne))||void 0===se||se.set(G,Z)})}remove(G,Z){this.withPausedEmitters(()=>{var ne;this.updateKeyTarget(G,Z,void 0),null===(ne=this.getStorage(Z))||void 0===ne||ne.delete(G)})}withPausedEmitters(G){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{G()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(G,Z,ne){var ie,se;const ce=this.getKeyTargets(Z);"number"==typeof ne?ce[G]!==ne&&(ce[G]=ne,null===(ie=this.getStorage(Z))||void 0===ie||ie.set(Ce,JSON.stringify(ce))):"number"==typeof ce[G]&&(delete ce[G],null===(se=this.getStorage(Z))||void 0===se||se.set(Ce,JSON.stringify(ce)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(G){return 0===G?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(G){const Z=this.get(Ce,G);if(Z)try{return JSON.parse(Z)}catch(G){}return Object.create(null)}}storage_AbstractStorageService.DEFAULT_FLUSH_INTERVAL=6e4;class storage_InMemoryStorageService extends storage_AbstractStorageService{constructor(){super(),this.globalStorage=this._register(new storage_Storage(new storage_InMemoryStorageDatabase)),this.workspaceStorage=this._register(new storage_Storage(new storage_InMemoryStorageDatabase)),this._register(this.workspaceStorage.onDidChangeStorage(G=>this.emitDidChangeValue(1,G))),this._register(this.globalStorage.onDidChangeStorage(G=>this.emitDidChangeValue(0,G)))}getStorage(G){return 0===G?this.globalStorage:this.workspaceStorage}}},376:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return LinkedList}));class Node{constructor(G){this.element=G,this.next=Node.Undefined,this.prev=Node.Undefined}}Node.Undefined=new Node(void 0);class LinkedList{constructor(){this._first=Node.Undefined,this._last=Node.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Node.Undefined}clear(){let G=this._first;for(;G!==Node.Undefined;){const Z=G.next;G.prev=Node.Undefined,G.next=Node.Undefined,G=Z}this._first=Node.Undefined,this._last=Node.Undefined,this._size=0}unshift(G){return this._insert(G,!1)}push(G){return this._insert(G,!0)}_insert(G,Z){const ne=new Node(G);if(this._first===Node.Undefined)this._first=ne,this._last=ne;else if(Z){const G=this._last;this._last=ne,ne.prev=G,G.next=ne}else{const G=this._first;this._first=ne,ne.next=G,G.prev=ne}this._size+=1;let ie=!1;return()=>{ie||(ie=!0,this._remove(ne))}}shift(){if(this._first!==Node.Undefined){const G=this._first.element;return this._remove(this._first),G}}pop(){if(this._last!==Node.Undefined){const G=this._last.element;return this._remove(this._last),G}}_remove(G){if(G.prev!==Node.Undefined&&G.next!==Node.Undefined){const Z=G.prev;Z.next=G.next,G.next.prev=Z}else G.prev===Node.Undefined&&G.next===Node.Undefined?(this._first=Node.Undefined,this._last=Node.Undefined):G.next===Node.Undefined?(this._last=this._last.prev,this._last.next=Node.Undefined):G.prev===Node.Undefined&&(this._first=this._first.next,this._first.prev=Node.Undefined);this._size-=1}*[Symbol.iterator](){let G=this._first;for(;G!==Node.Undefined;)yield G.element,G=G.next}}},378:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return me}));var ie=ne(165),se=ne(46),ce=ne(98),fe=ne(180);class KeybindingsRegistryImpl{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(G){if(1===se.a){if(G&&G.win)return G.win}else if(2===se.a){if(G&&G.mac)return G.mac}else if(G&&G.linux)return G.linux;return G}registerKeybindingRule(G){const Z=KeybindingsRegistryImpl.bindToCurrentPlatform(G);if(Z&&Z.primary){const ne=Object(ie.f)(Z.primary,se.a);ne&&this._registerDefaultKeybinding(ne,G.id,G.args,G.weight,0,G.when)}if(Z&&Array.isArray(Z.secondary))for(let ne=0,ce=Z.secondary.length;ne=21&&G<=30||(G>=31&&G<=56||(80===G||81===G||82===G||83===G||84===G||85===G||86===G||110===G||111===G||87===G||88===G||89===G||90===G||91===G||92===G))}_assertNoCtrlAlt(G,Z){G.ctrlKey&&G.altKey&&!G.metaKey&&KeybindingsRegistryImpl._mightProduceChar(G.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",G," for ",Z)}_registerDefaultKeybinding(G,Z,ne,ie,ce,fe){1===se.a&&this._assertNoCtrlAlt(G.parts[0],Z),this._coreKeybindings.push({keybinding:G,command:Z,commandArgs:ne,when:fe,weight1:ie,weight2:ce,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(sorter)),this._cachedMergedKeybindings.slice(0)}}const me=new KeybindingsRegistryImpl;function sorter(G,Z){return G.weight1!==Z.weight1?G.weight1-Z.weight1:G.commandZ.command?1:G.weight2-Z.weight2}fe.a.add("platform.keybindingsRegistry",me)},379:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return MarkdownString})),ne.d(Z,"b",(function(){return isEmptyMarkdownString})),ne.d(Z,"d",(function(){return removeMarkdownEscapes})),ne.d(Z,"c",(function(){return parseHrefAndDimensions}));var ie=ne(496),se=ne(51);class MarkdownString{constructor(G="",Z=!1){var ne,ie;if(this.value=G,"string"!=typeof this.value)throw Object(se.b)("value");"boolean"==typeof Z?(this.isTrusted=Z,this.supportThemeIcons=!1):(this.isTrusted=null!==(ne=Z.isTrusted)&&void 0!==ne?ne:void 0,this.supportThemeIcons=null!==(ie=Z.supportThemeIcons)&&void 0!==ie&&ie)}appendText(G,Z=0){return this.value+=function escapeMarkdownSyntaxTokens(G){return G.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}(this.supportThemeIcons?Object(ie.a)(G):G).replace(/([ \t]+)/g,(G,Z)=>" ".repeat(Z.length)).replace(/^>/gm,"\\>").replace(/\n/g,1===Z?"\\\n":"\n\n"),this}appendMarkdown(G){return this.value+=G,this}appendCodeblock(G,Z){return this.value+="\n```",this.value+=G,this.value+="\n",this.value+=Z,this.value+="\n```\n",this}}function isEmptyMarkdownString(G){return function isMarkdownString(G){if(G instanceof MarkdownString)return!0;if(G&&"object"==typeof G)return!("string"!=typeof G.value||"boolean"!=typeof G.isTrusted&&void 0!==G.isTrusted||"boolean"!=typeof G.supportThemeIcons&&void 0!==G.supportThemeIcons);return!1}(G)?!G.value:!Array.isArray(G)||G.every(isEmptyMarkdownString)}function removeMarkdownEscapes(G){return G?G.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):G}function parseHrefAndDimensions(G){const Z=[],ne=G.split("|").map(G=>G.trim());G=ne[0];const ie=ne[1];if(ie){const G=/height=(\d+)/.exec(ie),ne=/width=(\d+)/.exec(ie),se=G?G[1]:"",ce=ne?ne[1]:"",fe=isFinite(parseInt(ce)),me=isFinite(parseInt(se));fe&&Z.push(`width="${ce}"`),me&&Z.push(`height="${se}"`)}return{href:G,dimensions:Z}}},380:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return LineRange})),ne.d(Z,"c",(function(){return RenderLineInput})),ne.d(Z,"a",(function(){return DomPosition})),ne.d(Z,"d",(function(){return renderViewLine})),ne.d(Z,"e",(function(){return renderViewLine2}));var ie=ne(27),se=ne(575),ce=ne(611);class LinePart{constructor(G,Z,ne){this._linePartBrand=void 0,this.endIndex=G,this.type=Z,this.metadata=ne}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class LineRange{constructor(G,Z){this.startOffset=G,this.endOffset=Z}equals(G){return this.startOffset===G.startOffset&&this.endOffset===G.endOffset}}class RenderLineInput{constructor(G,Z,ne,ie,se,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze,$e,Je){this.useMonospaceOptimizations=G,this.canUseHalfwidthRightwardsArrow=Z,this.lineContent=ne,this.continuesWithWrappedLine=ie,this.isBasicASCII=se,this.containsRTL=fe,this.fauxIndentLength=me,this.lineTokens=ge,this.lineDecorations=Ce.sort(ce.a.compare),this.tabSize=Se,this.startVisibleColumn=Me,this.spaceWidth=ke,this.stopRenderingLineAfter=Ie,this.renderWhitespace="all"===Re?4:"boundary"===Re?1:"selection"===Re?2:"trailing"===Re?3:0,this.renderControlCharacters=ze,this.fontLigatures=$e,this.selectionsOnLine=Je&&Je.sort((G,Z)=>G.startOffset>>16}static getCharIndex(G){return(65535&G)>>>0}setColumnInfo(G,Z,ne,ie){const se=(Z<<16|ne<<0)>>>0;this._data[G-1]=se,this._absoluteOffsets[G-1]=ie+ne}getAbsoluteOffset(G){return 0===this._absoluteOffsets.length?0:this._absoluteOffsets[G-1]}charOffsetToPartData(G){return 0===this.length?0:G<0?this._data[0]:G>=this.length?this._data[this.length-1]:this._data[G]}getDomPosition(G){const Z=this.charOffsetToPartData(G-1),ne=CharacterMapping.getPartIndex(Z),ie=CharacterMapping.getCharIndex(Z);return new DomPosition(ne,ie)}getColumn(G,Z){return this.partDataToCharOffset(G.partIndex,Z,G.charIndex)+1}partDataToCharOffset(G,Z,ne){if(0===this.length)return 0;let ie=(G<<16|ne<<0)>>>0,se=0,ce=this.length-1;for(;se+1>>1,Z=this._data[G];if(Z===ie)return G;Z>ie?ce=G:se=G}if(se===ce)return se;let fe=this._data[se],me=this._data[ce];if(fe===ie)return se;if(me===ie)return ce;let ge,Ce=CharacterMapping.getPartIndex(fe),Se=CharacterMapping.getCharIndex(fe);return ge=Ce!==CharacterMapping.getPartIndex(me)?Z:CharacterMapping.getCharIndex(me),ne-Se<=ge-ne?se:ce}}class RenderLineOutput{constructor(G,Z,ne){this._renderLineOutputBrand=void 0,this.characterMapping=G,this.containsRTL=Z,this.containsForeignElements=ne}}function renderViewLine(G,Z){if(0===G.lineContent.length){if(G.lineDecorations.length>0){Z.appendASCIIString("");let ne=0,ie=0,se=0;for(const ce of G.lineDecorations)1!==ce.type&&2!==ce.type||(Z.appendASCIIString(''),1===ce.type&&(se|=1,ne++),2===ce.type&&(se|=2,ie++));Z.appendASCIIString("");const ce=new CharacterMapping(1,ne+ie);return ce.setColumnInfo(1,ne,0,0),new RenderLineOutput(ce,!1,se)}return Z.appendASCIIString(""),new RenderLineOutput(new CharacterMapping(0,0),!1,0)}return function _renderLine(G,Z){const ne=G.fontIsMonospace,se=G.canUseHalfwidthRightwardsArrow,ce=G.containsForeignElements,fe=G.lineContent,me=G.len,ge=G.isOverflowing,Ce=G.parts,Se=G.fauxIndentLength,Me=G.tabSize,ke=G.startVisibleColumn,xe=G.containsRTL,De=G.spaceWidth,Ie=G.renderSpaceCharCode,Re=G.renderWhitespace,ze=G.renderControlCharacters,$e=new CharacterMapping(me+1,Ce.length);let Je=!1,it=0,ot=ke,at=0,st=0,ct=0,ut=0;xe?Z.appendASCIIString(''):Z.appendASCIIString("");for(let G=0,ge=Ce.length;G=Se&&(Z+=ie)}}for(ht&&(Z.appendASCIIString(' style="width:'),Z.appendASCIIString(String(De*ne)),Z.appendASCIIString('px"')),Z.appendASCII(62);it1?Z.write1(8594):Z.write1(65515);for(let G=2;G<=ne;G++)Z.write1(160)}else ne=1,Z.write1(Ie);at+=ne,it>=Se&&(ot+=ne)}ct=ne}else{let ne=0;for(Z.appendASCII(62);it=Se&&(ot+=me)}ct=ne}ft?st++:st=0,it>=me&&!Je&&ge.isPseudoAfter()&&(Je=!0,$e.setColumnInfo(it+1,G,at,ut)),Z.appendASCIIString("")}Je||$e.setColumnInfo(me+1,Ce.length-1,at,ut);ge&&Z.appendASCIIString("");return Z.appendASCIIString(""),new RenderLineOutput($e,xe,ce)}(function resolveRenderLineInput(G){const Z=G.lineContent;let ne,se;-1!==G.stopRenderingLineAfter&&G.stopRenderingLineAfter0&&(ie[se++]=new LinePart(Z,"",0));for(let ce=0,fe=G.getCount();ce=ne){ie[se++]=new LinePart(ne,me,0);break}ie[se++]=new LinePart(fe,me,0)}return ie}(G.lineTokens,G.fauxIndentLength,se);(4===G.renderWhitespace||1===G.renderWhitespace||2===G.renderWhitespace&&G.selectionsOnLine||3===G.renderWhitespace)&&(fe=function _applyRenderWhitespace(G,Z,ne,se){const ce=G.continuesWithWrappedLine,fe=G.fauxIndentLength,me=G.tabSize,ge=G.startVisibleColumn,Ce=G.useMonospaceOptimizations,Se=G.selectionsOnLine,Me=1===G.renderWhitespace,ke=3===G.renderWhitespace,xe=G.renderSpaceWidth!==G.spaceWidth;let De=[],Ie=0,Re=0,ze=se[Re].type,$e=se[Re].endIndex;const Je=se.length;let it,ot=!1,at=ie.v(Z);-1===at?(ot=!0,at=ne,it=ne):it=ie.J(Z);let st=!1,ct=0,ut=Se&&Se[ct],dt=ge%me;for(let G=fe;G=ut.endOffset&&(ct++,ut=Se&&Se[ct]),Git)ge=!0;else if(9===ce)ge=!0;else if(32===ce)if(Me)if(st)ge=!0;else{const ie=G+1G),ge&&ke&&(ge=ot||G>it),st){if(!ge||!Ce&&dt>=me){if(xe){for(let Z=(Ie>0?De[Ie-1].endIndex:fe)+1;Z<=G;Z++)De[Ie++]=new LinePart(Z,"mtkw",1)}else De[Ie++]=new LinePart(G,"mtkw",1);dt%=me}}else(G===$e||ge&&G>fe)&&(De[Ie++]=new LinePart(G,ze,0),dt%=me);for(9===ce?dt=me:ie.E(ce)?dt+=2:dt++,st=ge;G===$e&&(Re++,Re0?Z.charCodeAt(ne-1):0,ie=ne>1?Z.charCodeAt(ne-2):0;32===G&&32!==ie&&9!==ie||(ht=!0)}else ht=!0;if(ht)if(xe){for(let G=(Ie>0?De[Ie-1].endIndex:fe)+1;G<=ne;G++)De[Ie++]=new LinePart(G,"mtkw",1)}else De[Ie++]=new LinePart(ne,"mtkw",1);else De[Ie++]=new LinePart(ne,ze,0);return De}(G,Z,se,fe));let me=0;if(G.lineDecorations.length>0){for(let Z=0,ne=G.lineDecorations.length;ZSe&&(Se=G.startOffset,ge[Ce++]=new LinePart(Se,ce,Me)),!(G.endOffset+1<=ie)){Se=ie,ge[Ce++]=new LinePart(Se,ce+" "+G.className,Me|G.metadata);break}Se=G.endOffset+1,ge[Ce++]=new LinePart(Se,ce+" "+G.className,Me|G.metadata),me++}ie>Se&&(Se=ie,ge[Ce++]=new LinePart(Se,ce,Me))}const Me=ne[ne.length-1].endIndex;if(me=50&&(se[ce++]=new LinePart(ge+1,Z,ne),Ce=ge+1,ge=-1);Ce!==me&&(se[ce++]=new LinePart(me,Z,ne))}else se[ce++]=fe;ie=me}else for(let G=0,ne=Z.length;G50){const G=ne.type,Z=ne.metadata,ge=Math.ceil(me/50);for(let ne=1;nese,ge=ie>ce,ke=iece)continue;if(zeie)continue;if(Re0&&ie--,cursorColumnSelection_ColumnSelection.columnSelect(G,Z,ne.fromViewLineNumber,ne.fromViewVisualColumn,ne.toViewLineNumber,ie)}static columnSelectRight(G,Z,ne){let ie=0;const se=Math.min(ne.fromViewLineNumber,ne.toViewLineNumber),ce=Math.max(ne.fromViewLineNumber,ne.toViewLineNumber);for(let ne=se;ne<=ce;ne++){const se=Z.getLineMaxColumn(ne),ce=Ce.a.visibleColumnFromColumn2(G,Z,new Se.a(ne,se));ie=Math.max(ie,ce)}let fe=ne.toViewVisualColumn;return fe{const ne=G.get(ge.a).getFocusedCodeEditor();return!(!ne||!ne.hasTextFocus())&&this._runEditorCommand(G,ne,Z)}),G.addImplementation(1e3,"generic-dom-input-textarea",(G,Z)=>{const ne=document.activeElement;return!!(ne&&["input","textarea"].indexOf(ne.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),G.addImplementation(0,"generic-dom",(G,Z)=>{const ne=G.get(ge.a).getActiveCodeEditor();return!!ne&&(ne.focus(),this._runEditorCommand(G,ne,Z))})}_runEditorCommand(G,Z,ne){const ie=this.runEditorCommand(G,Z,ne);return ie||!0}}!function(G){class BaseMoveToCommand extends coreCommands_CoreEditorCommand{constructor(G){super(G),this._inSelectionMode=G.inSelectionMode}runCoreEditorCommand(G,Z){G.model.pushStackElement(),G.setCursorStates(Z.source,3,[xe.b.moveTo(G,G.getPrimaryCursorState(),this._inSelectionMode,Z.position,Z.viewPosition)]),G.revealPrimaryCursor(Z.source,!0)}}G.MoveTo=Object(me.k)(new BaseMoveToCommand({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),G.MoveToSelect=Object(me.k)(new BaseMoveToCommand({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class ColumnSelectCommand extends coreCommands_CoreEditorCommand{runCoreEditorCommand(G,Z){G.model.pushStackElement();const ne=this._getColumnSelectResult(G,G.getPrimaryCursorState(),G.getCursorColumnSelectData(),Z);G.setCursorStates(Z.source,3,ne.viewStates.map(G=>Ce.d.fromViewState(G))),G.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:ne.fromLineNumber,fromViewVisualColumn:ne.fromVisualColumn,toViewLineNumber:ne.toLineNumber,toViewVisualColumn:ne.toVisualColumn}),ne.reversed?G.revealTopMostCursor(Z.source):G.revealBottomMostCursor(Z.source)}}G.ColumnSelect=Object(me.k)(new class extends ColumnSelectCommand{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(G,Z,ne,ie){const se=G.model.validatePosition(ie.position),ce=G.coordinatesConverter.validateViewPosition(new Se.a(ie.viewPosition.lineNumber,ie.viewPosition.column),se);let fe=ie.doColumnSelect?ne.fromViewLineNumber:ce.lineNumber,me=ie.doColumnSelect?ne.fromViewVisualColumn:ie.mouseColumn-1;return cursorColumnSelection_ColumnSelection.columnSelect(G.cursorConfig,G,fe,me,ce.lineNumber,ie.mouseColumn-1)}}),G.CursorColumnSelectLeft=Object(me.k)(new class extends ColumnSelectCommand{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(G,Z,ne,ie){return cursorColumnSelection_ColumnSelection.columnSelectLeft(G.cursorConfig,G,ne)}}),G.CursorColumnSelectRight=Object(me.k)(new class extends ColumnSelectCommand{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(G,Z,ne,ie){return cursorColumnSelection_ColumnSelection.columnSelectRight(G.cursorConfig,G,ne)}});class ColumnSelectUpCommand extends ColumnSelectCommand{constructor(G){super(G),this._isPaged=G.isPaged}_getColumnSelectResult(G,Z,ne,ie){return cursorColumnSelection_ColumnSelection.columnSelectUp(G.cursorConfig,G,ne,this._isPaged)}}G.CursorColumnSelectUp=Object(me.k)(new ColumnSelectUpCommand({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3600,linux:{primary:0}}})),G.CursorColumnSelectPageUp=Object(me.k)(new ColumnSelectUpCommand({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3595,linux:{primary:0}}}));class ColumnSelectDownCommand extends ColumnSelectCommand{constructor(G){super(G),this._isPaged=G.isPaged}_getColumnSelectResult(G,Z,ne,ie){return cursorColumnSelection_ColumnSelection.columnSelectDown(G.cursorConfig,G,ne,this._isPaged)}}G.CursorColumnSelectDown=Object(me.k)(new ColumnSelectDownCommand({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3602,linux:{primary:0}}})),G.CursorColumnSelectPageDown=Object(me.k)(new ColumnSelectDownCommand({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:3596,linux:{primary:0}}}));class CursorMoveImpl extends coreCommands_CoreEditorCommand{constructor(){super({id:"cursorMove",precondition:void 0,description:xe.a.description})}runCoreEditorCommand(G,Z){const ne=xe.a.parse(Z);ne&&this._runCursorMove(G,Z.source,ne)}_runCursorMove(G,Z,ne){G.model.pushStackElement(),G.setCursorStates(Z,3,CursorMoveImpl._move(G,G.getCursorStates(),ne)),G.revealPrimaryCursor(Z,!0)}static _move(G,Z,ne){const ie=ne.select,se=ne.value;switch(ne.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return xe.b.simpleMove(G,Z,ne.direction,ie,se,ne.unit);case 11:case 13:case 12:case 14:return xe.b.viewportMove(G,Z,ne.direction,ie,se);default:return null}}}G.CursorMoveImpl=CursorMoveImpl,G.CursorMove=Object(me.k)(new CursorMoveImpl);class CursorMoveBasedCommand extends coreCommands_CoreEditorCommand{constructor(G){super(G),this._staticArgs=G.args}runCoreEditorCommand(G,Z){let ne=this._staticArgs;-1===this._staticArgs.value&&(ne={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:G.cursorConfig.pageSize}),G.model.pushStackElement(),G.setCursorStates(Z.source,3,xe.b.simpleMove(G,G.getCursorStates(),ne.direction,ne.select,ne.value,ne.unit)),G.revealPrimaryCursor(Z.source,!0)}}G.CursorLeft=Object(me.k)(new CursorMoveBasedCommand({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),G.CursorLeftSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1039}})),G.CursorRight=Object(me.k)(new CursorMoveBasedCommand({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),G.CursorRightSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1041}})),G.CursorUp=Object(me.k)(new CursorMoveBasedCommand({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),G.CursorUpSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),G.CursorPageUp=Object(me.k)(new CursorMoveBasedCommand({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:11}})),G.CursorPageUpSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1035}})),G.CursorDown=Object(me.k)(new CursorMoveBasedCommand({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),G.CursorDownSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),G.CursorPageDown=Object(me.k)(new CursorMoveBasedCommand({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:12}})),G.CursorPageDownSelect=Object(me.k)(new CursorMoveBasedCommand({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1036}})),G.CreateCursor=Object(me.k)(new class extends coreCommands_CoreEditorCommand{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(G,Z){let ne;ne=Z.wholeLine?xe.b.line(G,G.getPrimaryCursorState(),!1,Z.position,Z.viewPosition):xe.b.moveTo(G,G.getPrimaryCursorState(),!1,Z.position,Z.viewPosition);const ie=G.getCursorStates();if(ie.length>1){const se=ne.modelState?ne.modelState.position:null,ce=ne.viewState?ne.viewState.position:null;for(let ne=0,fe=ie.length;nece&&(se=ce);const fe=new Me.a(se,1,se,G.model.getLineMaxColumn(se));let me=0;if(ne.at)switch(ne.at){case it.RawAtArgument.Top:me=3;break;case it.RawAtArgument.Center:me=1;break;case it.RawAtArgument.Bottom:me=4}const ge=G.coordinatesConverter.convertModelRangeToViewRange(fe);G.revealRange(Z.source,!1,ge,me,0)}}),G.SelectAll=new class extends coreCommands_EditorOrNativeTextInputCommand{constructor(){super(me.h)}runDOMCommand(){se.g&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(G,Z,ne){const ie=Z._getViewModel();ie&&this.runCoreEditorCommand(ie,ne)}runCoreEditorCommand(G,Z){G.model.pushStackElement(),G.setCursorStates("keyboard",3,[xe.b.selectAll(G,G.getPrimaryCursorState())])}},G.SetSelection=Object(me.k)(new class extends coreCommands_CoreEditorCommand{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(G,Z){G.model.pushStackElement(),G.setCursorStates(Z.source,3,[Ce.d.fromModelSelection(Z.selection)])}})}(at||(at={}));const st=Re.a.and(Ie.a.textInputFocus,Ie.a.columnSelection);function registerColumnSelection(G,Z){ze.a.registerKeybindingRule({id:G,primary:Z,when:st,weight:1})}function registerCommand(G){return G.register(),G}var ct;registerColumnSelection(at.CursorColumnSelectLeft.id,1039),registerColumnSelection(at.CursorColumnSelectRight.id,1041),registerColumnSelection(at.CursorColumnSelectUp.id,1040),registerColumnSelection(at.CursorColumnSelectPageUp.id,1035),registerColumnSelection(at.CursorColumnSelectDown.id,1042),registerColumnSelection(at.CursorColumnSelectPageDown.id,1036),function(G){class CoreEditingCommand extends me.c{runEditorCommand(G,Z,ne){const ie=Z._getViewModel();ie&&this.runCoreEditingCommand(Z,ie,ne||{})}}G.CoreEditingCommand=CoreEditingCommand,G.LineBreakInsert=Object(me.k)(new class extends CoreEditingCommand{constructor(){super({id:"lineBreakInsert",precondition:Ie.a.writable,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(G,Z,ne){G.pushUndoStop(),G.executeCommands(this.id,De.a.lineBreakInsert(Z.cursorConfig,Z.model,Z.getCursorStates().map(G=>G.modelState.selection)))}}),G.Outdent=Object(me.k)(new class extends CoreEditingCommand{constructor(){super({id:"outdent",precondition:Ie.a.writable,kbOpts:{weight:0,kbExpr:Re.a.and(Ie.a.editorTextFocus,Ie.a.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(G,Z,ne){G.pushUndoStop(),G.executeCommands(this.id,De.a.outdent(Z.cursorConfig,Z.model,Z.getCursorStates().map(G=>G.modelState.selection))),G.pushUndoStop()}}),G.Tab=Object(me.k)(new class extends CoreEditingCommand{constructor(){super({id:"tab",precondition:Ie.a.writable,kbOpts:{weight:0,kbExpr:Re.a.and(Ie.a.editorTextFocus,Ie.a.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(G,Z,ne){G.pushUndoStop(),G.executeCommands(this.id,De.a.tab(Z.cursorConfig,Z.model,Z.getCursorStates().map(G=>G.modelState.selection))),G.pushUndoStop()}}),G.DeleteLeft=Object(me.k)(new class extends CoreEditingCommand{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(G,Z,ne){const[ie,se]=ke.a.deleteLeft(Z.getPrevEditOperationType(),Z.cursorConfig,Z.model,Z.getCursorStates().map(G=>G.modelState.selection),Z.getCursorAutoClosedCharacters());ie&&G.pushUndoStop(),G.executeCommands(this.id,se),Z.setPrevEditOperationType(2)}}),G.DeleteRight=Object(me.k)(new class extends CoreEditingCommand{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:Ie.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(G,Z,ne){const[ie,se]=ke.a.deleteRight(Z.getPrevEditOperationType(),Z.cursorConfig,Z.model,Z.getCursorStates().map(G=>G.modelState.selection));ie&&G.pushUndoStop(),G.executeCommands(this.id,se),Z.setPrevEditOperationType(3)}}),G.Undo=new class extends coreCommands_EditorOrNativeTextInputCommand{constructor(){super(me.i)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(G,Z,ne){if(Z.hasModel()&&!0!==Z.getOption(79))return Z.getModel().undo()}},G.Redo=new class extends coreCommands_EditorOrNativeTextInputCommand{constructor(){super(me.g)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(G,Z,ne){if(Z.hasModel()&&!0!==Z.getOption(79))return Z.getModel().redo()}}}(ct||(ct={}));class coreCommands_EditorHandlerCommand extends me.a{constructor(G,Z,ne){super({id:G,precondition:void 0,description:ne}),this._handlerId=Z}runCommand(G,Z){const ne=G.get(ge.a).getFocusedCodeEditor();ne&&ne.trigger("keyboard",this._handlerId,Z)}}function registerOverwritableCommand(G,Z){registerCommand(new coreCommands_EditorHandlerCommand("default:"+G,G)),registerCommand(new coreCommands_EditorHandlerCommand(G,G,Z))}registerOverwritableCommand("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),registerOverwritableCommand("replacePreviousChar"),registerOverwritableCommand("compositionType"),registerOverwritableCommand("compositionStart"),registerOverwritableCommand("compositionEnd"),registerOverwritableCommand("paste"),registerOverwritableCommand("cut")},382:function(G,Z,ne){"use strict";function getSpaceCnt(G,Z){let ne=0;for(let ie=0;ie>>1,this._text=Z}static createEmpty(G){const Z=LineTokens.defaultTokenMetadata,ne=new Uint32Array(2);return ne[0]=G.length,ne[1]=Z,new LineTokens(ne,G)}equals(G){return G instanceof LineTokens&&this.slicedEquals(G,0,this._tokensCount)}slicedEquals(G,Z,ne){if(this._text!==G._text)return!1;if(this._tokensCount!==G._tokensCount)return!1;const ie=Z<<1,se=ie+(ne<<1);for(let Z=ie;Z0?this._tokens[G-1<<1]:0}getMetadata(G){return this._tokens[1+(G<<1)]}getLanguageId(G){const Z=this._tokens[1+(G<<1)];return ie.E.getLanguageId(Z)}getStandardTokenType(G){const Z=this._tokens[1+(G<<1)];return ie.E.getTokenType(Z)}getForeground(G){const Z=this._tokens[1+(G<<1)];return ie.E.getForeground(Z)}getClassName(G){const Z=this._tokens[1+(G<<1)];return ie.E.getClassNameFromMetadata(Z)}getInlineStyle(G,Z){const ne=this._tokens[1+(G<<1)];return ie.E.getInlineStyleFromMetadata(ne,Z)}getEndOffset(G){return this._tokens[G<<1]}findTokenIndexAtOffset(G){return LineTokens.findIndexInTokensArray(this._tokens,G)}inflate(){return this}sliceAndInflate(G,Z,ne){return new SlicedLineTokens(this,G,Z,ne)}static convertToEndOffset(G,Z){const ne=(G.length>>>1)-1;for(let Z=0;Z>>1)-1;for(;neZ&&(ie=se)}return ne}withInserted(G){if(0===G.length)return this;let Z=0,ne=0,ie="";const se=new Array;let ce=0;for(;;){let fe=Zce){ie+=this._text.substring(ce,me.offset);const G=this._tokens[1+(Z<<1)];se.push(ie.length,G),ce=me.offset}ie+=me.text,se.push(ie.length,me.tokenMetadata),ne++}}return new LineTokens(new Uint32Array(se),ie)}}LineTokens.defaultTokenMetadata=16793600;class SlicedLineTokens{constructor(G,Z,ne,ie){this._source=G,this._startOffset=Z,this._endOffset=ne,this._deltaOffset=ie,this._firstTokenIndex=G.findTokenIndexAtOffset(Z),this._tokensCount=0;for(let Z=this._firstTokenIndex,ie=G.getCount();Z=ne)break;this._tokensCount++}}equals(G){return G instanceof SlicedLineTokens&&(this._startOffset===G._startOffset&&this._endOffset===G._endOffset&&this._deltaOffset===G._deltaOffset&&this._source.slicedEquals(G._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(G){return this._source.getForeground(this._firstTokenIndex+G)}getEndOffset(G){const Z=this._source.getEndOffset(this._firstTokenIndex+G);return Math.min(this._endOffset,Z)-this._startOffset+this._deltaOffset}getClassName(G){return this._source.getClassName(this._firstTokenIndex+G)}getInlineStyle(G,Z){return this._source.getInlineStyle(this._firstTokenIndex+G,Z)}findTokenIndexAtOffset(G){return this._source.findTokenIndexAtOffset(G+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},398:function(G,Z,ne){"use strict";var ie;ne.d(Z,"a",(function(){return ie})),function(G){function intersect(G,Z){if(G.start>=Z.end||Z.start>=G.end)return{start:0,end:0};const ne=Math.max(G.start,Z.start),ie=Math.min(G.end,Z.end);return ie-ne<=0?{start:0,end:0}:{start:ne,end:ie}}function isEmpty(G){return G.end-G.start<=0}G.intersect=intersect,G.isEmpty=isEmpty,G.intersects=function intersects(G,Z){return!isEmpty(intersect(G,Z))},G.relativeComplement=function relativeComplement(G,Z){const ne=[],ie={start:G.start,end:Math.min(Z.start,G.end)},se={start:Math.max(Z.end,G.start),end:G.end};return isEmpty(ie)||ne.push(ie),isEmpty(se)||ne.push(se),ne}}(ie||(ie={}))},4:function(G,Z,ne){"use strict";function localize(G,Z,...ne){return function _format(G,Z){let ne;return ne=0===Z.length?G:G.replace(/\{(\d+)\}/g,(function(G,ne){const ie=ne[0];return void 0!==Z[ie]?Z[ie]:G})),ne}(Z,ne)}ne.d(Z,"a",(function(){return localize}))},4070:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},4071:function(G,Z,ne){ /*! * Copyright © 2021 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or in part * without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(2)},1:function(G,Z){G.exports=ne(24)},11:function(G,Z){G.exports=ne(3)},2:function(G,Z){G.exports=ne(7313)},24:function(G,Z){G.exports=ne(7329)},25:function(G,Z){G.exports=ne(7330)},3:function(G,Z){G.exports=ne(4077)},38:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(4),fe=ne.n(ce),me=ne(1),ge=ne(24),Ce=ne(3),Se=ne(6),Me=ne.n(Se),ke=ne(25),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(2);function _templateObject3(){var G=_taggedTemplateLiteral(["\n color: #999;\n padding-left: 6px;\n"]);return _templateObject3=function _templateObject3(){return G},G}function _templateObject2(){var G=_taggedTemplateLiteral(["\n display: none;\n"]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n flex: 1 0;\n\n .ace_editor {\n color: ",";\n background-color: ",";\n padding: 8px 6px;\n min-height: 20px;\n line-height: 20px;\n font-family: ",";\n border: 1px solid rgba(0, 0, 0, 0.15);\n border-radius: ",";\n cursor: auto;\n box-sizing: content-box;\n\n &.focused {\n border-color: rgba(82, 168, 236, 0.8);\n outline: 0;\n border-collapse: separate;\n box-shadow: 0 0 8px rgba(82, 168, 236, 0.6);\n }\n }\n\n .ace_emptyMessage {\n color: #999;\n padding-left: 6px;\n }\n\n .ace_scroller {\n margin-top: 8px;\n margin-left: 4px;\n padding-bottom: 8px;\n }\n\n .ace_gutter {\n padding-top: 8px;\n background-color: ",";\n\n .ace_gutter-active-line {\n margin-top: 8px;\n }\n\n .ace_gutter-cell {\n padding-left: 6px;\n padding-right: 6px;\n color: ",";\n }\n }\n\n &[data-append] .ace_editor {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n .ace_cursor {\n color: ",";\n }\n\n .ace_invalid {\n color: ",";\n background-color: ",";\n }\n\n .ace_comment {\n color: ",";\n }\n\n .ace_command {\n color: ",";\n }\n\n .ace_function {\n color: ",";\n }\n\n .ace_argument {\n color: ",";\n }\n\n .ace_modifier {\n color: ",";\n }\n\n .ace_marker-layer .ace_selection {\n background: ",";\n }\n\n & :not(.read-only) .ace_marker-layer .ace_bracket {\n margin: -1px 0 0 -1px;\n border: 1px solid ",";\n }\n\n .ace_marker-layer .ace_selected-word {\n border: 1px solid ",";\n background: ",";\n }\n\n & .ace_editor.ace_autocomplete .ace_rightAlignedText {\n color: ",";\n }\n\n & .ace_editor.ace_autocomplete {\n color: ",";\n background: ",";\n }\n\n & .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background: ",";\n }\n\n & .ace_editor.ace_autocomplete .ace_marker-layer .ace_line-hover {\n background: ",";\n }\n\n & .read-only .ace_cursor {\n opacity: 0;\n }\n\n & .disabled .ace_content {\n cursor: not-allowed;\n opacity: 0.6;\n }\n\n & .disabled {\n background-color: ",";\n }\n"]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}var ze=Ie.a.div(_templateObject(),Object(Re.variable)("Input","textColor"),Object(Re.variable)("Input","backgroundColor"),Object(Re.variable)("monoFontFamily"),Object(Re.variable)("borderRadius"),Object(Re.variable)("Input","gutterBackgroundColor"),Object(Re.variable)("Input","gutterColor"),Object(Re.variable)("Input","cursorColor"),Object(Re.variable)("Input","invalidColor"),Object(Re.variable)("Input","invalidBackgroundColor"),Object(Re.variable)("Input","commentColor"),Object(Re.variable)("Input","commandColor"),Object(Re.variable)("Input","functionColor"),Object(Re.variable)("Input","argumentColor"),Object(Re.variable)("Input","modifierColor"),Object(Re.variable)("Input","selectionColor"),Object(Re.variable)("Input","bracketColor"),Object(Re.variable)("Input","selectedWordColor"),Object(Re.variable)("Input","selectedWordBackgroundColor"),Object(Re.variable)("Input","rightAlignedTextColor"),Object(Re.variable)("Input","autoCompleteTextColor"),Object(Re.variable)("Input","autoCompleteBackgroundColor"),Object(Re.variable)("Input","autoCompleteActiveLineColor"),Object(Re.variable)("Input","autoCompleteHoverLineColor"),Object(Re.variable)("Input","disabledColor")),$e=Ie.a.div(_templateObject2()),Je=Ie.a.div(_templateObject3());function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne0&&this.setEditorOptions()}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.editor.destroy(),this.editor=null}},{key:"setSPLMode",value:function setSPLMode(){var G=new it.Mode(this.props.syntax);this.editor.getSession().setMode(G)}},{key:"setEditorOptions",value:function setEditorOptions(){var G=this.editor,Z=this.props,ne=Z.minLines,ie=Z.maxLines,se=Z.showLineNumbers,ce=Z.autoFormat,fe=Z.searchAssistant;if(G.setOptions({minLines:ne,maxLines:ie,showLineNumbers:se,showGutter:se,behavioursEnabled:ce}),fe){var me=this.searchHelperCompleter||xe()();this.searchHelperCompleter=me,G.setOptions({enableSplLiveAutocompletion:[me]})}else G.setOptions({enableSplLiveAutocompletion:!1})}},{key:"setEditorListeners",value:function setEditorListeners(){var G=this,Z=this.editor;Z.on("change",this.handleChange),Z.on("focus",this.handleFocus),Z.on("blur",this.handleBlur);Z.commands.addCommand({name:"autoFormat",bindKey:{win:"Ctrl-\\|Ctrl-Shift-F",mac:"Command-\\|Command-Shift-F"},exec:function exec(G){G.reformatSearch()},readOnly:!1});var ne={enter:function enter(Z,ne){var ie=ne.completer,se=ie&&ie.popup;return!(se&&se.isOpen&&se.getData(se.getRow())||(ie&&ie.detach(),Z.shiftKey))&&(Z.preventDefault(),G.props.onEnter(Z),!0)},tab:function tab(G){return!G.shiftKey&&(G.preventDefault(),!0)},esc:function esc(Z){return!Z.shiftKey&&(Z.preventDefault(),G.props.onEsc(Z),!0)}},ie=Z.keyBinding.onCommandKey.bind(Z.keyBinding);Z.keyBinding.onCommandKey=function newOnCommandKey(G,se,ce){var fe=!1,Ce=Object(ge.keycode)(ce);G.metaKey||G.ctrlKey||(fe=!Object(me.isUndefined)(ne[Ce])&&ne[Ce](G,Z)),fe&&"esc"!==Ce||ie(G,se,ce)},Z.commands.removeCommands({"Command-L":"gotoline","Command-,":"showSettingsMenu","Ctrl-E":"goToNextError","Ctrl-Shift-E":"goToPreviousError","Command-Shift-E":"replaymacro"})}},{key:"setReadOnly",value:function setReadOnly(G){this.editor.setOptions({readOnly:G}),this.editor[G?"setStyle":"unsetStyle"]("read-only")}},{key:"disable",value:function disable(){this.setReadOnly(!0),this.editor.setStyle("disabled")}},{key:"enable",value:function enable(){this.setReadOnly(!1),this.editor.unsetStyle("disabled")}},{key:"togglePlaceholder",value:function togglePlaceholder(){var G=this.editor,Z=!(G.getValue()||"").length,ne=G.renderer.emptyMessageNode;!Z&&ne?(G.renderer.scroller.removeChild(ne),G.renderer.emptyMessageNode=null):Z&&(ne=this.innerRefPlaceholder?this.innerRefPlaceholder:this.refPlaceholder,G.renderer.scroller.appendChild(ne),G.renderer.emptyMessageNode=ne)}},{key:"render",value:function render(){var G=this.props,Z=G.append,ne=G.placeholder,ie=void 0===ne?Object(Ce._)("enter search here..."):ne;return fe.a.createElement(ze,{"data-append":Z||null,"data-test":"workflow-components:Input"},fe.a.createElement("textarea",{ref:this.updateEditorRef}),fe.a.createElement($e,null,fe.a.createElement(Je,{"aria-hidden":!0,ref:this.updatePlaceholderRef,innerRef:this.updatePlaceholderInnerRef,"data-test":"input-placeholder"},ie)))}}]),Input}(ce.Component);_defineProperty(at,"propTypes",{append:se.a.bool,autoFormat:se.a.bool,enabled:se.a.bool,maxLines:se.a.number,minLines:se.a.number,onBlur:se.a.func,onChange:se.a.func,onEnter:se.a.func,onEsc:se.a.func,onFocus:se.a.func,placeholder:se.a.string,searchAssistant:se.a.bool,showLineNumbers:se.a.bool,syntax:se.a.object.isRequired,value:se.a.string}),_defineProperty(at,"defaultProps",{append:!1,autoFormat:!0,enabled:!0,maxLines:1/0,minLines:1,onBlur:function onBlur(){},onChange:function onChange(){},onEnter:function onEnter(){},onEsc:function onEsc(){},onFocus:function onFocus(){},searchAssistant:!1,showLineNumbers:!0,value:""});Z.default=at},4:function(G,Z){G.exports=ne(0)},6:function(G,Z){G.exports=ne(4078)}})},4072:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(2854));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z"a"}),[G]}},{regex:"/\\w*}",onMatch:function(G,Z,ne){var ie=ne.shift();return ie&&(ie.flag=G.slice(1,-1)),this.next=ie&&ie.tabstopId?"start":"",[ie||G]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(G,Z,ne){return[{text:G.slice(1)}]}},{regex:/\${\w+/,onMatch:function(G,Z,ne){var ie={text:G.slice(2)};return ne.unshift(ie),[ie]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(G,Z,ne){var ie=ne.shift();return this.next=ie&&ie.tabstopId?"start":"",[ie||G]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(G,Z,ne){return ne[0].formatFunction=G.slice(2,-1),[ne.shift()]},next:"formatString"},G,{regex:/:[\?\-+]?/,onMatch:function(G,Z,ne){"+"==G[1]&&(ne[0].ifEnd=ne[0]),"?"==G[1]&&(ne[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]})},this.tokenizeTmSnippet=function(G,Z){return this.getTokenizer().getLineTokens(G,Z).tokens.map((function(G){return G.value||G}))},this.getVariableValue=function(G,Z,ne){if(/^\d+$/.test(Z))return(this.variables.__||{})[Z]||"";if(/^[A-Z]\d+$/.test(Z))return(this.variables[Z[0]+"__"]||{})[Z.substr(1)]||"";if(Z=Z.replace(/^TM_/,""),!this.variables.hasOwnProperty(Z))return"";var ie=this.variables[Z];return"function"==typeof ie&&(ie=this.variables[Z](G,Z,ne)),null==ie?"":ie},this.variables=ke,this.tmStrFormat=function(G,Z,ne){if(!Z.fmt)return G;var ie=Z.flag||"",se=Z.guard;se=new RegExp(se,ie.replace(/[^gim]/g,""));var ce="string"==typeof Z.fmt?this.tokenizeTmSnippet(Z.fmt,"formatString"):Z.fmt,fe=this;return G.replace(se,(function(){var G=fe.variables.__;fe.variables.__=[].slice.call(arguments);for(var Z=fe.resolveVariables(ce,ne),ie="E",se=0;se1?(ze=Z[Z.length-1].length,Re+=Z.length-1):ze+=G.length,$e+=G}else G&&(G.start?G.end={row:Re,column:ze}:G.start={row:Re,column:ze})})),{text:$e,tabstops:ge,tokens:me}};this.getDisplayTextForSnippet=function(G,Z){return e.call(this,G,Z).text},this.insertSnippetForSelection=function(G,Z,ne){var ie=e.call(this,G,Z),se=G.getSelectionRange();ne&&0===ne.compareRange(se)&&(se=ne);var ce=G.session.replace(se,ie.text),fe=new v(G),me=G.inVirtualSelectionMode&&G.selection.index;fe.addTabstops(ie.tabstops,se.start,ce,me)},this.insertSnippet=function(G,Z,ne){var ie=this;if(G.inVirtualSelectionMode)return ie.insertSnippetForSelection(G,Z,ne);G.forEachSelection((function(){ie.insertSnippetForSelection(G,Z,ne)}),null,{keepOrder:!0}),G.tabstopManager&&G.tabstopManager.tabNext()},this.$getScope=function(G){var Z=G.session.$mode.$id||"";if("html"===(Z=Z.split("/").pop())||"php"===Z){"php"===Z&&!G.session.$mode.inlinePhp&&(Z="html");var ne=G.getCursorPosition(),ie=G.session.getState(ne.row);"object"==typeof ie&&(ie=ie[0]),ie.substring&&("js-"==ie.substring(0,3)?Z="javascript":"css-"==ie.substring(0,4)?Z="css":"php-"==ie.substring(0,4)&&(Z="php"))}return Z},this.getActiveScopes=function(G){var Z=this.$getScope(G),ne=[Z],ie=this.snippetMap;return ie[Z]&&ie[Z].includeScopes&&ne.push.apply(ne,ie[Z].includeScopes),ne.push("_"),ne},this.expandWithTab=function(G,Z){var ne=this,ie=G.forEachSelection((function(){return ne.expandSnippetForSelection(G,Z)}),null,{keepOrder:!0});return ie&&G.tabstopManager&&G.tabstopManager.tabNext(),ie},this.expandSnippetForSelection=function(G,Z){var ne,ie=G.getCursorPosition(),se=G.session.getLine(ie.row),ce=se.substring(0,ie.column),fe=se.substr(ie.column),me=this.snippetMap;return this.getActiveScopes(G).some((function(G){var Z=me[G];return Z&&(ne=this.findMatchingSnippet(Z,ce,fe)),!!ne}),this),!!ne&&(Z&&Z.dryRun||(G.session.doc.removeInLine(ie.row,ie.column-ne.replaceBefore.length,ie.column+ne.replaceAfter.length),this.variables.M__=ne.matchBefore,this.variables.T__=ne.matchAfter,this.insertSnippetForSelection(G,ne.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(G,Z,ne){for(var ie=G.length;ie--;){var se=G[ie];if((!se.startRe||se.startRe.test(Z))&&((!se.endRe||se.endRe.test(ne))&&(se.startRe||se.endRe)))return se.matchBefore=se.startRe?se.startRe.exec(Z):[""],se.matchAfter=se.endRe?se.endRe.exec(ne):[""],se.replaceBefore=se.triggerRe?se.triggerRe.exec(Z)[0]:"",se.replaceAfter=se.endTriggerRe?se.endTriggerRe.exec(ne)[0]:"",se}},this.snippetMap={},this.snippetNameMap={},this.register=function(G,Z){function s(G){return G&&!/^\^?\(.*\)\$?$|^\\b$/.test(G)&&(G="(?:"+G+")"),G||""}function u(G,Z,ne){return G=s(G),Z=s(Z),ne?(G=Z+G)&&"$"!=G[G.length-1]&&(G+="$"):(G+=Z)&&"^"!=G[0]&&(G="^"+G),new RegExp(G)}function a(G){G.scope||(G.scope=Z||"_"),Z=G.scope,ne[Z]||(ne[Z]=[],ie[Z]={});var ce=ie[Z];if(G.name){var me=ce[G.name];me&&se.unregister(me),ce[G.name]=G}ne[Z].push(G),G.prefix&&(G.tabTrigger=G.prefix),!G.content&&G.body&&(G.content=Array.isArray(G.body)?G.body.join("\n"):G.body),G.tabTrigger&&!G.trigger&&(!G.guard&&/^\w/.test(G.tabTrigger)&&(G.guard="\\b"),G.trigger=fe.escapeRegExp(G.tabTrigger)),(G.trigger||G.guard||G.endTrigger||G.endGuard)&&(G.startRe=u(G.trigger,G.guard,!0),G.triggerRe=new RegExp(G.trigger),G.endRe=u(G.endTrigger,G.endGuard,!0),G.endTriggerRe=new RegExp(G.endTrigger))}var ne=this.snippetMap,ie=this.snippetNameMap,se=this;G||(G=[]),Array.isArray(G)?G.forEach(a):Object.keys(G).forEach((function(Z){a(G[Z])})),this._signal("registerSnippets",{scope:Z})},this.unregister=function(G,Z){function i(G){var se=ie[G.scope||Z];if(se&&se[G.name]){delete se[G.name];var ce=ne[G.scope||Z],fe=ce&&ce.indexOf(G);fe>=0&&ce.splice(fe,1)}}var ne=this.snippetMap,ie=this.snippetNameMap;G.content?i(G):Array.isArray(G)&&G.forEach(i)},this.parseSnippetFile=function(G){G=G.replace(/\r/g,"");for(var Z,ne=[],ie={},se=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;Z=se.exec(G);){if(Z[1])try{ie=JSON.parse(Z[1]),ne.push(ie)}catch(G){}if(Z[4])ie.content=Z[4].replace(/^\t/gm,""),ne.push(ie),ie={};else{var ce=Z[2],fe=Z[3];if("regex"==ce){var me=/\/((?:[^\/\\]|\\.)*)|$/g;ie.guard=me.exec(fe)[1],ie.trigger=me.exec(fe)[1],ie.endTrigger=me.exec(fe)[1],ie.endGuard=me.exec(fe)[1]}else"snippet"==ce?(ie.tabTrigger=fe.match(/^\S*/)[0],ie.name||(ie.name=fe)):ce&&(ie[ce]=fe)}}return ne},this.getSnippetByName=function(G,Z){var ne,ie=this.snippetNameMap;return this.getActiveScopes(Z).some((function(Z){var se=ie[Z];return se&&(ne=se[G]),!!ne}),this),ne}}).call(d.prototype);var v=function(G){if(G.tabstopManager)return G.tabstopManager;G.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=fe.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(G)};(function(){this.attach=function(G){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=G,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(G){for(var Z="r"==G.action[0],ne=this.selectedTabstop||{},ie=ne.parents||{},se=(this.tabstops||[]).slice(),ce=0;ce2&&(this.tabstops.length&&ce.push(ce.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,ce))},this.addTabstopMarkers=function(G){var Z=this.editor.session;G.forEach((function(G){G.markerId||(G.markerId=Z.addMarker(G,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(G){var Z=this.editor.session;G.forEach((function(G){Z.removeMarker(G.markerId),G.markerId=null}))},this.removeRange=function(G){var Z=G.tabstop.indexOf(G);-1!=Z&&G.tabstop.splice(Z,1),-1!=(Z=this.ranges.indexOf(G))&&this.ranges.splice(Z,1),-1!=(Z=G.tabstop.rangeList.ranges.indexOf(G))&&G.tabstop.splice(Z,1),this.editor.session.removeMarker(G.markerId),G.tabstop.length||(-1!=(Z=this.tabstops.indexOf(G.tabstop))&&this.tabstops.splice(Z,1),this.tabstops.length||this.detach())},this.keyboardHandler=new Ce,this.keyboardHandler.bindKeys({Tab:function(G){Z.snippetManager&&Z.snippetManager.expandWithTab(G)||(G.tabstopManager.tabNext(1),G.renderer.scrollCursorIntoView())},"Shift-Tab":function(G){G.tabstopManager.tabNext(-1),G.renderer.scrollCursorIntoView()},Esc:function(G){G.tabstopManager.detach()}})}).call(v.prototype);var m=function(G,Z){0==G.row&&(G.column+=Z.column),G.row+=Z.row},g=function(G,Z){G.row==Z.row&&(G.column-=Z.column),G.row-=Z.row};ie.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),Z.snippetManager=new d;var xe=G("./editor").Editor;(function(){this.insertSnippet=function(G,ne){return Z.snippetManager.insertSnippet(this,G,ne)},this.expandSnippet=function(G){return Z.snippetManager.expandWithTab(this,G)}}).call(xe.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(G,Z,ne){"use strict";var ie=G("../virtual_renderer").VirtualRenderer,se=G("../editor").Editor,ce=G("../range").Range,fe=G("../lib/event"),me=G("../lib/lang"),ge=G("../lib/dom"),f=function(G){return"suggest-aria-id:".concat(G)},l=function(G){var Z=new ie(G);Z.$maxLines=4;var ne=new se(Z);return ne.setHighlightActiveLine(!1),ne.setShowPrintMargin(!1),ne.renderer.setShowGutter(!1),ne.renderer.setHighlightGutterLine(!1),ne.$mouseHandler.$focusTimeout=0,ne.$highlightTagPending=!0,ne},Ce=function G(Z){var ne=ge.createElement("div"),ie=new l(ne);Z&&Z.appendChild(ne),ne.style.display="none",ie.renderer.content.style.cursor="default",ie.renderer.setStyle("ace_autocomplete"),ie.renderer.container.setAttribute("role","listbox"),ie.renderer.container.setAttribute("aria-label","Autocomplete suggestions"),ie.setOption("displayIndentGuides",!1),ie.setOption("dragDelay",150);var r=function(){};ie.focus=r,ie.$isFocused=!0,ie.renderer.$cursorLayer.restartTimer=r,ie.renderer.$cursorLayer.element.style.opacity=0,ie.renderer.$maxLines=8,ie.renderer.$keepTextAreaAtCursor=!1,ie.setHighlightActiveLine(!1),ie.session.highlight(""),ie.session.$searchHighlight.clazz="ace_highlight-marker",ie.on("mousedown",(function(G){var Z=G.getDocumentPosition();ie.selection.moveToPosition(Z),Se.start.row=Se.end.row=Z.row,G.stop()}));var se,Ce=new ce(-1,0,-1,1/0),Se=new ce(-1,0,-1,1/0);Se.id=ie.session.addMarker(Se,"ace_active-line","fullLine"),ie.setSelectOnHover=function(G){G?Ce.id&&(ie.session.removeMarker(Ce.id),Ce.id=null):Ce.id=ie.session.addMarker(Ce,"ace_line-hover","fullLine")},ie.setSelectOnHover(!1),ie.on("mousemove",(function(G){if(se){if(se.x!=G.x||se.y!=G.y){(se=G).scrollTop=ie.renderer.scrollTop;var Z=se.getDocumentPosition().row;Ce.start.row!=Z&&(Ce.id||ie.setRow(Z),d(Z))}}else se=G})),ie.renderer.on("beforeRender",(function(){if(se&&-1!=Ce.start.row){se.$pos=null;var G=se.getDocumentPosition().row;Ce.id||ie.setRow(G),d(G,!0)}})),ie.renderer.on("afterRender",(function(){var G=ie.getRow(),Z=ie.renderer.$textLayer,ne=Z.element.childNodes[G-Z.config.firstRow],se=document.activeElement;if(ne!==Z.selectedNode&&Z.selectedNode&&(ge.removeCssClass(Z.selectedNode,"ace_selected"),se.removeAttribute("aria-activedescendant"),Z.selectedNode.removeAttribute("id")),Z.selectedNode=ne,ne){ge.addCssClass(ne,"ace_selected");var ce=f(G);ne.id=ce,ie.renderer.container.setAttribute("aria-activedescendant",ce),se.setAttribute("aria-activedescendant",ce),ne.setAttribute("role","option"),ne.setAttribute("aria-label",ie.getData(G).value),ne.setAttribute("aria-setsize",ie.data.length),ne.setAttribute("aria-posinset",G)}}));var p=function(){d(-1)},d=function(G,Z){G!==Ce.start.row&&(Ce.start.row=Ce.end.row=G,Z||ie.session._emit("changeBackMarker"),ie._emit("changeHoverMarker"))};ie.getHoveredRow=function(){return Ce.start.row},fe.addListener(ie.container,"mouseout",p),ie.on("hide",p),ie.on("changeSelection",p),ie.session.doc.getLength=function(){return ie.data.length},ie.session.doc.getLine=function(G){var Z=ie.data[G];return"string"==typeof Z?Z:Z&&Z.value||""};var Me=ie.session.bgTokenizer;return Me.$tokenizeRow=function(G){function s(G,ie){G&&ne.push({type:(Z.className||"")+(ie||""),value:G})}var Z=ie.data[G],ne=[];if(!Z)return ne;"string"==typeof Z&&(Z={value:Z});for(var se=Z.caption||Z.value||Z.name,ce=se.toLowerCase(),fe=(ie.filterText||"").toLowerCase(),me=0,ge=0,Ce=0;Ce<=fe.length;Ce++)if(Ce!=ge&&(Z.matchMask&1<=Se?"bottom":"top"),"top"===ne?(Me.bottom=G.top-this.$borderSize,Me.top=Me.bottom-Se):"bottom"===ne&&(Me.top=G.top+Z+this.$borderSize,Me.bottom=Me.top+Se);var De=Me.top>=0&&Me.bottom<=me;if(!ce&&!De)return!1;Ce.$maxPixelHeight=De?null:"top"===ne?xe:ke,"top"===ne?(fe.style.top="",fe.style.bottom=me-Me.bottom+"px",ie.isTopdown=!1):(fe.style.top=Me.top+"px",fe.style.bottom="",ie.isTopdown=!0),fe.style.display="";var Ie=G.left;return Ie+fe.offsetWidth>ge&&(Ie=ge-fe.offsetWidth),fe.style.left=Ie+"px",fe.style.right="",ie.isOpen||(ie.isOpen=!0,this._signal("show"),se=null),ie.anchorPos=G,ie.anchor=ne,!0},ie.show=function(G,Z,ne){this.tryShow(G,Z,ne?"bottom":void 0,!0)},ie.goTo=function(G){var Z=this.getRow(),ne=this.session.getLength()-1;switch(G){case"up":Z=Z<=0?ne:Z-1;break;case"down":Z=Z>=ne?-1:Z+1;break;case"start":Z=0;break;case"end":Z=ne}this.setRow(Z)},ie.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},ie.$imageSize=0,ie.$borderSize=1,ie};ge.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin: 0 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete_right .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete_right .ace_line {\n display: flex;\n}\n.ace_autocomplete_right .ace_completion-meta {\n flex: 1;\n text-align: right;\n}\n","autocompletion.css",!1),Z.AcePopup=Ce,Z.$singleLineEditor=l,Z.getAriaId=f})),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],(function(G,Z,ne){"use strict";var ie=G("../snippets").snippetManager,se=function(){function e(){this.editor=null}return e.prototype.show=function(G,Z,ne){if(ne=ne||"",G&&this.editor&&this.editor!==G&&(this.hide(),this.editor=null),!G||!Z)return!1;var se=Z.snippet?ie.getDisplayTextForSnippet(G,Z.snippet):Z.value;return!(!se||!se.startsWith(ne))&&(this.editor=G,""===(se=se.slice(ne.length))?G.removeGhostText():G.setGhostText(se),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();Z.AceInline=se})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(G,Z,ne){"use strict";Z.parForEach=function(G,Z,ne){var ie=0,se=G.length;0===se&&ne();for(var ce=0;ce=0&&ne.test(G[ce]);ce--)se.push(G[ce]);return se.reverse().join("")},Z.retrieveFollowingIdentifier=function(G,Z,ne){ne=ne||ie;for(var se=[],ce=Z;cethis.filterText&&0===G.lastIndexOf(this.filterText,0))var Z=this.filtered;else Z=this.all;this.filterText=G,Z=(Z=this.filterCompletions(Z,this.filterText)).sort((function(G,Z){return Z.exactMatch-G.exactMatch||Z.$score-G.$score||(G.caption||G.value).localeCompare(Z.caption||Z.value)}));var ne=null;Z=Z.filter((function(G){var Z=G.snippet||G.caption||G.value;return Z!==ne&&(ne=Z,!0)})),this.filtered=Z},e.prototype.filterCompletions=function(G,Z){var ne=[],ie=Z.toUpperCase(),se=Z.toLowerCase();e:for(var ce,fe=0;ce=G[fe];fe++){var me=!this.ignoreCaption&&ce.caption||ce.value||ce.snippet;if(me){var ge,Ce,Se=-1,Me=0,ke=0;if(this.exactMatch){if(Z!==me.substr(0,Z.length))continue e}else{var xe=me.toLowerCase().indexOf(se);if(xe>-1)ke=xe;else for(var De=0;De=0&&(Re<0||Ie0&&(-1===Se&&(ke+=10),ke+=Ce,Me|=1<",fe.escapeHTML(G.caption),"","
    ",fe.escapeHTML(l(G.snippet))].join(""))},id:"snippetCompleter"},Me=[Se,ge,Ce];Z.setCompleters=function(G){Me.length=0,G&&Me.push.apply(Me,G)},Z.addCompleter=function(G){Me.push(G)},Z.textCompleter=ge,Z.keyWordCompleter=Ce,Z.snippetCompleter=Se;var ke={name:"expandSnippet",exec:function(G){return ie.expandWithTab(G)},bindKey:"Tab"},d=function(G,Z){v(Z.session.$mode)},v=function(G){"string"==typeof G&&(G=ce.$modes[G]),G&&(ie.files||(ie.files={}),m(G.$id,G.snippetFileId),G.modes&&G.modes.forEach(v))},m=function(G,Z){Z&&G&&!ie.files[G]&&(ie.files[G]={},ce.loadModule(Z,(function(Z){Z&&(ie.files[G]=Z,!Z.snippets&&Z.snippetText&&(Z.snippets=ie.parseSnippetFile(Z.snippetText)),ie.register(Z.snippets||[],Z.scope),Z.includeScopes&&(ie.snippetMap[Z.scope].includeScopes=Z.includeScopes,Z.includeScopes.forEach((function(G){v("ace/mode/"+G)}))))})))},g=function(G){var Z=G.editor,ne=Z.completer&&Z.completer.activated;if("backspace"===G.command.name)ne&&!me.getCompletionPrefix(Z)&&Z.completer.detach();else if("insertstring"===G.command.name){if(me.getCompletionPrefix(Z)&&!ne){var ie=se.for(Z);ie.autoInsert=!1,ie.showPopup(Z)}}},xe=G("../editor").Editor;G("../config").defineOptions(xe.prototype,"editor",{enableBasicAutocompletion:{set:function(G){G?(this.completers||(this.completers=Array.isArray(G)?G:Me),this.commands.addCommand(se.startCommand)):this.commands.removeCommand(se.startCommand)},value:!1},enableLiveAutocompletion:{set:function(G){G?(this.completers||(this.completers=Array.isArray(G)?G:Me),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(G){G?(this.commands.addCommand(ke),this.on("changeMode",d),d(0,this)):(this.commands.removeCommand(ke),this.off("changeMode",d))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(Z){G&&(G.exports=Z)}))}).call(this,ne(31)(G))},31:function(G,Z){G.exports=function(G){return G.webpackPolyfill||(G.deprecate=function(){},G.paths=[],G.children||(G.children=[]),Object.defineProperty(G,"loaded",{enumerable:!0,get:function(){return G.l}}),Object.defineProperty(G,"id",{enumerable:!0,get:function(){return G.i}}),G.webpackPolyfill=1),G}},32:function(G,Z){ace.define("ace/spl_autocomplete",["require","exports","module","ace/autocomplete","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(G,Z,ne){"use strict";var ie=G("./autocomplete").Autocomplete,se=G("./autocomplete").FilteredList,ce=G("./lib/oop"),fe=G("./lib/lang"),me=G("./lib/event"),ge=G("./lib/keys"),Ce=G("./snippets").snippetManager,Se=function SplAutocomplete(){ie.apply(this,arguments),this.autoSelect=!1,this.changeTimer=fe.delayedCall(function(){this.updateCompletions(!1),this.updating=!1}.bind(this),200),this.delayedDetach=fe.delayedCall(this.detach.bind(this),200),me.addMouseWheelListener(document.body,this.delayedDetach),me.addListener(document.body,"mousedown",this.delayedDetach)};ce.inherits(Se,ie),function(){var G={};function addMatchedTokens(G,Z){var ne=G.matchMask?G.matchMask.split(" ").map((function(G){return parseInt(G,10)})):[];if(!ne.length)return Z;var ie,se,ce=0,fe=0,me=0,ge=0,Ce=0,Se=0,Me=!0,ke=[];for(ge=0;gece&&me<=fe)se=ie.value[me-ce],Me?(ke.push({value:ie.value.substring(0,me-ce),type:ie.type}),ke.push({value:se,type:ie.type+".matched-highlight"}),Me=!1):me-Se>1?(ke.push({value:ie.value.substring(Se+1-ce,me-ce),type:ie.type}),ke.push({value:se,type:ie.type+".matched-highlight"})):ke[ke.length-1].value+=se;else if(me>fe){Me?ke.push(ie):Se!==fe&&ke.push({value:ie.value.substring(Se-ce+1),type:ie.type}),ce+=ie.value.length;break}Ce+1===ne.length&&me!=fe&&ke.push({value:ie.value.substring(me-ce+1),type:ie.type}),Ce++,Se=me}else ke.push(ie);return ke}function trimCaptionAndTokens(G,Z,ne){var ie=Math.floor(G.renderer.$size.scrollerWidth/G.renderer.layerConfig.characterWidth+6);if(Z.meta&&(ie-=Z.meta.length),Z.caption.length<=ie)return ne;var se,ce,fe=Z.caption,me=0,ge=0;se=Math.ceil(fe.length/2),ge=(ce=fe.length-ie)-(me=Math.ceil(ce/2)),me=se-me-1,ge=se+ge,Z.caption=fe.substring(0,me+1)+"…"+fe.substring(ge);for(var Ce,Se=0,Me=0,ke=[],xe=0;xe(Me=Se+(Ce=ne[xe]).value.length-1)||Se>ge?(ke.push(Ce),Se+=Ce.value.length):(Se>me&&Me=Se&&ge<=Me?(ke.push({value:Ce.value.substring(0,me-Se+1),type:Ce.type}),ke.push({value:"…",type:""}),ke.push({value:Ce.value.substring(ge-Se),type:Ce.type})):me>=Se&&me<=Me?(ke.push({value:Ce.value.substring(0,me-Se+1),type:Ce.type}),ke.push({value:"…",type:""})):ge>=Se&&ge<=Me&&ke.push({value:Ce.value.substring(ge-Se),type:Ce.type})),Se+=Ce.value.length);return ke}ce.mixin(G,ie.prototype.commands),this.commands=ce.mixin(G,{Tab:function Tab(G){G.completer.tooltipNode&&G.completer.tooltipNode.focus()},Esc:function(G){this.handleEscapeKeyPress(G)}.bind(this)}),this.handleEscapeKeyPress=function(G){G.completer.detach(),$(G.textInput.getElement()).one("keyup",(function(G){27===G.keyCode&&me.stopEvent(G)}))},this.showPopup=function(G){this.handleExtraTooltip=G.handleExtraTooltip,ie.prototype.showPopup.apply(this,arguments)},this.$init=function(){this.popup=ie.prototype.$init.apply(this,arguments),this.popup.renderer.content.style.cursor="pointer";var G=this.popup.show.bind(this.popup);this.popup.show=function(Z,ne,ie){Z.left+=1,G(Z,36,!0)};var Z=this.popup.session.bgTokenizer;Z.$tokenizeRow=function(G){var Z,ne=this.popup.data[G],ie=[];if(!ne)return ie;ne.caption=ne.value;var se=this.editor.session.bgTokenizer,ce="start";return"next"===ne.type||"command"===ne.type?ce="command":"commandArgs"===ne.type&&(ce=ne.command.name+"-command"),Z=addMatchedTokens(ne,ie=se.tokenizer.getLineTokens(ne.caption,ce).tokens),ie=trimCaptionAndTokens(this.popup,ne,Z),ne.meta&&ie.push({type:"rightAlignedText",value:ne.meta}),ie}.bind(this),this.popup.on("hide",function(){this.handleExtraTooltip&&this.handleExtraTooltip()}.bind(this));var ne=this.popup.renderer.getMouseEventTarget();return me.addListener(ne,"mouseout",function(){this.handleExtraTooltip&&this.handleExtraTooltip()}.bind(this)),me.addMouseWheelListener(this.popup.container,(function(G){me.stopEvent(G)})),this.popup},this.insertMatch=function(G,Z){if(!this.updating){if(!(G=G||this.popup.getData(this.popup.getRow())))return!1;if(G.completer&&G.completer.insertMatch)G.completer.insertMatch(this.editor,G);else{if(this.completions.filterText){var ne,ie=this.editor.selection.getAllRanges(),se=ie.length,ce=0;for(ce=0;ce=0?G.getHoveredRow():G.getRow(),se=Z&&Z[ne],ce=Z&&Z[0],fe=null;return this.handleExtraTooltip&&this.handleExtraTooltip(G,ne),this.editor&&G.isOpen?se||!ce||-1===ce.type.indexOf("command")&&"next"!==ce.type?void(!se||se.hideDocTooltip?this.hideDocTooltip():ie.prototype.updateDocTooltip.apply(this,arguments)):(this.editor.completers.some((function(G){return G.getDocTooltip&&(fe=G.getDocTooltip(ce)),fe})),(fe=fe||ce).docHTML?this.showDocTooltip(fe):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(G){var Z=!this.tooltipNode;ie.prototype.showDocTooltip.apply(this,arguments);var ne=this.tooltipNode,se=this.popup.container.getBoundingClientRect();ne.style.width=se.width+"px",ne.style.top=se.bottom-1+"px",ne.style.left=this.popup.container.style.left,ne.style.right=this.popup.container.style.right,Z&&($(ne).focusin((function(G){G.stopPropagation()})),me.addListener(ne,"focus",function(G){var Z=ne.getElementsByTagName("a");Z.length>0?Z[0].focus():(this.editor.focus(),me.stopEvent(G))}.bind(this)),me.addListener(ne,"keydown",function(G){switch(ge.keyCodeToString(G.keyCode)){case"tab":this.editor.focus(),me.stopEvent(G);break;case"up":case"down":case"right":case"left":me.stopEvent(G);break;case"esc":this.handleEscapeKeyPress(this.editor),this.editor.focus(),me.stopEvent(G)}}.bind(this)),me.addListener(ne,"mousedown",(function(G){me.stopEvent(G)})),me.addMouseWheelListener(ne,(function(G){me.stopEvent(G)})))},this.blurListener=function(G){G.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(G.relatedTarget)||setTimeout(function(G){var Z=document.activeElement;Z&&this.tooltipNode&&this.tooltipNode.contains(Z)||ie.prototype.blurListener.apply(this,arguments)}.bind(this,G))}}.call(Se.prototype),Se.startCommand={name:"startSplAutocomplete",exec:function exec(G){G.completer||(G.completer=new Se),G.completer.autoInsert=!1,G.completer.autoSelect=!1,G.completer.showPopup(G),G.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"},function(){var G={commandArgs:1,command:2,next:3,term:4,search:5};this.setFilter=function(Z){var ne=this.all;Z.length>this.filterText&&0===Z.lastIndexOf(this.filterText,0)&&(ne=this.filtered),this.filterText=Z,ne=(ne=this.filterCompletions(ne,this.filterText)).sort((function(Z,ne){var ie=ne.exactMatch-Z.exactMatch||ne.score-Z.score;return 0===ie&&Z.type&&ne.type&&(ie=G[Z.type]-G[ne.type]),0===ie&&(ie=Z.value===ne.value?0:Z.value=0&&(Ie<0||De0&&(-1===Se&&(ke+=10),ke+=Ce),Me.push(ge),Se=ge}ce.matchMask=Me.join(" "),ce.exactMatch=ke?0:1,ce.score=(ce.score||0)-ke,ne.push(ce)}}return ne}}.call(se.prototype),Z.SplAutocomplete=Se})),ace.define("ace/ext/spl_tools",["require","exports","module","ace/ext/language_tools","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor"],(function(G,Z,ne){"use strict";var ie=G("./language_tools"),se=G("../autocomplete/util"),ce=G("../spl_autocomplete").SplAutocomplete,fe=(G("../lib/dom"),function splLiveAutoComplete(G){var Z=G.editor,ne=Z.completer&&Z.completer.activated;"insertstring"!==G.command.name&&"backspace"!==G.command.name&&"paste"!==G.command.name||function getCompletionPrefix(G){var Z,ne=G.getCursorPosition(),ie=G.session.getLine(ne.row);return me.forEach((function(G){!Z&&G&&(Z=se.retrievePrecedingIdentifier(ie,ne.column,G))})),Z}(Z)&&!ne&&(Z.completer||(Z.completer=new ce),Z.completer.autoInsert=!1,Z.completer.showPopup(Z))}),me=[/[a-zA-Z_0-9="\s\|\$\-\u00A2-\uFFFF]/];var ge=[ie.textCompleter,ie.keyWordCompleter,ie.snippetCompleter],Ce=G("../editor").Editor;G("../config").defineOptions(Ce.prototype,"editor",{enableSplLiveAutocompletion:{set:function set(G){G?(this.completers||(this.completers=Array.isArray(G)?G:ge),this.commands.addCommand(ce.startCommand),this.commands.on("afterExec",fe)):(this.commands.removeCommand(ce.startCommand),this.commands.removeListener("afterExec",fe))},value:!1},extraTooltipForAutoCompletion:{set:function set(G){this.handleExtraTooltip=G&&"function"==typeof G?G:void 0},value:!1}})})),ace.require(["ace/ext/spl_tools"],(function(){}))},33:function(G,Z){ace.define("ace/mode/spl_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(G,Z,ne){"use strict";var ie=G("../lib/oop"),se=G("./text_highlight_rules").TextHighlightRules,ce=function SPLHighlightRules(G){function Token(G){for(var Z in G)this[Z]=G[Z]}this.buildCommandTokens=function(G){var Z,ne=[],ie=0,se=[];if(G.other.forEach(function(G){this.tokens[G]&&ne.push(this.tokens[G])}.bind(this)),G.args.length){for(se=[],ie=0;ieme.row||se.row===me.row&&se.column>=me.column)break;"subsearch"===ie.type&&((Se=ie.value.length)>1&&se.row===me.row&&se.column+Se-1>=me.column&&(Se=me.column-se.column),"["===ie.value[0]?Ce+=Se:Ce-=Se)}var ke=Z.getTabString();return ne&&(Ce+=ne),fe.stringRepeat(ke,Ce>0?Ce:0)},ie.inherits(me,se),Z.SPLBehaviour=me})),ace.define("ace/mode/spl",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/spl_highlight_rules","ace/mode/behaviour/spl"],(function(G,Z,ne){"use strict";var ie=G("../lib/oop"),se=G("./text").Mode,ce=G("./spl_highlight_rules").SPLHighlightRules,fe=G("./behaviour/spl").SPLBehaviour,me=function Mode(G){this.$highlightRules=new ce(G),this.$behaviour=new fe};ie.inherits(me,se),function(){this.$id="ace/mode/spl"}.call(me.prototype);var ge=G("../editor").Editor,Ce=G("../token_iterator").TokenIterator,Se=G("../range").Range,Me=G("../lib/lang");(function(){this.reformatSearch=function(){for(var G,Z,ne=this.session.getValue(),ie=new Ce(this.session,0,0),se=new Se(0,0,0,0),ce={row:0,column:0},fe=!0,me=[];fe||ie.stepForward();)if(fe=!1,(G=ie.getCurrentToken())&&"quoted"===G.type){se.setStart(ce.row,ce.column),ce=ie.getCurrentTokenPosition(),se.setEnd(ce.row,ce.column);var ge=me.length>0?me[me.length-1]:void 0;!ge||"quoted"!==ge.type||'"'!==ge.value&&/"$/.test(ge.value)?(me.push({value:this.session.getTextRange(se),type:"unquoted"}),me.push({value:G.value,type:"quoted"})):ge.value+=this.session.getTextRange(se)+G.value,ce.column+=G.value.length}Z=this.session.doc.positionToIndex(ce,0),me.push({value:ne.substring(Z),type:"unquoted"}),me.forEach((function(G,Z){if("unquoted"===G.type&&G.value){var ne=G.value;ne=(ne=(ne=(ne=ne.replace(/\s*(\||\[)\s*/g," $1 ")).replace(/(\r\n|\r|\n)\s+/g,"$1")).replace(/\[ +\|/g,"[|")).replace(/(\S)?[\t ]+/g,"$1 "),G.value=ne}}));for(var ke,xe,De,Ie="",Re=0,ze="",$e=0,Je=/\||\[|\]|\r?\n|\r/g,it=this.session.doc.getNewLineCharacter(),ot=this.session.getTabString(),at=[],st=0;st1&&"["===Ie[Z-1])continue;ze=ze+it+Me.stringRepeat(ot,Re>0?Re:0)+De;break;case"[":Re+=1,"|"===Ie[Z+1]&&(De+="|"),ze=ze+it+Me.stringRepeat(ot,Re>0?Re:0)+De;break;case"]":Re-=1,ze+=De;break;case"\r\n":case"\n":case"\r":if(Z>1&&"\n"===De&&"\r"===Ie[Z-1])continue;ze=ze+De+Me.stringRepeat(ot,Re>0?Re+1:1)}at.push(ze),$e=Z+De.length}at.push(Ie.substr($e))}else at.push(ke.value);this.selectAll(),this.session.replace(this.selection.getRange(),at.join("").trim()),this.navigateFileEnd()}}).call(ge.prototype),Z.Mode=me}))}})},4079:function(G,Z){const ne=/^[0-9]+$/,compareIdentifiers=(G,Z)=>{const ie=ne.test(G),se=ne.test(Z);return ie&&se&&(G=+G,Z=+Z),G===Z?0:ie&&!se?-1:se&&!ie?1:GcompareIdentifiers(Z,G)}},4080:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>0===ie(G,Z,ne)},4081:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>0!==ie(G,Z,ne)},4082:function(G,Z,ne){const ie=ne(4080),se=ne(4081),ce=ne(2004),fe=ne(2860),me=ne(2859),ge=ne(2861);G.exports=(G,Z,ne,Ce)=>{switch(Z){case"===":return"object"==typeof G&&(G=G.version),"object"==typeof ne&&(ne=ne.version),G===ne;case"!==":return"object"==typeof G&&(G=G.version),"object"==typeof ne&&(ne=ne.version),G!==ne;case"":case"=":case"==":return ie(G,ne,Ce);case"!=":return se(G,ne,Ce);case">":return ce(G,ne,Ce);case">=":return fe(G,ne,Ce);case"<":return me(G,ne,Ce);case"<=":return ge(G,ne,Ce);default:throw new TypeError("Invalid operator: "+Z)}}},4083:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=188)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(758)},17:function(G,Z){G.exports=ne(640)},188:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ct})),ne.d(Z,"Option",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(7),ke=ne(0),xe=ne(17),De=ne.n(xe),Ie=ne(3),Re=ne.n(Ie),ze=ne(12),$e=ne.n(ze),Je=Re()($e.a).withConfig({displayName:"OptionStyles__StyledClickable",componentId:"fyq77p-0"})(["border-radius:3px;flex:1 1 auto;display:flex;justify-content:center;align-items:center;color:",";padding:2px 12px;height:calc("," - 6px);position:relative;gap:",";& + &{margin-left:2px;}"," "," &:focus{color:",";box-shadow:",";z-index:2;&:active{background-color:",";}}"," ",""],ke.variables.contentColorDefault,ke.variables.inputHeight,ke.variables.spacingXSmall,(function(G){return G.$selected&&Object(Ie.css)(["color:",";background-color:",";box-shadow:",";"],ke.variables.contentColorActive,Object(ke.pick)({dark:ke.variables.interactiveColorOverlaySelected,light:ke.variables.white}),ke.variables.embossShadow)}),(function(G){var Z=G.$selected,ne=G.disabled;return Z&&ne&&Object(Ie.css)(["background-color:",";"],ke.variables.backgroundColorPage)}),ke.variables.contentColorActive,ke.variables.focusShadow,ke.variables.interactiveColorOverlayActive,(function(G){var Z=G.$selected,ne=G.disabled;return!Z&&!ne&&Object(Ie.css)(["&:hover{color:",";background-color:",";}&:active{background-color:",";}"],ke.variables.contentColorActive,ke.variables.interactiveColorOverlayHover,ke.variables.interactiveColorOverlayActive)}),(function(G){return G.disabled&&Object(Ie.css)(["color:",";"],ke.variables.contentColorDisabled)})),it=Re.a.div.withConfig({displayName:"OptionStyles__StyledIcon",componentId:"fyq77p-1"})(["flex:0 0 auto;margin-top:-2px;font-size:15px;"]),ot=Re.a.div.withConfig({displayName:"OptionStyles__StyledLabel",componentId:"fyq77p-2"})([""," flex:0 1 auto;",""],ke.mixins.ellipsis,Object(ke.pick)({enterprise:Object(Ie.css)(["&:not(:first-child){margin-left:",";}"],ke.variables.spacingXSmall)})),at=Re.a.div.withConfig({displayName:"OptionStyles__StyledAdornment",componentId:"fyq77p-3"})(["flex:0 0 auto;",""],Object(ke.pick)({enterprise:Object(Ie.css)(["&:not(:first-child){margin-left:",";}"],ke.variables.spacingXSmall)})),st=Object(ie.createContext)({});st.displayName="RadioBar";var ct=st;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ut={disabled:fe.a.bool,startAdornment:fe.a.node,endAdornment:fe.a.node,icon:fe.a.node,label:fe.a.string,selected:fe.a.bool,value:fe.a.any.isRequired};function Option(G){var Z=G.disabled,ne=G.icon,ce=G.label,fe=G.selected,me=G.startAdornment,ge=G.endAdornment,Ce=G.value,Se=_objectWithoutProperties(G,["disabled","icon","label","selected","startAdornment","endAdornment","value"]),Me=Object(ie.useContext)(ct),ke=Me.onClick,xe=Me.appearance,Ie=Me.error,Re=Me.onKeyDown,ze=Me.firstValue,$e=Me.selectedValue;var st=-1;$e?Ce===$e&&(st=0):Ce===ze&&(st=0);var ut=st;return"prisma"===xe?se.a.createElement(Je,_extends({"data-test":"option","data-test-value":Ce},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,$selected:fe,tabIndex:ut,disabled:Z,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),ne&&se.a.createElement(it,null,ne),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge)):se.a.createElement(De.a,_extends({"data-test":"option","data-test-value":Ce,appearance:xe,disabled:Z,icon:ne,selected:fe,value:Ce,error:Ie},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,tabIndex:ut,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge))}Option.propTypes=ut;var dt=Option,ht=ne(6),ft=ne.n(ht),_t=Re()(ft.a).withConfig({displayName:"RadioBarStyles__StyledRadioBar",componentId:"gg1b79-0"})(["height:",";"," [data-inline] + &{margin-left:",";}"],ke.variables.inputHeight,Object(ke.pick)({prisma:Object(Ie.css)(["padding:2px;border-radius:",";border:1px solid ",";background:",";"],ke.variables.borderRadius,(function(G){return G.$error?ke.variables.accentColorNegative:"transparent"}),(function(G){return G.$disabled?ke.variables.interactiveColorBackgroundDisabled:ke.variables.interactiveColorBackground}))}),Object(ke.pick)({enterprise:ke.variables.spacingHalf,prisma:ke.variables.spacingSmall}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function RadioBar_extends(){return(RadioBar_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;nene.filteredValues.length-1&&(Ce=0),ge=me.nextSibling?me.nextSibling:null===(ie=me.parentElement)||void 0===ie?void 0:ie.firstElementChild;else if("up"===fe||"left"===fe){var ke;G.preventDefault(),(Ce=Se-1)<0&&(Ce=ne.filteredValues.length-1),ge=me.previousSibling?me.previousSibling:null===(ke=me.parentElement)||void 0===ke?void 0:ke.lastElementChild}if(ge){var xe;null===(xe=ge)||void 0===xe||xe.focus();var De=ne.filteredValues[Ce];ne.handleOnChange(G,{value:De,label:ce})}})),_defineProperty(_assertThisInitialized(ne),"handleOnChange",(function(G,Z){var ie,se;ne.props.value!==Z.value&&(null===(ie=(se=ne.props).onChange)||void 0===ie||ie.call(se,G,function _objectSpread(G){for(var Z=1;Z0})})),$e=this.filteredValues[0],Je=null==Me||this.filteredValues.includes(De);var it={appearance:Ie?"prisma":ne,onClick:this.handleClick,error:!Ie&&me,onKeyDown:this.handleOnKeyDown,firstValue:$e,selectedValue:Je?De:void 0};return se.a.createElement(_t,RadioBar_extends({flex:!0,$disabled:Re,$error:me,"data-test":"radio-bar","data-test-value":De,role:"radiogroup","aria-labelledby":ge,"aria-describedby":fe,"aria-required":ke},Se()(xe,"onChange")),se.a.createElement(ct.Provider,{value:it},ze))}}]),RadioBar}(ie.Component);_defineProperty(vt,"propTypes",yt),_defineProperty(vt,"defaultProps",{appearance:"default",error:!1,inline:!1}),_defineProperty(vt,"Option",dt);var wt=Object(ke.withSplunkTheme)(vt);wt.propTypes=vt.propTypes,wt.Option=dt;var Ct=wt},2:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(3)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(760)},7:function(G,Z){G.exports=ne(1154)}})},4084:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=242)}({18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},2:function(G,Z){G.exports=ne(0)},242:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ge})),ne.d(Z,"ScrollContainerContext",(function(){return fe})),ne.d(Z,"ScrollContainerProvider",(function(){return me}));var ie=ne(2),se=ne.n(ie),ce=ne(18),fe=se.a.createContext(Object(ce.a)()),me=fe.Provider,ge=fe},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}}})},4085:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=254)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(696)},2:function(G,Z){G.exports=ne(697)},254:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M7.27904 9.00002C6.84633 9.00002 6.61792 9.51239 6.90715 9.83423L11.408 14.8426C11.6067 15.0637 11.9533 15.0636 12.1519 14.8425L16.6502 9.8341C16.9392 9.51223 16.7108 9 16.2782 9L7.27904 9.00002Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmalldown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4086:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(0)},13:function(G,Z){G.exports=ne(7360)},3:function(G,Z){G.exports=ne(642)},38:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cancel}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(13),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var dt={children:fe.a.node,title:fe.a.bool,outerStyle:fe.a.object};function Heading(G){var Z=G.children,ne=G.title,ce=G.outerStyle,fe=_objectWithoutProperties(G,["children","title","outerStyle"]),me=Object(ie.useContext)($e).role,ge="prisma"===st()().family?se.a.createElement(ut,Heading_extends({as:ne?"h4":"h5",style:ce,"data-test":"heading"},fe),Z):se.a.createElement(ot.a,Heading_extends({style:_objectSpread(_objectSpread({},ce),{},{margin:0}),level:ne?4:"ss","data-test":"heading"},fe),Z);return se.a.createElement(ct,{"aria-hidden":"listbox"===me},ge)}Heading.propTypes=dt,Heading.filterConsecutive=!0,Heading.filterLast=!0,Heading.as="Heading";var ht=Heading,ft=ne(23),_t=ne.n(ft),yt=ne(145),vt=ne.n(yt),wt=ne(78),Ct=ne.n(wt),St=ne(97),Mt=ne.n(St),kt=ne(38),xt=ne.n(kt),Lt=ne(25),Tt=ne(96),At=ne.n(Tt),Dt=ne(65),Et=ne.n(Dt),jt=ne(4),It=Object(jt._)("Open externally"),Nt=Object(De.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),Rt=Ie()(Et.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-1turs2s-0"})([""," margin:0 0 0 3px;"],Nt),zt=Ie()(At.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-1turs2s-1"})([""," margin:0 0 0 4px;"],Nt);var qt=function External(){var G=Object(Re.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(Rt,{screenReaderText:It}):se.a.createElement(zt,{"aria-label":It,height:ne,width:ne},se.a.createElement("title",null,It))},Wt=ne(10),Bt=ne(91);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Item_extends(){return(Item_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Qt={children:fe.a.node,controlledExternally:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),retainFocus:fe.a.bool,stopScrollPropagation:fe.a.bool};function Menu(G){var Z=G.children,ne=G.controlledExternally,ce=G.elementRef,fe=G.retainFocus,me=G.stopScrollPropagation,ke=Menu_objectWithoutProperties(G,["children","controlledExternally","elementRef","retainFocus","stopScrollPropagation"]),De=Object(ie.useContext)($e).role,Ie=void 0===De?"menu":De,Re=Object(ie.useContext)(Ce.PopoverContext).retainFocus,ze=xe()(),Je=!0;null!=fe?Je=fe:null!=Re&&(Je=Re);var it,ot=se.a.useRef(0),at=[],st=0,ct=!1,ut=!1,dt=!1,ht=Object(ie.useCallback)((function(G,Z){var ne=Z.itemKey;null!=ne&&(ot.current=ne)}),[]),ft=ie.Children.toArray(Z).filter(ie.isValidElement).reduce((function(G,Z,ie,ce){if("Divider"===Z.type.as&&0===G.length)return G;if(("Heading"===Z.type.as||"Divider"===Z.type.as)&&!Z.props.title&&Z.type.filterConsecutive&&ce.length>ie+1){var fe=ce[ie+1];if("Heading"===fe.type.as||"Divider"===fe.type.as)return G}if(("Divider"===Z.type.as||"Heading"===Z.type.as)&&ie===ce.length-1)return G;if("Divider"!==Z.type.as&&"Heading"!==Z.type.as&&"string"!=typeof Z.type){var me=se.a.createRef();at.push(me),null!=it||"disabled"in Z.props&&Z.props.disabled||(it=st),ot.current===st&&"disabled"in Z.props&&Z.props.disabled&&(ct=!0),"selected"in Z.props&&Z.props.selected&&(ut=!0,"disabled"in Z.props&&!Z.props.disabled&&(dt=!0));var ge=ne||ot.current!==st?-1:void 0;return G.push(se.a.cloneElement(Z,{itemKey:st,onFocus:ht,preventFocus:ne,ref:function ref(G){Object(Wt.a)(Z.ref,G),Object(Wt.a)(me,G)},tabIndex:ge})),st+=1,G}return G.push(Z),G}),[]);it===ot.current||ut&&!dt||!ct||null==it||(ot.current=it,ze());var _t={"data-test":"menu",onKeyDown:function handleKeyDown(G){var Z,ne,ie,se=Object(Me.keycode)(G.nativeEvent),ce=ot.current;("down"===se||Je&&Object(Se.isTabKey)(G)?Z=Object(Jt.a)(at,ce,ce+1):"up"===se||Je&&Object(Se.isTabKey)(G)&&G.shiftKey?Z=Object(Jt.b)(at,ce,ce-1):"home"===se?Z=Object(Jt.a)(at,ce,0):"end"===se&&(Z=Object(Jt.b)(at,ce,at.length-1)),null!=Z)&&(null===(ne=Z.current)||void 0===ne||null===(ie=ne.focus)||void 0===ie||ie.call(ne),G.preventDefault())},role:Ie,tabIndex:null!=it||ne?void 0:0};return me?se.a.createElement(Zt,Menu_extends({},_t,{elementRef:ce,stopScrollPropagation:!0},ge()(ke,"tagName")),ft):se.a.createElement(Gt,Menu_extends({},_t,{ref:ce},ke),ft)}Menu.propTypes=Qt,Menu.defaultProps={stopScrollPropagation:!1},Menu.Item=Vt,Menu.Divider=Je,Menu.Heading=ht;var on=Menu},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(2863)},23:function(G,Z){G.exports=ne(78)},25:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2864)},38:function(G,Z){G.exports=ne(4088)},39:function(G,Z){G.exports=ne(2010)},4:function(G,Z){G.exports=ne(641)},48:function(G,Z){G.exports=ne(7363)},5:function(G,Z){G.exports=ne(41)},60:function(G,Z,ne){"use strict";function getNextListItem(G,Z,ne){for(var ie=0;ie0;ie-=1){var se,ce=(ie+ne)%G.length;if(!0!==(null===(se=G[ce].current)||void 0===se?void 0:se.props.disabled))return G[ce]}return G[Z]}ne.d(Z,"a",(function(){return getNextListItem})),ne.d(Z,"b",(function(){return getPrevListItem}))},65:function(G,Z){G.exports=ne(2867)},7:function(G,Z){G.exports=ne(1154)},70:function(G,Z){G.exports=ne(2856)},78:function(G,Z){G.exports=ne(7364)},80:function(G,Z){G.exports=ne(7365)},89:function(G,Z){G.exports=ne(7366)},91:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie=function scrollIntoViewIfNeeded(G){if(G){var Z=G.offsetParent;Z&&(Z.scrollTop+Z.clientHeightG.offsetTop&&(Z.scrollTop=G.offsetTop))}}},96:function(G,Z){G.exports=ne(4090)},97:function(G,Z){G.exports=ne(4089)}})},4088:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(642)},4:function(G,Z){G.exports=ne(759)},50:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ChevronRight}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4091:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={};Object.defineProperty(Z,"default",{enumerable:!0,get:function(){return se.default}});var se=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(7374));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}Object.keys(se).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||G in Z&&Z[G]===se[G]||Object.defineProperty(Z,G,{enumerable:!0,get:function(){return se[G]}}))}))},4092:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=191)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},125:function(G,Z){G.exports=ne(7384)},191:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ft})),ne.d(Z,"Panel",(function(){return it}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(125),De=ne.n(xe),Ie=ne(0),Re=Object(ie.createContext)({});Re.displayName="Accordion";var ze=Re;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var $e={description:fe.a.string,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),inset:fe.a.bool,panelId:fe.a.any.isRequired,title:fe.a.node.isRequired},Je=function getPaddingValue(G,Z){return{enterprise:{compact:"8px",comfortable:"10px"},prisma:{compact:"12px 20px",comfortable:"20px"}}[G][Z]};function Panel(G){var Z=G.panelId,ne=G.inset,ce=_objectWithoutProperties(G,["panelId","inset"]),fe=Object(Ie.useSplunkTheme)(),me=fe.family,ge=fe.density,Ce=Object(ie.useContext)(Re),Se=Ce.onRequestClose,Me=Ce.onRequestOpen,ke=Ce.openPanelId,xe=Ce.inset,ze=ke===Z,$e=void 0!==ne?ne:xe;return se.a.createElement(De.a,_extends({panelId:Z,"data-test":"panel",innerBodyStyles:$e?{padding:Je(me,ge)}:void 0,"data-test-panel-id":Z,style:{flexShrink:1}},ce,{onRequestClose:Se,onRequestOpen:Me,open:ze}))}Panel.propTypes=$e;var it=Panel,ot=ne(3),at=ne.n(ot),st=ne(6),ct=ne.n(st),ut=at()(ct.a).withConfig({displayName:"AccordionStyles__StyledBox",componentId:"m39hyh-0"})(["",";flex-direction:column;margin-bottom:0;",""],Ie.mixins.reset("flex"),Object(Ie.pick)({enterprise:Object(ot.css)(["background:",";"],Ie.variables.backgroundColor)}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Accordion_extends(){return(Accordion_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M16.8739 10.0405C17.2645 9.64996 17.2645 9.01679 16.8739 8.62627C16.4834 8.23574 15.8502 8.23574 15.4597 8.62627L10.5247 13.5613L8.5405 11.5776C8.14992 11.1872 7.51675 11.1873 7.12629 11.5779C6.73582 11.9684 6.73591 12.6016 7.12649 12.9921L9.46426 15.3291C10.0501 15.9148 10.9997 15.9147 11.5854 15.329L16.8739 10.0405Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.8738 8.62627C17.2643 9.01679 17.2643 9.64996 16.8738 10.0405L11.5853 15.329C10.9996 15.9147 10.0499 15.9148 9.46414 15.3291L7.12637 12.9921C6.73579 12.6016 6.7357 11.9684 7.12616 11.5779C7.51663 11.1873 8.1498 11.1872 8.54038 11.5776L10.5246 13.5613L15.4596 8.62627C15.8501 8.23574 16.4833 8.23574 16.8738 8.62627Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CheckCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4098:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=396)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(696)},2:function(G,Z){G.exports=ne(697)},396:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 15.8001C13.2003 16.4628 12.663 17.0001 12.0003 17.0001C11.3376 17.0001 10.8003 16.4628 10.8003 15.8001C10.8003 15.1374 11.3376 14.6001 12.0003 14.6001C12.663 14.6001 13.2003 15.1374 13.2003 15.8001Z"}),se.a.createElement("path",{d:"M11.0005 7.9906V12.0001C11.0005 12.5524 11.4482 13.0001 12.0005 13.0001C12.5528 13.0001 13.0005 12.5524 13.0005 12.0001V7.9906C13.0005 7.43832 12.5528 6.9906 12.0005 6.9906C11.4482 6.9906 11.0005 7.43832 11.0005 7.9906Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12ZM11.0001 7.9906V12.0001C11.0001 12.5524 11.4478 13.0001 12.0001 13.0001C12.5524 13.0001 13.0001 12.5524 13.0001 12.0001V7.9906C13.0001 7.43832 12.5524 6.9906 12.0001 6.9906C11.4478 6.9906 11.0001 7.43832 11.0001 7.9906ZM12.0001 17.0001C12.6628 17.0001 13.2001 16.4628 13.2001 15.8001C13.2001 15.1374 12.6628 14.6001 12.0001 14.6001C11.3373 14.6001 10.8001 15.1374 10.8001 15.8001C10.8001 16.4628 11.3373 17.0001 12.0001 17.0001Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4099:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=486)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(696)},2:function(G,Z){G.exports=ne(697)},486:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 8.1999C13.2003 7.53716 12.663 6.9999 12.0003 6.9999C11.3376 6.9999 10.8003 7.53716 10.8003 8.1999C10.8003 8.86264 11.3376 9.3999 12.0003 9.3999C12.663 9.3999 13.2003 8.86264 13.2003 8.1999Z"}),se.a.createElement("path",{d:"M11.0005 16.0094V11.9999C11.0005 11.4476 11.4482 10.9999 12.0005 10.9999C12.5528 10.9999 13.0005 11.4476 13.0005 11.9999V16.0094C13.0005 16.5617 12.5528 17.0094 12.0005 17.0094C11.4482 17.0094 11.0005 16.5617 11.0005 16.0094Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.0001 16.0094V11.9999C11.0001 11.4476 11.4478 10.9999 12.0001 10.9999C12.5524 10.9999 13.0001 11.4476 13.0001 11.9999V16.0094C13.0001 16.5617 12.5524 17.0094 12.0001 17.0094C11.4478 17.0094 11.0001 16.5617 11.0001 16.0094ZM12 6.9999C12.6628 6.9999 13.2 7.53716 13.2 8.1999C13.2 8.86264 12.6628 9.3999 12 9.3999C11.3373 9.3999 10.8 8.86264 10.8 8.1999C10.8 7.53716 11.3373 6.9999 12 6.9999Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function InformationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="informationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4100:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=398)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(696)},2:function(G,Z){G.exports=ne(697)},398:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618Z"}),se.a.createElement("path",{d:"M13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3173 2.82369C12.7659 1.72544 11.2341 1.72544 10.6827 2.82369L2.16616 19.7867C1.65878 20.7973 2.37462 22 3.48349 22H20.5165C21.6254 22 22.3412 20.7973 21.8338 19.7867L13.3173 2.82369ZM4.29301 19.9753L12 4.62472L19.707 19.9753H4.29301Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6827 2.82369C11.2341 1.72544 12.7659 1.72544 13.3173 2.82369L21.8338 19.7867C22.3412 20.7973 21.6254 22 20.5165 22H3.48349C2.37462 22 1.65878 20.7973 2.16616 19.7867L10.6827 2.82369ZM11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618ZM13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationTriangle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationtriangle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4101:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=236)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},236:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(6),Se=ne.n(Ce),Me=ne(0),ke=ge()(Se.a).withConfig({displayName:"StaticContentStyles__StyledBox",componentId:"sxqyrp-0"})(["",";position:relative;margin:0;font-weight:",";word-wrap:break-word;min-height:",";padding:",";[data-inline] + &[data-inline]{margin-left:",";}"],Me.mixins.reset("flex"),Me.variables.fontWeightSemiBold,Me.variables.inputHeight,Object(Me.pick)({enterprise:{comfortable:"6px 7px",compact:"4px 5px"},prisma:{comfortable:"10px 0",compact:"6px 0"}}),Object(Me.pick)({enterprise:Me.variables.spacingQuarter,prisma:Me.variables.spacingLarge}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),inline:fe.a.bool,size:fe.a.oneOf(["small","medium"])};function StaticContent(G){var Z=G.children,ne=G.inline,ie=void 0!==ne&&ne,ce=G.size,fe=void 0===ce?"medium":ce,me=_objectWithoutProperties(G,["children","inline","size"]);return se.a.createElement(ke,_extends({"data-test":"static-content","data-size":fe,inline:ie},me),Z)}StaticContent.propTypes=xe;var De=StaticContent},3:function(G,Z){G.exports=ne(3)},6:function(G,Z){G.exports=ne(760)}})},4102:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={};Object.defineProperty(Z,"default",{enumerable:!0,get:function(){return se.default}});var se=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(7404));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}Object.keys(se).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||G in Z&&Z[G]===se[G]||Object.defineProperty(Z,G,{enumerable:!0,get:function(){return se[G]}}))}))},4103:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=227)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},227:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.p.withConfig({displayName:"ParagraphStyles__Styled",componentId:"sic5zk-0"})(["",";",";",""],Ce.mixins.reset("block"),Ce.mixins.typography("body"),Object(Ce.pick)({enterprise:Object(me.css)(["margin-bottom:calc("," / 2);"],Ce.variables.lineHeight),prisma:Object(me.css)(["margin-bottom:14px;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Paragraph(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"paragraph",ref:ne},ie),Z)}Paragraph.propTypes=Me;var ke=Paragraph},3:function(G,Z){G.exports=ne(3)}})},4104:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=131)}({0:function(G,Z){G.exports=ne(0)},131:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Plus}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Re={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number,isFirstChild:fe.a.bool,isLastChild:fe.a.bool,span:fe.a.number,style:fe.a.object};function Column(G){var Z=G.children,ne=G.elementRef,ie=G.gutter,ce=G.span,fe=void 0===ce?1:ce,me=G.isFirstChild,ge=G.isLastChild,Ce=G.style,Me=_objectWithoutProperties(G,["children","elementRef","gutter","span","isFirstChild","isLastChild","style"]),ke=ie?"calc((100% - ".concat(11*ie,"px) * ").concat(fe/12," + (").concat(ie,"px * ").concat(fe-1,"))"):"".concat(100/12*fe,"%");Object(Ie.a)(ie);var xe={marginLeft:me?void 0:ie/2,marginRight:ge?void 0:ie/2,flex:"".concat(fe," ").concat(fe," auto"),width:ke};return se.a.createElement(De,_extends({"data-test":"column",ref:ne,style:Se()({},Ce,xe)},Me),Z)}Column.propTypes=Re;var ze=Column,$e=ke.a.div.withConfig({displayName:"RowStyles__Styled",componentId:"sc-121ntds-0"})(["",";flex-flow:row nowrap;&[data-align-items='start']{align-items:flex-start;}&[data-align-items='end']{align-items:flex-end;}&[data-align-items='center']{align-items:center;}&[data-align-items='stretch']{align-items:stretch;}"],xe.mixins.reset("flex")),Je=ke.a.div.withConfig({displayName:"RowStyles__StyledDivider",componentId:"sc-121ntds-1"})(["border-left:1px solid ",";flex:0 0 1;align-self:stretch;"],Object(xe.pick)({prisma:xe.variables.neutral200,enterprise:{light:xe.variables.gray92,dark:xe.variables.gray60}}));function Row_extends(){return(Row_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var it={alignItems:fe.a.oneOf(["start","end","center","stretch"]),children:fe.a.node,divider:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number,isFirstChild:fe.a.bool,isLastChild:fe.a.bool,style:fe.a.object};function Row(G){var Z=G.alignItems,ne=void 0===Z?"stretch":Z,ce=G.children,fe=G.divider,me=G.elementRef,ge=G.gutter,Ce=G.isFirstChild,Me=G.isLastChild,ke=G.style,xe=Row_objectWithoutProperties(G,["alignItems","children","divider","elementRef","gutter","isFirstChild","isLastChild","style"]),De=Object(ie.useCallback)((function(G,Z){return Object(ie.cloneElement)(G,{gutter:ge,isFirstChild:0===Z,isLastChild:Z===ie.Children.count(ce)-1})}),[ce,ge]),Re=Object(ie.useCallback)((function(G,Z,ne,ie){return G.push(Z),fe&&ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ct={children:fe.a.node,divider:fe.a.oneOf(["none","vertical","horizontal"]),elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number};function ColumnLayout(G){var Z=G.children,ne=G.divider,ce=void 0===ne?"none":ne,fe=G.elementRef,me=G.gutter,Ce=ColumnLayout_objectWithoutProperties(G,["children","divider","elementRef","gutter"]),Se=ge()(),Me=Se.family,ke=Se.density,xe=Object(ie.useCallback)((function(G,ne){var se=0===ne,fe=ne===ie.Children.count(Z)-1,ge=me;return void 0===ge&&("prisma"===Me?"compact"===ke?ge=16:"comfortable"===ke&&(ge=24):"enterprise"===Me&&(ge=30)),Object(ie.cloneElement)(G,{gutter:ge,divider:"vertical"===ce,isFirstChild:se,isLastChild:fe})}),[Z,ke,ce,Me,me]),De=Object(ie.useCallback)((function(G,Z,ne,ie){return G.push(Z),"horizontal"===ce&&ne{"use strict";var Z={5135:(G,Z,ne)=>{Z.useCSPViolationObserver=void 0;const ie=ne(9497);Z.useCSPViolationObserver=(G,Z="none")=>{const[ne,se]=(0,ie.useState)(Z);return(0,ie.useEffect)(()=>{const n=Z=>{Z.blockedURI!==G&&Z.blockedURI!==G+"/"||"enforce"!==Z.disposition?Z.blockedURI!==G&&Z.blockedURI!==G+"/"||"report"!==Z.disposition||se("warning"):se("error")};return document.addEventListener("securitypolicyviolation",n),se(Z),()=>{document.removeEventListener("securitypolicyviolation",n)}},[G]),ne}},4008:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.AdvancedConfigButton=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=fe(ne(6643)),ke=fe(ne(8897)),xe=fe(ne(6379)),De=fe(ne(7020)),Ie=fe(ne(9250)),Re=(0,Ce.default)(Ie.default)` // No margins margin: 0; width: 100%; // remove top margin of the first component in control group &:first-child { margin-top: 0; } // remove bottom margin of the last component in control group &:last-child { margin-bottom: 0; } `,ze=(0,Ce.default)(xe.default)` display: flex; > span { display: flex; width: 35px; } `;Z.AdvancedConfigButton=({label:G="",onClick:Z})=>{const{isPrisma:ne}=(0,ke.default)();return me.default.createElement(ze,{"data-test":G+"-advanced-config-button-tooltip",content:(0,Se._)("Advanced configurations")},me.default.createElement(De.default,{"data-test":G+"-advanced-config-button",icon:me.default.createElement(Me.default,{"data-test":G+"-advanced-config-button-icon"}),appearance:ne?"secondary":"pill",onClick:Z}))};const b=({"data-test":G,children:ne,isAdvanced:ie,label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,style:Me,error:ke,onClick:xe,onAdvancedConfigButtonClick:De})=>me.default.createElement(Re,{"data-test":null!=G?G:"control-group",label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,error:ke,style:Me,onClick:xe},ie?me.Children.toArray(ne).filter(Boolean).map(G=>(0,me.cloneElement)(G,{style:{flex:1}})):ne,ie?me.default.createElement(Z.AdvancedConfigButton,{label:se,onClick:De}):null);b.propTypes={style:ge.object,isAdvanced:ge.bool,onClick:ge.func,onAdvancedConfigButtonClick:ge.func},b.defaultProps={isAdvanced:!1},Z.default=b},962:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.CSPMessage=void 0;const me=ce(ne(9497)),ge=ne(6649),Ce=fe(ne(6447)),Se=fe(ne(451)),Me=fe(ne(5711));Z.CSPMessage=({type:G})=>{const{cspMessageLink:Z}=me.useContext(Me.default);return me.createElement(Ce.default,{appearance:"fill",type:G,"data-test":"csp-message-"+G},(0,ge._)("External image URLs must now have their domains listed in the Dashboards Trusted Domains List by working with your administrator. Alternatively, you can upload the image directly into the dashboard. "),Z&&me.createElement(Se.default,{to:Z,openInNewContext:!0},(0,ge._)("Learn more")))}},137:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.MessageContainer=void 0;const se=ie(ne(232));Z.MessageContainer=se.default.div` margin-top: 10px; `},6195:G=>{G.exports=ne(11)},8855:G=>{G.exports=ne(814)},6643:G=>{G.exports=ne(2016)},7020:G=>{G.exports=ne(762)},9250:G=>{G.exports=ne(1310)},451:G=>{G.exports=ne(1312)},6447:G=>{G.exports=ne(2880)},4082:G=>{G.exports=ne(1313)},6379:G=>{G.exports=ne(1311)},3563:G=>{G.exports=ne(204)},8216:G=>{G.exports=ne(1307)},8897:G=>{G.exports=ne(1159)},6649:G=>{G.exports=ne(2023)},5295:G=>{G.exports=ne(4125)},7464:G=>{G.exports=ne(268)},5711:G=>{G.exports=ne(1850)},4793:G=>{G.exports=ne(24)},23:G=>{G.exports=ne(2)},9497:G=>{G.exports=ne(0)},232:G=>{G.exports=ne(3)}},ie={};function n(G){var ne=ie[G];if(void 0!==ne)return ne.exports;var se=ie[G]={exports:{}};return Z[G].call(se.exports,se,se.exports,n),se.exports}n.n=G=>{var Z=G&&G.__esModule?()=>G.default:()=>G;return n.d(Z,{a:Z}),Z},n.d=(G,Z)=>{for(var ne in Z)n.o(Z,ne)&&!n.o(G,ne)&&Object.defineProperty(G,ne,{enumerable:!0,get:Z[ne]})},n.o=(G,Z)=>Object.prototype.hasOwnProperty.call(G,Z),n.r=G=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})};var se={};(()=>{n.r(se),n.d(se,{default:()=>Bt});var G=n(9497),Z=n.n(G),ie=n(23),ce=n.n(ie);const fe=ne(1099);var me=n.n(fe),ge=n(4008),Ce=n.n(ge),Se=n(6195),Me=n.n(Se),ke=n(232),xe=n.n(ke),De=n(6649),Ie=n(6447),Re=n.n(Ie),ze=n(4082),$e=n.n(ze);const Je=ne(4126);var it=n.n(Je),ot=n(5295),at=n(7464),st=n.n(at),ct=n(4793),ut=n(962);const dt=xe().div` padding-bottom: 5px; width: 100%; text-align: center; `,ht={marginBottom:10},ft={width:"100%"},_t=xe().span` font-size: smaller; font-style: italic; `,yt=(0,De._)("Note: Uploaded image files can be accessed and deleted by others in your organization"),vt=(0,ct.memoize)((G,Z)=>{const ne=G.slice();if(Z)-1===ne.indexOf("svg")&&ne.push("svg");else{const G=ne.indexOf("svg");G>-1&&ne.splice(G,1)}return ne},(G,Z)=>`${Z}-${G.join("-")}`);class S extends G.Component{constructor(G){super(G),Me()(this,"violationHandler",G=>{G.blockedURI!==this.state.urlValue&&G.blockedURI!==this.state.urlValue+"/"||"enforce"!==G.disposition?G.blockedURI!==this.state.urlValue&&G.blockedURI!==this.state.urlValue+"/"||"report"!==G.disposition||this.setState({violationType:"warning"}):this.setState({violationType:"error"})}),Me()(this,"checkImage",G=>{if(!G)return;const Z=new Image;Z.onload=()=>{this.props.handleImageUpload({src:G})},Z.onerror=()=>{this.setState(G=>G.urlValue?{validUrl:!1}:void 0)},Z.src=G}),Me()(this,"handleURLChange",(G,Z)=>{let{value:ne}=Z;this.setState({urlValue:ne,validUrl:!0,violationType:"none"})}),Me()(this,"handleTextKeyDown",G=>{"enter"===(0,ot.keycode)(G)&&(G.preventDefault(),this.checkImage(this.state.urlValue))}),Me()(this,"handleBlur",G=>{var Z;null!==(Z=this.inputRef.current)&&void 0!==Z&&Z.contains(G.relatedTarget)||this.checkImage(this.state.urlValue)}),Me()(this,"trackInputRef",G=>{this.inputRef.current=G,G&&G.addEventListener("focusout",this.handleBlur)}),Me()(this,"handleOnImageChange",G=>{let{filename:Z,imageDataURI:ne}=G;Z&&ne?this.props.handleImageUpload({filename:Z,imageDataURI:ne}):this.props.handleImageUpload({filename:null,imageDataURI:null})}),this.state={urlValue:"",validUrl:!0,violationType:"none"},this.inputRef=Z().createRef()}componentDidMount(){document.addEventListener("securitypolicyviolation",this.violationHandler)}componentWillUnmount(){document.removeEventListener("securitypolicyviolation",this.violationHandler),this.inputRef.current&&this.inputRef.current.removeEventListener("focusout",this.handleBlur)}render(){const{enableImageFileUpload:G,enableSVGImageUpload:ne,enableSvgHttpDownloader:ie,enableGallerySharingWarning:se}=this.context||{},ce=vt(this.props.validImageTypes,ne),fe=ce.indexOf("svg")<0||this.props.svgRenderAsDom&&ce.indexOf("svg")>-1&&ie||!this.props.svgRenderAsDom&&ce.indexOf("svg")>-1,me="none"!==this.state.violationType?Z().createElement(ut.CSPMessage,{type:this.state.violationType}):Z().createElement(Re(),{appearance:"fill",type:"error"},(0,De._)("We can't find an image with this URL. Please enter a new URL."));return Z().createElement(dt,null,fe&&Z().createElement($e(),{canClear:!0,placeholder:(0,De._)("Enter URL"),value:this.state.urlValue,onChange:this.handleURLChange,onKeyDown:this.handleTextKeyDown,style:ht,elementRef:this.trackInputRef}),this.state.validUrl?G&&Z().createElement(Z().Fragment,null,Z().createElement(it(),{style:ft,defaultFilename:null,defaultImageDataURI:null,onImageChange:this.handleOnImageChange,allowExtensions:ce}),se&&Z().createElement(_t,{"data-test":"gallery-sharing-warning"},yt)):me)}}Me()(S,"contextType",st()),S.propTypes={handleImageUpload:ce().func,validImageTypes:ce().array,svgRenderAsDom:ce().bool},S.defaultProps={handleImageUpload:()=>{},validImageTypes:["gif","jpeg","jpg","png","webp"],svgRenderAsDom:!1};const wt=S;var Ct=n(8855),St=n.n(Ct),Mt=n(7020),kt=n.n(Mt),xt=n(8216),Lt=n.n(xt),Tt=n(3563),At=n(5135),Dt=n(137);const Et=Z().createElement(St(),{"aria-label":(0,De._)("Remove Image")}),jt=xe().div` width: 100%; padding-bottom: 5px; `,It=xe().div` border: ${Lt()({enterprise:Tt.variables.border,prisma:"1px solid "+Tt.variables.interactiveColorBorder})}; position: relative; min-height: 30px; height: auto; `,Nt=xe().div` background-color: ${Lt()({enterprise:Tt.variables.backgroundColor,prisma:Tt.variables.backgroundColorSidebar})}; color: ${Lt()({enterprise:Tt.variables.textColor,prisma:Tt.variables.contentColorDefault})}; opacity: 0.9; position: absolute; width: 100%; min-height: 30px; display: flex; align-items: center; justify-content: space-between; `,Rt=xe().div` margin-left: ${Lt()({enterprise:Tt.variables.spacingHalf,prisma:Tt.variables.spacingMedium})}; overflow: hidden; text-align: start; text-overflow: ellipsis; white-space: nowrap; `,zt=xe()(kt()).attrs({"data-test":"image-remove-button"})` flex-grow: 0; `,qt=xe().img` ${Tt.mixins.reset("block")}; margin: 0 auto; max-width: 100%; max-height: 180px; `,Q=G=>{let{filename:ne,imageDataURI:ie,onImageRemove:se,overrideCSPViolation:ce}=G;const fe=(0,At.useCSPViolationObserver)(ie,ce),me="prisma"===(0,Tt.useSplunkTheme)().family?"secondary":"pill";return Z().createElement(jt,null,Z().createElement(It,null,Z().createElement(Nt,null,Z().createElement(Rt,null,ne),Z().createElement(zt,{appearance:me,icon:Et,onClick:se})),Z().createElement(qt,{alt:ne,src:ie})),"none"!==fe&&Z().createElement(Dt.MessageContainer,null,Z().createElement(ut.CSPMessage,{type:fe})))};Q.propTypes={filename:ce().string,imageDataURI:ce().string,onImageRemove:ce().func,overrideCSPViolation:ce().string},Q.defaultProps={onImageRemove:()=>{},filename:null,imageDataURI:null};const Wt=Q,Y=ne=>{let{onChange:ie,name:se,value:ce,labelPosition:fe,labelWidth:ge,label:Se,validMediaTypes:Me,svgRenderAsDom:ke,overrideCSPViolation:xe}=ne;const De=(0,G.useContext)(me()),[Ie,Re]=(0,G.useState)(null),[ze,$e]=(0,G.useState)(null),Je=(0,G.useCallback)(async(G,Z)=>{try{const ne=await De.upload(Z,{name:G},null,Me);ie(null,se,ne)}catch(G){console.warn(G)}},[De,Me,ie,se]),it=(0,G.useCallback)(G=>{let{src:Z,filename:ne,imageDataURI:ce}=G;return Z?ie(null,se,Z):null!==ne&&null!==ce?Je(ne,ce):ie(null,se,null)},[Je,ie,se]),ot=(0,G.useCallback)(G=>ie(G,se,null),[ie,se]);return(0,G.useEffect)(()=>{(async()=>{if(ce){const G=await(async(G,Z)=>null!=G&&G.isResourceURL(Z)?G.getByURL(Z):{dataURI:Z,metaData:{name:Z}})(De,ce);Re(G.dataURI),$e(G.metaData.name)}})()},[ce,De]),Z().createElement(Ce(),{label:Se,labelPosition:fe,labelWidth:ge},ce?Z().createElement(Wt,{filename:ze,imageDataURI:Ie,onImageRemove:ot,overrideCSPViolation:xe}):Z().createElement(wt,{svgRenderAsDom:ke,validImageTypes:Me,handleImageUpload:it}))};Y.propTypes={onChange:ce().func.isRequired,name:ce().string.isRequired,label:ce().string.isRequired,value:ce().string,labelPosition:ce().oneOf(["top","left"]),labelWidth:ce().number,validMediaTypes:ce().array,svgRenderAsDom:ce().bool,overrideCSPViolation:ce().string},Y.defaultProps={labelPosition:"top"};const Bt=Y})(),G.exports=se})()},4107:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(1158);var se=function getSettingsFromThemedProps(G){var Z,ne=(null===(Z=G.theme)||void 0===Z?void 0:Z.splunkThemeV1)||{},se=ne.family,ce=ne.colorScheme,fe=ne.density;return(0,ie.addThemeDefaults)({family:se,colorScheme:ce,density:fe})};Z.default=se},4108:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(2874));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4117:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=73)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(643)},4:function(G,Z){G.exports=ne(764)},73:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Error}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M16.8739 10.0405C17.2645 9.64996 17.2645 9.01679 16.8739 8.62627C16.4834 8.23574 15.8502 8.23574 15.4597 8.62627L10.5247 13.5613L8.5405 11.5776C8.14992 11.1872 7.51675 11.1873 7.12629 11.5779C6.73582 11.9684 6.73591 12.6016 7.12649 12.9921L9.46426 15.3291C10.0501 15.9148 10.9997 15.9147 11.5854 15.329L16.8739 10.0405Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.8738 8.62627C17.2643 9.01679 17.2643 9.64996 16.8738 10.0405L11.5853 15.329C10.9996 15.9147 10.0499 15.9148 9.46414 15.3291L7.12637 12.9921C6.73579 12.6016 6.7357 11.9684 7.12616 11.5779C7.51663 11.1873 8.1498 11.1872 8.54038 11.5776L10.5246 13.5613L15.4596 8.62627C15.8501 8.23574 16.4833 8.23574 16.8738 8.62627Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CheckCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4122:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=396)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},396:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 15.8001C13.2003 16.4628 12.663 17.0001 12.0003 17.0001C11.3376 17.0001 10.8003 16.4628 10.8003 15.8001C10.8003 15.1374 11.3376 14.6001 12.0003 14.6001C12.663 14.6001 13.2003 15.1374 13.2003 15.8001Z"}),se.a.createElement("path",{d:"M11.0005 7.9906V12.0001C11.0005 12.5524 11.4482 13.0001 12.0005 13.0001C12.5528 13.0001 13.0005 12.5524 13.0005 12.0001V7.9906C13.0005 7.43832 12.5528 6.9906 12.0005 6.9906C11.4482 6.9906 11.0005 7.43832 11.0005 7.9906Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12ZM11.0001 7.9906V12.0001C11.0001 12.5524 11.4478 13.0001 12.0001 13.0001C12.5524 13.0001 13.0001 12.5524 13.0001 12.0001V7.9906C13.0001 7.43832 12.5524 6.9906 12.0001 6.9906C11.4478 6.9906 11.0001 7.43832 11.0001 7.9906ZM12.0001 17.0001C12.6628 17.0001 13.2001 16.4628 13.2001 15.8001C13.2001 15.1374 12.6628 14.6001 12.0001 14.6001C11.3373 14.6001 10.8001 15.1374 10.8001 15.8001C10.8001 16.4628 11.3373 17.0001 12.0001 17.0001Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4123:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=486)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},486:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 8.1999C13.2003 7.53716 12.663 6.9999 12.0003 6.9999C11.3376 6.9999 10.8003 7.53716 10.8003 8.1999C10.8003 8.86264 11.3376 9.3999 12.0003 9.3999C12.663 9.3999 13.2003 8.86264 13.2003 8.1999Z"}),se.a.createElement("path",{d:"M11.0005 16.0094V11.9999C11.0005 11.4476 11.4482 10.9999 12.0005 10.9999C12.5528 10.9999 13.0005 11.4476 13.0005 11.9999V16.0094C13.0005 16.5617 12.5528 17.0094 12.0005 17.0094C11.4482 17.0094 11.0005 16.5617 11.0005 16.0094Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.0001 16.0094V11.9999C11.0001 11.4476 11.4478 10.9999 12.0001 10.9999C12.5524 10.9999 13.0001 11.4476 13.0001 11.9999V16.0094C13.0001 16.5617 12.5524 17.0094 12.0001 17.0094C11.4478 17.0094 11.0001 16.5617 11.0001 16.0094ZM12 6.9999C12.6628 6.9999 13.2 7.53716 13.2 8.1999C13.2 8.86264 12.6628 9.3999 12 9.3999C11.3373 9.3999 10.8 8.86264 10.8 8.1999C10.8 7.53716 11.3373 6.9999 12 6.9999Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function InformationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="informationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4124:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=398)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},398:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618Z"}),se.a.createElement("path",{d:"M13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3173 2.82369C12.7659 1.72544 11.2341 1.72544 10.6827 2.82369L2.16616 19.7867C1.65878 20.7973 2.37462 22 3.48349 22H20.5165C21.6254 22 22.3412 20.7973 21.8338 19.7867L13.3173 2.82369ZM4.29301 19.9753L12 4.62472L19.707 19.9753H4.29301Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6827 2.82369C11.2341 1.72544 12.7659 1.72544 13.3173 2.82369L21.8338 19.7867C22.3412 20.7973 21.6254 22 20.5165 22H3.48349C2.37462 22 1.65878 20.7973 2.16616 19.7867L10.6827 2.82369ZM11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618ZM13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationTriangle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationtriangle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4125:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(266)),se=ne(24);var ce=ie.default;function isValidKey(G){return!(0,se.isUndefined)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},4126:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=202)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(530)},138:function(G,Z){G.exports=ne(7429)},139:function(G,Z){G.exports=ne(7430)},140:function(G,Z){G.exports=ne(2880)},2:function(G,Z){G.exports=ne(0)},202:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return xt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(138),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(36),ke=ne.n(Me),xe=ne(139),De=ne.n(xe),Ie=ne(29),Re=ne(4),ze=ne(0),$e=ne(26),Je=ne.n($e),it=ne(27),ot=ne.n(it),at=function CrossIcon(){var G=Object(ze.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px",ie=Object(Re._)("Remove");return Z?se.a.createElement(ot.a,{hideDefaultTooltip:!0,screenReaderText:ie}):se.a.createElement(Je.a,{"aria-label":ie,height:ne,width:ne})},st=ne(3),ct=ne.n(st),ut=ne(12),dt=ne.n(ut),ht=ne(140),ft=ne.n(ht),_t=ct.a.div.withConfig({displayName:"ImageStyles__StyledImagePreview",componentId:"sc-16ooypp-0"})(["position:relative;min-height:",";",""],Object(ze.pick)({enterprise:"30px",prisma:ze.variables.inputHeight}),Object(ze.pick)({enterprise:Object(st.css)(["border:",";"],ze.variables.border),prisma:Object(st.css)(["border-radius:",";overflow:hidden;margin-top:12px;background-color:",";"],ze.variables.borderRadius,ze.variables.interactiveColorBackground)})),yt=ct.a.div.withConfig({displayName:"ImageStyles__StyledLabelContainer",componentId:"sc-16ooypp-1"})(["",";flex-direction:row;justify-content:space-between;background-color:",";color:",";opacity:0.9;position:absolute;width:100%;"],ze.mixins.reset("flex"),Object(ze.pick)({enterprise:{light:ze.variables.gray92,dark:ze.variables.gray30},prisma:ze.mixins.overlayColors(ze.variables.interactiveColorBackground,ze.variables.interactiveColorOverlaySelected)}),ze.variables.contentColorMuted),vt=ct()(dt.a).withConfig({displayName:"ImageStyles__StyledRemoveClickable",componentId:"sc-16ooypp-2"})(["cursor:pointer;"," padding:",";text-align:center;height:inherit;&:focus{","}&:hover{background-color:",";color:",";}"],Object(ze.pick)({enterprise:Object(st.css)(["flex:0 0 26px;"]),prisma:Object(st.css)(["color:",";border-radius:50%;"],ze.variables.contentColorMuted)}),Object(ze.pick)({enterprise:"3px 0",prisma:{comfortable:"0 8px",compact:"0 6px"}}),Object(ze.pick)({enterprise:Object(st.css)(["box-shadow:",";color:",";"],ze.variables.focusShadow,ze.variables.linkColor),prisma:Object(st.css)(["color:",";background-color:",";box-shadow:0 0 0 3px ",";"],ze.variables.contentColorActive,ze.variables.interactiveColorOverlayHover,ze.variables.focusColor)}),Object(ze.pick)({enterprise:{light:ze.variables.gray96,dark:ze.variables.gray30},prisma:ze.variables.interactiveColorOverlayHover}),Object(ze.pick)({enterprise:ze.variables.linkColor,prisma:ze.variables.contentColorActive})),wt=ct.a.div.withConfig({displayName:"ImageStyles__StyledLabel",componentId:"sc-16ooypp-3"})(["color:",";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1 0 0px;padding:",";",""],ze.variables.contentColorActive,Object(ze.pick)({enterprise:"3px 0 3px 10px",prisma:{comfortable:"10px 10px",compact:"6px 10px"}}),(function(G){return G.$disabled&&Object(st.css)(["background-color:",";color:",";cursor:not-allowed;"],Object(ze.pick)({enterprise:ze.variables.gray96,prisma:ze.variables.interactiveColorBackgroundDisabled}),ze.variables.contentColorDisabled)})),Ct=ct.a.img.withConfig({displayName:"ImageStyles__StyledImageThumbnail",componentId:"sc-16ooypp-4"})(["",";margin:0 auto;max-height:","px;max-width:100%;"],ze.mixins.reset("block"),(function(G){return G.maxHeight})),St=ct()(ft.a).withConfig({displayName:"ImageStyles__StyledErrorMessage",componentId:"sc-16ooypp-5"})(["margin-top:",";"],Object(ze.pick)({enterprise:ze.variables.spacingQuarter,prisma:"12px"}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z0){var Z=G[0];1===ne.fileReader.readyState&&ne.fileReader.abort(),ne.fileReader.onload=function(){var G,ie,se={filename:Z.name,imageDataURI:ne.fileReader.result};(ne.setState(se),Image.isAllowedFilename(Z.name,ne.props.allowExtensions))&&(null===(G=(ie=ne.props).onImageChange)||void 0===G||G.call(ie,se))},ne.fileReader.readAsDataURL(Z)}})),_defineProperty(_assertThisInitialized(ne),"handleRemoveFile",(function(){var G,Z;1===ne.fileReader.readyState&&ne.fileReader.abort();var ie={filename:null,imageDataURI:null};ne.setState(ie),null===(G=(Z=ne.props).onImageChange)||void 0===G||G.call(Z,ie)})),ne.state={filename:G.defaultFilename,imageDataURI:G.defaultImageDataURI},ne.fileReader=new FileReader,ne}return _createClass(Image,null,[{key:"isAllowedFilename",value:function isAllowedFilename(G,Z){return!!G&&Z.some((function(Z){return ge()(ke()(G),".".concat(ke()(Z)))}))}}]),_createClass(Image,[{key:"componentDidUpdate",value:function componentDidUpdate(G){0}},{key:"render",value:function render(){var G=this.props,Z=G.allowExtensions,ne=G.maxHeight,ie=G.disabled,ce=G.error,fe=this.state,me=fe.filename,ge=fe.imageDataURI,Ce=Z.map((function(G){return".".concat(G)})).join(", "),Me=me&&!Image.isAllowedFilename(me,Z)||ce,ke=Object(Re._)("This file extension is unsupported."),xe=Object(Ie.sprintf)(Object(Re._)('Remove "%(filename)s"'),{filename:me});return se.a.createElement("div",{"data-test":"image"},se.a.createElement(De.a,_extends({},Se()(this.props,["allowExtensions","defaultFilename","defaultImageDataURI","maxHeight","onImageChange"]),{accept:Ce,allowMultiple:!1,error:Me,onRequestAdd:this.handleAddFiles,"data-test":"file"}),me&&ge&&!Me&&se.a.createElement(_t,null,se.a.createElement(yt,null,se.a.createElement(wt,{"data-test":"label",$disabled:ie},me),!ie&&se.a.createElement(vt,{onClick:this.handleRemoveFile,"data-test":"remove","aria-label":xe},se.a.createElement(at,null))),se.a.createElement(Ct,{alt:me,"data-test":"preview",maxHeight:ne,src:ge}))),Me&&se.a.createElement(St,{appearance:"fill",type:"error"},ke))}}]),Image}(ie.Component);_defineProperty(kt,"propTypes",Mt),_defineProperty(kt,"defaultProps",{allowExtensions:["gif","jpeg","jpg","png"],disabled:!1,dropAnywhere:!1,error:!1,maxHeight:180});var xt=kt},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},29:function(G,Z){G.exports=ne(4127)},3:function(G,Z){G.exports=ne(3)},36:function(G,Z){G.exports=ne(736)},4:function(G,Z){G.exports=ne(371)},5:function(G,Z){G.exports=ne(41)}})},4127:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintf=sprintf,Z.abbreviateNumber=function abbreviateNumber(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(0,ie.default)(G);if(ne<=1e3)return ne.toLocaleString(Z);if(ne<1e4)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-2).toLocaleString(Z));if(ne<1e5)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-1).toLocaleString(Z));if(ne<999500)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,0).toLocaleString(Z));if(ne<1e7)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-2).toLocaleString(Z));if(ne<1e8)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-1).toLocaleString(Z));if(ne<9995e5)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,0).toLocaleString(Z));if(ne<1e10)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-2).toLocaleString(Z));if(ne<1e11)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-1).toLocaleString(Z));return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,0).toLocaleString(Z))},Z.bytesToFileSize=function bytesToFileSize(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(G||0)/1024;if(ne<0)throw new RangeError("bytes must be >= 0");if(0===Math.floor(ne))return sprintf((0,se._)("%s B"),G.toLocaleString(Z));var ie=ne/1024;if(0===Math.floor(ie))return sprintf((0,se._)("%s KB"),(0,ce.roundToDecimal)(ne,-2).toLocaleString(Z));var fe=ie/1024;if(0===Math.floor(fe))return sprintf((0,se._)("%s MB"),(0,ce.roundToDecimal)(ie,-2).toLocaleString(Z));var me=fe/1024;if(0===Math.floor(me))return sprintf((0,se._)("%s GB"),(0,ce.roundToDecimal)(fe,-2).toLocaleString(Z));return sprintf((0,se._)("%s TB"),(0,ce.roundToDecimal)(me,-2).toLocaleString(Z))},Z.smartTrim=function smartTrim(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ie=ne.precomposed,se=void 0!==ie&&ie;if(!G||Z<1||G.length<=Z)return G;var ce=se?"…":"...";if(1===Z)return"".concat(G[0]).concat(ce);var fe=Math.ceil(G.length/2),me=G.length-Z,ge=Math.ceil(me/2),Ce=me-ge;return"".concat(G.substring(0,fe-ge)).concat(ce).concat(G.substring(fe+Ce))};var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(384)),se=ne(371),ce=ne(7432),fe=ne(7433);function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie{"use strict";var Z={18:(G,Z,ie)=>{ie.d(Z,{getOptions:()=>o}),ie(6195),ie(4868),ne(1980),ne(160),ne(718),ne(1509),ne(120);const o=(G,Z)=>{if(Array.isArray(Z))return Z;if(G&&Array.isArray(G.enum))return G.enum.map(G=>({value:G}));throw Error("No valid values provided to editor: "+JSON.stringify(G))}},2166:(G,Z,ne)=>{ne.d(Z,{X:()=>l});const ie=new RegExp(/\$/.source+/(\w+:)?/.source+/([^$|:]+?)(\|[|\w]+)?/.source+/\$/.source),l=G=>"string"==typeof G&&ie.test(G)},4008:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.AdvancedConfigButton=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=fe(ne(6643)),ke=fe(ne(8897)),xe=fe(ne(6379)),De=fe(ne(7020)),Ie=fe(ne(9250)),Re=(0,Ce.default)(Ie.default)` // No margins margin: 0; width: 100%; // remove top margin of the first component in control group &:first-child { margin-top: 0; } // remove bottom margin of the last component in control group &:last-child { margin-bottom: 0; } `,ze=(0,Ce.default)(xe.default)` display: flex; > span { display: flex; width: 35px; } `;Z.AdvancedConfigButton=({label:G="",onClick:Z})=>{const{isPrisma:ne}=(0,ke.default)();return me.default.createElement(ze,{"data-test":G+"-advanced-config-button-tooltip",content:(0,Se._)("Advanced configurations")},me.default.createElement(De.default,{"data-test":G+"-advanced-config-button",icon:me.default.createElement(Me.default,{"data-test":G+"-advanced-config-button-icon"}),appearance:ne?"secondary":"pill",onClick:Z}))};const g=({"data-test":G,children:ne,isAdvanced:ie,label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,style:Me,error:ke,onClick:xe,onAdvancedConfigButtonClick:De})=>me.default.createElement(Re,{"data-test":null!=G?G:"control-group",label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,error:ke,style:Me,onClick:xe},ie?me.Children.toArray(ne).filter(Boolean).map(G=>(0,me.cloneElement)(G,{style:{flex:1}})):ne,ie?me.default.createElement(Z.AdvancedConfigButton,{label:se,onClick:De}):null);g.propTypes={style:ge.object,isAdvanced:ge.bool,onClick:ge.func,onAdvancedConfigButtonClick:ge.func},g.defaultProps={isAdvanced:!1},Z.default=g},5862:(G,Z)=>{Z.editorStyle=void 0,Z.editorStyle={width:"100%"}},6195:G=>{G.exports=ne(11)},6643:G=>{G.exports=ne(2016)},7020:G=>{G.exports=ne(762)},9250:G=>{G.exports=ne(1310)},2373:G=>{G.exports=ne(4129)},6379:G=>{G.exports=ne(1311)},8897:G=>{G.exports=ne(1159)},6649:G=>{G.exports=ne(2023)},4868:G=>{G.exports=ne(41)},23:G=>{G.exports=ne(2)},9497:G=>{G.exports=ne(0)},232:G=>{G.exports=ne(3)}},ie={};function r(G){var ne=ie[G];if(void 0!==ne)return ne.exports;var se=ie[G]={exports:{}};return Z[G].call(se.exports,se,se.exports,r),se.exports}r.n=G=>{var Z=G&&G.__esModule?()=>G.default:()=>G;return r.d(Z,{a:Z}),Z},r.d=(G,Z)=>{for(var ne in Z)r.o(Z,ne)&&!r.o(G,ne)&&Object.defineProperty(G,ne,{enumerable:!0,get:Z[ne]})},r.o=(G,Z)=>Object.prototype.hasOwnProperty.call(G,Z),r.r=G=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})};var se={};(()=>{r.r(se),r.d(se,{default:()=>ke});var G=r(9497),Z=r.n(G),ne=r(23),ie=r.n(ne),ce=r(2373),fe=r.n(ce),me=r(2166),ge=r(18),Ce=r(5862),Se=r(4008),Me=r.n(Se);const f=ne=>{let{onChange:ie,name:se,itemSchema:ce,values:Se,value:ke,labelPosition:xe,labelWidth:De,label:Ie,tooltip:Re,isDisabled:ze,isAdvanced:$e}=ne;const Je=(0,ge.getOptions)(ce,Se),it=(0,me.X)(ke)||ze,ot=(0,G.useCallback)((G,Z)=>{let{value:ne}=Z;return ie(G,se,ne)},[ie,se]);return Z().createElement(Me(),{label:Ie,labelPosition:xe,labelWidth:De,tooltip:Re,isAdvanced:$e},Z().createElement(fe(),{"data-test":se,onChange:ot,value:ke,disabled:it,style:Ce.editorStyle},Je.map(G=>Z().createElement(fe().Option,{key:G.value,value:G.value,label:G.label||G.value,icon:G.icon?Z().createElement(G.icon,null):null}))))};f.propTypes={onChange:ie().func.isRequired,name:ie().string.isRequired,itemSchema:ie().object,values:ie().arrayOf(ie().shape({label:ie().string,value:ie().oneOfType([ie().string,ie().number]).isRequired})),value:ie().oneOfType([ie().string,ie().number]),label:ie().string.isRequired,labelPosition:ie().oneOf(["left","top"]),labelWidth:ie().number,tooltip:ie().string,isDisabled:ie().bool,isAdvanced:ie().bool},f.defaultProps={labelPosition:"top",isDisabled:!1};const ke=f})(),G.exports=se})()},4129:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=233)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},105:function(G,Z){G.exports=ne(785)},106:function(G,Z){G.exports=ne(272)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(530)},13:function(G,Z){G.exports=ne(2881)},15:function(G,Z){G.exports=ne(65)},17:function(G,Z){G.exports=ne(762)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},2:function(G,Z){G.exports=ne(0)},22:function(G,Z){G.exports=ne(1160)},233:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return $e})),ne.d(Z,"Divider",(function(){return Se.a})),ne.d(Z,"Heading",(function(){return Se.b})),ne.d(Z,"Option",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(4),Se=ne(62),Me=ne(30);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Select_defineProperties(G,Z){for(var ne=0;ne svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},30:function(G,Z,ne){"use strict";var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(13);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;neZ.value?(fece)&&(ne=G):ce>fe&&(ne=G):ne=G}return!1}));return 0===ce.length&&ne?[ne]:ce}},61:function(G,Z){G.exports=ne(198)},62:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return wt.Divider})),ne.d(Z,"b",(function(){return wt.Heading})),ne.d(Z,"d",(function(){return isOption}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(67),ge=ne.n(me),Ce=ne(55),Se=ne.n(Ce),Me=ne(105),ke=ne.n(Me),xe=ne(11),De=ne.n(xe),Ie=ne(15),Re=ne.n(Ie),ze=ne(42),$e=ne.n(ze),Je=ne(9),it=ne.n(Je),ot=ne(40),at=ne.n(ot),st=ne(5),ct=ne.n(st),ut=ne(44),dt=ne.n(ut),ht=ne(106),ft=ne.n(ht),_t=ne(61),yt=ne.n(_t),vt=ne(8),wt=ne(13),Ct=ne(22),St=ne.n(Ct),Mt=ne(7),kt=ne(35),xt=ne(37),Lt=ne.n(xt),Tt=ne(47),At=ne.n(Tt),Dt=ne(32),Et=ne.n(Dt),jt=ne(4),It=ne(56),Nt=ne.n(It),Rt=ne(57),zt=ne.n(Rt),qt=ne(0),Wt=function CaretSmallDownIcon(){return Object(qt.useSplunkTheme)().isEnterprise?se.a.createElement(zt.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(Nt.a,null)},Bt=ne(54),Ft=ne.n(Bt),Ht=ne(49),$t=ne.n(Ht),Vt=function Search(){var G=Object(qt.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact,ie=Object(jt._)("Search"),ce=ne?"20px":"24px";return Z?se.a.createElement(Ft.a,{role:"presentation",size:"16px",screenReaderText:ie,hideDefaultTooltip:!0}):se.a.createElement($t.a,{role:"presentation","aria-label":ie,width:ce,height:ce})},Yt=ne(30),Ut=ne(3),Kt=ne.n(Ut),Gt=ne(25),Zt=Kt()(Gt.g).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllLabel",componentId:"y6bn08-0"})(["font-weight:",";"],qt.variables.fontWeightBold),Jt=Kt()(Yt.a).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllOption",componentId:"y6bn08-1"})(["padding-inline-start:",";box-shadow:none;"],Object(qt.pick)({prisma:"42px;",enterprise:"32px;"})),Qt={active:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),id:fe.a.string,onClick:fe.a.func,selectAllLabel:fe.a.string,totalCount:fe.a.number,changedToggle:fe.a.bool,selected:fe.a.oneOf([!1,!0,"some"])},on=se.a.forwardRef((function(G,Z){var ne=G.active,ie=G.id,ce=G.onClick,fe=G.selectAllLabel,me=G.totalCount,ge=G.changedToggle,Ce=G.selected,Se=ge?" (".concat(null==me?void 0:me.toString(),")"):"";return se.a.createElement(Jt,{label:fe,value:"selectAll",key:"selectAll",onClick:ce,"data-test":"select-all","aria-keyshortcuts":"Control+A",id:ie,active:ne,ref:Z,tabIndex:-1},se.a.createElement(Gt.j,{interactive:!1,selected:"some"===Ce?"some":Ce,key:"main-checkbox",value:"main-checkbox",appearance:"checkbox","aria-label":!Ce&&Object(jt._)("No options selected")||"some"===Ce&&Object(jt._)("Some options selected")||Object(jt._)("All options selected"),"data-test":"select-all-switch",selectedLabel:!0===Ce?Object(jt._)("All options selected"):Object(jt._)("Option selected"),unselectedLabel:!0===Ce?Object(jt._)("No options selected"):Object(jt._)("Option unselected"),someSelectedLabel:Object(jt._)("Some options selected")}),se.a.createElement(Gt.d,{"data-test":"description"},"".concat(Se," Ctrl-a")),se.a.createElement(Gt.b,null,se.a.createElement(Gt.k,{$truncate:!1},se.a.createElement(Zt,{$truncate:!1},fe))))}));on.propTypes=Qt;var sn=on,cn=ne(17),dn=ne.n(cn),mn=Kt()(dn.a).withConfig({displayName:"SelectBaseStyles__StyledButton",componentId:"sc-16cj7sk-0"})(["&[data-inline]{width:",";}",""],(function(G){return G.$multiple?"400px":"auto"}),(function(G){return!G.$multiple&&"flex-grow: 0;"})),_n=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkIcon",componentId:"sc-16cj7sk-1"})(["padding-right:2px;"]),gn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkCaret",componentId:"sc-16cj7sk-2"})(["padding-left:2px;"]),bn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledFilter",componentId:"sc-16cj7sk-3"})(["padding:",";min-width:160px;"],Object(qt.pick)({enterprise:"8px",prisma:"10px 16px"})),yn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledSearchIconWrapper",componentId:"sc-16cj7sk-4"})(["color:",";pointer-events:none;padding:",";"],Object(qt.pick)({enterprise:{light:qt.variables.gray60,dark:qt.variables.white},prisma:qt.variables.contentColorMuted}),Object(qt.pick)({comfortable:"0 8px",compact:"0 6px"})),vn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledCount",componentId:"sc-16cj7sk-5"})(["padding-right:",";"],Object(qt.pick)({enterprise:qt.variables.spacingQuarter,prisma:qt.variables.spacingXSmall})),wn=Kt()(Lt.a).withConfig({displayName:"SelectBaseStyles__StyledControlsLink",componentId:"sc-16cj7sk-6"})(["margin-right:20px;",";"],(function(G){return G.$disabled&&Object(Ut.css)(["color:",";"],qt.variables.contentColorDisabled)})),Cn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledToggleAllControls",componentId:"sc-16cj7sk-7"})(["padding:",";",""],Object(qt.pick)({enterprise:"5px 8px",prisma:"10px 16px"}),Object(qt.pickVariant)("$placement",{above:{enterprise:Object(Ut.css)(["border-top:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-top:1px solid ",";"],qt.variables.neutral200)},below:{enterprise:Object(Ut.css)(["border-bottom:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-bottom:1px solid ",";"],qt.variables.neutral200)}})),On=ne(59),Mn=ne(18);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&(ce.index=ne.matchCharacter.index+1,se=Object(On.a)(ne.currentMatchOptions,ce));else{if(" "===ie)return void ne.resetMatches();se=Object(On.a)(ne.availableMatchOptions,ce)}if(se.length){var fe=0;if(0===ce.index&&se.length>1){var me=se.indexOf(ne.availableMatchOptions[Z]);me>=0&&(fe=me===se.length-1?0:me+1)}var ge,Ce=se[fe],Se=ne.optionRefsByKey[itemKeyFromValueLabel(Ce.value,Ce.label)];if(null!=Se)null===(ge=Se.focus)||void 0===ge||ge.call(Se)}ne.currentMatchOptions=se,ne.matchCharacter=ce,ne.matchTimeout&&clearTimeout(ne.matchTimeout),ne.matchTimeout=setTimeout(ne.resetMatches,500),G.preventDefault(),G.stopPropagation()}})),_defineProperty(_assertThisInitialized(ne),"handleTextChange",(function(G,Z){var ie,se,ce=Z.value;ne.setState({filterKeyword:ce,open:!0,activeIndex:0}),null===(ie=(se=ne.props).onFilterChange)||void 0===ie||ie.call(se,G,{keyword:ce})})),_defineProperty(_assertThisInitialized(ne),"handleTextFocus",(function(){ne.setState({textHasFocus:!0})})),_defineProperty(_assertThisInitialized(ne),"handleTextBlur",(function(){ne.setState({textHasFocus:!1})})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G){var Z={open:!0,topValues:ne.getTopValues()};ne.props.multiple&&(Z.filterKeyword="");var ie=ne.state.filterKeyword;ne.setState(Z,(function(){var Z,se,ce,fe,me;(null===(Z=(se=ne.props).onOpen)||void 0===Z||Z.call(se),ne.firstSelectedEnabledOption&&!ne.hasFilter())?ne.firstSelectedEnabledOption.focus():ne.setState({activeIndex:null!==(ce=ne.firstSelectedOptionIndex)&&void 0!==ce?ce:0});ie!==ne.state.filterKeyword&&(null===(fe=(me=ne.props).onFilterChange)||void 0===fe||fe.call(me,G,{keyword:ne.state.filterKeyword}))}))})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(){ne.setState({open:!1,activeIndex:0},(function(){var G,Z;ne.previousActiveIndex=null,null===(G=(Z=ne.props).onClose)||void 0===G||G.call(Z)}))})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottom",(function(G){var Z,ie;ne.state.open&&!ne.props.isLoadingOptions&&(null===(Z=(ie=ne.props).onScrollBottom)||void 0===Z||Z.call(ie,G))})),_defineProperty(_assertThisInitialized(ne),"handleActiveOptionMount",(function(G){ne.previousActiveIndex!==ne.state.activeIndex&&(null==G||G.scrollIntoViewIfNeeded())})),_defineProperty(_assertThisInitialized(ne),"handleOptionMount",(function(G,Z,ie){ie&&(ne.firstSelectedEnabledOption=G),null==G?delete ne.optionRefsByKey[Z]:ne.optionRefsByKey[Z]=G})),_defineProperty(_assertThisInitialized(ne),"createToggle",(function(){var G,Z,ce,fe=ne.props,me=fe.toggle,ge=fe.appearance,Ce=fe.children,Me=fe.describedBy,ke=fe.disabled,xe=fe.elementRef,De=fe.error,Ie=fe.inline,Re=fe.labelledBy,ze=fe.labelText,$e=fe.multiple,Je=fe.placeholder,ot=fe.prefixLabel,at=fe.required,st=fe.suffixLabel,ut=null!==(G=ne.getCurrentValues())&&void 0!==G?G:[],ht=ie.Children.toArray(Ce);(ce=ut.reduce((function(G,ne,ie,se){var ce=Se()(ht,(function(G){return isOption(G)&&G.props.value===ne}));return ce?(G.push(ce.props.children||ce.props.label),$e||1!==ut.length||(Z=ce.props.icon)):$e&&G.push(ne),ie0&&(ce=ne.wrapLabel({prefixLabel:ot,label:ce,suffixLabel:st})),(0===ce.length||!$e&&ce.every((function(G){return""===G})))&&(ce=Tn(Je));var ft=ce;ce.length>1&&(ft=ne.wrapLabel({prefixLabel:ot,label:["".concat(ut.length," items selected")],suffixLabel:st}));var _t=_objectSpread({"aria-describedby":Me,"aria-label":"".concat(ze?"".concat(ze,", "):"").concat(ft),"aria-labelledby":ze?void 0:Re,"aria-multiselectable":$e||void 0,"aria-required":at,"data-select-appearance":ge,"data-test":$e?"multiselect":"select",disabled:ke,elementRef:xe,error:De},ct()(ne.props,it()(SelectBase.propTypes)));if($e)_t["data-test-values"]=JSON.stringify(ut);else{var yt=_slicedToArray(ut,1)[0];_t["data-test-value"]=yt}return me?Object(ie.cloneElement)(me,_t):"link"===ge?se.a.createElement(Lt.a,_extends({},_t,{"data-select-appearance":"link"}),!!Z&&se.a.createElement(_n,null,Z),ce||Je,se.a.createElement(gn,null,se.a.createElement(Wt,null))):se.a.createElement(mn,_extends({},_t,{$multiple:$e,appearance:ge,label:ce,error:De,icon:Z,inline:Ie,isMenu:!0,"aria-haspopup":"listbox","aria-owns":ne.menuId,onClick:ne.props.onClick},dt()(ne.props,SelectBase.invalidLinkAppearanceProps)),!!ut.length&&$e&&se.a.createElement(vn,{"data-role":"count"},"(",ut.length,")"))})),_defineProperty(_assertThisInitialized(ne),"createChildren",(function(){var G,Z=ne.state,ce=Z.filterKeyword,fe=Z.textHasFocus,me=Z.topValues,ge=ne.props,Ce=ge.allowKeyMatching,Me=ge.allowNewValues,xe=ge.filter,De=ge.multiple,Ie=ge.selectAllAppearance,Re=ge.showSelectedValuesFirst,ze=ge.isLoadingOptions,$e=ge.onScrollBottom,Je=ne.getCurrentValues();ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.activeValue=void 0,ne.availableMatchOptions=[];var it,ot=0,at=!1,st="immediately"===Re?ne.getTopValues():me,ct=ie.Children.toArray(ne.props.children).reduce((function(Z,ce,fe){if(!isOption(ce))return Z.push(ce),Z;ce.props.value===ne.state.filterKeyword&&(G=!0);var me=Je&&Je.indexOf(ce.props.value)>=0,ge=!!me&&!ce.props.disabled&&!it,Se=Ce&&!De&&!xe&&!ze&&!$e,Me=itemKeyFromValueLabel(ce.props.value,ce.props.label),ke=-1;!Se||ce.props.disabled||ce.props.hidden||(ne.availableMatchOptions.push({label:ce.props.label,value:ce.props.value}),ke=ne.availableMatchOptions.length-1);var Ie=Object(ie.cloneElement)(ce,{key:ce.key||fe,onClick:ne.handleMenuOptionClick,onKeyDown:Se?function(G){return ne.handleMenuOptionKeyDown(G,ke)}:void 0,selected:me,multiple:De,role:"option",ref:function ref(G){return ne.handleOptionMount(G,Me,ge)}});return ge&&(it=!0),st&&st.indexOf(ce.props.value)>=0?(0===ot&&(Z.splice(ot,0,se.a.createElement(wt.Divider,{key:"topDivider"})),at=!0),Z.splice(ot,0,Ie),ot+=1):Z.push(Ie),Z}),[]);De&&ke()(Je,(function(Z){if(!Se()(ct,(function(G){return isOption(G)&&G.props&&G.props.value===Z}))){Z===ne.state.filterKeyword&&(G=!0);var ie=st&&st.indexOf(Z)>=0,ce=st.length;0===ot&&(ct.splice(0,0,se.a.createElement(wt.Divider,{key:"topDivider"})),ot+=1,at=!0),ct.splice(ie?0:ce+1,0,se.a.createElement(Yt.a,{label:String(Z),value:Z,key:"missing-value-".concat(Z),onClick:ne.handleMenuOptionClick,multiple:De,selected:!0})),ie&&(ot+=1)}}));var ut="controlled"===xe,dt=Object(kt.stringToKeywords)(ce);if(ct=ut?ct:ct.filter((function(G){return!isOption(G)||Object(kt.testPhrase)(G.props.label,dt)})).map((function(G){if(!isOption(G))return G;var Z=dt&&Object(kt.keywordLocations)(G.props.label,dt);return Object(ie.cloneElement)(G,{matchRanges:Z||void 0})})),Me&&!G&&ce){var ht=at?ot+1:ot;ct.splice(ht,0,se.a.createElement(Yt.a,{label:"".concat(ce," (new value)"),value:ce,key:"newValue",multiple:De,onClick:ne.handleMenuOptionClick}))}var ft,_t,yt="checkbox"===Ie&&De&&ct.length>1?1:0,vt=!0;(ct=ct.reduce((function(G,Z){if(!isOption(Z))return G.push(Z),G;if(Z.props&&Z.props.hidden)return G;Z.props.selected&&!Z.props.disabled&&null==ne.firstSelectedOptionIndex&&(ne.firstSelectedOptionIndex=ne.availableOptionCount);var se=yt===ne.state.activeIndex;if(yt+=1,ne.availableOptionCount+=1,ne.selectedOptionCount+=Z.props.selected?1:0,"newValue"===Z.key||Z.props.disabled||Z.props.selected||(vt=!1),!se||!fe)return G.push(Z),G;Z.props.disabled||(ne.activeValue=Z.props.value);var ce=Object(ie.cloneElement)(Z,{active:se,id:ne.activeItemId,ref:ne.handleActiveOptionMount});return G.push(ce),G}),[]),ne.optionSelection=(0===ne.selectedOptionCount?"none":vt&&"all")||"some","checkbox"===Ie&&De&&ne.availableOptionCount>0)&&(_t="all"===ne.optionSelection?""===ce?Object(jt._)("Clear all"):Object(jt._)("Clear all matches"):""===ce?Object(jt._)("Select all"):Object(jt._)("Select all matches"),0===ne.state.activeIndex&&fe&&(ne.activeValue="selectAll"),ct.unshift(se.a.createElement(sn,{key:"selectAllOption",selected:"all"===ne.optionSelection||"none"!==ne.optionSelection&&"some",selectAllLabel:_t,totalCount:null===(ft=ne.getCurrentValues())||void 0===ft?void 0:ft.length,changedToggle:!!ne.props.toggle,onClick:"all"===ne.optionSelection?ne.handleClearAll:ne.handleSelectAll,id:0===ne.state.activeIndex?ne.activeItemId:void 0,active:0===ne.state.activeIndex,ref:ne.handleActiveOptionMount,tabIndex:-1}),se.a.createElement(wt.Divider,{key:"selectAllDivider"})));return ne.displayedValues=ct.reduce((function(G,Z){return isOption(Z)&&G.push(Z.props.value),G}),[]),ct})),_defineProperty(_assertThisInitialized(ne),"wrapLabel",(function(G){var Z=G.prefixLabel,ne=G.label,ie=G.suffixLabel,se=ne;return Z&&(se=["".concat(Z,": ")].concat(se)),ie&&(se=ge()(se).concat(" ".concat(ie))),se})),_defineProperty(_assertThisInitialized(ne),"handleDropdownMount",(function(G){ne.dropdown=G})),ne.state={activeIndex:0,filterKeyword:"",open:!1,textHasFocus:!1,topValues:[],values:G.defaultValues||[]},ne.controlledExternally=De()(G,"values"),ne.displayedValues=[],ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.matchCharacter=null,ne.matchTimeout=null,ne.currentMatchOptions=[],ne.availableMatchOptions=[],ne.optionRefsByKey={},ne.optionSelection="none",SelectBase.validateAppearance(G),ne.menuId=Object(vt.createDOMID)("menu"),ne.activeItemId=Object(vt.createDOMID)("active-item"),ne}return _createClass(SelectBase,null,[{key:"validateAppearance",value:function validateAppearance(G){0}}]),_createClass(SelectBase,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){SelectBase.validateAppearance(this.props),this.previousActiveIndex=Z.activeIndex}},{key:"getCurrentValues",value:function getCurrentValues(){var G=this.isControlled()?this.props.values:this.state.values;return this.props.multiple||null==G?G:G.slice(0,1)}},{key:"getTopValues",value:function getTopValues(){var G;return this.props.multiple&&"never"!==this.props.showSelectedValuesFirst&&null!==(G=this.getCurrentValues())&&void 0!==G?G:[]}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"hasFilter",value:function hasFilter(){return!!this.props.filter}},{key:"toggleValue",value:function toggleValue(G,Z){var ne,ie,se,ce,fe=null!==(ne=this.getCurrentValues())&&void 0!==ne?ne:[],me=fe.indexOf(Z),ge=this.props,Ce=ge.name,Se=ge.multiple;ce=Se?me>=0?[].concat(_toConsumableArray(fe.slice(0,me)),_toConsumableArray(fe.slice(me+1))):fe.concat([Z]):[Z];var Me=!this.isControlled();Me&&this.setState({values:ce}),Se?Me&&this.setState({open:!0}):(this.handleRequestClose({reason:"contentClick"}),this.focus()),null===(ie=(se=this.props).onChange)||void 0===ie||ie.call(se,G,{values:ce,name:Ce,reason:"valueToggle"})}},{key:"focus",value:function focus(){var G;null===(G=this.dropdown)||void 0===G||G.focus()}},{key:"renderControls",value:function renderControls(G){var Z=G.hasChildren,ne=G.placement,ie=this.state.filterKeyword,ce=this.props,fe=ce.inputId,me=ce.inputRef,ge=ce.multiple,Ce=ce.selectAllAppearance,Se=Object(jt._)("Select all options".concat("all"===this.optionSelection?" disabled":"")),Me=Object(jt._)("Clear all options".concat("none"===this.optionSelection?" disabled":"")),ke=se.a.createElement(Cn,{$placement:ne,key:"selectAll"},se.a.createElement(wn,{$disabled:"all"===this.optionSelection,"aria-label":Se,onClick:this.handleSelectAll,"data-test":"select-all"},ie?Object(jt._)("Select All Matches"):Object(jt._)("Select All")),se.a.createElement(wn,{$disabled:"none"===this.optionSelection,"aria-label":Me,onClick:this.handleClearAll,"data-test":"clear-all"},ie?Object(jt._)("Clear All Matches"):Object(jt._)("Clear All")));return this.hasFilter()&&se.a.createElement("div",{key:"controls"},se.a.createElement(bn,{key:"filter","data-test":"filter"},se.a.createElement(Et.a,{value:ie,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,onChange:this.handleTextChange,onKeyDown:this.handleTextKeyDown,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur,placeholder:Object(jt._)("filter"),role:"combobox","aria-expanded":"true","aria-label":Object(jt._)("Filter"),"aria-activedescendant":this.activeItemId,inputRef:me,inputId:fe,canClear:!0,startAdornment:se.a.createElement(yn,null,se.a.createElement(Vt,null))})),ge&&Z&&"buttongroup"===Ce&&ke)}},{key:"render",value:function render(){var G,Z=this,ne=this.props,ce=ne.children,fe=ne.defaultPlacement,me=ne.inputId,ge=ne.multiple,Ce=ne.repositionMode,Me=this.hasFilter(),ke=null!==(G=this.getCurrentValues())&&void 0!==G?G:[],xe=ie.Children.toArray(ce),De=ke.some((function(G){var Z=Se()(xe,(function(Z){return isOption(Z)&&Z.props.value===G}));return Z&&!Z.props.disabled})),Ie=this.createChildren(),Re=this.createToggle(),ze=function createMenu(G){var ne=G.anchorWidth,ie=G.maxHeight,ce=G.placement,fe=Dn({anchorWidth:ne,isMultiple:Z.props.multiple,menuStyle:Z.props.menuStyle}),me=ke.length>0&&!De&&!Z.hasFilter()?0:void 0;return se.a.createElement(At.a,_extends({"aria-multiselectable":ge||void 0,childrenStart:Z.renderControls({placement:ce,hasChildren:!!Ie.length}),controlledExternally:Z.hasFilter(),placement:null!=ce?ce:void 0,maxHeight:null!=ie?ie:void 0,onScrollBottom:Z.props.onScrollBottom?Z.handleScrollBottom:void 0,"data-test":"results-menu",isLoading:Z.props.isLoadingOptions,id:Z.menuId},dt()(Z.props,"noOptionsMessage","footerMessage","animateLoading","loadingMessage","onScroll"),{style:fe,tabIndex:me}),Ie)};return se.a.createElement(St.a,{closeReasons:En,inputId:me,toggle:Re,onRequestOpen:this.handleRequestOpen,onRequestClose:this.handleRequestClose,open:this.state.open,openWithArrowKeys:!0,repositionMode:Ce,defaultPlacement:Me?fe:void 0,canCoverAnchor:Object(Mn.a)().innerHeight<500,ref:this.handleDropdownMount,retainFocus:!1,takeFocus:0===ke.length||ke.length>0&&!De||!!Me},ze)}}]),SelectBase}(ie.Component);_defineProperty(jn,"propTypes",kn),_defineProperty(jn,"defaultProps",xn),_defineProperty(jn,"Option",Yt.a),_defineProperty(jn,"Divider",wt.Divider),_defineProperty(jn,"Heading",wt.Heading),_defineProperty(jn,"invalidLinkAppearanceProps",["append","error","prepend"]);Z.c=jn},67:function(G,Z){G.exports=ne(594)},7:function(G,Z){G.exports=ne(763)},8:function(G,Z){G.exports=ne(979)},9:function(G,Z){G.exports=ne(62)}})},4130:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(643)},4:function(G,Z){G.exports=ne(764)},50:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ChevronRight}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),level:fe.a.oneOf([1,2,3,4,"s","ss",5,6]),variant:fe.a.oneOf(["title1","title2","title3","title4","title5","title6","title7"])},ke={1:"h1",2:"h2",3:"h3",4:"h4",s:"h4",ss:"h5",5:"h5",6:"h6"},xe={h1:"title1",h2:"title2",h3:"title3",h4:"title4",h5:"title5",h6:"title6"};function Heading(G){var Z=G.children,ne=G.elementRef,ie=G.level,ce=void 0===ie?2:ie,fe=G.variant,me=_objectWithoutProperties(G,["children","elementRef","level","variant"]),ge=ke[ce],Ce=fe||xe[ge];return se.a.createElement(Se,_extends({$isSection:function isSection(G){return"s"===G.toString().charAt(0)}(ce),"data-test":"heading",ref:ne,as:ge,$variant:Ce},me),Z)}Heading.propTypes=Me;var De=Heading},3:function(G,Z){G.exports=ne(3)}})},4133:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.stringToKeywords=stringToKeywords,Z.testPhrase=testPhrase,Z.keywordLocationsAll=keywordLocationsAll,Z.keywordLocations=function keywordLocations(G,Z){var ne=keywordLocationsAll(G,Z);if(!ne||ne.length!==Z.length)return!1;var ie=ne[0],se=ie.start,ce=ie.end,fe=[];function pushLocation(){fe.push({start:se,end:ce})}return ne.slice(1).forEach((function(G){G.start>ce?(pushLocation(),se=G.start,ce=G.end):G.end>ce&&(ce=G.end)})),pushLocation(),fe},Z.filterByKeywords=function filterByKeywords(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(G){return G},ie=stringToKeywords(Z);return G.filter((function(G){return testPhrase(ne(G),ie)}))};var ie=_interopRequireDefault(ne(65)),se=_interopRequireDefault(ne(78));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function stringToKeywords(G){return(0,se.default)(G)?(G.match(/(?:[^\s"]+|"[^"]*")+/g)||[]).map((function(G){return G.replace(/^"(.*)"$/,"$1").toLowerCase()})):[]}function testPhrase(G,Z){if(!(0,se.default)(G))return!1;var ne=G.toLowerCase();return Z.every((function(G){return(0,ie.default)(ne,G)}))}function keywordLocationsAll(G,Z){if(!(0,se.default)(G)||!Z||!Z.length)return!1;var ne=G.toLowerCase();return Z.reduce((function(G,Z){var ie=ne.indexOf(Z);return ie>=0&&G.push({keyword:Z,start:ie,end:ie+Z.length}),G}),[]).sort((function(G,Z){return G.start!==Z.start?G.start>Z.start?1:-1:G.end>Z.end?1:-1}))}},4134:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=230)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},13:function(G,Z){G.exports=ne(2881)},153:function(G,Z){G.exports=ne(7437)},154:function(G,Z){G.exports=ne(7438)},2:function(G,Z){G.exports=ne(0)},230:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(40),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(4),De=ne(153),Ie=ne(13),Re=ne.n(Ie),ze=ne(3),$e=ne.n(ze),Je=ne(154),it=ne.n(Je),ot=ne(0),at=$e.a.div.withConfig({displayName:"ResultsMenuStyles__Styled",componentId:"avbhl8-0"})(["",";flex-direction:column;max-height:calc(100vh - 20px);",""],ot.mixins.reset("flex"),Object(ot.pick)({prisma:Object(ze.css)(["border-radius:",";background-color:",";"],ot.variables.borderRadius,ot.variables.backgroundColorPopup)})),st=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledFooter",componentId:"avbhl8-1"})(["padding:",";color:",";",""],Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray}),(function(G){return"above"===G.$placement?Object(ot.pick)({prisma:Object(ze.css)(["border-bottom:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-bottom:",";"],ot.variables.border)}):Object(ot.pick)({prisma:Object(ze.css)(["border-top:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-top:",";"],ot.variables.border)})})),ct=$e.a.li.withConfig({displayName:"ResultsMenuStyles__StyledLoading",componentId:"avbhl8-2"})(["",";padding:",";gap:",";"],ot.mixins.reset("flex"),Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),ot.variables.spacingXSmall),ut=$e()(it.a).withConfig({displayName:"ResultsMenuStyles__StyledWait",componentId:"avbhl8-3"})(["flex:0 0 auto;"]),dt=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledLoadingMessage",componentId:"avbhl8-4"})(["flex:1 0 0;color:",";"],Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray})),ht=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=se&&ne.handleScrollBottom(G)}null===(Z=(ie=ne.props).onScroll)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleWheelMenu",(function(G){G.stopPropagation(),document.documentElement.scrollTop=ne.state.windowTop})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottomOnFullMenu",(function(){var G=ie.Children.count(ne.props.children),Z=ne.state,se=Z.childrenCount,ce=Z.menuMaxHeight;ne.checkFullHeight()&&ne.handleScrollBottom(null),ce&&null!=G&&G!==se&&ne.setState({numberOfItemsLoaded:G-(null!=se?se:0),scrollBottomTriggered:!1}),G!==se&&ne.setState({childrenCount:G})})),ne.state={containerEl:null,menuEl:null,menuMaxHeight:void 0,numberOfItemsLoaded:0,scrollBottomTriggered:!1,windowTop:0},ne.scrollBottomOffset=400,ne.itemMinHeight=28,ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(ResultsMenu,[{key:"componentDidUpdate",value:function componentDidUpdate(){var G=this.state,Z=G.containerEl,ne=G.menuEl,ie=G.menuMaxHeight;if(De.isIE11&&Z&&ne){if(this.props.maxHeight){var se=Z.scrollHeight-ne.clientHeight,ce=this.props.maxHeight-se;(void 0===ie||Math.abs(ie-ce)>1)&&this.setState({menuMaxHeight:ce})}this.props&&this.props.onScrollBottom&&this.props.children&&this.handleScrollBottomOnFullMenu()}}},{key:"handleScrollBottom",value:function handleScrollBottom(G){var Z,ne;this.state.scrollBottomTriggered||(this.setState({scrollBottomTriggered:!0}),null===(Z=(ne=this.props).onScrollBottom)||void 0===Z||Z.call(ne,G))}},{key:"checkFullHeight",value:function checkFullHeight(){var G=this.state.menuEl;return G&&G.scrollHeight===G.offsetHeight}},{key:"renderFooterMessage",value:function renderFooterMessage(){return this.props.footerMessage&&!!ie.Children.toArray(this.props.children).length&&se.a.createElement(st,{$placement:this.props.placement,"data-test":"footer-message",key:"footer"},this.props.footerMessage)}},{key:"render",value:function render(){var G=this.props,Z=G.animateLoading,ne=G.children,ce=G.controlledExternally,fe=G.childrenStart,me=G.isLoading,Ce=G.loadingMessage,Se=G.noOptionsMessage,Me=G.onScrollBottom,xe=G.placement,De=G.style,ze=G.tabIndex,$e=ke()(this.props,ge()(ResultsMenu.propTypes)),Je=ie.Children.toArray(ne).filter(ie.isValidElement).some((function(G){var Z=G.type;return!(Z===Ie.Divider&&Z.filterFirst||(Z===Ie.Divider||Z===Ie.Heading)&&(Z.filterLast||Z.filterConsecutive))})),it=this.checkFullHeight(),ot=vt(this.state.menuMaxHeight),st=wt(this.state.scrollBottomTriggered&&this.state.numberOfItemsLoaded*this.itemMinHeight||0);return se.a.createElement(at,_extends({key:"wrapper",style:De,ref:this.handleMount,onWheel:Me?this.handleWheelMenu:void 0,onMouseEnter:Me?this.handleMouseEnter:void 0,onMouseLeave:Me?this.handleMouseLeave:void 0},ke()($e,"tabIndex")),"above"!==xe&&fe,"above"===xe&&this.renderFooterMessage(),se.a.createElement(Ie.MenuContext.Provider,{value:yt},se.a.createElement(Re.a,{key:"menu",style:ot,controlledExternally:ce,elementRef:this.handleMenuMount,onScroll:this.handleScroll,stopScrollPropagation:!0,tabIndex:ze},!Je&&Se&&!me&&se.a.createElement(Re.a.Item,{"data-test":"no-results-message",disabled:!0},Se),ne,Me&&!it&&se.a.createElement("div",{"data-test":"results-menu-bottom-spacer",style:st}),me&&se.a.createElement(ct,null,Z&&se.a.createElement(ut,null),se.a.createElement(dt,null,Ce)))),"above"!==xe&&this.renderFooterMessage(),"above"===xe&&fe)}}]),ResultsMenu}(ie.Component);_defineProperty(Ct,"propTypes",ft),_defineProperty(Ct,"defaultProps",_t);var St=Ct},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(371)},40:function(G,Z){G.exports=ne(85)},5:function(G,Z){G.exports=ne(41)},9:function(G,Z){G.exports=ne(62)}})},4135:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ (()=>{"use strict";var Z={4008:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.AdvancedConfigButton=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=fe(ne(6643)),ke=fe(ne(8897)),xe=fe(ne(6379)),De=fe(ne(7020)),Ie=fe(ne(9250)),Re=(0,Ce.default)(Ie.default)` // No margins margin: 0; width: 100%; // remove top margin of the first component in control group &:first-child { margin-top: 0; } // remove bottom margin of the last component in control group &:last-child { margin-bottom: 0; } `,ze=(0,Ce.default)(xe.default)` display: flex; > span { display: flex; width: 35px; } `;Z.AdvancedConfigButton=({label:G="",onClick:Z})=>{const{isPrisma:ne}=(0,ke.default)();return me.default.createElement(ze,{"data-test":G+"-advanced-config-button-tooltip",content:(0,Se._)("Advanced configurations")},me.default.createElement(De.default,{"data-test":G+"-advanced-config-button",icon:me.default.createElement(Me.default,{"data-test":G+"-advanced-config-button-icon"}),appearance:ne?"secondary":"pill",onClick:Z}))};const g=({"data-test":G,children:ne,isAdvanced:ie,label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,style:Me,error:ke,onClick:xe,onAdvancedConfigButtonClick:De})=>me.default.createElement(Re,{"data-test":null!=G?G:"control-group",label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,error:ke,style:Me,onClick:xe},ie?me.Children.toArray(ne).filter(Boolean).map(G=>(0,me.cloneElement)(G,{style:{flex:1}})):ne,ie?me.default.createElement(Z.AdvancedConfigButton,{label:se,onClick:De}):null);g.propTypes={style:ge.object,isAdvanced:ge.bool,onClick:ge.func,onAdvancedConfigButtonClick:ge.func},g.defaultProps={isAdvanced:!1},Z.default=g},6643:G=>{G.exports=ne(2016)},7020:G=>{G.exports=ne(762)},9250:G=>{G.exports=ne(1310)},2782:G=>{G.exports=ne(4136)},6379:G=>{G.exports=ne(1311)},8897:G=>{G.exports=ne(1159)},6649:G=>{G.exports=ne(2023)},23:G=>{G.exports=ne(2)},9497:G=>{G.exports=ne(0)},232:G=>{G.exports=ne(3)}},ie={};function l(G){var ne=ie[G];if(void 0!==ne)return ne.exports;var se=ie[G]={exports:{}};return Z[G].call(se.exports,se,se.exports,l),se.exports}l.n=G=>{var Z=G&&G.__esModule?()=>G.default:()=>G;return l.d(Z,{a:Z}),Z},l.d=(G,Z)=>{for(var ne in Z)l.o(Z,ne)&&!l.o(G,ne)&&Object.defineProperty(G,ne,{enumerable:!0,get:Z[ne]})},l.o=(G,Z)=>Object.prototype.hasOwnProperty.call(G,Z),l.r=G=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})};var se={};(()=>{l.r(se),l.d(se,{default:()=>Ce});var G=l(9497),Z=l.n(G),ne=l(23),ie=l.n(ne),ce=l(2782),fe=l.n(ce),me=l(4008),ge=l.n(me);const d=ne=>{let{onChange:ie,name:se,value:ce,labelPosition:me,labelWidth:Ce,label:Se,min:Me,max:ke,step:xe,placeholder:De,isDisabled:Ie,help:Re}=ne;const ze=(0,G.useCallback)((G,Z)=>{let{value:ne}=Z;(parseFloat(ne)||0===ne||De)&&ie(G,se,ne)},[ie,se,De]);return Z().createElement(ge(),{label:Se,labelPosition:me,labelWidth:Ce,help:Re},Z().createElement(fe(),{"data-test":se,placeholder:De,min:Me,max:ke,step:xe,onChange:ze,value:ce,disabled:Ie}))};d.propTypes={onChange:ie().func.isRequired,name:ie().string.isRequired,label:ie().string.isRequired,value:ie().number,labelPosition:ie().oneOf(["top","left"]),labelWidth:ie().number,min:ie().number,max:ie().number,step:ie().number,placeholder:ie().string,isDisabled:ie().bool,help:ie().string},d.defaultProps={value:null,labelPosition:"top",placeholder:"",isDisabled:!1};const Ce=d})(),G.exports=se})()},4136:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=205)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(530)},17:function(G,Z){G.exports=ne(762)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},205:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(19),Se=ne.n(Ce),Me=ne(23),ke=ne.n(Me),xe=ne(5),De=ne.n(xe),Ie=ne(0),Re=ne(7),ze=ne(4),$e=ne(34),Je=ne.n($e);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0)&&G.preventDefault(),Object(Re.isDecimal)(G.nativeEvent,{locale:ne.props.locale})&&(ne.props.roundTo<=0||ne.state.stringValue.indexOf(ne.props.locale)>=0)&&G.preventDefault()),"up"===Object(Re.keycode)(G.nativeEvent)?(ne.increment(G,ne.props.step),G.preventDefault()):"down"===Object(Re.keycode)(G.nativeEvent)&&(ne.increment(G,-ne.props.step),G.preventDefault()),null===(Z=(ie=ne.props).onKeyDown)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleKeyUp",(function(G){var Z,ie;"enter"===Object(Re.keycode)(G.nativeEvent)&&ne.updateString(),null===(Z=(ie=ne.props).onKeyUp)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleIncrement",(function(G){ne.increment(G,ne.props.step)})),_defineProperty(_assertThisInitialized(ne),"handleDecrement",(function(G){ne.increment(G,-ne.props.step)})),ne.controlledExternally=ge()(G,"value");var ie=ne.isControlled()?G.value:G.defaultValue;return ne.state={value:ne.isControlled()?void 0:ie,prevValueProp:ne.isControlled()?ie:void 0,stringValue:Number.numberToString(ie,G)},ge()(G,"useSyntheticPlaceholder")&&console.warn("The 'Number' prop 'useSyntheticPlaceholder' has been marked for deprecation."),Number.validatePrependAppend(ne.props.append,ne.props.prepend),ne}return _createClass(Number,null,[{key:"getDecimalSeparator",value:function getDecimalSeparator(G){return new Intl.NumberFormat(G.replace("_","-")).format(1.2).indexOf(",")>-1?",":"."}},{key:"validatePrependAppend",value:function validatePrependAppend(G,Z){0}},{key:"stringToNumber",value:function stringToNumber(G,Z){var ne=G;if(ke()(ne)&&""!==ne){ne="."===Number.getDecimalSeparator(Z.locale)?ne.replace(/^[^\d.-]/,""):ne.replace(/^[^\d,-]/,"").replace(",",".");var ie=Number.limitValue(parseFloat(ne),Z);return Se()(ie)?ie:void 0}}},{key:"numberToString",value:function numberToString(G,Z){return void 0!==G&&Se()(G)?"."===Number.getDecimalSeparator(Z.locale)?G.toString():G.toString().replace(".",","):""}},{key:"limitValue",value:function limitValue(G,Z){var ne=Z.min,ie=Z.max,se=Z.roundTo,ce=G;if(!Se()(G))return ce;void 0!==ne&&Se()(ne)&&(ce=Math.max(ne,ce)),void 0!==ie&&Se()(ie)&&(ce=Math.min(ie,ce));var fe=Math.pow(10,se);return Math.round(ce*fe)/fe}}]),_createClass(Number,[{key:"componentDidUpdate",value:function componentDidUpdate(G){Number.validatePrependAppend(this.props.append,this.props.prepend)}},{key:"getValue",value:function getValue(){return this.isControlled()?this.props.value:this.state.value}},{key:"setValueFromString",value:function setValueFromString(G,Z){var ne=this,ie=Number.stringToNumber(Z,this.props),se=this.props.name;this.setState({value:this.isControlled()?void 0:ie,stringValue:Z},(function(){var Z,ce;ne.getValue()===ie&&ne.isControlled()||(null===(Z=(ce=ne.props).onChange)||void 0===Z||Z.call(ce,G,{value:ie,name:se}))}))}},{key:"setValue",value:function setValue(G,Z){var ne=this,ie=this.props.name;this.setState({value:this.isControlled()?void 0:Z,stringValue:Number.numberToString(Z,this.props)},(function(){var se,ce;ne.getValue()===Z&&ne.isControlled()||(null===(se=(ce=ne.props).onChange)||void 0===se||se.call(ce,G,{value:Z,name:ie}))}))}},{key:"focus",value:function focus(G){this.text&&this.text.focus(G)}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"updateString",value:function updateString(){var G=this.getValue();this.setState({stringValue:Number.numberToString(G,this.props)})}},{key:"increment",value:function increment(G,Z){var ne,ie=Number.stringToNumber(this.state.stringValue,this.props);ne=void 0!==ie&&Se()(ie)?ie+Z:void 0!==this.props.defaultValue&&Se()(this.props.defaultValue)?this.props.defaultValue+Z:Z>0?this.props.max||this.props.step:this.props.min||0,this.setValue(G,Number.limitValue(ne,this.props))}},{key:"preventNegativeNumbers",value:function preventNegativeNumbers(){return void 0!==this.props.min&&Se()(this.props.min)&&this.props.min>=0}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.describedBy,ce=Z.disabled,fe=Z.error,me=Z.hideStepButtons,ge=Z.inline,Ce=Z.value,Me=void 0===Ce?this.state.value:Ce,ke=Z.max,xe=Z.min,Ie=Z.prepend,Re=Z.splunkTheme,$e=De()(this.props,["defaultValue","hideStepButtons","max","min","roundTo","spellCheck","step"]),Je=Re.isPrisma,it=Je?{}:{append:ne,prepend:!ne,error:fe,inline:!1},ot=void 0!==Me&&Se()(Me)&&void 0!==ke&&Se()(ke)&&Me>=ke,at=void 0!==Me&&Se()(Me)&&void 0!==xe&&Se()(xe)&&Me<=xe,st=se.a.createElement(SortedUp,{width:"6px",height:"4px",screenReaderText:Object(ze._)("Increment")}),ct=_objectSpread({"data-test":"increment",disabled:ce||ot,onClick:this.handleIncrement,tabIndex:-1},it),ut=Je?se.a.createElement(St,ct,st):se.a.createElement(vt,ct,st),dt=se.a.createElement(SortedUp,{width:"6px",height:"4px",screenReaderText:Object(ze._)("Decrement"),style:{transform:"rotateX(180deg)"}}),ht=_objectSpread({"data-test":"decrement",disabled:ce||at,onClick:this.handleDecrement,tabIndex:-1},it),yt=Je?se.a.createElement(Mt,ht,dt):se.a.createElement(wt,ht,dt),Ct=ne&&!Ie,kt=(!ce||Je)&&Ct&&!me&&se.a.createElement(_t,{$isAppend:Ct},ut,yt),xt=(!ce||Je)&&!Ct&&!me&&se.a.createElement(_t,{$isAppend:Ct},ut,yt);return se.a.createElement(ft,Number_extends({autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-test":"number",ref:function ref(Z){G.text=Z}},$e,{inline:ge,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,value:this.state.stringValue,"aria-describedby":ie,error:fe,"data-test-value":Me,startAdornment:kt,endAdornment:xt}))}}]),Number}(ie.Component);_defineProperty(xt,"propTypes",kt),_defineProperty(xt,"defaultProps",{append:!1,disabled:!1,error:!1,hideStepButtons:!1,inline:!1,locale:"en-US",placeholder:"",prepend:!1,roundTo:5,step:1}),_defineProperty(xt,"getDerivedStateFromProps",(function(G,Z){if(ge()(G,"value")&&G.value!==Z.prevValueProp){var ne=xt.stringToNumber(Z.stringValue,G);return G.value!==ne?{prevValueProp:G.value,stringValue:xt.numberToString(G.value,G)}:{prevValueProp:G.value}}return null}));var Lt=Object(Ie.withSplunkTheme)(xt);Lt.propTypes=xt.propTypes;var Tt=Lt},23:function(G,Z){G.exports=ne(78)},3:function(G,Z){G.exports=ne(3)},32:function(G,Z){G.exports=ne(1313)},34:function(G,Z){G.exports=ne(1623)},4:function(G,Z){G.exports=ne(371)},5:function(G,Z){G.exports=ne(41)},7:function(G,Z){G.exports=ne(763)}})},4137:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ (()=>{"use strict";var Z={1296:(G,Z,ie)=>{ie.r(Z),ie.d(Z,{default:()=>Vr,editorTypeToComponentMap:()=>$r});var se=ie(2649),ce=ie.n(se),fe=ie(9497),me=ie.n(fe),ge=ie(23),Ce=ie.n(ge),Se=ie(4015),Me=ie(2373),ke=ie.n(Me),xe=ie(2166),De=ie(4267),Ie=ie(5862),Re=ie(4008),ze=ie.n(Re);const h=G=>{let{onChange:Z,name:ne,itemSchema:ie,values:se,value:ce,labelPosition:ge,labelWidth:Ce,label:Se,tooltip:Me,isDisabled:Re,isAdvanced:$e}=G;const Je=(0,De.getOptions)(ie,se),it=(0,xe.X)(ce)||Re,ot=(0,fe.useCallback)((G,ie)=>{let{value:se}=ie;return Z(G,ne,se)},[Z,ne]);return me().createElement(ze(),{label:Se,labelPosition:ge,labelWidth:Ce,tooltip:Me,isAdvanced:$e},me().createElement(ke(),{"data-test":ne,onChange:ot,value:ce,disabled:it,style:Ie.editorStyle},Je.map(G=>me().createElement(ke().Option,{key:G.value,value:G.value,label:G.label||G.value,icon:G.icon?me().createElement(G.icon,null):null}))))};h.propTypes={onChange:Ce().func.isRequired,name:Ce().string.isRequired,itemSchema:Ce().object,values:Ce().arrayOf(Ce().shape({label:Ce().string,value:Ce().oneOfType([Ce().string,Ce().number]).isRequired})),value:Ce().oneOfType([Ce().string,Ce().number]),label:Ce().string.isRequired,labelPosition:Ce().oneOf(["left","top"]),labelWidth:Ce().number,tooltip:Ce().string,isDisabled:Ce().bool,isAdvanced:Ce().bool},h.defaultProps={labelPosition:"top",isDisabled:!1};const $e=h;var Je=ie(3263),it=ie(7035);var ot=ie(2782),at=ie.n(ot);const P=G=>{let{onChange:Z,name:ne,value:ie,labelPosition:se,labelWidth:ce,label:ge,min:Ce,max:Se,step:Me,placeholder:ke,isDisabled:xe,help:De}=G;const Ie=(0,fe.useCallback)((G,ie)=>{let{value:se}=ie;(parseFloat(se)||0===se||ke)&&Z(G,ne,se)},[Z,ne,ke]);return me().createElement(ze(),{label:ge,labelPosition:se,labelWidth:ce,help:De},me().createElement(at(),{"data-test":ne,placeholder:ke,min:Ce,max:Se,step:Me,onChange:Ie,value:ie,disabled:xe}))};P.propTypes={onChange:Ce().func.isRequired,name:Ce().string.isRequired,label:Ce().string.isRequired,value:Ce().number,labelPosition:Ce().oneOf(["top","left"]),labelWidth:Ce().number,min:Ce().number,max:Ce().number,step:Ce().number,placeholder:Ce().string,isDisabled:Ce().bool,help:Ce().string},P.defaultProps={value:null,labelPosition:"top",placeholder:"",isDisabled:!1};const st=P;var ct=ie(397);const S=G=>{let{name:Z,value:ne,labelPosition:ie,labelWidth:se,label:ce,onChange:ge,isDisabled:Ce,help:Se}=G;const Me=(0,fe.useCallback)((G,Z,ne)=>{ge(G,Z,ne/100)},[ge]);return me().createElement(st,{name:Z,value:Math.round(100*ne),label:ce,labelPosition:ie,labelWidth:se,onChange:Me,min:0,max:100,step:1,disabled:Ce,help:Se})};S.propTypes={onChange:Ce().func.isRequired,name:Ce().string.isRequired,label:Ce().string.isRequired,labelWidth:Ce().number,value:Ce().number,labelPosition:Ce().oneOf(["top","left"]),isDisabled:Ce().bool,help:Ce().string},S.defaultProps={value:0,labelPosition:"top",isDisabled:!1};const ut=S;var dt=ie(148),ht=ie.n(dt),ft=ie(4215),_t=ie.n(ft);const yt=ne(1099);var vt=ie.n(yt),wt=ie(6195),Ct=ie.n(wt),St=ie(232),Mt=ie.n(St),kt=ie(6649),xt=ie(2138),Lt=ie.n(xt),Tt=ie(4082),At=ie.n(Tt);const Dt=ne(4126);var Et=ie.n(Dt),jt=ie(5295),It=ie(7464),Nt=ie.n(It),Rt=ie(4793),zt=ie(962);const qt=Mt().div` padding-bottom: 5px; width: 100%; text-align: center; `,Wt={marginBottom:10},Bt={width:"100%"},Ft=Mt().span` font-size: smaller; font-style: italic; `,Ht=(0,kt._)("Note: Uploaded image files can be accessed and deleted by others in your organization"),$t=(0,Rt.memoize)((G,Z)=>{const ne=G.slice();if(Z)-1===ne.indexOf("svg")&&ne.push("svg");else{const G=ne.indexOf("svg");G>-1&&ne.splice(G,1)}return ne},(G,Z)=>`${Z}-${G.join("-")}`);class oe extends fe.Component{constructor(G){super(G),Ct()(this,"violationHandler",G=>{G.blockedURI!==this.state.urlValue&&G.blockedURI!==this.state.urlValue+"/"||"enforce"!==G.disposition?G.blockedURI!==this.state.urlValue&&G.blockedURI!==this.state.urlValue+"/"||"report"!==G.disposition||this.setState({violationType:"warning"}):this.setState({violationType:"error"})}),Ct()(this,"checkImage",G=>{if(!G)return;const Z=new Image;Z.onload=()=>{this.props.handleImageUpload({src:G})},Z.onerror=()=>{this.setState(G=>G.urlValue?{validUrl:!1}:void 0)},Z.src=G}),Ct()(this,"handleURLChange",(G,Z)=>{let{value:ne}=Z;this.setState({urlValue:ne,validUrl:!0,violationType:"none"})}),Ct()(this,"handleTextKeyDown",G=>{"enter"===(0,jt.keycode)(G)&&(G.preventDefault(),this.checkImage(this.state.urlValue))}),Ct()(this,"handleBlur",G=>{var Z;null!==(Z=this.inputRef.current)&&void 0!==Z&&Z.contains(G.relatedTarget)||this.checkImage(this.state.urlValue)}),Ct()(this,"trackInputRef",G=>{this.inputRef.current=G,G&&G.addEventListener("focusout",this.handleBlur)}),Ct()(this,"handleOnImageChange",G=>{let{filename:Z,imageDataURI:ne}=G;Z&&ne?this.props.handleImageUpload({filename:Z,imageDataURI:ne}):this.props.handleImageUpload({filename:null,imageDataURI:null})}),this.state={urlValue:"",validUrl:!0,violationType:"none"},this.inputRef=me().createRef()}componentDidMount(){document.addEventListener("securitypolicyviolation",this.violationHandler)}componentWillUnmount(){document.removeEventListener("securitypolicyviolation",this.violationHandler),this.inputRef.current&&this.inputRef.current.removeEventListener("focusout",this.handleBlur)}render(){const{enableImageFileUpload:G,enableSVGImageUpload:Z,enableSvgHttpDownloader:ne,enableGallerySharingWarning:ie}=this.context||{},se=$t(this.props.validImageTypes,Z),ce=se.indexOf("svg")<0||this.props.svgRenderAsDom&&se.indexOf("svg")>-1&&ne||!this.props.svgRenderAsDom&&se.indexOf("svg")>-1,fe="none"!==this.state.violationType?me().createElement(zt.CSPMessage,{type:this.state.violationType}):me().createElement(Lt(),{appearance:"fill",type:"error"},(0,kt._)("We can't find an image with this URL. Please enter a new URL."));return me().createElement(qt,null,ce&&me().createElement(At(),{canClear:!0,placeholder:(0,kt._)("Enter URL"),value:this.state.urlValue,onChange:this.handleURLChange,onKeyDown:this.handleTextKeyDown,style:Wt,elementRef:this.trackInputRef}),this.state.validUrl?G&&me().createElement(me().Fragment,null,me().createElement(Et(),{style:Bt,defaultFilename:null,defaultImageDataURI:null,onImageChange:this.handleOnImageChange,allowExtensions:se}),ie&&me().createElement(Ft,{"data-test":"gallery-sharing-warning"},Ht)):fe)}}Ct()(oe,"contextType",Nt()),oe.propTypes={handleImageUpload:Ce().func,validImageTypes:Ce().array,svgRenderAsDom:Ce().bool},oe.defaultProps={handleImageUpload:()=>{},validImageTypes:["gif","jpeg","jpg","png","webp"],svgRenderAsDom:!1};const Vt=oe;var Yt=ie(5784),Ut=ie.n(Yt),Kt=ie(7020),Gt=ie.n(Kt),Zt=ie(8216),Jt=ie.n(Zt),Qt=ie(3563),on=ie(5135),sn=ie(137);const cn=me().createElement(Ut(),{"aria-label":(0,kt._)("Remove Image")}),dn=Mt().div` width: 100%; padding-bottom: 5px; `,mn=Mt().div` border: ${Jt()({enterprise:Qt.variables.border,prisma:"1px solid "+Qt.variables.interactiveColorBorder})}; position: relative; min-height: 30px; height: auto; `,_n=Mt().div` background-color: ${Jt()({enterprise:Qt.variables.backgroundColor,prisma:Qt.variables.backgroundColorSidebar})}; color: ${Jt()({enterprise:Qt.variables.textColor,prisma:Qt.variables.contentColorDefault})}; opacity: 0.9; position: absolute; width: 100%; min-height: 30px; display: flex; align-items: center; justify-content: space-between; `,gn=Mt().div` margin-left: ${Jt()({enterprise:Qt.variables.spacingHalf,prisma:Qt.variables.spacingMedium})}; overflow: hidden; text-align: start; text-overflow: ellipsis; white-space: nowrap; `,bn=Mt()(Gt()).attrs({"data-test":"image-remove-button"})` flex-grow: 0; `,yn=Mt().img` ${Qt.mixins.reset("block")}; margin: 0 auto; max-width: 100%; max-height: 180px; `,Oe=G=>{let{filename:Z,imageDataURI:ne,onImageRemove:ie,overrideCSPViolation:se}=G;const ce=(0,on.useCSPViolationObserver)(ne,se),fe="prisma"===(0,Qt.useSplunkTheme)().family?"secondary":"pill";return me().createElement(dn,null,me().createElement(mn,null,me().createElement(_n,null,me().createElement(gn,null,Z),me().createElement(bn,{appearance:fe,icon:cn,onClick:ie})),me().createElement(yn,{alt:Z,src:ne})),"none"!==ce&&me().createElement(sn.MessageContainer,null,me().createElement(zt.CSPMessage,{type:ce})))};Oe.propTypes={filename:Ce().string,imageDataURI:Ce().string,onImageRemove:Ce().func,overrideCSPViolation:Ce().string},Oe.defaultProps={onImageRemove:()=>{},filename:null,imageDataURI:null};const vn=Oe,Ee=G=>{let{onChange:Z,name:ne,value:ie,labelPosition:se,labelWidth:ce,label:ge,validMediaTypes:Ce,svgRenderAsDom:Se,overrideCSPViolation:Me}=G;const ke=(0,fe.useContext)(vt()),[xe,De]=(0,fe.useState)(null),[Ie,Re]=(0,fe.useState)(null),$e=(0,fe.useCallback)(async(G,ie)=>{try{const se=await ke.upload(ie,{name:G},null,Ce);Z(null,ne,se)}catch(G){console.warn(G)}},[ke,Ce,Z,ne]),Je=(0,fe.useCallback)(G=>{let{src:ie,filename:se,imageDataURI:ce}=G;return ie?Z(null,ne,ie):null!==se&&null!==ce?$e(se,ce):Z(null,ne,null)},[$e,Z,ne]),it=(0,fe.useCallback)(G=>Z(G,ne,null),[Z,ne]);return(0,fe.useEffect)(()=>{(async()=>{if(ie){const G=await(async(G,Z)=>null!=G&&G.isResourceURL(Z)?G.getByURL(Z):{dataURI:Z,metaData:{name:Z}})(ke,ie);De(G.dataURI),Re(G.metaData.name)}})()},[ie,ke]),me().createElement(ze(),{label:ge,labelPosition:se,labelWidth:ce},ie?me().createElement(vn,{filename:Ie,imageDataURI:xe,onImageRemove:it,overrideCSPViolation:Me}):me().createElement(Vt,{svgRenderAsDom:Se,validImageTypes:Ce,handleImageUpload:Je}))};Ee.propTypes={onChange:Ce().func.isRequired,name:Ce().string.isRequired,label:Ce().string.isRequired,value:Ce().string,labelPosition:Ce().oneOf(["top","left"]),labelWidth:Ce().number,validMediaTypes:Ce().array,svgRenderAsDom:Ce().bool,overrideCSPViolation:Ce().string},Ee.defaultProps={labelPosition:"top"};const wn=Ee;var Cn=ie(1785),On=ie.n(Cn),Mn=ie(5777),kn=ie.n(Mn),xn=ie(451),Tn=ie.n(xn),Dn=ie(4566),En=ie.n(Dn);const jn=Mt().div.attrs(()=>({"data-test":"threshold-error"}))` color: ${Jt()({enterprise:En().errorColor,prisma:En().accentColorNegative})}; padding-top: 5px; font-size: 12px; display: block; `,Fe=G=>{let{error:Z}=G;return Z?me().createElement(jn,null,Z):null};Fe.propTypes={error:Ce().string};const Pn=Fe,Ae=G=>{let{"data-test":Z,boundary:ne,isDisabled:ie,isEditable:se,isError:ce,onChange:ge,onRequestClose:Ce,onValidate:Se}=G;const[Me,ke]=(0,fe.useState)(ne);(0,fe.useEffect)(()=>{ke(ne)},[ne]);const xe=(0,fe.useCallback)((G,Z)=>{let{value:ne}=Z;ke(ne),Se(ne)},[Se]),De=(0,fe.useCallback)(G=>{"Enter"===G.key&&ge(Me),"Escape"===G.key&&Ce()},[Me,ge,Ce]),Ie=(0,fe.useCallback)(()=>{ge(Me)},[ge,Me]);return se?me().createElement(at(),{inline:!0,hideStepButtons:!0,disabled:ie,value:Me||0===Me?Me:null,onChange:xe,onBlur:Ie,onKeyDown:De,error:ce,"data-test":Z}):null};Ae.propTypes={"data-test":Ce().string,boundary:Ce().number,isDisabled:Ce().bool,isEditable:Ce().bool,isError:Ce().bool,onChange:Ce().func,onRequestClose:Ce().func,onValidate:Ce().func},Ae.defaultProps={"data-test":"threshold-boundary-input",isDisabled:!1,isEditable:!0,isError:!1,onChange:()=>{},onRequestClose:()=>{},onValidate:()=>{}};const Nn=Ae;ie(4868);const qn=ne(252);var Wn=ie.n(qn);ie(9590);const Bn=ne(620);var Hn=ie.n(Bn);const $n=ne(793);var Vn=ie.n($n);function Ue(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function We(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:[];if(G.length<2)return console.warn("Invalid threshold configuration: at least 2 thresholds required"),G;const Z=G.map(G=>{const Z=We({},G);return G.from&&(Z.from=+G.from),G.to&&(Z.to=+G.to),Z}),ne=Z.filter(G=>void 0===G.from);ne.length>1&&console.warn("Invalid threshold configuration: multiple open lower boundaries");const ie=Z.filter(G=>void 0!==G.from);ie.length!==Vn()(ie,"from").length&&console.warn("Invalid threshold configuration: duplicate from values");const se=ie.sort((G,Z)=>+Z.from-+G.from);if(ne.length){const G=ne[0];return G.to!==se[se.length-1].from&&(G.to=se[se.length-1].from),se.forEach((G,Z)=>{const ne=We({},G);Z>0?ne.to=se[Z-1].from:delete ne.to,se[Z]=ne}),[...se,G]}return se.forEach((G,Z)=>{const ne=We({},G);Z>0&&(ne.to=se[Z-1].from),se[Z]=ne}),se}function Ye(){let G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const ne=parseFloat(G);return Hn()(ne)||Hn()(+G)?{error:!0,errorMessage:(0,kt._)("Not a valid threshold. Must be a number")}:Z.filter(G=>G.from===ne).length>0?{error:!0,errorMessage:(0,kt._)("Value already exists")}:{error:!1,errorMessage:null}}const Kn=Mt().div.attrs(()=>({"data-test":"add-threshold-level"}))` margin-bottom: 10px; `,Ze=G=>{let{thresholds:Z,onAddThreshold:ne}=G;const[ie,se]=(0,fe.useState)(!1),[ce,ge]=(0,fe.useState)(null),Ce=(0,fe.useCallback)(()=>{se(!ie)},[ie]),Se=(0,fe.useCallback)(G=>{const ie=Ye(G,Z);ie.error?ge(ie.errorMessage):ne(G)},[Z,ne]),Me=(0,fe.useCallback)(G=>{const ne=Ye(G,Z);ne.error&&ge(ne.errorMessage)},[Z]);return me().createElement(Kn,null,ie?me().createElement(me().Fragment,null,me().createElement(Nn,{"data-test":"add-threshold-input",isError:!!ce,onChange:Se,onRequestClose:Ce,onValidate:Me}),me().createElement(Pn,{error:ce})):me().createElement(Tn(),{onClick:Ce},"+ "+(0,kt._)("Add threshold level")))};Ze.propTypes={onAddThreshold:Ce().func,thresholds:Ce().array},Ze.defaultProps={onAddThreshold:()=>{}};const Xn=Ze;var Gn=ie(6379),Zn=ie.n(Gn);const Jn=Mt().div` margin-right: 10px; width: 100px; display: inline-block; `,Qn=Mt().div.attrs(()=>({"data-test":"threshold-boundary-label"}))` flex-grow: 1; flex-direction: row; `,er=Mt().span` line-height: 36px; margin-right: 10px; `,tr=Mt().span` display: inline-block; color: ${Jt()({enterprise:En().textGray,prisma:En().contentColorActive})}; width: 30px; text-overflow: ellipsis; vertical-align: bottom; overflow: hidden; white-space: nowrap; `,nt=G=>{let{describedBy:Z,to:ne}=G;return me().createElement(tr,{"aria-describedby":Z},ne)};nt.propTypes={describedBy:Ce().any,to:Ce().number};const rt=G=>{let{to:Z}=G;return me().createElement(Zn(),{content:""+Z},me().createElement(nt,{to:Z}))};rt.propTypes={to:Ce().number};const lt=G=>{let{index:Z,to:ne,isRemovable:ie,isEditable:se,onChange:ce,isDisabled:fe,error:ge}=G;const Ce=0===Z;return se?me().createElement(Qn,null,me().createElement(er,null,(0,kt._)("to")),me().createElement(Jn,null,me().createElement(Nn,{"data-test":"threshold-to-level",boundary:ne,isDisabled:fe,isEditable:!0,isError:ge,onChange:ce}))):me().createElement(Qn,null,Ce&&me().createElement(er,null,(0,kt._)("and above")),!Ce&&me().createElement(me().Fragment,null,me().createElement(er,null,`${ie?(0,kt._)("and")+" ":""}${(0,kt._)("below")}`),me().createElement(rt,{to:ne})))};lt.propTypes={to:Ce().number,index:Ce().number,isRemovable:Ce().bool,isEditable:Ce().bool,isDisabled:Ce().bool,onChange:Ce().func,error:Ce().bool};const nr=lt,rr=Mt().div.attrs(()=>({"data-test":"threshold-level"}))` width: 100%; position: relative; display: flex; align-items: flex-end; margin-bottom: 5px; `,ir=Mt().div` margin-right: 10px; width: 100px; display: inline-block; `,ar=Mt().div` display: flex; margin-left: auto; `,sr=Mt().div` margin-left: ${Jt()({prisma:"4px"})}; width: ${Jt()({enterprise:"25px",prisma:"32px"})}; `,pt=G=>{let{editFrom:Z,editTo:ne,editValue:ie,error:se,from:ce,index:ge,isDisabled:Ce,isRemovable:Se,onChange:Me,onRemove:ke,renderThresholdValueEditor:xe,to:De,value:Ie}=G;const Re=(0,fe.useCallback)(G=>{(se||G!==ce)&&Me(ge,{from:G,value:Ie,to:De})},[Me,ce,Ie,De,ge,se]),ze=(0,fe.useCallback)(G=>{(se||G!==De)&&Me(ge,{from:ce,value:Ie,to:G})},[Me,ce,Ie,De,ge,se]),$e=(0,fe.useCallback)(G=>{let{value:Z}=G;Me(ge,{from:ce,value:Z,to:De})},[Me,ge,ce,De]),Je=(0,fe.useCallback)(()=>ke(ge),[ke,ge]);return me().createElement(me().Fragment,null,me().createElement(rr,null,me().createElement(ir,null,me().createElement(Nn,{"data-test":"threshold-from-level",boundary:ce,isDisabled:Ce,isEditable:Z,isError:!!se,onChange:Re})),me().createElement(nr,{to:De,index:ge,isRemovable:Se,isEditable:ne,isDisabled:Ce,onChange:ze,error:!!se}),me().createElement(ar,null,xe({value:Ie,onChange:$e,isDisabled:Ce||!!se,editValue:ie})),me().createElement(sr,null,Se&&me().createElement(Gt(),{"data-test":"threshold-remove-button",icon:me().createElement(Ut(),null),appearance:"pill",onClick:Je,disabled:Ce}))),me().createElement(Pn,{error:se}))};pt.propTypes={editFrom:Ce().bool,editTo:Ce().bool,editValue:Ce().bool,error:Ce().string,from:Ce().number,index:Ce().number,isDisabled:Ce().bool,isRemovable:Ce().bool,onChange:Ce().func,onRemove:Ce().func,renderThresholdValueEditor:Ce().elementType.isRequired,to:Ce().number,value:Ce().string},pt.defaultProps={isRemovable:!1,isDisabled:!1};const lr=pt;function mt(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function gt(G){for(var Z=1;Z{let{ranges:Z,openRanges:ne,isDisabled:ie,onChange:se,renderThresholdValueEditor:ce}=G;const[ge,Ce]=(0,fe.useState)({}),Se=(0,fe.useCallback)(G=>{const ne=On()(Z);ne.splice(G,1),se(Ge(ne));const ie=gt({},ge);delete ie[G],Ce(ie)},[ge,Z,se]),Me=(0,fe.useCallback)((G,ie)=>{const ce=On()(Z),fe=gt({},ge);if(ce.splice(G,1,ie),delete fe[G],!ne&&0===G){const Z=function(){let G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const ne=parseFloat(G),ie=parseFloat(Z);return Hn()(ne)||Hn()(+G)||Hn()(ie)||Hn()(+Z)?{error:!0,errorMessage:(0,kt._)("Not a valid threshold. Must be a number")}:neZ[0].from&&(ce[G].to=ie.from+10),!ne||G!ne&&Z.length>1||ne&&Z.length>2&&G!==Z.length-1,[ne,Z]);return Z.map((G,se)=>me().createElement(lr,{key:`threshold-${G.from}-${G.to}-${G.value}`,onRemove:Se,onChange:Me,index:se,from:G.from,to:G.to,value:G.value,error:ge[se],editFrom:!ne||se!==Z.length-1,editTo:!ne&&0===se,editValue:!ke,isRemovable:xe(se),isDisabled:ie,renderThresholdValueEditor:ce}))};bt.propTypes={onChange:Ce().func.isRequired,ranges:Ce().arrayOf(Ce().shape({from:Ce().number,to:Ce().number,value:Ce().string})),isDisabled:Ce().bool,renderThresholdValueEditor:Ce().elementType.isRequired,openRanges:Ce().bool},bt.defaultProps={openRanges:!0,isDisabled:!1,ranges:[]};const ur=bt;var dr=ie(7408),pr=ie.n(dr),fr=ie(3283);const Ot=G=>{let{isDisabled:Z,value:ne,onChange:ie}=G;return me().createElement(pr(),{disabled:Z,value:(0,fr.isColor)(ne)?ne:"transparent",onChange:ie,hideInput:!0,palette:Un,"data-test":"threshold-level-value"})};Ot.propTypes={isDisabled:Ce().bool,value:Ce().string,onChange:Ce().func.isRequired};const mr=Ot,_r=Mt().div` flex-direction: column; flex-grow: 1; `,Pt=G=>{let{onChange:Z,name:ne,itemSchema:ie,value:se,labelPosition:ce,labelWidth:ge,label:Ce,isDisabled:Se,isTogglable:Me,openRanges:ke,renderThresholdValueEditor:xe}=G;const De=Array.isArray(se)&&se.length>0,Ie=(0,fe.useCallback)(()=>{Z(null,ne,ie.default)},[ie,ne,Z]),Re=(0,fe.useCallback)(()=>{Z(null,ne,null)},[ne,Z]),$e=(0,fe.useCallback)(()=>De?Re():Ie(),[De,Ie,Re]),Je=(0,fe.useCallback)(G=>{const ie=On()(se),ce={from:G,value:function(){let G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const Z=Wn()(Un,G);return Z.length>0?Z[0]:"#444000"}(ie.map(G=>G.value))};ke||(ce.to=G+10),ie.push(ce);const fe=Ge(ie);Z(null,ne,fe)},[ne,se,Z,ke]),it=(0,fe.useCallback)(G=>{Z(null,ne,G)},[Z,ne]);return me().createElement(ze(),{label:Ce,labelPosition:ce,labelWidth:ge},me().createElement(_r,{"data-test":ne},Me&&me().createElement(kn(),{appearance:"toggle",selected:De,onClick:$e,disabled:Se},(0,kt._)("Threshold")),De&&me().createElement(me().Fragment,null,!Se&&me().createElement(Xn,{onAddThreshold:Je,thresholds:se}),me().createElement(ur,{onChange:it,ranges:se,isDisabled:Se,openRanges:ke,renderThresholdValueEditor:xe}))))};Pt.propTypes={onChange:Ce().func.isRequired,name:Ce().string.isRequired,itemSchema:Ce().object,value:Ce().arrayOf(Ce().shape({from:Ce().number,to:Ce().number,value:Ce().string})),label:Ce().string.isRequired,labelPosition:Ce().oneOf(["left","top"]),labelWidth:Ce().number,isDisabled:Ce().bool,openRanges:Ce().bool,renderThresholdValueEditor:Ce().elementType,isTogglable:Ce().bool},Pt.defaultProps={labelPosition:"top",openRanges:!0,isDisabled:!1,renderThresholdValueEditor:mr,isTogglable:!0};const gr=Pt;var yr=ie(152),vr=ie(4942),wr=ie.n(vr),Cr=ie(5731),Or=ie.n(Cr),Sr=ie(6116),Mr=ie.n(Sr),kr=ie(4680),xr=ie(7970),Lr=ie.n(xr),Tr=ie(5456),Ar=ie(7585),Dr=ie.n(Ar),Er=ie(2117),jr=ie.n(Er),Pr=ie(2965),Ir=ie.n(Pr),Nr=ie(5695),Rr=ie.n(Nr),zr=ie(7364),qr=ie.n(zr),Wr=ie(9172),Br=ie.n(Wr),Fr=ie(5678),Hr=ie.n(Fr);const $r={"editor.checkbox":Se.default,"editor.radioBar":Je.default,"editor.select":$e,"editor.text":it.Z,"editor.toggle":G=>me().createElement(Se.default,ce()({},G,{appearance:"toggle"})),"editor.number":st,"editor.color":ct.default,"editor.percent":ut,"editor.image":wn,"editor.threshold":gr,"editor.presetSelector":_t(),"editor.dynamicColor":yr.DynamicColorEditor,"editor.columnMultiSelector":wr(),"editor.columnSelector":Or(),"editor.tableColumnFormatter":Mr(),"editor.tableBackgroundColor":kr.TableBackgroundColorEditor,"editor.slider":ht(),"editor.markdown":Lr(),"editor.staticItem":Tr.default,"editor.dynamicItem":Dr(),"editor.arrayOfStrings":jr(),"editor.multiColorPicker":Ir(),"editor.seriesColors":Rr(),"editor.seriesColorsByField":qr(),"editor.columnMultiSelectionByFieldNameEditor":Br(),"editor.trellisSplitBy":Hr()},Xt=G=>{let{item:Z,name:ne,itemSchema:ie,dataSourceBindings:se,context:fe,value:ge,onChange:Ce,isDisabled:Se,options:Me,optionsSchema:ke}=G;const{editor:xe}=Z;let Ie;if("string"==typeof xe){if(!$r[xe])throw Error("Invalid editor type: "+xe);Ie=$r[xe]}else Ie=xe;const Re=(0,De.getStaticItemSchema)(ie);return me().createElement("div",{key:Z.option||Z.encoding,"data-test":"editor-"+ne},me().createElement(Ie,ce()({},Z.editorProps,{name:ne,isOption:!!Z.option,itemSchema:Re,dataSourceBindings:se,label:Z.label,onChange:Ce,value:ge,context:fe,placeholder:Z.placeholder,isAdvanced:Z.isAdvanced,isDisabled:Se,options:Me,optionsSchema:ke})))};Xt.propTypes={item:Ce().object.isRequired,name:Ce().string.isRequired,itemSchema:Ce().object.isRequired,context:Ce().object,dataSourceBindings:Ce().object,value:Ce().any,onChange:Ce().func.isRequired,isDisabled:Ce().bool,options:Ce().object,optionsSchema:Ce().object};const Vr=Xt},4015:(G,Z,ne)=>{ne.r(Z),ne.d(Z,{default:()=>ze});var ie=ne(9497),se=ne.n(ie),ce=ne(232),fe=ne.n(ce),me=ne(23),ge=ne.n(me),Ce=ne(5777),Se=ne.n(Ce),Me=ne(6379),ke=ne.n(Me),xe=ne(2166),De=ne(4008),Ie=ne.n(De);const Re=fe()(ke())` float: right; `,h=(G,Z)=>Z?[G.find(G=>G!==Z),Z]:G,y=G=>{let{help:Z,onChange:ne,name:ce,value:fe,values:me,itemSchema:ge,variantForSelectedState:Ce,labelPosition:Me,labelWidth:ke,label:De,appearance:ze,isDisabled:$e}=G;const Je=(0,xe.X)(fe)||$e;let it;if(Array.isArray(me)&&2===me.length)it=h(me.map(G=>G.value),Ce);else if(Array.isArray(ge.enum)&&2===ge.enum.length)it=h(ge.enum,Ce);else{if("boolean"!==ge.type)throw Error("No valid values provided to CheckboxEditor: "+JSON.stringify(ge));it=[!1,!0]}const ot=(0,ie.useCallback)(G=>ne(G,ce,fe===it[1]?it[0]:it[1]),[ne,it,ce,fe]);return"right"===Me?se().createElement(Se(),{"data-test":ce,disabled:Je,value:ce,onClick:ot,selected:fe===it[1],appearance:ze},De,Z&&se().createElement(Re,{content:Z})):se().createElement(Ie(),{label:De,labelPosition:Me,labelWidth:ke,tooltip:Z},se().createElement(Se(),{"data-test":ce,disabled:Je,value:ce,onClick:ot,selected:fe===it[1],appearance:ze}))};y.propTypes={onChange:ge().func.isRequired,name:ge().string.isRequired,itemSchema:ge().object.isRequired,variantForSelectedState:ge().string,label:ge().string.isRequired,value:ge().oneOfType([ge().string,ge().bool]),values:ge().arrayOf(ge().shape({label:ge().string,value:ge().string.isRequired})),labelPosition:ge().oneOf(["left","top","right"]),labelWidth:ge().number,appearance:ge().oneOf(["checkbox","toggle"]),isDisabled:ge().bool,help:ge().string},y.defaultProps={appearance:"checkbox",labelPosition:"right",isDisabled:!1};const ze=y},397:(G,Z,ie)=>{ie.r(Z),ie.d(Z,{default:()=>ct});var se=ie(9497),ce=ie.n(se),fe=ie(23),me=ie.n(fe),ge=ie(232),Ce=ie.n(ge),Se=ie(4793),Me=ie(8216),ke=ie.n(Me),xe=ie(7408),De=ie.n(xe),Ie=ie(4082),Re=ie.n(Ie);const ze=ne(561);var $e=ie(3283),Je=ie(4008),it=ie.n(Je);const ot=Ce().div` ${ke()({enterprise:{comfortable:ge.css` min-width: 32px; `,compact:ge.css` min-width: 28px; `},prisma:{comfortable:ge.css` min-width: 40px; `,compact:ge.css` min-width: 32px; `}})} `,at=Ce().div.attrs(()=>({"data-test":"text-container"}))` ${ke()({enterprise:{comfortable:ge.css` max-height: 32px; `,compact:ge.css` max-height: 28px; `},prisma:ge.css` max-height: 24px; `})} width: 100%; min-width: 0; `,st=Ce()(Re()).attrs(G=>{let{name:Z}=G;return{"data-test":Z}})` ${ke()({enterprise:{comfortable:ge.css` max-height: 32px; `,compact:ge.css` max-height: 28px; `},prisma:ge.css` max-height: 24px; `})} `,E=G=>{let{color:Z,defaultColor:ne,prevColor:ie}=G;const se="string"==typeof Z?Z.trim():Z;return(0,$e.isColor)(se)||null===se?se:(0,$e.isColor)(ne)?ne:(0,$e.isColor)(ie)||null===ie?ie:"transparent"},P=G=>{let{name:Z="color",value:ne,label:ie="",labelPosition:fe,labelWidth:me,palette:ge,onChange:Ce=(()=>{}),itemSchema:Me,isDisabled:ke,textWidth:xe,hideLabel:Ie,showTextInput:Re,style:ze={}}=G;const[$e,Je]=(0,se.useState)(ne);(0,se.useEffect)(()=>{Je(ne)},[ne]);const ct=(0,se.useCallback)(G=>{let{value:ie}=G;const se=E({color:ie,defaultColor:Me.default,prevColor:ne});Je(se),ne!==se&&Ce(null,Z,se)},[Me.default,ne,Ce,Z]),ut=(0,se.useCallback)((G,Z)=>{let{value:ne}=Z;const ie="n/a"===(0,Se.toLower)(ne).trim()?null:ne;Je(ie)},[]),dt=(0,se.useCallback)(G=>{if("Escape"!==G.key){if("Enter"===G.key&&ne!==$e){const ie=E({color:$e,defaultColor:Me.default,prevColor:ne});Je(ie),ie!==ne&&Ce(G,Z,ie)}}else Je(ne)},[Z,$e,ne,Ce,Me.default]),ht=(0,se.useCallback)(G=>{if($e!==ne){const ie=E({color:$e,defaultColor:Me.default,prevColor:ne});Je(ie),ie!==ne&&Ce(G,Z,ie)}},[Z,$e,ne,Ce,Me.default]);return ce().createElement(it(),{label:ie,labelPosition:fe,labelWidth:me,style:ze,hideLabel:Ie},ce().createElement(ot,null,ce().createElement(De(),{key:ne,append:Re,value:E({color:$e}),palette:ge,onChange:ct,"data-test":"color-picker-"+Z,disabled:ke,hideInput:!0})),Re&&ce().createElement(at,{textWidth:xe},ce().createElement(st,{key:ne,"data-test":Z,prepend:!0,value:null===$e?"N/A":$e,onChange:ut,onKeyDown:dt,onBlur:ht,disabled:ke,style:{height:"32px"}})))};P.propTypes={name:me().string.isRequired,value:me().string,itemSchema:me().object,label:me().string.isRequired,hideLabel:me().bool,showTextInput:me().bool,style:me().object,labelPosition:me().oneOf(["top","left"]),labelWidth:me().number,palette:me().arrayOf(me().string),onChange:me().func.isRequired,isDisabled:me().bool,textWidth:me().oneOfType([me().string,me().number])},P.defaultProps={value:"transparent",labelPosition:"top",palette:ze.COLOR_EDITOR_PALETTE,itemSchema:{default:"transparent"},isDisabled:!1,textWidth:"auto",hideLabel:!1,showTextInput:!0,style:{}};const ct=P},3263:(G,Z,ne)=>{ne.r(Z),ne.d(Z,{default:()=>$e});var ie=ne(2649),se=ne.n(ie),ce=ne(9497),fe=ne.n(ce),me=ne(23),ge=ne.n(me),Ce=ne(5411),Se=ne.n(Ce),Me=ne(6379),ke=ne.n(Me),xe=ne(2166),De=ne(4267),Ie=ne(5862),Re=ne(4008),ze=ne.n(Re);const y=G=>{let{onChange:Z,name:ne,itemSchema:ie,values:me,value:ge,labelPosition:Ce,labelWidth:Me,label:Re,isDisabled:$e}=G;const Je=(0,De.getOptions)(ie,me),it=(0,xe.X)(ge)||$e,ot=(0,ce.useCallback)((G,ie)=>{let{value:se}=ie;return Z(G,ne,se)},[Z,ne]),at=Re&&""!==Re?void 0:{marginTop:"-8px"};return fe().createElement(ze(),{label:Re,labelPosition:Ce,labelWidth:Me,style:at},fe().createElement(Se(),{"data-test":ne,onChange:ot,value:ge,style:Ie.editorStyle},Je.map(G=>{const Z=G.label||G.value,ne={};return G.icon?ne.startAdornment=fe().createElement(ke(),{content:Z},fe().createElement(G.icon,{hideDefaultTooltip:!0})):ne.label=Z,fe().createElement(Se().Option,se()({key:G.value,value:G.value,disabled:it},ne))})))};y.propTypes={onChange:ge().func.isRequired,name:ge().string.isRequired,itemSchema:ge().object,values:ge().arrayOf(ge().shape({label:ge().string,value:ge().oneOfType([ge().string,ge().bool]).isRequired})),value:ge().oneOfType([ge().string,ge().bool]),label:ge().string.isRequired,labelPosition:ge().oneOf(["left","top"]),labelWidth:ge().number,isDisabled:ge().bool},y.defaultProps={labelPosition:"top",isDisabled:!1};const $e=y},5456:(G,Z,ne)=>{ne.r(Z),ne.d(Z,{default:()=>st});var ie=ne(6195),se=ne.n(ie),ce=ne(9497),fe=ne.n(ce),me=ne(23),ge=ne.n(me),Ce=ne(232),Se=ne.n(Ce),Me=ne(4793),ke=ne(3563),xe=ne(6649),De=ne(8965),Ie=ne.n(De),Re=ne(7035),ze=ne(4008),$e=ne.n(ze);function v(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function C(G){for(var Z=1;ZG.filter((G,ne)=>ne!==Z),j=(G,Z,ne)=>"string"!=typeof G||""===G.trim()||Z.filter(Z=>Z[ne]===G).length>1,x=(G,Z)=>j(G,Z,"label"),S=(G,Z)=>j(G,Z,"value"),at=Se().div` width: 100%; `,w=G=>{let{onChange:Z,name:ne,value:ie,labelPosition:se,label:me,validate:ge}=G;const[Ce,Se]=(0,ce.useState)(ie),[ke,De]=(0,ce.useState)(ie.length);(0,ce.useEffect)(()=>{Se(ie),ie.length>ke&&De(ie.length)},[ie,ke]);const ze=(0,ce.useCallback)(G=>{var se;(0,Me.isEqual)(G,ie)||(se=G).some(G=>{let{label:Z,value:ne}=G;return"string"!=typeof Z||""===Z.trim()||"string"!=typeof ne||""===ne.trim()})||(0,Me.uniqBy)(se,G=>G.value).length!==se.length||(0,Me.uniqBy)(se,G=>G.label).length!==se.length?Se(G):Z(null,ne,G)},[ie,ne,Z]),it=(0,ce.useCallback)((G,Z)=>{let{index:ne}=Z;const ie=P(Ce,ne);ze(ie)},[Ce,ze]),st=(0,ce.useCallback)(G=>{let{fromIndex:Z,toIndex:ne}=G;const ie=Ce[Z],se=P(Ce,Z);se.splice(ne,0,ie),ze(se)},[Ce,ze]),ct=(0,ce.useCallback)((G,Z)=>function(ne,ie){let se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const ce=Ce[G],fe=[...Ce];fe.splice(G,1,C(C({},ce),{},{[Z]:se.trim()})),ze(fe)},[Ce,ze]),ut=(0,ce.useCallback)(()=>{const G=Ce.concat({label:"Label "+ke,value:"menu_v"+ke});De(ke+1),ze(G)},[Ce,ke,ze]),dt=Ce.map((G,Z)=>{const{label:ne,value:ie}=G;return fe().createElement(Ie().Row,{index:Z,key:`${ne}_${ie}_${Z}`,onRequestRemove:it},fe().createElement(Je,null,fe().createElement(Re.Z,{label:(0,xe._)("Label"),hideLabel:!0,value:ne,onChange:ct(Z,"label"),name:"item-label-editor",error:x(ne,Ce),placeholder:(0,xe._)("Label"),validate:ge}),fe().createElement(Re.Z,{label:(0,xe._)("Value"),hideLabel:!0,value:ie,onChange:ct(Z,"value"),name:"item-value-editor",error:S(ie,Ce),placeholder:(0,xe._)("Value"),validate:ge})))});return fe().createElement($e(),{label:me,labelPosition:se},fe().createElement(at,null,fe().createElement(Ie(),{addLabel:(0,xe._)("Add new"),header:ot,onRequestAdd:ut,onRequestMove:st},dt)))};w.propTypes={onChange:ge().func.isRequired,name:ge().string.isRequired,label:ge().string,value:ge().arrayOf(ge().exact({label:ge().string,value:ge().string})),labelPosition:ge().oneOf(["top","left"]),validate:ge().func},w.defaultProps={value:[],labelPosition:"top",label:""};const st=w},7035:(G,Z,ie)=>{ie.d(Z,{Z:()=>st});var se=ie(2649),ce=ie.n(se),fe=ie(6195),me=ie.n(fe);const ge=ne(141);var Ce=ie.n(ge),Se=ie(9497),Me=ie.n(Se),ke=ie(23),xe=ie.n(ke);const De=ne(97);var Ie=ie.n(De),Re=ie(4082),ze=ie.n(Re),$e=ie(4008),Je=ie.n($e),it=ie(5862);const ot=["onChange","name","value","label","labelPosition","labelWidth","labelStyle","hideLabel","isAdvanced","isDisabled","help","tooltip","validate","error"];function O(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _(G){for(var Z=1;Z{let{onChange:Z,name:ne,value:ie,label:se,labelPosition:fe,labelWidth:me,labelStyle:ge,hideLabel:ke,isAdvanced:xe,isDisabled:De,help:Re,tooltip:$e,validate:st,error:ct}=G,ut=Ce()(G,ot);const[dt,ht]=(0,Se.useState)(ie),ft=(0,Se.useCallback)(G=>"function"==typeof st?st({value:G}):null,[st]),[_t,yt]=(0,Se.useState)(ft(ie)),vt=(0,Se.useMemo)(()=>Ie()(G=>{yt(ft(G))},250),[ft]);(0,Se.useEffect)(()=>()=>{vt.cancel()},[vt]),(0,Se.useEffect)(()=>{ht(ie),yt(ft(ie))},[ft,ie]);const wt=(0,Se.useCallback)((G,Z)=>{let{value:ne}=Z;ht(ne),vt(ne)},[vt]),Ct=(0,Se.useCallback)(G=>{const se=dt.trim();if(se===ie)return;const ce=ft(se);yt(ce),ce||Z(G,ne,se)},[dt,ie,ft,Z,ne]),St=(0,Se.useCallback)(G=>{"Enter"===G.key&&Ct(G)},[Ct]),Mt=(0,Se.useMemo)(()=>se&&""!==se?ge:_(_({},at),ge),[se,ge]);return Me().createElement(Je(),{label:se,labelPosition:fe,labelWidth:me,style:Mt,hideLabel:ke,help:_t&&_t.message?_t.message:Re,tooltip:$e,error:!!_t||ct,isAdvanced:xe},Me().createElement(ze(),ce()({key:ie,"data-test":ne,style:it.editorStyle,onChange:wt,onKeyPress:St,onBlur:Ct,value:dt,disabled:De,canClear:!0},ut,{error:!!_t||ct})))};P.propTypes={onChange:xe().func.isRequired,name:xe().string.isRequired,label:xe().string.isRequired,value:xe().string,labelPosition:xe().oneOf(["top","left"]),labelWidth:xe().number,labelStyle:xe().object,hideLabel:xe().bool,isAdvanced:xe().bool,isDisabled:xe().bool,validate:xe().func,error:xe().bool,help:xe().string,tooltip:xe().string},P.defaultProps={value:"",labelPosition:"top",labelStyle:{},hideLabel:!1,isDisabled:!1};const st=P},1668:(G,Z,ne)=>{ne.r(Z),ne.d(Z,{default:()=>se});var ie=ne(232);const se=ne.n(ie)().div` padding: 10px 15px 0px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; `},3941:(G,Z,ne)=>{ne.r(Z),ne.d(Z,{default:()=>Ce});var ie=ne(232),se=ne.n(ie),ce=ne(8216),fe=ne.n(ce),me=ne(4566),ge=ne.n(me);const Ce=se().div.attrs(()=>({"data-test":"separator"}))` padding-top: 5px; border-bottom: ${G=>fe()({enterprise:ge().border,prisma:"1px solid "+ge().contentColorDisabled(G)})(G)}; `},4267:(G,Z,ie)=>{ie.r(Z),ie.d(Z,{getFilteredRowsByShowEditor:()=>x,getFormatterConfig:()=>E,getOptions:()=>y,getStaticItemSchema:()=>_,handleOptionsChange:()=>v,isDynamicOptionSchema:()=>O,isMultipleRulesSchema:()=>C,isSupportedDataSelector:()=>P,isSupportedFormatter:()=>j,setOption:()=>T});var se=ie(6195),ce=ie.n(se),fe=ie(4868),me=ie.n(fe);const ge=ne(1980);var Ce=ie.n(ge),Se=ie(3951),Me=ie.n(Se),ke=ie(5071),xe=ie.n(ke);const De=ne(1509);var Ie=ie.n(De);const Re=ne(120);function b(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function h(G){for(var Z=1;Z{if(Array.isArray(Z))return Z;if(G&&Array.isArray(G.enum))return G.enum.map(G=>({value:G}));throw Error("No valid values provided to editor: "+JSON.stringify(G))};function v(G,Z){let ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{debounce:!1};const{visualization:ie}=this.props;null==Z?this.props.onVisualizationChange(h(h({},ie),{},{options:me()(ie.options,[G])}),ne):this.props.onVisualizationChange(h(h({},ie),{},{options:h(h({},ie.options),{},{[G]:Z})}),ne)}const C=G=>!!G.anyOf&&G.anyOf.length>0,O=G=>"string"===G.type&&G.pattern===Re.DYNAMIC_OPTIONS_DSL_PATTERN,_=G=>{if(!C(G))return G;const Z=G.anyOf.find(G=>!O(G));return h(h({},me()(G,"anyOf")),Z)},E=G=>{var Z;let{contextConfig:ne,formatters:ie,formatterFromDSL:se,selectedDataSelector:ce}=G;if(ne)return ne;const fe=null==ie?void 0:ie.find(G=>G.value===se);return(null==fe||null===(Z=fe.defaults)||void 0===Z?void 0:Z[ce])||[]},P=G=>{let{selectedDataSelector:Z,dataSelectors:ne}=G;return!!(Z&&ne&&ne.length)&&ne.some(G=>G.value===Z)},j=G=>{let{selectedFormatterType:Z,formattersFromEditor:ne,supportedFormatters:ie}=G;return!!(Z&&ie[Z]&&ne&&ne.length)&&ne.some(G=>G.value===Z)},x=(G,Z,ne)=>G&&Array.isArray(G)?G.filter(G=>void 0===G.showEditor||"function"==typeof G.showEditor&&G.showEditor({options:Z,encoding:ne})):[],S=G=>{const Z=Me()(G);return Ce()(Z,(G,ne)=>{(null!=G&&Array.isArray(G)||xe()(G))&&(Z[ne]=S(Z[ne])),Array.isArray(G)&&(Z[ne]=G.map(G=>null===G?void 0:G)),null==G&&delete Z[ne]}),Z},T=(G,Z,ne,ie)=>{var se;const ce=h({},ne);let fe=G,ge=Z;return null==ge&&ie[fe]||ie[fe]&&ge===ie[fe].default?(ce.options=me()(ne.options,fe),ce):(ce.options=Me()(ne.options),null!==(se=ce.options)&&void 0!==se||(ce.options={}),null==Z&&xe()(G)&&xe()(G.options)&&([fe]=Object.keys(G.options),[ge]=Object.values(G.options)),ie[fe]&&"array"!==ie[fe].type?(ce.options[fe]=ge,ce):(null===ge&&(ge=void 0),Ie()(ce.options,fe,ge),ce.options=S(ce.options),ce))}},2166:(G,Z,ne)=>{ne.d(Z,{X:()=>n});const ie=new RegExp(/\$/.source+/(\w+:)?/.source+/([^$|:]+?)(\|[|\w]+)?/.source+/\$/.source),n=G=>"string"==typeof G&&ie.test(G)},2117:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(7446)),Se=ne(6801),Me=fe(ne(4008)),ke={width:"330px"},xe={display:"none"},m=({onChange:G,name:Z,labelPosition:ne,labelWidth:ie,label:se,isDisabled:ce,help:fe,value:ge})=>{let Se=[];Array.isArray(ge)&&(Se=ge.map(G=>null!==G&&"object"==typeof G?G.toString():""+G));const[De,Ie]=me.useState(Se),Re=me.useCallback((ne,{values:ie})=>{Ie(ie),G(ne,Z,ie)},[G,Z]);return me.createElement(Me.default,{label:se,labelPosition:ne,labelWidth:ie,help:fe},me.createElement(Ce.default,{allowNewValues:!0,values:De,onChange:Re,disabled:ce,inline:!0,style:ke,menuStyle:xe,placeholder:""}))},De=Object.assign(Object.assign({},Se.BaseEditorPropTypes),{help:ge.string,value:ge.array,labelPosition:ge.oneOf(["top","left"]),isDisabled:ge.bool});m.defaultProps={labelPosition:"top",isDisabled:!1},m.propTypes=De,Z.default=m},9172:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.EDITOR_NAME=void 0;const me=ce(ne(9497)),ge=fe(ne(23)),Ce=fe(ne(7446)),Se=ne(9033),Me=ne(6801),ke=ne(1385),xe=ne(1256),De=fe(ne(4008));Z.EDITOR_NAME="columnMultiSelectionByFieldName-editor";const g=({name:G,value:ne,label:ie,labelPosition:se,labelWidth:ce,isAdvanced:fe,isDisabled:ge,tooltip:Me,dataSourceBindings:Ie,filterByTypes:Re=[],onChange:ze})=>{const $e=(0,ke.useDataSource)({dataSourceBindings:Ie,dataSourceKey:"primary"}),{hasError:Je,isMissing:it,isLoading:ot}=(0,me.useMemo)(()=>(0,Se.getDataSourceStateInfo)($e),[$e]),at=(0,me.useMemo)(()=>it||Je||ge,[Je,ge,it]),{columns:st,fields:ct}=(0,me.useMemo)(()=>(null==$e?void 0:$e.data)||{columns:[],fields:[]},[$e]),ut=(0,me.useMemo)(()=>(0,xe.getAvailableFieldsWithTypes)(st,ct),[st,ct]),dt=(0,me.useMemo)(()=>(0,xe.sanitizeFieldNames)(ne,ut.map(G=>G.name)),[ne,ut]),ht=(0,me.useCallback)((Z,{values:ne})=>{ze(Z,G,ne)},[ze,G]);return me.default.createElement(De.default,{"data-test":`${Z.EDITOR_NAME}-${G}`,label:ie,labelPosition:se,labelWidth:ce,tooltip:Me,isAdvanced:fe},me.default.createElement(Ce.default,{"data-test":`${Z.EDITOR_NAME}-select-${G}`,onChange:ht,values:dt,disabled:at,isLoadingOptions:ot,compact:!0},ut.map(G=>me.default.createElement(Ce.default.Option,{"data-test":`${Z.EDITOR_NAME}-option-${G.name}`,key:G.name,value:G.name,label:`${G.name} (${G.type})`,disabled:Re.length>0&&!Re.find(Z=>Z===G.type)}))))};g.propTypes=Object.assign(Object.assign({},Me.BaseEditorPropTypes),{tooltip:ge.default.bool,labelPosition:ge.default.oneOf(["top","left"]),isAdvanced:ge.default.bool,isDisabled:ge.default.bool}),g.defaultProps={labelPosition:"top",isAdvanced:!1,isDisabled:!1,filterByTypes:[]},Z.default=g},4942:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.ColumnMultiSelectionEditor=Z.isInternal=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(7446)),Se=ne(4793),Me=ne(1413),ke=ne(9033),xe=ne(6801),De=fe(ne(3620)),Ie=ne(1385),Re=ne(1256),ze=fe(ne(4008)),$e=Object.assign(Object.assign({},xe.BaseEditorPropTypes),{dataSourceKey:ge.string.isRequired,prepareValue:ge.func,excludeByNames:ge.arrayOf(ge.string),filterByTypes:ge.arrayOf(ge.string),shouldShowInternalFields:ge.bool});Z.isInternal=G=>{var Z;return(null===(Z=null==G?void 0:G.name)||void 0===Z?void 0:Z.startsWith("_"))&&"_time"!==G.name},Z.ColumnMultiSelectionEditor=({name:G,value:ne,label:ie="",labelPosition:se="top",dataSourceKey:ce="primary",dataSourceBindings:fe,prepareValue:ge=(G=>G),onChange:xe,isAdvanced:$e,isDisabled:Je,shouldShowInternalFields:it=!0,filterByTypes:ot,excludeByNames:at})=>{const st=(0,Ie.useDataSource)({dataSourceBindings:fe,dataSourceKey:ce}),{columns:ct,fields:ut}=(null==st?void 0:st.data)||{columns:[],fields:[]},dt=(0,me.useMemo)(()=>it?st:Object.assign(Object.assign({},st),{data:{fields:ut.filter(G=>!(0,Z.isInternal)(G)),columns:ct.filter((G,ne)=>!(0,Z.isInternal)(ut[ne]))}}),[ct,st,ut,it]),{columns:ht,fields:ft}=(0,Se.get)(dt,"data")||{columns:[],fields:[]},_t=(0,me.useMemo)(()=>(0,Re.getAvailableFieldsWithTypes)(ht,ft),[ht,ft]),yt=(0,me.useMemo)(()=>null==ne?ne:(0,Me.getFieldsFromDSL)(ne,{[ce]:dt}),[dt,ce,ne]),[vt,wt]=(0,me.useState)(yt);me.default.useEffect(()=>{(null==yt?void 0:yt.length)&&wt(yt)},[yt]);const[Ct,St]=(0,me.useState)(""),Mt=_t.filter(G=>-1!==G.name.indexOf(Ct)),kt=(0,me.useMemo)(()=>me.default.createElement(De.default,{filteredFieldsLength:Mt.length,availableFieldsWithTypesLength:_t.length}),[Mt.length,_t.length]),xt=(0,me.useCallback)((Z,{values:ne})=>{wt(ne);const ie=`'${ne.join("','")}'`,se=ge({options:{[G]:`> ${ce} | frameBySeriesNames(${ie})`}});xe(Z,se)},[ce,G,xe,ge]),Lt=(0,me.useCallback)((G,{keyword:Z})=>{St(Z)},[]),{hasError:Tt,isMissing:At,isLoading:Dt}=(0,ke.getDataSourceStateInfo)(st),Et=At||Tt||Je,jt=(0,Re.getPlaceholderMessage)({isMissing:At,isLoading:Dt,hasError:Tt,defaultMessage:"Select field(s) from data source"});return me.default.createElement(ze.default,{label:ie,labelPosition:se,isAdvanced:$e},me.default.createElement(Ce.default,{"data-test":"ColumnMultiSelectionEditor",disabled:Et,values:vt,onChange:xt,onFilterChange:Lt,footerMessage:kt,placeholder:jt,isLoadingOptions:Dt,error:Tt,compact:!0},Mt.map(G=>me.default.createElement(Ce.default.Option,{key:G.name,label:`${G.name} (${G.type})`,value:G.name,disabled:(null==ot?void 0:ot.length)&&!ot.find(Z=>Z===G.type)||(null==at?void 0:at.includes(G.name))}))))},Z.ColumnMultiSelectionEditor.propTypes=$e,Z.default=Z.ColumnMultiSelectionEditor},5731:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.ColumnSelectionEditor=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(2373)),Se=ne(1413),Me=ne(9033),ke=ne(6801),xe=fe(ne(3620)),De=ne(1385),Ie=ne(1256),Re=fe(ne(4008)),ze=ne(5862),{useState:$e,useCallback:Je,useMemo:it}=me,ot=Object.assign(Object.assign({},ke.BaseEditorPropTypes),{dataSourceKey:ge.string.isRequired,prepareValue:ge.func,filterByTypes:ge.arrayOf(ge.string)});Z.ColumnSelectionEditor=({name:G,value:Z,label:ne="",labelPosition:ie="top",dataSourceKey:se="primary",dataSourceBindings:ce,prepareValue:fe=(G=>G),onChange:ge,isAdvanced:ke,isDisabled:ot,filterByTypes:at})=>{const st=(0,De.useDataSource)({dataSourceBindings:ce,dataSourceKey:se}),{columns:ct,fields:ut}=(null==st?void 0:st.data)||{columns:[],fields:[]},dt=(0,Ie.getAvailableFieldsWithTypes)(ct,ut),ht=null==Z?Z:(0,Se.getFieldsFromDSL)(Z,{[se]:st})[0]||"",[ft,_t]=$e(ht);me.useEffect(()=>{_t(ht)},[ht]);const[yt,vt]=$e(""),wt=dt.filter(G=>-1!==G.name.indexOf(yt)),Ct=it(()=>me.createElement(xe.default,{filteredFieldsLength:wt.length,availableFieldsWithTypesLength:dt.length}),[wt.length,dt.length]),St=Je((Z,{value:ne})=>{_t(ne);const ie=fe({options:{[G]:`> ${se} | seriesByName('${ne}')`}});ge(Z,ie)},[ge,fe]),Mt=Je((G,{keyword:Z})=>{vt(Z)},[]),{hasError:kt,isMissing:xt,isLoading:Lt}=(0,Me.getDataSourceStateInfo)(st),Tt=xt||kt||ot,At=(0,Ie.getPlaceholderMessage)({isMissing:xt,isLoading:Lt,hasError:kt});return me.createElement(Re.default,{label:ne,labelPosition:ie,isAdvanced:ke},me.createElement(Ce.default,{"data-test":"ColumnSelectionEditor",value:ft,onFilterChange:Mt,onChange:St,footerMessage:Ct,disabled:Tt,placeholder:At,isLoadingOptions:Lt,error:kt,style:ze.editorStyle,filter:!0},wt.map(G=>me.createElement(Ce.default.Option,{key:G.name,label:`${G.name} (${G.type})`,value:G.name,disabled:!!(null==at?void 0:at.length)&&!at.find(Z=>Z===G.type)}))))},Z.ColumnSelectionEditor.propTypes=ot,Z.default=Z.ColumnSelectionEditor},2468:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(6649),Se=fe(ne(9250)),Me=fe(ne(7020)),ke=fe(ne(1551)),xe=fe(ne(1151)),{useRef:De,useState:Ie,useCallback:Re}=me,ze={label:ge.string,labelPosition:ge.oneOf(["top","left"]),labelWidth:ge.number,onResetToDefault:ge.func},y=({label:G,labelPosition:Z="left",labelWidth:ne,onResetToDefault:ie})=>{const[se,ce]=Ie(!1),fe=De(null),ge=Re(()=>ce(!0),[]),ze=Re(()=>ce(!1),[]);return me.createElement(Se.default,{label:(0,Ce._)(G),labelPosition:Z,labelWidth:ne},me.createElement(Me.default,{"data-test":"customized-in-source-button",onClick:ge,appearance:"flat",ref:fe,label:(0,Ce._)("Customized in source")}),me.createElement(ke.default,{"data-test":"customized-in-source-popover",open:se,anchor:fe.current,onRequestClose:ze,defaultPlacement:"horizontal"},me.createElement(xe.default,{onResetToDefault:ie})))};y.propTypes=ze,Z.default=y},152:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.DynamicColorEditor=Z.prepareUpdate=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(7124),Se=fe(ne(9250)),Me=fe(ne(7020)),ke=fe(ne(1551)),xe=fe(ne(232)),De=ne(6649),Ie=ne(5089),Re=ne(4793),ze=ne(1413),$e=ne(2369),Je=fe(ne(2468)),it=ne(5862),ot=ne(6801),at=ne(4267),{useRef:st,useState:ct,useEffect:ut}=me,dt=xe.default.div` font-weight: 600; font-size: 14px; line-height: 20px; `,ht=xe.default.div.attrs(()=>({"data-test":"DynamicColorFlyoutContent"}))` box-sizing: border-box; padding: ${(0,Ce.toPx)(it.FLYOUT_PADDING)}; width: ${(0,Ce.toPx)(it.FLYOUT_WIDTH)}; `,ft={padding:"4px"},_t=Object.assign(Object.assign({},ot.BaseEditorPropTypes),{flyoutTitle:ge.string,formatters:ge.arrayOf(ge.shape({label:ge.string,value:ge.string,defaults:ge.object})),dataSelectors:ge.arrayOf(ge.shape({label:ge.string,value:ge.string})),defaultPalettesConfig:$e.sharedPalettesConfigPropType});Z.prepareUpdate=({name:G,selectedDataSelector:Z,selectedFormatterType:ne,currentFormatterConfig:ie})=>{const se=G+"EditorConfig";return{options:{[G]:(0,ze.buildDSLFromDataSelectorAndFormatter)(Z,ne,se)},context:{[se]:ie}}},Z.DynamicColorEditor=({name:G,value:ne,label:ie="",labelPosition:se="left",labelWidth:ce,context:fe,onChange:ge=(()=>{}),flyoutTitle:Ce=(0,De._)("Dynamic coloring"),formatters:xe=[],dataSelectors:it=[],defaultPalettesConfig:ot=Ie.defaultPalettesConfig,isDisabled:_t=!1})=>{const[yt,vt]=ct(!1),wt=st(null),{type:Ct,paramKey:St}=(0,ze.getLastFormatterFromDSL)(ne)||{type:"unknown",paramKey:"unknown"},Mt=(0,ze.getDataSelectorsFromDSL)(ne)[0],[kt,xt]=ct(Ct);ut(()=>{xt(Ct)},[Ct]);const[Lt,Tt]=ct(Mt);ut(()=>{Tt(Mt)},[Mt]);const At=(0,at.getFormatterConfig)({contextConfig:fe[St],formatters:xe,formatterFromDSL:Ct,selectedDataSelector:Lt}),[Dt,Et]=ct(At);ut(()=>{Et(At)},[fe,xe,St,Ct,Mt]);const jt=me.useCallback(()=>{vt(G=>!G)},[]);if(!(0,at.isSupportedDataSelector)({selectedDataSelector:Lt,dataSelectors:it})||!(0,at.isSupportedFormatter)({selectedFormatterType:kt,formattersFromEditor:xe,supportedFormatters:$e.supportedFormatters}))return me.createElement(Je.default,{label:ie,labelPosition:se,labelWidth:ce,onResetToDefault:ne=>{const ie=(0,Re.find)(xe,G=>G.isDefault)||(0,Re.find)(xe,G=>"rangeValue"===G.value)||xe[0];if((0,Re.isEmpty)(ie))return;const se=ie.value,ce=Object.keys(ie.defaults)[0],fe=ie.defaults[ce];Tt(ce),xt(se),Et(fe),ge(ne,(0,Z.prepareUpdate)({name:G,selectedDataSelector:ce,selectedFormatterType:se,currentFormatterConfig:fe}))}});const It=$e.supportedFormatters[kt].preview;return me.createElement(Se.default,{"data-test":"DynamicColorEditorGroup",label:(0,De._)(ie),labelPosition:se,labelWidth:ce},me.createElement(Me.default,{inline:!1,"data-test":"DynamicColorEditorButton",style:ft,appearance:"flat",ref:wt,onClick:jt,disabled:_t},me.createElement(It,{"data-test":"FormatterConfigPreview",config:Dt})),me.createElement(ke.default,{"data-test":"DynamicColorEditorFlyout",open:yt,anchor:wt.current,defaultPlacement:"horizontal",style:{padding:"10px"},onRequestClose:()=>vt(!1)},me.createElement(ht,null,me.createElement(dt,null,Ce),me.createElement($e.FormatterEditor,{selectedDataSelector:Lt,selectedFormatterType:kt,currentFormatterConfig:Dt,onDataSelectorChange:(ne,ie,se)=>{Tt(se);const ce=(0,Re.find)(xe,G=>G.defaults[se]);xt(ce.value);const fe=ce.defaults[se];Et(fe),ge(ne,(0,Z.prepareUpdate)({name:G,selectedDataSelector:se,selectedFormatterType:ce.value,currentFormatterConfig:fe}))},onFormatterTypeChange:(ne,ie,se)=>{xt(se);const ce=(0,Re.find)(xe,["value",se]).defaults[Lt];Et(ce),ge(ne,(0,Z.prepareUpdate)({name:G,selectedDataSelector:Lt,selectedFormatterType:se,currentFormatterConfig:ce}))},onFormatterConfigChange:(ne,ie,se)=>{Et(se),ge(ne,(0,Z.prepareUpdate)({name:G,selectedDataSelector:Lt,selectedFormatterType:kt,currentFormatterConfig:se}))},formatters:xe,dataSelectors:it,defaultPalettesConfig:ot}))))},Z.DynamicColorEditor.propTypes=_t},7585:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(4793),Se=fe(ne(4082)),Me=fe(ne(9250)),ke=fe(ne(7143)),xe=fe(ne(8897)),De=ne(6649),Ie=fe(ne(5731)),Re=fe(ne(5456)),ze=ne(4381),$e=ne(5862),v=({name:G,context:Z,value:ne,label:ie,onChange:se,dataSourceBindings:ce,labelPosition:fe,labelWidth:ge,help:Je,validate:it})=>{const[ot,at]=me.useState([]),[st,ct]=me.useState(""),[ut,dt]=me.useState(""),{density:ht,family:ft}=(0,xe.default)();let _t=$e.VERTICAL_EDITOR_SPACING_ENTERPRISE;"prisma"===ft&&(_t="compact"===ht?$e.VERTICAL_EDITOR_SPACING_PRISMA_COMPACT:$e.VERTICAL_EDITOR_SPACING_PRISMA_COMFORTABLE),me.useEffect(()=>{const{staticOptions:G,dynamicOptionsLabel:ie,dynamicOptionsValue:se}=(0,ze.getDynamicOptionsFromConfig)({items:ne,context:Z});at(G),ct(ie),dt(se)},[ne,Z]),me.useEffect(()=>{void 0!==ce.primary||Array.isArray(ne)||se(null,{context:{formattedConfig:void 0,formattedStatics:void 0,statics:void 0,label:void 0,value:void 0},options:{[G]:ot}})},[ce,G,ne,se,ot]);const yt=me.useCallback((Z,ie,ce)=>{if(!Array.isArray(ne)||ie&&ce){const ne=(0,Ce.unzip)(Z.map(({label:G,value:Z})=>[G,Z]));se(null,{context:{formattedConfig:{number:{prefix:""}},formattedStatics:">statics | formatByType(formattedConfig)",statics:ne,label:`>primary | seriesByName("${ie}") | renameSeries("label") | formatByType(formattedConfig)`,value:`>primary | seriesByName("${ce}") | renameSeries("value") | formatByType(formattedConfig)`},options:{[G]:">frame(label, value) | prepend(formattedStatics) | objects()"}})}else se(null,{options:{[G]:Z}})},[G,ne,se]),vt=me.useCallback((G,Z,ne)=>{yt(ne,st,ut)},[yt,st,ut]),wt=me.useCallback((G,{value:Z})=>{""===ut?ct(Z):yt(ot,Z,ut)},[yt,ot,ut]),Ct=me.useCallback((G,{value:Z})=>{""===st?dt(Z):yt(ot,st,Z)},[yt,ot,st]),F=G=>Z=>{var ne;const ie=null===(ne=null==Z?void 0:Z.options)||void 0===ne?void 0:ne[G];return"string"==typeof ie?{value:(0,ze.getFieldFromFieldNameDsl)(ie)}:{value:""}};if(me.useMemo(()=>(0,ze.isConfigAdvanced)({items:ne,context:Z}),[ne,Z]))return me.createElement(Me.default,{label:(0,De._)(ie),labelPosition:fe,labelWidth:ge,help:Je},me.createElement(Se.default,{key:ne.toString(),"data-test":G,value:ne.toString(),onChange:Ce.noop,disabled:!0}));const St=!!ce.primary;return me.createElement(me.Fragment,null,me.createElement(Re.default,{name:"",label:(0,De._)("Static menu configuration"),labelPosition:fe,value:ot,onChange:vt,validate:it}),St&&me.createElement(ke.default,{key:"dynamic-item-editor-label-value-layout",gutter:_t},me.createElement(ke.default.Row,{key:"dynamic-item-editor-label-row"},me.createElement(Ie.default,{name:"label",label:(0,De._)("Dynamic menu label field"),dataSourceKey:"primary",dataSourceBindings:ce,value:`>primary | seriesByName("${st}")`,context:Z,onChange:wt,prepareValue:F("label")})),me.createElement(ke.default.Row,{key:"dynamic-item-editor-value-row"},me.createElement(Ie.default,{name:"value",label:(0,De._)("Dynamic menu value field"),dataSourceKey:"primary",dataSourceBindings:ce,value:`>primary | seriesByName("${ut}")`,context:Z,onChange:Ct,prepareValue:F("value")}))))};v.propTypes={onChange:ge.func.isRequired,name:ge.string.isRequired,label:ge.string.isRequired,value:ge.oneOfType([ge.arrayOf(ge.shape({label:ge.string.isRequired,value:ge.string.isRequired}).isRequired),ge.string]),labelPosition:ge.oneOf(["top","left"]),labelWidth:ge.number,context:ge.shape({label:ge.string,value:ge.string,statics:ge.arrayOf(ge.arrayOf(ge.string.isRequired).isRequired)}).isRequired,dataSourceBindings:ge.shape({primary:ge.any}).isRequired,help:ge.string},v.defaultProps={value:"",labelPosition:"top",help:(0,De._)("Advanced configuration options are being used by this input. Please edit in source mode.")},Z.default=v},7970:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(348));ne(6265);const Me=fe(ne(1018)),ke=ne(6649),xe=fe(ne(2138)),De=ne(3563),Ie=ne(5135),Re=ne(962),ze=ne(137),$e=Ce.default.div` font-family: ${De.variables.sansFontFamily}; .react-mde * { font-family: inherit; } .mde-header, .mde-preview, .mde-textarea-wrapper textarea.mde-text { background-color: ${(0,De.pick)({enterprise:De.variables.backgroundColor,prisma:De.variables.backgroundColorPopup})}; } .mde-header .mde-tabs button, .mde-header ul.mde-header-group li.mde-header-item button, .mde-textarea-wrapper textarea.mde-text { color: ${(0,De.pick)({enterprise:De.variables.textColor,prisma:De.variables.contentColorActive})}; } `,Je=Ce.default.div` display: none; `,it={error:1,warning:2,other:3},O=({onChange:G,defaultErrors:Z={},name:ne,value:ie})=>{const[se,ce]=me.useState("write"),[fe,ge]=me.useState(ie),[Ce,De]=me.useState(Z),ot=me.useCallback(G=>ge(G),[ge]),at=me.useCallback(se=>{fe!==ie&&(G(se,ne,fe),De(Z))},[G,fe,ie,ne,De]),st=me.useMemo(()=>{let G=null;return Object.values(Ce).includes("error")?G=me.createElement(Re.CSPMessage,{type:"error"}):Object.values(Ce).includes("warning")&&(G=me.createElement(Re.CSPMessage,{type:"warning"})),Object.values(Ce).includes("other")&&(G=me.createElement(me.Fragment,null,G,me.createElement(xe.default,{appearance:"fill",type:"error","data-test":"image-error"},(0,ke._)("We can't find an image with this URL. Please enter a new URL")))),G},[Object.values(Ce).join("")]),ct=me.useMemo(()=>{return me.createElement(Je,null,me.createElement(Me.default,{text:ie,imageRenderer:(G=(G,Z)=>{var ne,ie;(null!==(ne=it[Ce[G]])&&void 0!==ne?ne:1/0)>(null!==(ie=it[Z])&&void 0!==ie?ie:0)&&De(Object.assign(Object.assign({},Ce),{[G]:Z}))},function({src:Z,alt:ne}){const ie=(0,Ie.useCSPViolationObserver)(Z);return me.useEffect(()=>{"none"!==ie&&G(Z,ie)},[ie,Z]),me.createElement("img",{src:Z,alt:ne,onError:()=>{"none"===ie&&G(Z,"other")}})})}));var G},[ie,st]);return me.createElement($e,{"data-test":ne},me.createElement(Se.default,{value:fe,toolbarCommands:[["header","bold","italic","link","quote","code","image","unordered-list","ordered-list"]],onChange:ot,selectedTab:se,onTabChange:ce,disablePreview:!0,childProps:{textArea:{onBlur:at}}}),ct,st&&me.createElement(ze.MessageContainer,null,st))};O.propTypes={onChange:ge.func.isRequired,name:ge.string.isRequired,value:ge.string,defaultErrors:ge.string},O.defaultProps={value:""},Z.default=O},2965:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.ColorFlyoutEditor=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(8897)),Me=fe(ne(4566)),ke=ne(6649),xe=fe(ne(8965)),De=ne(8987),Ie=fe(ne(7020)),Re=fe(ne(1551)),ze=ne(3850),$e=ne(6801),Je=fe(ne(4008)),it=fe(ne(397)),ot={padding:"10px"},at={width:"314px"},st=(0,Ce.default)(Ie.default)` padding: 8px; width: 100%; min-height: 40px; & > span { display: grid; grid-template-columns: repeat(auto-fill, 26px); justify-content: space-evenly; grid-gap: 4px; } background-color: ${Me.default.interactiveColorBackground}; `,ct=Ce.default.div` width: 26px; height: 24px; background-color: ${G=>G.color}; border-radius: 2px; `,ut=Ce.default.div` box-sizing: border-box; padding: 8px; width: 312px; max-height: 484px; background-color: ${Me.default.backgroundColorPopup}; `,dt=Ce.default.div` font-weight: 500; font-size: 14px; line-height: 20px; padding: 8px 8px 0 8px; font-family: ${Me.default.fontFamily}; color: ${Me.default.contentColorDefault}; `,ht=Ce.default.div` height: 412px; overflow-y: scroll; padding: 8px 10px; `;Z.ColorFlyoutEditor=({colors:G,CustomColorMatchEditor:Z,handleColorRemove:ne,handleColorChange:ie,flyoutTitle:se,addColorButtonLabel:ce,handleColorAdd:fe,handleColorMove:ge})=>{const{family:Ce,density:Me}=(0,Se.default)(),ke=(0,me.useMemo)(()=>({enterprise:{compact:"207px",comfortable:"199px"},prisma:{compact:"188px",comfortable:"172px"}}),[]),Ie=(0,me.useMemo)(()=>G.map((G,se)=>{const ce=null==Z;return me.default.createElement(xe.default.Row,{index:se,key:(0,De.createDOMID)(),"data-color":G,onRequestRemove:ne},me.default.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},me.default.createElement(it.default,{value:G,key:(0,De.createDOMID)(),onChange:ie(se),hideLabel:!0,label:" ",name:"color",style:{marginBottom:0,marginTop:0,width:ce?"100%":32},showTextInput:ce,textWidth:ke[Ce][Me]}),"function"==typeof Z&&me.default.createElement(Z,{index:se})))}),[G,Z,ne,ie,ke,Me,Ce]);return me.default.createElement(ut,{"data-test":"MultiColorPickerFlyoutContent"},me.default.createElement(dt,{"data-test":"MultiColorPickerFlyoutTitle"},se),me.default.createElement(ht,null,me.default.createElement(xe.default,{addLabel:ce,onRequestAdd:fe,onRequestMove:ge,"data-test":"ColorListEditor"},Ie)))};let ft=0;const w=({CustomColorMatchEditor:G,onChange:ne=(()=>{}),canReorderColors:ie,value:se,flyoutTitle:ce,addColorButtonLabel:fe,name:ge="seriesColors",label:Ce="",labelPosition:Se="top",labelWidth:Me,isDisabled:ke=!1,hideLabel:xe,canAddNewColors:Ie})=>{const[$e,it]=(0,me.useState)(!1),[ut,dt]=(0,me.useState)(se),ht=(0,me.useRef)(null);(0,me.useEffect)(()=>{dt(se)},[se]);const _t=(0,me.useCallback)(()=>{ne(null,ge,[...ut,ze.VIZ_CATEGORICAL[ft%ze.VIZ_CATEGORICAL.length]]),ft+=1},[ge,ne,ut]),yt=(0,me.useCallback)(G=>(Z,ie,se)=>{const ce=[...ut];ce.splice(G,1,se),ne(null,ge,ce)},[ge,ne,ut]),vt=(0,me.useCallback)((G,{index:Z})=>{const ie=[...ut];ie.splice(Z,1),ne(null,ge,ie)},[ge,ne,ut]),wt=(0,me.useCallback)(({fromIndex:G,toIndex:Z})=>{const ie=[...ut],se=ie[G];ie.splice(G,1),ie.splice(Z,0,se),ne(null,ge,ie)},[ge,ne,ut]),Ct=(0,me.useCallback)(({event:G})=>{var Z;(null===(Z=null==G?void 0:G.srcElement)||void 0===Z?void 0:Z.sortableHandle)||it(!1)},[]),St=(0,me.useMemo)(()=>ut.map(G=>me.default.createElement(ct,{color:G,key:(0,De.createDOMID)()})),[ut]),Mt=(0,me.useCallback)(()=>{it(G=>!G)},[]);return me.default.createElement(Je.default,{label:Ce,labelPosition:Se,labelWidth:Me,hideLabel:xe,"data-test":"MultiColorPickerEditor"},me.default.createElement(st,{inline:!1,"data-test":"MultiColorPickerButton",appearance:"flat",ref:ht,onClick:Mt,disabled:ke,style:at},St),me.default.createElement(Re.default,{"data-test":"MultiColorPickerFlyout",open:$e,anchor:ht.current,defaultPlacement:"horizontal",style:ot,onRequestClose:Ct},me.default.createElement(Z.ColorFlyoutEditor,{colors:ut,CustomColorMatchEditor:G,handleColorRemove:vt,handleColorChange:yt,handleColorAdd:Ie?_t:void 0,handleColorMove:ie?wt:void 0,flyoutTitle:ce,addColorButtonLabel:fe})))};w.propTypes=Object.assign(Object.assign({},$e.BaseEditorPropTypes),{canReorderColors:ge.bool,canAddNewColors:ge.bool,value:ge.arrayOf(ge.string),flyoutTitle:ge.string,addColorButtonLabel:ge.string,CustomColorMatchEditor:ge.func,hideLabel:ge.bool}),w.defaultProps={value:ze.VIZ_CATEGORICAL,canReorderColors:!0,flyoutTitle:(0,ke._)("Customize colors"),addColorButtonLabel:(0,ke._)("Add color"),hideLabel:!0,canAddNewColors:!0},Z.default=w},4215:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=fe(ne(232)),Ce=fe(ne(8216)),Se=fe(ne(4566)),Me=fe(ne(7020)),ke=fe(ne(1551)),xe=fe(ne(6769)),De=fe(ne(1668)),Ie=fe(ne(4008)),Re=(0,ge.default)(De.default)` background-color: ${(0,Ce.default)({enterprise:Se.default.backgroundColor,prisma:Se.default.backgroundColorPopup})}; `,ze=ge.default.span` font-weight: 500; font-size: 13px; margin-bottom: 7px; background-color: ${(0,Ce.default)({enterprise:Se.default.backgroundColor,prisma:Se.default.backgroundColorPopup})}; `,$e=ge.default.div` background-color: ${G=>G.selected?(0,Ce.default)({enterprise:Se.default.backgroundColorHover,prisma:Se.default.interactiveColorOverlaySelected})(G):(0,Ce.default)({enterprise:Se.default.backgroundColor,prisma:Se.default.backgroundColorPopup})(G)}; display: flex; padding: 7px 60px 7px 15px; &:hover { cursor: pointer; background-color: ${G=>(0,Ce.default)({enterprise:Se.default.backgroundColorHover,prisma:G.selected?Se.default.interactiveColorOverlaySelected:Se.default.interactiveColorOverlayHover})(G)}; } `,Je=ge.default.div` margin-right: 10px; &:hover { cursor: pointer; } `,it=ge.default.div` align-items: center; display: flex; `,ot=ge.default.span` font-size: 13px; font-weight: normal; `,_=({presetName:G,presetLabel:Z,presetValue:ne,selectedPreset:ie,onPopoverClick:se})=>{const ce=xe.default[G],fe=me.useCallback(G=>{se(G,Z,ne)},[se,Z,ne]);return me.createElement($e,{"data-test":"flyout-preset-option-"+Z,selected:Z===ie,key:Z,onClick:fe},me.createElement(Je,null,ce&&me.createElement(ce,{"data-test":"icon-label-"+Z})),me.createElement(it,null,me.createElement(ot,null,Z)))};Z.default=({animation:G=!0,labelPosition:Z="top",onChange:ne,label:ie,labelWidth:se,presets:ce,value:fe})=>{const[ge,Ce]=me.useState(!1),[Se,xe]=me.useState(fe||"Select..."),[De,$e]=me.useState(),Je=me.useCallback(G=>$e(G),[]),it=me.useCallback(()=>Ce(G=>!G),[]),ot=me.useCallback(({event:G,reason:Z})=>{if(G&&"clickAway"===Z){let Z=G.target;for(;Z;){if(Z===De||void 0===(null==Z?void 0:Z.parentNode))return;Z=Z.parentNode}}Ce(!1)},[De]),at=me.useCallback((G,Z,ie)=>{xe(Z),ne(G,ie),Ce(!1)},[ne]);return me.createElement(me.Fragment,null,me.createElement(Ie.default,{label:ie,labelPosition:Z,labelWidth:se},me.createElement(Me.default,{"data-test":"preset-selector-button",label:Se,isMenu:!0,elementRef:Je,onClick:it})),me.createElement(ke.default,{animation:G,"data-test":"preset-editor-flyout",open:ge,anchor:De,appearance:"normal",defaultPlacement:"horizontal",onRequestClose:ot},me.createElement(Re,{"data-test":"flyout-header"},me.createElement(ze,{"data-test":"preset-selector-flyout-label"},ie)),ce.map(G=>me.createElement(_,{key:G.label,presetName:G.name,presetLabel:G.label,presetValue:G.value,selectedPreset:Se,onPopoverClick:at}))))}},7364:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ne(6649),Ce=fe(ne(7598)),Se=ce(ne(23)),Me=ne(8987),ke=fe(ne(2373)),xe=ne(2687),De=fe(ne(6447)),Ie=ne(9033),Re=fe(ne(2965)),ze=fe(ne(4008)),$e=ne(6801),Je=ne(1385),it={},ot={},at={},E=({name:G,value:Z=it,dataSourceBindings:ne,onChange:ie,options:se=ot,isCategorical:ce=!1,context:fe,optionsSchema:$e=at})=>{var st;const[ct,ut]=(0,me.useState)(Object.values(Z)),[dt,ht]=(0,me.useState)(Object.keys(Z));(0,me.useEffect)(()=>{ut(Object.values(Z)),ht(Object.keys(Z))},[JSON.stringify(Z)]);const ft=(0,Je.useDataSource)({dataSourceBindings:ne,dataSourceKey:"primary"}),{isLoading:_t}=(0,me.useMemo)(()=>(0,Ie.getDataSourceStateInfo)(ft),[ft]),{category:yt=(null===(st=null==$e?void 0:$e.category)||void 0===st?void 0:st.default)}=null!=se?se:{},vt=(0,me.useMemo)(()=>{var G,Z;if(ce){if(!yt)return[];if(Array.isArray(yt))return[...new Set(yt.map(G=>null==G?void 0:G.toString()).filter(G=>!(0,Ce.default)(G)))];if(!_t&&De.default.isDslString(yt)){const G=xe.Options.evaluate({context:fe,options:Object.assign(Object.assign({},se),{category:yt})},{primary:ft});if(Array.isArray(G.category))return[...new Set(G.category.map(G=>null==G?void 0:G.toString()).filter(G=>!(0,Ce.default)(G)))]}return[]}return null!==(Z=null===(G=null==ft?void 0:ft.data)||void 0===G?void 0:G.fields.map(G=>G.name))&&void 0!==Z?Z:[]},[fe,ft,ce,se,yt,_t]),{editorLabel:wt,flyoutTitle:Ct,addColorButtonLabel:St}=(0,me.useMemo)(()=>ce?{editorLabel:(0,ge._)("Series colors by category name"),flyoutTitle:(0,ge._)("Color by category name"),addColorButtonLabel:(0,ge._)("Add category")}:{editorLabel:(0,ge._)("Series colors by field name"),flyoutTitle:(0,ge._)("Color by field name"),addColorButtonLabel:(0,ge._)("Add field")},[ce]),B=({updatedColors:G,updatedFields:Z})=>{const ne={};return Z.forEach((Z,ie)=>{ne[Z]=G[ie]}),ne},Mt=(0,me.useCallback)((Z,ne,se)=>{if(se.length>vt.length)return;const ce=dt;if(se.length>ct.length){const G=vt.find(G=>!dt.includes(G));ce.push(G)}if(se.length!se.includes(G));ce.splice(G,1)}ie(null,G,B({updatedColors:se,updatedFields:ce}))},[vt,ie,G,dt,ct]),kt=(0,me.useCallback)(({newFieldIndex:Z,currFieldIndex:ne})=>{const se=dt.includes(vt[Z]),ce=dt;if(se){const G=dt.indexOf(vt[Z]),ie=dt[ne];ce[ne]=dt[G],ce[G]=ie}else ce[ne]=vt[Z];ie(null,G,B({updatedColors:ct,updatedFields:ce}))},[dt,vt,ct,G,ie]),xt=(0,me.useMemo)(()=>(({fields:G,dsFields:Z,handleFieldChange:ne})=>{const o=({index:ie})=>{const se=(0,me.useMemo)(()=>Z.map((G,Z)=>me.default.createElement(ke.default.Option,{label:G,value:Z,key:(0,Me.createDOMID)(),"data-test":`${G}-${ie}`})),[ie]),ce=(0,me.useCallback)((G,{value:Z})=>{ne({newFieldIndex:Z,currFieldIndex:ie})},[ie]),fe=Z.indexOf(G[ie]);return me.default.createElement(ke.default,{value:fe,onChange:ce,style:{width:190},"data-test":"field-select"},se)};return o.propTypes={index:Se.number},o})({fields:dt,dsFields:vt,handleFieldChange:kt}),[vt,dt,kt]);return me.default.createElement(ze.default,{label:wt,labelPosition:"top","data-test":"SeriesColorsByFieldEditor"},me.default.createElement(Re.default,{value:ct,onChange:Mt,name:"series",canReorderColors:!1,flyoutTitle:Ct,addColorButtonLabel:St,CustomColorMatchEditor:xt,isDisabled:vt.length<1,canAddNewColors:dt.length{const ie=(0,me.useCallback)(()=>{ne(G.name)},[ne,G]),se=(0,me.useMemo)(()=>({color:Z?"inherit":"transparent"}),[Z]),ce=(0,me.useMemo)(()=>G.palette.slice(0,8),[G]);return me.default.createElement(Me.default,{key:`label-palette-${G.name}-group`,"data-test":"palette-dropdown-menu-"+G.name,controlsLayout:"fill",label:G.name,labelPosition:"left",style:ze,onClick:ie},me.default.createElement(Ie,{"data-test":"palette-color-preview"},me.default.createElement(De.ColorPreview,{key:"palette-"+G.name,colors:ce,maxColorCount:8,expandToFillHorizontalSpace:!1})),me.default.createElement(Re,{"data-test":"palette-isSelected-"+Z},me.default.createElement(Se.default,{"data-test":"palette-check-"+Z,style:se})))};Z.SeriesColorsDropdownMenuItemPropTypes={palette:Ce.shape({name:Ce.any,palette:Ce.arrayOf(Ce.string)}).isRequired,isSelected:Ce.bool,onSelect:Ce.func},y.propTypes=Z.SeriesColorsDropdownMenuItemPropTypes,Z.default=y},5695:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__rest||function(G,Z){var ne={};for(var ie in G)Object.prototype.hasOwnProperty.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var se=0;for(ie=Object.getOwnPropertySymbols(G);se{let ce=Je.VERTICAL_EDITOR_SPACING_ENTERPRISE;const{density:me,family:Ce}=(0,De.default)();"prisma"===Ce&&(ce="compact"===me?Je.VERTICAL_EDITOR_SPACING_PRISMA_COMPACT:Je.VERTICAL_EDITOR_SPACING_PRISMA_COMFORTABLE);const it=(0,ge.useMemo)(()=>!!(null==ne?void 0:ne.length)&&!(0,Se.isEqual)(ne,Re.VIZ_CATEGORICAL),[ne]),ct=(0,ge.useMemo)(()=>it?Object.assign(Object.assign({},Z.PALETTES),{custom:Object.assign(Object.assign({},Z.PALETTES.custom),{palette:ne})}):Z.PALETTES,[it,ne]),[ut,dt]=(0,ge.useState)(it?ne:[...ct.default.palette]),[ht,ft]=(0,ge.useState)(it?"custom":"default"),[_t,yt]=(0,ge.useState)(ct),vt=(0,ge.useCallback)(G=>{const Z=Object.keys(_t).find(Z=>_t[Z].name===G);ft(Z),se(null,ie,_t[Z].palette),dt([..._t[Z].palette])},[ie,se,_t]),wt=(0,ge.useCallback)((G,ne,ce)=>{if(ce.length){yt(Object.assign(Object.assign({},_t),{custom:Object.assign(Object.assign({},Z.PALETTES.custom),{palette:ce})})),ft("custom");const G=[...ce];dt(G),se(null,ie,G)}else yt(Object.assign(Object.assign({},_t),{custom:Z.PALETTES.custom})),ft("default"),dt(_t.default.palette),se(null,ie,_t.default.palette)},[ie,se,_t]),Ct=ge.default.createElement(Me.default,{appearance:"toggle","data-test":"palette-dropdown-button",label:_t[ht].name,isMenu:!0}),{custom:St}=Z.PALETTES,Mt=fe(Z.PALETTES,["custom"]);return ge.default.createElement(ke.default,{gutter:ce},ge.default.createElement(ke.default.Row,null,ge.default.createElement($e.default,{label:G||(0,Ie._)("Series colors"),labelPosition:"top","data-test":"series-colors-editor"},ge.default.createElement(xe.default,{toggle:Ct},_t.custom.palette.length?ge.default.createElement(ge.default.Fragment,null,ge.default.createElement(ot.default,{key:"SeriesColorsDropdownMenuItem-custom",palette:_t.custom,isSelected:"custom"===ht,onSelect:vt}),ge.default.createElement(at.default,{style:st})):null,Object.keys(Mt).map(G=>ge.default.createElement(ot.default,{key:"SeriesColorsDropdownMenuItem-"+G,palette:_t[G],isSelected:G===ht,onSelect:vt}))))),ge.default.createElement(ke.default.Row,null,ge.default.createElement(ze.default,{name:"series-colors",value:ut,flyoutTitle:(0,Ie._)("Customize colors"),addColorButtonLabel:(0,Ie._)("Add color"),onChange:wt})))};P.propTypes=Object.assign(Object.assign({},it.BaseEditorPropTypes),{value:Ce.arrayOf(Ce.string)}),Z.default=P},148:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.SliderEditor=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(5309)),Me=fe(ne(2782)),ke=fe(ne(4008)),xe=ne(6801),De={flexBasis:92,flexGrow:0,flexShrink:0},Ie=Ce.default.div` flex: 0 0 8px; `,Re=Object.assign(Object.assign({},xe.BaseEditorPropTypes),{help:ge.string,max:ge.number,maxLabel:ge.oneOfType([ge.element,ge.string]),min:ge.number,minLabel:ge.oneOfType([ge.element,ge.string]),step:ge.number,stepMarks:ge.oneOf(["focus","always","none"]),value:ge.number});Z.SliderEditor=({help:G,isDisabled:Z=!1,label:ne,labelPosition:ie="top",labelWidth:se,max:ce,maxLabel:fe=null,min:ge,minLabel:Ce=null,name:xe,onChange:Re,step:ze,stepMarks:$e="focus",value:Je=null})=>{const it=me.useCallback((G,{value:Z})=>{(parseFloat(Z)||0===Z)&&Re(G,xe,Z)},[Re,xe]),ot=me.useCallback((G,{value:Z})=>{(parseFloat(Z)||0===Z)&&Re(G,xe,Z)},[Re,xe]),at="none"===$e?"never":$e;return me.createElement(ke.default,{label:ne,labelPosition:ie,labelWidth:se,help:G},me.createElement(Se.default,{"data-test":xe,min:ge,minLabel:Ce,max:ce,maxLabel:fe,step:ze,stepMarks:at,value:Je,disabled:Z,onChange:it}),me.createElement(Ie,null),me.createElement(Me.default,{inline:!0,min:ge,max:ce,step:ze,value:Je,disabled:Z,onChange:ot,style:De}))},Z.SliderEditor.propTypes=Re,Z.default=Z.SliderEditor},6116:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(4793),Se=fe(ne(9250)),Me=ne(9033),ke=ne(6801),xe=ne(1256),De=fe(ne(7649)),Ie=fe(ne(1432)),Re=ne(5396),ze=ne(2088),$e=ne(1385),Je=Object.assign(Object.assign({},ke.BaseEditorPropTypes),{flyoutConfig:ge.shape({number:ge.arrayOf(ge.any),sparkline:ge.arrayOf(ge.any),time:ge.arrayOf(ge.any)}),defaultOptionsByType:ge.objectOf(ge.objectOf(ge.oneOfType([ge.string,ge.number,ge.bool]))),dataSourceKey:ge.string,columnColoringConfig:ze.columnColoringConfigPropType}),C=G=>{const Z={};return G.forEach((G,ne)=>{Z[ne]=G}),Z},O=({dataSourceKey:G="primary",dataSourceBindings:Z,label:ne,labelPosition:ie="top",labelWidth:se,columnColoringConfig:ce,defaultOptionsByType:fe,flyoutConfig:ge=[[]],onChange:ke,value:ze})=>{const{context:Je={},columnFormat:it={},tableFormat:ot={}}=ze,at=(0,$e.useDataSource)({dataSourceBindings:Z,dataSourceKey:G}),{columns:st,fields:ct}=(0,Ce.get)(at,"data")||{columns:[],fields:[]},ut=(0,xe.getAvailableFieldsWithTypes)(st,ct),dt=me.useMemo(()=>(0,Re.getEditorSupportedFormatOptions)(ge),[ge]),[ht,ft]=me.useState((0,Re.getInitialColumnFormattingState)({availableFieldsWithTypes:ut,coloringTypes:ce.coloringTypes,columnFormatOption:it,editorSupportedFormatOptions:dt,vizContext:Je}));me.useEffect(()=>{ft((0,Re.getInitialColumnFormattingState)({availableFieldsWithTypes:ut,coloringTypes:ce.coloringTypes,columnFormatOption:it,editorSupportedFormatOptions:dt,vizContext:Je}))},[JSON.stringify(ut)]);const _t=me.useCallback(({columnName:G,columnDataType:Z})=>{const ne=(0,Re.getFormattingOptDSLKey)(it[G]),ie=Je[ne]||{[Z]:{}},se=Object.keys(ie[Z]).reduce((G,Z)=>(G[Z]=null,G),{}),ce=new Map(ht),me={columnColoring:(0,Ce.get)(ht.get(G),"columnColoring",{_meta:{dynamicallyColoredOption:"Off"}}),formatByType:{[Z]:Object.assign(Object.assign(Object.assign({},se),fe[Z]),{_meta:{exceedsEditorCapabilities:!1}})}};ce.set(G,me),ft(ce),ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:C(ce)})))},[it,ht,ke]),yt=me.useCallback(({columnName:G,coloringTypes:Z,dynamicallyColoredOption:ne})=>{if(Array.isArray(Z)){const ie=(0,Ce.cloneDeep)(ht.get(G));Z.forEach(({coloringType:G,colorContextKey:Z,colorOptionDSL:ne,colorContextConfig:se})=>{(0,Ce.set)(ie,["columnColoring",G],{colorContextKey:Z,colorOptionDSL:ne,colorContextConfig:se})}),(0,Ce.set)(ie,["columnColoring","_meta"],{dynamicallyColoredOption:ne});const se=new Map(ht);se.set(G,ie),ft(se),ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:C(se)})))}},[it,ht,ke]),vt=me.useCallback(({columnName:G,optionName:Z,value:ne})=>{const[ie]=Object.keys(ht.get(G).formatByType),se=(0,Ce.defaultsDeep)({},{formatByType:{[ie]:{[Z]:ne,_meta:{exceedsEditorCapabilities:!1}}}},ht.get(G)),ce=new Map(ht);ce.set(G,se),ft(ce),ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:C(ce)})))},[it,ht,ke]),wt=me.useCallback((G,{value:Z})=>{const{name:ne,type:ie}=Z,se=new Map(ht),ce=(0,Re.getFormattingOptDSLKey)(it[ne]);let me;const ge=dt[ie];if(ce){const G=Je[ce];return me={columnColoring:{_meta:{dynamicallyColoredOption:"Off"}},formatByType:{[ie]:Object.assign(Object.assign({},(0,Ce.get)(Je,[ce,ie],{})),{_meta:{exceedsEditorCapabilities:(0,Re.checkExceedsEditorCapabilities)(G[ie],ge)}})}},se.set(ne,me),void ft(se)}const Se=(0,Re.getGlobalTableFormatting)(ot,ie,Je);me={columnColoring:{_meta:{dynamicallyColoredOption:"Off"}},formatByType:{[ie]:Object.assign(Object.assign(Object.assign({},fe[ie]),Se),{_meta:{exceedsEditorCapabilities:(0,Re.checkExceedsEditorCapabilities)(Se,ge)}})}},se.set(ne,me),ft(se),ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:C(se)})))},[it,ht,ke,ft,ot,Je]),Ct=me.useCallback(({columnName:G,columnDataType:Z})=>{const ne=new Map(ht);ne.delete(G),ft(ne);const ie=ht.get(G);if((0,Ce.get)(ie,["formatByType",Z,"_meta","exceedsEditorCapabilities"])){const Z=(0,Re.getFormattingOptDSLKey)(it[G]),ne=Je[Z]||{},{colorContextKey:ie}=(0,Ce.get)(ht.get(G),["columnColoring","rowColors"],{}),{colorContextKey:se}=(0,Ce.get)(ht.get(G),["columnColoring","rowBackgroundColors"],{});ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:Object.assign(Object.assign({},C(ht)),{[G]:{formatByType:Object.assign({},ne),columnColoring:Object.assign(Object.assign({},ie&&{rowColors:{colorContextKey:ie,colorOptionsDSL:null,colorContextConfig:null}}),se&&{rowBackgroundColors:{colorContextKey:se,colorOptionsDSL:null,colorContextConfig:null}})}})})))}else ke(null,(0,Re.getColumnFormatDefFromState)((0,Ce.cloneDeep)({columnFormatOption:it,updatedEditorColumnFormatting:Object.assign(Object.assign({},C(ht)),{[G]:null})})))},[it,ht,ke,ft,ot]),St=[];ht.forEach((G,Z)=>{const[ne]=Object.keys(G.formatByType),ie=(0,Ce.get)(G,["formatByType",ne,"_meta","exceedsEditorCapabilities"]);St.push(me.createElement(De.default,{key:Z,columnName:Z,columnDataType:ne,columnColoring:G.columnColoring,columnColoringConfig:ce,columnFormatting:G.formatByType,defaultOptionsByType:fe,flyoutConfigForDataType:ge[ne]||[],isSourceCustomized:ie,removeColumnFormatting:Ct,resetColumnToDefault:_t,updateColumnColoring:yt,updateColumnFormatting:vt}))});const{hasError:Mt,isMissing:kt,isLoading:xt}=(0,Me.getDataSourceStateInfo)(at),Lt=ne&&""!==ne?void 0:{marginTop:"-8px"};return me.createElement(me.Fragment,null,me.createElement("div",null,St),me.createElement(Se.default,{label:ne,labelPosition:ie,labelWidth:se,style:Lt},me.createElement(Ie.default,{availableFieldsWithTypes:ut,columnFormatting:ht,disableToggle:kt||Mt,editorSupportedFormatOptions:dt,handleAddColumnFormatting:wt,placeholderMessage:(0,xe.getPlaceholderMessage)({isMissing:kt,isLoading:xt,hasError:Mt,defaultMessage:"+ Add column to format"})})))};O.propTypes=Je,Z.default=O},1705:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.ColorPreview=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(3283),Me=Ce.default.div` display: flex; flex-flow: ${({isReversed:G})=>G?"row-reverse":"row"}; height: 100%; `,ke=Ce.default.div.attrs(()=>({"data-test":"ColorPreviewItem"}))` flex-grow: ${({widthGrow:G})=>G?1:0}; width: ${({maxColorCount:G})=>`calc(100% / ${G} - 1px)`}; margin-right: 1px; background-color: ${({color:G})=>G}; &:last-of-type { margin-right: 0; } `,xe={colors:ge.arrayOf(ge.string).isRequired,maxColorCount:ge.number,expandToFillHorizontalSpace:ge.bool,isReversed:ge.bool};Z.ColorPreview=({colors:G=[],maxColorCount:Z=7,expandToFillHorizontalSpace:ne=!0,isReversed:ie=!1})=>me.createElement(Me,{isReversed:ie},G.map((G,ie)=>(0,Se.isColor)(G)&&me.createElement(ke,{key:`${ie}-${G}`,color:G,widthGrow:ne,maxColorCount:Z}))),Z.ColorPreview.propTypes=xe},2369:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.FormatterEditor=Z.supportedFormatters=Z.MatchValueEditorWrapper=Z.RangeValueEditorWrapper=Z.getSortedRanges=Z.sharedPalettesConfigPropType=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(6649),Se=ne(1788),Me=ne(1561),ke=fe(ne(3263)),xe=fe(ne(530)),De=fe(ne(107));Z.sharedPalettesConfigPropType=ge.exact({paletteTheme:ge.string,paletteEntry:ge.exact({type:ge.string,index:ge.number})}),Z.getSortedRanges=(G=[])=>{const Z=[...Array.isArray(G)?G:[]];return Z.sort((G,Z)=>null==G.to?1:null==Z.to?-1:+G.to-+Z.to),Z},Z.RangeValueEditorWrapper=({defaultPalettesConfig:G,value:Z,onChange:ne,selectedDataSelector:ie})=>me.createElement(xe.default,{"data-test":"RangeValueEditor",defaultPalettesConfig:G,value:Z,onChange:(G,Z,ie)=>ne(G,Z,ie),selectedDataSelector:ie}),Z.RangeValueEditorWrapper.propTypes={defaultPalettesConfig:Z.sharedPalettesConfigPropType,value:ge.arrayOf(ge.shape({from:ge.number,to:ge.number,value:ge.string})),onChange:ge.func,selectedDataSelector:ge.string},Z.MatchValueEditorWrapper=({defaultPalettesConfig:G,value:Z,onChange:ne,selectedDataSelector:ie})=>me.createElement(De.default,{"data-test":"MatchValueEditor",defaultPalettesConfig:G,value:Z,onChange:(G,Z,ie)=>ne(G,Z,ie),selectedDataSelector:ie}),Z.MatchValueEditorWrapper.propTypes={defaultPalettesConfig:Z.sharedPalettesConfigPropType,value:ge.arrayOf(ge.shape({match:ge.oneOfType([ge.string,ge.number]),value:ge.string})),onChange:ge.func,selectedDataSelector:ge.string},Z.supportedFormatters={rangeValue:{preview:Se.RangeValuePreview,editor:Z.RangeValueEditorWrapper},matchValue:{preview:Me.MatchValuePreview,editor:Z.MatchValueEditorWrapper}};const Ie=Object.keys(Z.supportedFormatters),Re={selectedDataSelector:ge.string,selectedFormatterType:ge.oneOf(Ie),currentFormatterConfig:ge.any,formatters:ge.arrayOf(ge.shape({label:ge.string,value:ge.string,defaults:ge.object})),dataSelectors:ge.arrayOf(ge.shape({label:ge.string,value:ge.string})),onDataSelectorChange:ge.func,onFormatterTypeChange:ge.func,onFormatterConfigChange:ge.func,defaultPalettesConfig:Z.sharedPalettesConfigPropType};Z.FormatterEditor=({selectedDataSelector:G,selectedFormatterType:ne,currentFormatterConfig:ie,formatters:se=[],dataSelectors:ce=[],onDataSelectorChange:fe,onFormatterTypeChange:ge,onFormatterConfigChange:Se,defaultPalettesConfig:Me})=>{const xe=ce.length>1,De=xe?(0,Ce._)("Method"):"",Ie=se.filter(Z=>Z.defaults[G]),Re=Ie.length>1,ze=Z.supportedFormatters[ne].editor;return me.createElement(me.Fragment,null,xe&&me.createElement(ke.default,{name:"dataSelector",label:(0,Ce._)("Based on"),"data-test":"FormatterEditorDataSelector",values:ce,value:G,onChange:fe}),Re&&me.createElement(ke.default,{name:"formatterSelector",label:De,"data-test":"FormatterEditorFormatterSelector",values:Ie,value:ne,onChange:ge}),me.createElement(ze,{"data-test":"FormatterEditorConfigEditor",name:"formatterConfig",value:ie,onChange:Se,defaultPalettesConfig:Me,selectedDataSelector:G}))},Z.FormatterEditor.propTypes=Re},3396:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(6649),Se=fe(ne(232)),Me=fe(ne(6343)),ke=fe(ne(7020)),xe=fe(ne(451)),De=Se.default.div` display: flex; flex-direction: row; margin-bottom: 10px; `,Ie=Se.default.div` display: flex; flex-direction: column; justify-content: center; `,Re=Se.default.div` display: flex; `,ze={marginRight:"10px"},y=({disableAddMatches:G=!1,handleAddMatch:Z,handleReverse:ne})=>me.createElement(De,null,me.createElement(Re,null,me.createElement(ke.default,{"data-test":"reverse-matches-button",icon:me.createElement(Me.default,null),style:ze,onClick:ne})),me.createElement(Ie,null,me.createElement(xe.default,{"data-test":"add-match-link",disabled:G,onClick:Z},"+ "+(0,Ce._)("Add Match"))));y.propTypes={disableAddMatches:ge.bool,handleAddMatch:ge.func,handleReverse:ge.func},Z.default=y},347:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=fe(ne(232)),Ce=fe(ne(7408)),Se=(0,ge.default)(Ce.default)` margin-right: 14px; `;Z.default=({color:G,colorIndex:Z,onChange:ne,palette:ie})=>{const se=me.useCallback(({value:G})=>ne({colorIndex:Z,value:G}),[Z,ne]);return me.createElement(Se,{"data-test":"match-color-"+G,value:G,palette:ie,onChange:se,hideInput:!0})}},1727:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=ne(8548),ke=fe(ne(3396)),xe=fe(ne(347)),De=fe(ne(8753)),Ie=ne(3719),Re=fe(ne(2265)),ze=Ce.default.div` padding-top: 10px; `,$e=Ce.default.div` display: flex; flex-direction: column-reverse; `,Je=Ce.default.div.attrs(()=>({"data-test":"match-entry-row"}))` display: flex; flex-direction: row; margin-bottom: 10px; `,C=({customizedColors:G,isReversed:Z,onChange:ne,precedence:ie,swatchColors:se,matchValues:ce,setIsReversed:fe,setSelectedColors:ge,selectedColors:Ce,setMatchValues:it})=>{const ot=me.useCallback(({colorIndex:G,value:Z})=>{const ie=[...Ce];ie[G]=Z,ge(ie),ne({colors:ie,matchValues:ce})},[ne,ce,Ce,ge]),at=me.useCallback(()=>{const fe=[...ce,""],me=G?[...Ce,"#000000"]:(0,Me.getNewColors)({isReversed:Z,numColors:fe.length,precedence:ie,swatchColors:se});ge(me),it(fe),ne({colors:me,matchValues:fe})},[ne,ce,G,Ce,Z,ie,se,ge,it]),st=me.useCallback(()=>{const G=[...Ce];G.reverse(),ge(G),fe(!Z),ne({colors:G,matchValues:ce})},[ne,ce,Z,Ce,ge,fe]),ct=me.useCallback((G,Z)=>{const ie=(0,Ie.isNumeric)(G)?Number(G):G;if(ce.includes(ie))return{error:(0,Se._)("Value already exists")};const se=[...ce];return se[Z]=ie,it(se),ne({colors:Ce,matchValues:se}),{error:null}},[ne,Ce,it,ce]),ut=me.useCallback((G,Z)=>{if(ce.length>1){const ie=[...ce];ie.splice(Z,1);const se=[...Ce];se.splice(G,1),it(ie),ge(se),ne({colors:se,matchValues:ie})}},[ne,ce,Ce,it,ge]);return me.createElement(ze,null,me.createElement(ke.default,{disableAddMatches:Ce.length>6,handleAddMatch:at,handleReverse:st}),me.createElement($e,null,Ce.map((G,Z)=>{const ne=ce[Z],ie=`${G}-${ne}-${Z}`;return me.createElement(Je,{key:ie},me.createElement(xe.default,{color:G,colorIndex:Z,palette:se,onChange:ot}),me.createElement(De.default,{initialValue:ne,matchValues:ce,matchIndex:Z,updateMatch:ct}),me.createElement(Re.default,{colorIndex:Z,matchIndex:Z,disabled:ce.length<2,onRemove:ut}))})))};C.propTypes={customizedColors:ge.bool,isReversed:ge.bool,precedence:ge.arrayOf(ge.arrayOf(ge.number)),swatchColors:ge.arrayOf(ge.string),matchValues:ge.arrayOf(ge.oneOfType([ge.string,ge.number])),setIsReversed:ge.func,setSelectedColors:ge.func,selectedColors:ge.arrayOf(ge.string),setMatchValues:ge.func},Z.default=C},8753:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.handleUpdateMatch=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(4082)),Me=ne(5295),ke=fe(ne(8216)),xe=fe(ne(4566)),De=Ce.default.div` display: flex; flex-grow: 1; `,Ie=Ce.default.div` flex-grow: 1; `,Re=Ce.default.div.attrs(()=>({"data-test":"match-value-error"}))` color: ${(0,ke.default)({enterprise:xe.default.errorColor,prisma:xe.default.accentColorNegative})}; padding-top: 5px; font-size: 12px; display: block; `;Z.handleUpdateMatch=({matchIndex:G,setError:Z,shouldUpdate:ne,updateMatch:ie,value:se})=>{if(ne){const ne=ie(se,G);ne&&ne.error&&Z(ne.error)}};const h=({initialValue:G,matchIndex:ne,matchValues:ie,updateMatch:se})=>{const[ce,fe]=me.useState(null),[ge,Ce]=me.useState(!1),[ke,xe]=me.useState(null),ze=me.useCallback(()=>{Ce(!0)},[]),$e=me.useCallback((G,{value:ie})=>{fe(ie),(0,Z.handleUpdateMatch)({matchIndex:ne,setError:xe,shouldUpdate:!ge,updateMatch:se,value:ie})},[ge,ne,se]),Je=me.useCallback(()=>{Ce(!1),(0,Z.handleUpdateMatch)({matchIndex:ne,setError:xe,shouldUpdate:null!=ce&&ce!==G,updateMatch:se,value:ce})},[ne,ce,G,se]),it=me.useCallback(ie=>(0,Z.handleUpdateMatch)({matchIndex:ne,setError:xe,shouldUpdate:"enter"===(0,Me.keycode)(ie.nativeEvent)&&null!==ce&&ce!==G,updateMatch:se,value:ce}),[ne,ce,G,se]);return me.useEffect(()=>{ke&&!ie.map(G=>""+G).includes(ce)&&(xe(null),(0,Z.handleUpdateMatch)({matchIndex:ne,setError:xe,shouldUpdate:!0,updateMatch:se,value:ce}))},[ce,ke,ne,ie,se]),me.createElement(De,null,me.createElement(Ie,null,me.createElement(Se.default,{"data-test":"match-text-editor",canClear:!1,error:!!ke,placeholder:"Enter a value to match here",value:""+(null!=ce?ce:G),onChange:$e,onFocus:ze,onBlur:Je,onKeyUp:it}),ke&&me.createElement(Re,null,ke)))};h.propTypes={initialValue:ge.oneOfType([ge.string,ge.number]),matchValues:ge.arrayOf(ge.oneOfType([ge.string,ge.number])),updateMatch:ge.func},Z.default=h},2265:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(7020)),Me=fe(ne(5784)),ke=Ce.default.div` display: flex; flex: 1; justify-content: flex-end; `,f=({colorIndex:G,disabled:Z=!1,onRemove:ne,matchIndex:ie})=>{const se=me.useCallback(()=>ne(G,ie),[G,ne,ie]);return me.createElement(ke,null,me.createElement("div",null,me.createElement(Se.default,{"data-test":"match-remove-button",disabled:Z,icon:me.createElement(Me.default,null),appearance:"pill",onClick:se})))};f.propTypes={disabled:ge.bool,onRemove:ge.func},Z.default=f},3719:(G,Z,ne)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumeric=Z.getMatches=void 0;const ie=ne(4793);Z.getMatches=(G=[])=>(0,ie.isEmpty)(G)?[{match:"",value:"#ff0000"}]:G,Z.isNumeric=G=>!isNaN(Number(G))&&!isNaN(parseFloat(G))},107:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.matchValuesToContextConfig=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(5089)),Se=fe(ne(5852)),Me=fe(ne(1727)),ke=ne(8548),xe=ne(3719);Z.matchValuesToContextConfig=({colors:G,matchValues:Z})=>G.map((G,ne)=>({match:Z[ne],value:G}));const m=({defaultPalettesConfig:G,onChange:ne=(()=>{}),palettes:ie=Ce.default,selectedDataSelector:se,value:ce})=>{const fe=(0,xe.getMatches)(ce),ge=me.useMemo(()=>(0,ke.inferInitialPaletteFromContext)({defaultPalettesConfig:G,palettes:ie,ranges:fe}),[G,ie]),De=me.useMemo(()=>fe.map(({match:G})=>G),[fe]),Ie=me.useMemo(()=>fe.map(({value:G})=>G),[fe]),[Re,ze]=me.useState(ge.paletteTheme),[$e,Je]=me.useState(ge.paletteEntry),it=(0,ke.getSwatchColorsFromPalette)({palettes:ie,paletteInfo:$e,paletteTheme:Re}),[ot,at]=me.useState(Ie),[st,ct]=me.useState(De),ut=(0,ke.hasCustomColors)({currentSwatchColors:it,selectedColors:ot}),dt=me.useMemo(()=>(0,ke.hasInitiallyReversedColors)({isSwatchCustomized:ut,palettes:ie,selectedColors:ot,selectedPaletteInfo:$e,selectedPaletteTheme:Re,minimumNumberOfColors:1}),[]),[ht,ft]=me.useState(dt),w=({paletteTheme:G,paletteInfo:Z})=>st.length>7?ot:(({palettes:G,paletteTheme:Z,paletteInfo:ne,matchValues:ie,setIsReversed:se,setSelectedColors:ce})=>{const fe=(0,ke.getSwatchColorsFromPalette)({palettes:G,paletteInfo:ne,paletteTheme:Z}),me=(0,ke.getPrecedenceFromPalette)({palettes:G,paletteTheme:Z,paletteInfo:ne}),ge=ie.length,Ce=me[ge<7?ge-1:5].map(G=>fe[G]).slice(0,ge);return ce(Ce),se(!1),Ce})({palettes:ie,paletteTheme:G,paletteInfo:Z,matchValues:st,setIsReversed:ft,setSelectedColors:at}),_t=me.useCallback(G=>{const ie=w({paletteTheme:G,paletteInfo:$e});ze(G);const se=(0,Z.matchValuesToContextConfig)({colors:ie,matchValues:st});ne(null,null,se)},[ne,$e,st]),yt=me.useCallback(G=>{const ie=w({paletteTheme:Re,paletteInfo:G});Je(G);const se=(0,Z.matchValuesToContextConfig)({colors:ie,matchValues:st});ne(null,null,se)},[ne,Re,st]),vt=me.useCallback(({colors:G,matchValues:ie})=>{const se=(0,Z.matchValuesToContextConfig)({colors:G,matchValues:ie});ne(null,null,se)},[ne]);return me.useEffect(()=>{const Z=(0,ke.inferInitialPaletteFromContext)({defaultPalettesConfig:G,palettes:ie,ranges:fe});ze(Z.paletteTheme),Je(Z.paletteEntry),at(Ie),ct(De)},[se]),me.createElement(me.Fragment,null,me.createElement(Se.default,{isReversed:ht,isSwatchCustomized:ut,shouldShowArrows:!1,onChangePaletteTheme:_t,onPaletteChange:yt,palettes:ie,selectedPaletteInfo:$e,selectedPaletteTheme:Re}),me.createElement(Me.default,{customizedColors:ut,isReversed:ht,onChange:vt,precedence:(0,ke.getPrecedenceFromPalette)({palettes:ie,paletteTheme:Re,paletteInfo:$e}),matchValues:st,selectedColors:ot,swatchColors:it,setIsReversed:ft,setSelectedColors:at,setMatchValues:ct}))};m.propTypes={onChange:ge.func,palettes:ge.objectOf(ge.shape({precedence:ge.arrayOf(ge.arrayOf(ge.number)),swatches:ge.arrayOf(ge.arrayOf(ge.string))})),value:ge.arrayOf(ge.shape({match:ge.oneOfType([ge.string,ge.number]),value:ge.string})),selectedDataSelector:ge.string,defaultPalettesConfig:ge.shape({paletteTheme:ge.string,paletteEntry:ge.shape({type:ge.string,index:ge.number})})},Z.default=m},1561:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.MatchValuePreview=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(1705),Se=fe(ne(1494)),Me={config:ge.arrayOf(ge.shape({match:ge.oneOfType([ge.number,ge.string]),value:ge.string.isRequired}))};Z.MatchValuePreview=({config:G})=>{const Z=(0,me.useMemo)(()=>G.map(G=>G.value).slice(0,8),[G]);return me.default.createElement(Se.default,null,me.default.createElement(Ce.ColorPreview,{"data-test":"ColorPreview",colors:Z,maxColorCount:8}))},Z.MatchValuePreview.propTypes=Me},5852:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=fe(ne(1964)),Ce=fe(ne(2150)),Se=ne(8548);Z.default=({isReversed:G,isSwatchCustomized:Z,shouldShowArrows:ne=!0,onChangePaletteTheme:ie,onPaletteChange:se,palettes:ce,selectedPaletteInfo:fe,selectedPaletteTheme:Me})=>{const ke=me.useMemo(()=>Object.keys(ce).map(G=>({value:G,label:ce[G]._meta.label})),[ce]),xe=me.useMemo(()=>(0,Se.getThemedPalettesWithoutMeta)({palettes:ce,paletteTheme:Me}),[ce,Me]);return me.createElement(me.Fragment,null,me.createElement(ge.default,{onChange:ie,paletteThemes:ke,selectedPaletteTheme:Me}),me.createElement(Ce.default,{isReversed:G,isSwatchCustomized:Z,shouldShowArrows:ne,labelPosition:"top",onPaletteChange:se,palettes:xe,selectedPaletteInfo:fe}))}},2150:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__rest||function(G,Z){var ne={};for(var ie in G)Object.prototype.hasOwnProperty.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var se=0;for(ie=Object.getOwnPropertySymbols(G);se({"data-test":G["data-test"]}))` display: flex; align-items: center; padding-right: 7px; `,at=Se.default.div` width: 302px; /* Since Dropdown contents use a Popover, width needs to be hard-coded */ `,st=Se.default.div.attrs(()=>({"data-test":"palette-group"}))` display: flex; flex-direction: column; `,ct=Se.default.div` width: ${De.default.spacingMedium}; //enterprise: 15px, prisma: 12px `,ut=Se.default.span.attrs(()=>({"data-test":"custom-swatch-text"}))` display: flex; flex: 1; padding-left: 10px; `,dt={padding:"0px 11px"},ht={color:"transparent"},ft=Se.default.div.attrs(G=>({"data-test":G["data-test"]}))` cursor: pointer; display: flex; flex-direction: row; padding: 4px 6px 4px 0px; `,_t=Object.freeze({}),D=G=>{var{palette:Z,paletteIndex:ne,onPaletteChange:ie}=G,se=fe(G,["palette","paletteIndex","onPaletteChange"]);const ce=ge.useCallback(()=>{ie({type:Z,index:ne})},[ie,Z,ne]);return ge.createElement(ft,Object.assign({onClick:ce},se))};Z.default=({isReversed:G=!1,isSwatchCustomized:Z=!1,shouldShowArrows:ne=!0,labelPosition:ie,onPaletteChange:se,palettes:ce,selectedPaletteInfo:fe})=>{const me=(0,Ce.get)(ce,[fe.type,"swatches",fe.index],[]),Se=ge.createElement(ke.default,{style:{width:"100%",padding:"0 "+De.default.spacingSmall},isMenu:!0,"data-test":"palettes-dropdown-toggle"},Z?ge.createElement(ut,null,"Customized in swatches below"):ge.createElement(ge.Fragment,null,ge.createElement(Je.default,null,ne&&ge.createElement(ze.default,null),ge.createElement($e.ColorPreview,{colors:me,isReversed:G})),ge.createElement(ct,null)));return ge.createElement(xe.default,{toggle:Se},Object.keys(ce).map(G=>ge.createElement(at,{key:G},ge.createElement(Re.default,{label:(0,Me._)(G).toUpperCase(),labelPosition:ie,style:dt},ge.createElement(st,null,ce[G].swatches.map((ne,ie)=>{const ce=!Z&&G===fe.type&&fe.index===ie,me=ce?_t:ht;return ge.createElement(D,{"data-test":`palette-swatch-row-${G}-${ie}`,key:JSON.stringify(ne),onPaletteChange:se,paletteIndex:ie,palette:G},ge.createElement(ot,{"data-test":"check-isSelected-"+ce},ge.createElement(Ie.default,{style:me})),ge.createElement(Je.default,null,ge.createElement($e.ColorPreview,{colors:ne})))}))),ge.createElement(it.default,null))))}},1964:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(6649),Se=fe(ne(5411)),Me=fe(ne(9250)),p=({labelPosition:G="top",onChange:Z,paletteThemes:ne,selectedPaletteTheme:ie})=>{const se=me.useCallback((G,{value:ne})=>Z(ne),[Z]);return me.createElement(Me.default,{label:(0,Ce._)("Preset palette"),labelPosition:G},me.createElement(Se.default,{onChange:se,value:ie},ne.map(({value:G,label:Z})=>me.createElement(Se.default.Option,{key:G,value:G,label:Z,"data-test":"preset-palette-theme-"+G}))))};p.propTypes={labelPosition:ge.string,onChange:ge.func,paletteThemes:ge.arrayOf(ge.shape({value:ge.string,label:ge.string})),selectedPaletteTheme:ge.string},Z.default=p},8548:(G,Z,ne)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.inferInitialPaletteFromContext=Z.hasInitiallyReversedColors=Z.getThemedPalettesWithoutMeta=Z.hasCustomColors=Z.getSwatchColorsFromPalette=Z.getPrecedenceFromPalette=Z.getNewColors=Z.defaultPalettesConfig=void 0;const ie=ne(4793);Z.defaultPalettesConfig={paletteTheme:"DARK_COLORS",paletteEntry:{type:"sequential",index:0}},Z.getNewColors=({isReversed:G,numColors:Z,precedence:ne,swatchColors:ie})=>{const se=Array.isArray(ne[Z-2])?ne[Z-2].map(G=>ie[G]):[];return G&&se.reverse(),se},Z.getPrecedenceFromPalette=({palettes:G,paletteInfo:Z,paletteTheme:ne})=>(0,ie.get)(G,[ne,Z.type,"precedence"],[]),Z.getSwatchColorsFromPalette=({palettes:G,paletteInfo:Z,paletteTheme:ne})=>(0,ie.get)(G,[ne,Z.type,"swatches",Z.index],[]),Z.hasCustomColors=({currentSwatchColors:G,selectedColors:Z})=>{if(Z.length>G.length)return!0;const ne={};return G.forEach(G=>{ne[G.toLowerCase()]=G.toLowerCase()}),Z.some(G=>!ne[G.toLowerCase()])},Z.getThemedPalettesWithoutMeta=({palettes:G,paletteTheme:Z})=>Object.keys(G[Z]).reduce((ne,ie)=>("_meta"!==ie&&(ne[ie]=G[Z][ie]),ne),{});const n=({currentSwatchColors:G,precedence:Z,selectedColors:ne})=>!!Z&&(!!Z.every(Z=>G[Z]===ne[Z])||!![...Z].reverse().every(Z=>G[Z]===ne[Z]));Z.hasInitiallyReversedColors=({isSwatchCustomized:G,palettes:Z,selectedColors:ne,selectedPaletteInfo:ie,selectedPaletteTheme:se,minimumNumberOfColors:ce=2})=>{var fe,me,ge,Ce,Se,Me;if(G)return!1;const ke=ne.length,xe=2===ce?ke-2:ke<7?ke-1:5,De=null===(ge=null===(me=null===(fe=null==Z?void 0:Z[se])||void 0===fe?void 0:fe[ie.type])||void 0===me?void 0:me.swatches)||void 0===ge?void 0:ge[ie.index];return[...null===(Me=null===(Se=null===(Ce=null==Z?void 0:Z[se])||void 0===Ce?void 0:Ce[ie.type])||void 0===Se?void 0:Se.precedence)||void 0===Me?void 0:Me[xe]].reverse().every((G,Z)=>De[G].toLowerCase()===ne[Z].toLowerCase())},Z.inferInitialPaletteFromContext=({defaultPalettesConfig:G,ranges:ne,palettes:ie})=>{const se=ne.map(({value:G})=>G);let ce,fe=!1;for(const G in ie)for(const ne in ie[G]){if("_meta"===ne)continue;const{swatches:me}=ie[G][ne],ge=ie[G][ne].precedence[se.length-2];for(let ie=0;ieme.createElement(De,null,me.createElement(Re,null,me.createElement(ke.default,{"data-test":"reverse-ranges-button",icon:me.createElement(Me.default,null),style:ze,onClick:ne})),me.createElement(Ie,null,me.createElement(xe.default,{"data-test":"add-range-link",disabled:G,onClick:Z},"+ "+(0,Ce._)("Add Range"))));y.propTypes={disableAddRanges:ge.bool,handleAddRange:ge.func,handleReverse:ge.func},Z.default=y},6959:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.handleUpdateRangeBoundary=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(2782)),Me=ne(5295),ke=fe(ne(8216)),xe=fe(ne(4566)),De=Ce.default.div.attrs(()=>({"data-test":"range-boundary-text"}))` color: ${(0,ke.default)({enterprise:xe.default.textGray,prisma:xe.default.contentColorActive})}; display: flex; flex-direction: column; justify-content: center; margin-right: 10px; margin-left: ${(0,ke.default)({enterprise:0,prisma:"9px"})}; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; `,Ie=Ce.default.div.attrs(()=>({"data-test":"range-boundary-error"}))` color: ${(0,ke.default)({enterprise:xe.default.errorColor,prisma:xe.default.accentColorNegative})}; padding-top: 5px; font-size: 12px; display: block; `,Re=(0,Ce.default)(Se.default)` max-width: 105px; margin-right: ${(0,ke.default)({enterprise:xe.default.spacingMedium,prisma:0})}; `,ze=Ce.default.div` display: flex; height: 100%; `,$e=Ce.default.div` display: flex; flex-direction: column; `;Z.handleUpdateRangeBoundary=({rangeBoundaryIndex:G,setError:Z,shouldUpdate:ne,updateRangeBoundary:ie,value:se})=>{if(ne){const ne=ie(se,G);ne&&ne.error&&Z(ne.error)}};const v=({initialValue:G,rangeBoundaryIndex:ne,rangeText:ie,rangeValues:se,showNumberEditor:ce=!0,updateRangeBoundary:fe})=>{const[ge,Ce]=me.useState(null),[Se,ke]=me.useState(!1),[xe,Je]=me.useState(null),it=me.useCallback(()=>{ke(!0)},[]),ot=me.useCallback((G,{value:ie})=>{Ce(ie),(0,Z.handleUpdateRangeBoundary)({rangeBoundaryIndex:ne,setError:Je,shouldUpdate:!Se,updateRangeBoundary:fe,value:ie})},[Se,ne,fe]),at=me.useCallback(()=>{ke(!1),(0,Z.handleUpdateRangeBoundary)({rangeBoundaryIndex:ne,setError:Je,shouldUpdate:"number"==typeof ge&&ge!==G,updateRangeBoundary:fe,value:ge})},[ne,ge,G,fe]),st=me.useCallback(ie=>(0,Z.handleUpdateRangeBoundary)({rangeBoundaryIndex:ne,setError:Je,shouldUpdate:"enter"===(0,Me.keycode)(ie.nativeEvent)&&"number"==typeof ge&&ge!==G,updateRangeBoundary:fe,value:ge}),[ne,ge,G,fe]);return me.useEffect(()=>{xe&&!se.includes(ge)&&(Je(null),(0,Z.handleUpdateRangeBoundary)({rangeBoundaryIndex:ne,setError:Je,shouldUpdate:"number"==typeof ge,updateRangeBoundary:fe,value:ge}))},[ge,xe,ne,se,fe]),me.createElement($e,null,me.createElement(ze,null,ce&&me.createElement(Re,{"data-test":"range-boundary-editor",error:!!xe,onBlur:at,onChange:ot,onFocus:it,onKeyUp:st,value:null!=ge?ge:G}),me.createElement(De,null,ie)),ce&&xe&&me.createElement(Ie,null,xe))};v.propTypes={initialValue:ge.number,rangeBoundaryIndex:ge.number,rangeText:ge.string,showNumberEditor:ge.bool,updateRangeBoundary:ge.func},Z.default=v},1782:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=fe(ne(232)),Ce=fe(ne(7408)),Se=(0,ge.default)(Ce.default)` margin-right: 14px; `;Z.default=({color:G,colorIndex:Z,onChange:ne,palette:ie})=>{const se=me.useCallback(({value:G})=>ne({colorIndex:Z,value:G}),[Z,ne]);return me.createElement(Se,{"data-test":"range-color-"+G,value:G,palette:ie,onChange:se,hideInput:!0})}},104:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=fe(ne(2841)),ke=fe(ne(6959)),xe=fe(ne(1782)),De=fe(ne(6900)),Ie=ne(8548),Re=Ce.default.div` padding-top: 10px; `,ze=Ce.default.div` display: flex; flex-direction: column-reverse; `,$e=Ce.default.div.attrs(()=>({"data-test":"range-entry-row"}))` display: flex; flex-direction: row; margin-bottom: 10px; `,v=({lastColorIndex:G,rangeBoundaryIndex:Z,rangeValues:ne})=>{switch(Z){case G:return(0,Se._)("and greater");case 0:return`${(0,Se._)("less than")} ${ne[Z]}`;default:return`${(0,Se._)("to")} ${ne[Z]}`}},C=({customizedColors:G,isReversed:Z,onChange:ne,precedence:ie,swatchColors:se,rangeValues:ce,setIsReversed:fe,setSelectedColors:ge,selectedColors:Ce,setRangeValues:Je})=>{const it=me.useCallback(({colorIndex:G,value:Z})=>{const ie=[...Ce];ie[G]=Z,ge(ie),ne({colors:ie,rangeValues:ce})},[ne,ce,Ce,ge]),ot=me.useCallback(()=>{const fe=[...ce,ce[ce.length-1]+10],me=G?[...Ce,"#000000"]:(0,Ie.getNewColors)({isReversed:Z,numColors:fe.length+1,precedence:ie,swatchColors:se});ge(me),Je(fe),ne({colors:me,rangeValues:fe})},[ne,ce,G,Ce,Z,ie,se,ge,Je]),at=me.useCallback(()=>{const G=[...Ce];G.reverse(),ge(G),fe(!Z),ne({colors:G,rangeValues:ce})},[ne,ce,Z,Ce,ge,fe]),st=me.useCallback((G,Z)=>{if(ce.includes(G))return{error:(0,Se._)("Value already exists")};const ie=[...ce];return ie[Z]=G,ie.sort((G,Z)=>G-Z),Je(ie),ne({colors:Ce,rangeValues:ie}),{error:null}},[ne,Ce,Je,ce]),ct=me.useCallback((G,fe)=>{if(ce.length>1){const me=[...ce];me.splice(fe,1);const Se=[...Ce];Se.splice(G,1);const Me=(0,Ie.hasCustomColors)({currentSwatchColors:se,selectedColors:Se})?Se:(0,Ie.getNewColors)({isReversed:Z,numColors:me.length+1,precedence:ie,swatchColors:se});Je(me),ge(Me),ne({colors:Me,rangeValues:me})}},[ne,ie,ce,Ce,Je,ge,se]);return me.createElement(Re,null,me.createElement(Me.default,{disableAddRanges:Ce.length>6,handleAddRange:ot,handleReverse:at}),me.createElement(ze,null,Ce.map((G,Z)=>{const ne=Z===Ce.length-1,ie=Z>0?Z-1:0,fe=ce[ie];return me.createElement($e,{key:`${G}-${fe}`},me.createElement(xe.default,{color:G,colorIndex:Z,palette:se,onChange:it}),me.createElement(ke.default,{initialValue:fe,rangeBoundaryIndex:ie,rangeText:v({lastColorIndex:Ce.length-1,rangeBoundaryIndex:Z,rangeValues:ce}),rangeValues:ce,showNumberEditor:ne||Z>0,updateRangeBoundary:st}),me.createElement(De.default,{colorIndex:Z,disabled:ce.length<2,onRemove:ct,rangeBoundaryIndex:ie}))})))};C.propTypes={customizedColors:ge.bool,isReversed:ge.bool,precedence:ge.arrayOf(ge.arrayOf(ge.number)),swatchColors:ge.arrayOf(ge.string),rangeValues:ge.arrayOf(ge.number),setIsReversed:ge.func,setSelectedColors:ge.func,selectedColors:ge.arrayOf(ge.string),setRangeValues:ge.func},Z.default=C},6900:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(7020)),Me=fe(ne(5784)),ke=Ce.default.div` display: flex; flex: 1; justify-content: flex-end; `,f=({colorIndex:G,disabled:Z=!1,onRemove:ne,rangeBoundaryIndex:ie})=>{const se=me.useCallback(()=>ne(G,ie),[G,ne,ie]);return me.createElement(ke,null,me.createElement("div",null,me.createElement(Se.default,{"data-test":"range-remove-button",disabled:Z,icon:me.createElement(Me.default,null),appearance:"pill",onClick:se})))};f.propTypes={disabled:ge.bool,onRemove:ge.func},Z.default=f},3493:(G,Z,ne)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSortedRanges=void 0;const ie=ne(4793);Z.getSortedRanges=(G=[])=>{if((0,ie.isEmpty)(G))return[{to:0,value:"#f00"},{from:0,value:"#0f0"}];const Z=[...G];return Z.sort((G,Z)=>null==G.to?1:null==Z.to?-1:+G.to-+Z.to),Z}},530:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.rangeValuesToContextConfig=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(5089)),Se=fe(ne(5852)),Me=fe(ne(104)),ke=ne(3493),xe=ne(8548);Z.rangeValuesToContextConfig=({colors:G,rangeValues:Z})=>G.map((ne,ie)=>{const se={value:ne};return ie>0&&(se.from=Z[ie-1]),ie{}),palettes:ie=Ce.default,selectedDataSelector:se,value:ce})=>{const fe=me.useMemo(()=>(0,ke.getSortedRanges)(ce),[ce]),ge=me.useMemo(()=>(0,xe.inferInitialPaletteFromContext)({defaultPalettesConfig:G,palettes:ie,ranges:fe}),[G,ie]),De=me.useMemo(()=>fe.filter(({to:G})=>"number"==typeof G).map(({to:G})=>G),[fe]),Ie=me.useMemo(()=>fe.map(({value:G})=>G),[fe]),[Re,ze]=me.useState(ge.paletteTheme),[$e,Je]=me.useState(ge.paletteEntry),it=(0,xe.getSwatchColorsFromPalette)({palettes:ie,paletteInfo:$e,paletteTheme:Re}),[ot,at]=me.useState(Ie),[st,ct]=me.useState(De),ut=(0,xe.hasCustomColors)({currentSwatchColors:it,selectedColors:ot}),dt=me.useMemo(()=>(0,xe.hasInitiallyReversedColors)({isSwatchCustomized:ut,palettes:ie,selectedColors:ot,selectedPaletteInfo:$e,selectedPaletteTheme:Re}),[]),[ht,ft]=me.useState(dt),w=({paletteTheme:G,paletteInfo:Z})=>st.length>6?ot:(({palettes:G,paletteTheme:Z,paletteInfo:ne,rangeValues:ie,setIsReversed:se,setSelectedColors:ce})=>{const fe=(0,xe.getSwatchColorsFromPalette)({palettes:G,paletteInfo:ne,paletteTheme:Z}),me=(0,xe.getPrecedenceFromPalette)({palettes:G,paletteTheme:Z,paletteInfo:ne})[ie.length-1].map(G=>fe[G]);return ce(me),se(!1),me})({palettes:ie,paletteTheme:G,paletteInfo:Z,rangeValues:st,setIsReversed:ft,setSelectedColors:at}),_t=me.useCallback(G=>{const ie=w({paletteTheme:G,paletteInfo:$e});ze(G);const se=(0,Z.rangeValuesToContextConfig)({colors:ie,rangeValues:st});ne(null,null,se)},[ne,$e,st]),yt=me.useCallback(G=>{const ie=w({paletteTheme:Re,paletteInfo:G});Je(G);const se=(0,Z.rangeValuesToContextConfig)({colors:ie,rangeValues:st});ne(null,null,se)},[ne,Re,st]),vt=me.useCallback(({colors:G,rangeValues:ie})=>{const se=(0,Z.rangeValuesToContextConfig)({colors:G,rangeValues:ie});ne(null,null,se)},[ne]);return me.useEffect(()=>{const Z=(0,xe.inferInitialPaletteFromContext)({defaultPalettesConfig:G,palettes:ie,ranges:fe});ze(Z.paletteTheme),Je(Z.paletteEntry),at(Ie),ct(De)},[se]),me.createElement(me.Fragment,null,me.createElement(Se.default,{isReversed:ht,isSwatchCustomized:ut,onChangePaletteTheme:_t,onPaletteChange:yt,palettes:ie,selectedPaletteInfo:$e,selectedPaletteTheme:Re}),me.createElement(Me.default,{customizedColors:ut,isReversed:ht,onChange:vt,precedence:(0,xe.getPrecedenceFromPalette)({palettes:ie,paletteTheme:Re,paletteInfo:$e}),rangeValues:st,selectedColors:ot,swatchColors:it,setIsReversed:ft,setSelectedColors:at,setRangeValues:ct}))};m.propTypes={onChange:ge.func,palettes:ge.objectOf(ge.shape({precedence:ge.arrayOf(ge.arrayOf(ge.number)),swatches:ge.arrayOf(ge.arrayOf(ge.string))})),value:ge.any},Z.default=m},1788:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.RangeValuePreview=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(6212)),Se=ne(1705),Me=fe(ne(1494)),ke=ne(3493),xe={config:ge.arrayOf(ge.shape({from:ge.number,to:ge.number,value:ge.string.isRequired}))};Z.RangeValuePreview=({config:G})=>{const Z=(0,me.useMemo)(()=>(0,ke.getSortedRanges)(G),[G]),ne=(0,me.useMemo)(()=>Z.map(G=>G.value).slice(0,8),[Z]);return me.default.createElement(Me.default,null,me.default.createElement(Ce.default,null),me.default.createElement(Se.ColorPreview,{"data-test":"ColorPreview",colors:ne,maxColorCount:8}))},Z.RangeValuePreview.propTypes=xe},1432:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(4793),Se=fe(ne(232)),Me=fe(ne(2373)),ke=fe(ne(9909)),xe=fe(ne(3620)),De=ne(1256),Ie=(0,Se.default)(Me.default.Option)` padding-left: 20px; `;Ie.displayName="ColumnOption";const Re={availableFieldsWithTypes:ge.arrayOf(ge.shape({name:ge.string,type:ge.string})),columnFormatting:ge.object,disableToggle:ge.bool,handleAddColumnFormatting:ge.func,editorSupportedFormatOptions:ge.objectOf(ge.objectOf(ge.string)),placeholderMessage:ge.string},h=({availableFieldsWithTypes:G,columnFormatting:Z,disableToggle:ne,editorSupportedFormatOptions:ie,handleAddColumnFormatting:se,placeholderMessage:ce})=>{const[fe,ge]=me.useState(""),Se=(0,De.getFilteredFields)(G,fe),Re=me.useCallback((G,{keyword:Z})=>{ge(Z)},[]),ze=me.useMemo(()=>me.createElement(xe.default,{filteredFieldsLength:Se.length,availableFieldsWithTypesLength:G.length}),[Se.length,G.length]),$e=me.useCallback((Z,{value:ne})=>{const ie=G.find(G=>G.name===ne);se(Z,{value:ie})},[Se,se]);return me.createElement(Me.default,{"data-test":"add-column-toggle",disabled:ne,filter:!0,footerMessage:ze,inline:!1,onFilterChange:Re,onChange:$e,placeholder:ce,value:ce},Se.map(G=>{const ne=(se=G.name,ce=G.type,"_time"!==se?`${se} - ${ce}`:se);var se,ce;return me.createElement(Ie,{"data-test":"add-column-option-"+ne,disabled:!!Z.get(G.name)||(0,Ce.isEmpty)(ie[G.type]),label:ne,key:G.name,value:G.name},me.createElement(ke.default,{columnName:G.name,dataType:G.type}))}))};h.propTypes=Re,Z.default=h},4680:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.TableBackgroundColorEditor=Z.calculateOptionsOnAltRowsChange=Z.calculateOptionOnBackgroundColorChange=Z.calculateState=Z.DEFAULT_BACKGROUND_COLOR=Z.HEADER_COLOR_BY_CONTRAST=Z.ROW_COLOR_BY_CONTRAST=Z.HEADER_BACKGROUND_BY_COLOR=Z.ALT_BY_COLOR=Z.FLAT_BY_COLOR=Z.ALT_BY_THEME=Z.FLAT_BY_THEME=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(232),Se=ne(4793),Me=ne(3283),ke=ne(6649),xe=fe(ne(6447)),De=ne(6801),Ie=fe(ne(397)),Re=fe(ne(4015)),ze=Object.assign(Object.assign({},De.BaseEditorPropTypes),{palette:ge.arrayOf(ge.string),themes:ge.object,value:ge.string});Z.FLAT_BY_THEME="> table | seriesByIndex(0) | pick(tableRowBackgroundColorsByTheme)",Z.ALT_BY_THEME="> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)",Z.FLAT_BY_COLOR="> table | seriesByIndex(0) | pick(tableRowBackgroundColorsByBackgroundColor)",Z.ALT_BY_COLOR="> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByBackgroundColor)",Z.HEADER_BACKGROUND_BY_COLOR="> backgroundColor | setColorChannel(tableHeaderBackgroundColorConfig)",Z.ROW_COLOR_BY_CONTRAST="> rowBackgroundColors | maxContrast(tableRowColorMaxContrast)",Z.HEADER_COLOR_BY_CONTRAST="> headerBackgroundColor | maxContrast(tableRowColorMaxContrast)",Z.DEFAULT_BACKGROUND_COLOR="> themes.defaultBackgroundColor",Z.calculateState=({options:G={},value:ne,defaultBackgroundColor:ie}={})=>{let se,ce=!1,fe=!1,me=!1;const ge=(0,Se.get)(G,"backgroundColor"),Ce=(0,Se.get)(G,"tableFormat.rowBackgroundColors",Z.ALT_BY_THEME);return(0,Me.isColor)(ge)?se=ge:xe.default.isDslString(ge)&&!(0,Me.isColor)(ne)?ce=!0:(0,Me.isColor)(ne)?se=ne:(0,Me.isColor)(ie)&&(se=ie),Ce===Z.ALT_BY_COLOR||Ce===Z.ALT_BY_THEME?fe=!0:Ce===Z.FLAT_BY_THEME||Ce===Z.FLAT_BY_COLOR?fe=!1:(0,Se.isEmpty)(Ce)||(me=!0),{color:se,disableColor:ce,shouldAltRows:fe,disableAltRows:me}},Z.calculateOptionOnBackgroundColorChange=({options:G={},value:ne,defaultThemeBackgroundColor:ie}={})=>{const se=(0,Se.cloneDeep)(G),ce=(0,Se.get)(se,"tableFormat.rowBackgroundColors",Z.ALT_BY_THEME),fe=(0,Se.get)(se,"tableFormat.rowColors"),me=(0,Se.get)(se,"tableFormat.headerColor"),ge=(0,Se.get)(se,"tableFormat.headerBackgroundColor");return ne&&ne===ie?((0,Se.set)(se,"backgroundColor",Z.DEFAULT_BACKGROUND_COLOR),ce===Z.ALT_BY_COLOR&&(0,Se.set)(se,"tableFormat.rowBackgroundColors",Z.ALT_BY_THEME),fe===Z.ROW_COLOR_BY_CONTRAST&&(0,Se.set)(se,"tableFormat.rowColors",null),ge===Z.HEADER_BACKGROUND_BY_COLOR&&(0,Se.set)(se,"tableFormat.headerBackgroundColor",null),me===Z.HEADER_COLOR_BY_CONTRAST&&(0,Se.set)(se,"tableFormat.headerColor",null)):ne&&(0,Me.isColor)(ne)&&((0,Se.set)(se,"backgroundColor",ne),ce===Z.ALT_BY_THEME?(0,Se.set)(se,"tableFormat.rowBackgroundColors",Z.ALT_BY_COLOR):ce===Z.FLAT_BY_THEME&&(0,Se.set)(se,"tableFormat.rowBackgroundColors",Z.FLAT_BY_COLOR),(0,Se.isEmpty)(ge)&&(0,Se.set)(se,"tableFormat.headerBackgroundColor",Z.HEADER_BACKGROUND_BY_COLOR),(0,Se.isEmpty)(fe)&&(0,Se.set)(se,"tableFormat.rowColors",Z.ROW_COLOR_BY_CONTRAST),(0,Se.isEmpty)(me)&&(0,Se.set)(se,"tableFormat.headerColor",Z.HEADER_COLOR_BY_CONTRAST)),se.tableFormat&&(0,Se.isPlainObject)(se.tableFormat)&&(0,Se.isEmpty)(se.tableFormat)&&(0,Se.set)(se,"tableFormat",null),{options:se}},Z.calculateOptionsOnAltRowsChange=({options:G={},value:ne}={})=>{const ie=(0,Se.cloneDeep)(G),se=(0,Se.get)(G,"backgroundColor"),ce=(0,Se.get)(G,"tableFormat.rowBackgroundColors",Z.ALT_BY_THEME),fe=(0,Se.get)(G,"tableFormat.rowColors"),me=(0,Se.get)(G,"tableFormat.headerColor"),ge=(0,Se.get)(G,"tableFormat.headerBackgroundColor");return se===Z.DEFAULT_BACKGROUND_COLOR||void 0===se?"boolean"==typeof ne&&[Z.ALT_BY_THEME,Z.ALT_BY_COLOR,Z.FLAT_BY_COLOR,Z.FLAT_BY_THEME].includes(ce)&&(0,Se.set)(ie,"tableFormat.rowBackgroundColors",!0===ne?Z.ALT_BY_THEME:Z.FLAT_BY_THEME):("boolean"==typeof ne&&[Z.ALT_BY_THEME,Z.ALT_BY_COLOR,Z.FLAT_BY_COLOR,Z.FLAT_BY_THEME].includes(ce)&&(0,Se.set)(ie,"tableFormat.rowBackgroundColors",ne?Z.ALT_BY_COLOR:Z.FLAT_BY_COLOR),(0,Se.isEmpty)(fe)&&(0,Se.set)(ie,"tableFormat.rowColors",Z.ROW_COLOR_BY_CONTRAST),(0,Se.isEmpty)(ge)&&(0,Se.set)(ie,"tableFormat.headerBackgroundColor",Z.HEADER_BACKGROUND_BY_COLOR),(0,Se.isEmpty)(me)&&(0,Se.set)(ie,"tableFormat.headerColor",Z.HEADER_COLOR_BY_CONTRAST)),{options:ie}},Z.TableBackgroundColorEditor=({options:G,onChange:ne,labelPosition:ie="left",labelWidth:se,value:ce,palette:fe,themes:ge})=>{const Se=me.useContext(Ce.ThemeContext)||{},xe=me.useCallback((ie,se,ce)=>{const fe="function"==typeof(null==ge?void 0:ge.defaultBackgroundColor)?null==ge?void 0:ge.defaultBackgroundColor({theme:Se}):void 0;ne(ie,(0,Z.calculateOptionOnBackgroundColorChange)({options:G,value:ce,defaultThemeBackgroundColor:fe}))},[G,ne,Se]),De=me.useCallback((ie,se,ce)=>{ne(ie,(0,Z.calculateOptionsOnAltRowsChange)({options:G,value:ce}))},[G,ne,Se]),{color:ze,disableColor:$e,shouldAltRows:Je,disableAltRows:it}=(0,Z.calculateState)({options:G,value:ce,defaultBackgroundColor:Se.defaultBackgroundColor});return me.createElement(me.Fragment,null,me.createElement(Ie.default,{name:"backgroundColor",label:(0,ke._)("Background"),labelPosition:ie,labelWidth:se,itemSchema:{default:Se.defaultBackgroundColor},palette:Array.isArray(fe)&&(0,Me.isColor)(ze)&&!fe.includes(ze)?[...fe,ze]:fe,value:ze,isDisabled:$e,onChange:xe}),me.createElement(Re.default,{name:"alternateRowColors",label:(0,ke._)("Alternate row colors"),labelPosition:"right",labelWidth:se,value:Je,isDisabled:it,itemSchema:{type:"boolean"},onChange:De}))},Z.TableBackgroundColorEditor.propTypes=ze},340:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.getSelectedFormatterUponOpen=Z.getStaticColor=void 0;const me=ce(ne(9497)),ge=ne(4793),Ce=ce(ne(232)),Se=ce(ne(23)),Me=ne(1413),ke=ne(5089),xe=ne(6649),De=fe(ne(9250)),Ie=fe(ne(5411)),Re=ne(7124),ze=ne(5862),$e=ne(2369),Je=fe(ne(397)),it=ne(2088),ot=ne(5396),at=Ce.default.div` padding: 14px ${(0,Re.toPx)(ze.FLYOUT_PADDING)}; `,st=Ce.default.div` margin-bottom: 8px; `,ct=[],ut={columnColoring:Se.any,columnColoringConfig:it.columnColoringConfigPropType,columnName:Se.string,columnDataType:Se.string,defaultPalettesConfig:Se.any,handleColumnColoringUpdate:Se.func,label:Se.string};Z.getStaticColor=(G={},Z="",ne,ie)=>{const se=(0,Me.getLastFormatterFromDSL)((0,ge.get)(G,[Z,"colorOptionDSL"]));return"pick"===(0,ge.get)(se,"type")?(0,ge.get)(G,[Z,"colorContextConfig",0]):"function"==typeof(null==ie?void 0:ie.textColor)?null==ie?void 0:ie.textColor({theme:ne}):"#000000"},Z.getSelectedFormatterUponOpen=(G={},Z=[])=>{const ne=(0,ge.get)(G,["_meta","dynamicallyColoredOption"]),ie=(0,Me.getLastFormatterFromDSL)((0,ge.get)(G,[ne,"colorOptionDSL"]));return void 0===ie?(0,ge.get)(Z,[0]):Z.find(G=>G.value===ie.type)};const x=({columnColoring:G,columnColoringConfig:ne,columnDataType:ie,columnName:se,defaultPalettesConfig:ce=ke.defaultPalettesConfig,handleColumnColoringUpdate:fe,label:Se=(0,xe._)("Dynamic coloring")})=>{const Me=me.useContext(Ce.ThemeContext),{coloringTypes:Re,themes:ze}=ne,it=me.useMemo(()=>"string"===ie?ne.formatters.filter(G=>"matchValue"===G.value):ne.formatters,[ie,ne]),ut=(0,Z.getStaticColor)(G,"rowColors",Me,ze),dt=(0,ge.get)(G,["_meta","dynamicallyColoredOption"]),[ht,ft]=me.useState((0,Z.getSelectedFormatterUponOpen)(G,it)),[_t,yt]=me.useState(dt),[vt,wt]=me.useState((0,ge.get)(G,[_t,"colorContextConfig"])),Ct=me.useCallback((G,{value:Z})=>{const ne=[],ie=(0,ot.sanitizeColumnName)(se);switch(Z){case"Off":Re.forEach(({value:G})=>{ne.push({coloringType:G,colorContextKey:`${ie}${(0,ge.upperFirst)(G)}EditorConfig`,colorOptionDSL:null,colorContextConfig:null})});break;case"rowBackgroundColors":ne.push({coloringType:"rowColors",colorContextKey:ie+"RowColorsEditorConfig",colorContextConfig:[ut],colorOptionDSL:`> table | seriesByName('${se}') | pick(${ie}RowColorsEditorConfig)`});break;case"rowColors":ne.push({coloringType:"rowBackgroundColors",colorContextKey:ie+"RowBackgroundColorsEditorConfig",colorContextConfig:null,colorOptionDSL:null})}const{defaults:ce,value:me}=ht,Ce=vt||ce[Z];if("Off"!==Z){const G=`${ie}${(0,ge.upperFirst)(Z)}EditorConfig`;ne.push({coloringType:Z,colorContextKey:G,colorContextConfig:Ce,colorOptionDSL:`> table | seriesByName('${se}') | ${me}(${G})`})}yt(Z),fe({columnName:se,coloringTypes:ne,dynamicallyColoredOption:Z}),vt||wt(Ce)},[se,vt,fe,ut]),St=me.useCallback((G,Z,ne)=>{const ie=`${(0,ot.sanitizeColumnName)(se)}${(0,ge.upperFirst)(Z)}EditorConfig`;fe({columnName:se,coloringTypes:[{coloringType:Z,colorContextKey:ie,colorContextConfig:[ne],colorOptionDSL:`> table | seriesByName("${se}") | pick(${ie})`}],dynamicallyColoredOption:_t})},[se,fe]),Mt=me.useCallback((G,Z,ne)=>{const{value:ie}=ht,ce=`${(0,ot.sanitizeColumnName)(se)}${(0,ge.upperFirst)(_t)}EditorConfig`;wt(ne),fe({columnName:se,coloringTypes:[{coloringType:_t,colorContextKey:ce,colorContextConfig:ne,colorOptionDSL:`> table | seriesByName("${se}") | ${ie}(${ce})`}],dynamicallyColoredOption:_t})},[G,se,_t,fe,ht.value,wt]),kt=me.useCallback((G,Z,ne)=>{const ie=it.find(G=>G.value===ne),{defaults:ce}=ie,me=ce[_t],Ce=`${(0,ot.sanitizeColumnName)(se)}${(0,ge.upperFirst)(_t)}EditorConfig`;ft(ie),wt(me),fe({columnName:se,coloringTypes:[{coloringType:_t,colorContextKey:Ce,colorContextConfig:me,colorOptionDSL:`> table | seriesByName("${se}") | ${ne}(${Ce})`}],dynamicallyColoredOption:_t})},[it,G,se,_t,fe,ht.value,wt]);return me.createElement(at,null,me.createElement(De.default,{label:(0,xe._)(Se),labelPosition:"top"},me.createElement(Ie.default,{"data-test":"dynamic-color-option",onChange:Ct,value:_t},me.createElement(Ie.default.Option,{value:"Off",label:(0,xe._)("Off")}),Re.map(({label:G,value:Z})=>me.createElement(Ie.default.Option,{value:Z,label:(0,xe._)(G),key:Z})))),_t&&"Off"!==_t&&me.createElement(me.Fragment,null,1===it.length&&me.createElement(st,{"data-test":"single-formatter-method"},"Method: ",ht.label),me.createElement($e.FormatterEditor,{selectedDataSelector:_t,selectedFormatterType:ht.value,currentFormatterConfig:vt,onFormatterTypeChange:kt,onFormatterConfigChange:Mt,formatters:it,dataSelectors:ct,defaultPalettesConfig:ce}),"rowBackgroundColors"===_t&&me.createElement(Je.default,{name:"rowColors",value:ut,label:(0,xe._)("Static text color"),labelPosition:"top",onChange:St,textWidth:"100%"})))};x.propTypes=ut,Z.default=x},7649:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(1551)),Me=fe(ne(6379)),ke=fe(ne(4566)),xe=fe(ne(8216)),De=ne(7124),Ie=fe(ne(4836)),Re=fe(ne(8318)),ze=fe(ne(4251)),$e=fe(ne(9909)),Je=fe(ne(3941)),it=ne(5862),ot=fe(ne(1074)),at=fe(ne(340)),st=ne(2088),ct=Ce.default.div.attrs(G=>({"data-test":G["data-test"]}))` flex: 1; display: flex; align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; padding-left: 15px; background-color: ${(0,xe.default)({enterprise:ke.default.backgroundColorHover,prisma:ke.default.interactiveColorOverlayHover})}; color: transparent; &:last-of-type { margin-bottom: 4px; } `,ut=Ce.default.div` background-color: ${ke.default.backgroundColorPopup}; width: ${(0,De.toPx)(it.FLYOUT_WIDTH)}; max-height: 95vh; overflow-y: auto; `,dt=Ce.default.span` display: inline-block; `,ht=Ce.default.div` align-items: center; display: flex; `,ft={columnColoring:ge.any,columnColoringConfig:st.columnColoringConfigPropType,columnName:ge.string,columnFormatting:ge.any,columnDataType:ge.string,defaultOptionsByType:ge.objectOf(ge.objectOf(ge.oneOfType([ge.string,ge.number,ge.bool]))),flyoutConfigForDataType:ge.arrayOf(ge.any),isSourceCustomized:ge.bool,removeColumnFormatting:ge.func,resetColumnToDefault:ge.func,updateColumnColoring:ge.func,updateColumnFormatting:ge.func},w=({columnColoring:G,columnColoringConfig:Z,columnName:ne,columnFormatting:ie,columnDataType:se,defaultOptionsByType:ce={},flyoutConfigForDataType:fe,isSourceCustomized:ge,removeColumnFormatting:Ce,resetColumnToDefault:ke,updateColumnFormatting:xe,updateColumnColoring:De})=>{const[it,st]=me.useState(!1),ft=me.useCallback(()=>st(!0),[]),_t=me.useCallback(()=>st(!1),[]),yt=me.useRef(null),vt=me.useCallback(()=>Ce({columnName:ne,columnDataType:se}),[ne,se,Ce]),wt=me.useCallback(()=>ke({columnName:ne,columnDataType:se}),[ne,se,ke]);return me.createElement(me.Fragment,null,me.createElement(ct,{ref:yt,"data-test":"column-toggle-"+ne},me.createElement(Me.default,{"data-test":"selected-column-label-"+ne},me.createElement(dt,null,me.createElement($e.default,{columnName:ne,dataType:se}))),me.createElement(ht,null,me.createElement(ze.default,{dataTestKey:"edit-column-icon-"+ne,onClick:ft},me.createElement(Ie.default,null)),me.createElement(ze.default,{dataTestKey:"remove-column-icon-"+ne,onClick:vt},me.createElement(Re.default,null)))),me.createElement(Se.default,{"data-test":"column-formatter-flyout-"+ne,anchor:yt.current,open:it,onRequestClose:_t,appearance:"normal",defaultPlacement:"horizontal"},me.createElement(ut,{"data-test":"popover-contents"},me.createElement(ot.default,{columnFormatting:ie,columnDataType:se,columnName:ne,defaultOptionsByType:ce,flyoutConfigForDataType:fe,handleResetColumnToDefault:wt,updateColumnFormatting:xe,isSourceCustomized:ge}),("number"===se||"string"===se)&&me.createElement(me.Fragment,null,me.createElement(Je.default,null),me.createElement(at.default,{columnColoring:G,columnColoringConfig:Z,columnDataType:se,columnName:ne,handleColumnColoringUpdate:De})))))};w.propTypes=ft,Z.default=w},1074:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.getEditorItemValue=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(4793),Me=ne(7124),ke=ne(6649),xe=fe(ne(7143)),De=fe(ne(1151)),Ie=fe(ne(1668)),Re=ne(1296),ze=ne(5862),y=(G,Z)=>`row_${G.map(G=>G.option).join("_")}_${Z}`,$e=(0,Ce.default)(Ie.default)` cursor: auto; font-weight: 600; font-size: 14px; padding: 0px; `,Je=Ce.default.div` padding: ${(0,Me.toPx)(ze.FLYOUT_PADDING)}; padding-bottom: 0px; `,it=Ce.default.span` font-weight: 500; font-size: 14px; margin-bottom: 7px; `,ot={columnName:ge.string,columnFormatting:ge.any,columnDataType:ge.string,defaultOptionsByType:ge.objectOf(ge.objectOf(ge.oneOfType([ge.string,ge.number,ge.bool]))),flyoutConfigForDataType:ge.arrayOf(ge.any),isSourceCustomized:ge.bool,handleResetColumnToDefault:ge.func,updateColumnFormatting:ge.func};Z.getEditorItemValue=(G,Z,ne,ie)=>{const se=(0,Se.get)(Z,[ne,G.option]);return void 0!==se?se:(0,Se.get)(ie,[ne,G.option])};const E=({columnFormatting:G,columnDataType:ne,columnName:ie,defaultOptionsByType:se={},flyoutConfigForDataType:ce,handleResetColumnToDefault:fe,updateColumnFormatting:ge,isSourceCustomized:Ce})=>{const Me=me.useCallback((G,Z,ne)=>ge({columnName:ie,optionName:Z,value:ne}),[ie,ge]);return me.createElement(Je,null,Ce?me.createElement(De.default,{onResetToDefault:fe,style:{padding:"0px 0px 16px 0px",width:"auto"}}):me.createElement(me.Fragment,null,me.createElement($e,null,me.createElement(it,{"data-test":"column-formatter-flyout-header"},`${(0,ke._)("Column formatting")}: "${ie}"`)),me.createElement(xe.default,null,ce.map((ie,ce)=>me.createElement(xe.default.Row,{key:y(ie,ce),"data-test":"column-formatter-flyout-row",style:{marginBottom:"0px"}},ie.map((fe,ge)=>{let Ce=null;const ke=12/ie.length,De=`item_${(fe&&fe.option)+"_"||""}${ce}_${ge}`;if(!(0,Se.isEmpty)(fe)){const ie=Re.editorTypeToComponentMap[fe.editor];Ce=me.createElement(ie,Object.assign({},fe.editorProps,{label:fe.label,name:fe.option,itemSchema:fe.itemSchema,value:(0,Z.getEditorItemValue)(fe,G,ne,se),onChange:Me}))}return me.createElement(xe.default.Column,{key:De,span:ke},Ce)}))))))};E.propTypes=ot,Z.default=E},5396:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.getColumnFormatDefFromState=Z.getInitialColumnFormattingState=Z.isValidColorFormatter=Z.getGlobalTableFormatting=Z.getFormattingOptDSLKey=Z.checkExceedsEditorCapabilities=Z.sanitizeColumnName=Z.getColumnDataTypeMap=Z.getEditorSupportedFormatOptions=void 0;const se=ne(4793),ce=ie(ne(6447)),fe=ne(1413),me={pick:"pick",rangeValue:"rangeValue",matchValue:"matchValue"},ge={rowBackgroundColors:"rowBackgroundColors",rowColors:"rowColors",data:"data"};Z.getEditorSupportedFormatOptions=G=>{const Z={};return Object.keys(G).forEach(ne=>{Z[ne]={},G[ne].forEach(G=>{G.forEach(G=>{Z[ne][G.option]=G.option})})}),Z},Z.getColumnDataTypeMap=G=>G.reduce((G,{name:Z,type:ne})=>(G[Z]=ne,G),{}),Z.sanitizeColumnName=G=>{let Z=G;return G.match(/^[0-9]/)&&(Z="_"+Z),""+Z.replace(/[^a-zA-Z0-9]/g,"_")},Z.checkExceedsEditorCapabilities=(G,Z)=>Object.keys(G).some(G=>!Z[G]),Z.getFormattingOptDSLKey=(G={})=>"string"==typeof G.data&&ce.default.isDslString(G.data)?(0,se.get)((0,fe.getLastFormatterFromDSL)(G.data),"paramKey",null):null,Z.getGlobalTableFormatting=(G,ne,ie)=>{const ce=(0,Z.getFormattingOptDSLKey)(G);return(0,se.get)(ie,[ce,ne],{})},Z.isValidColorFormatter=G=>"rangeValue"===G||"matchValue"===G,Z.getInitialColumnFormattingState=({availableFieldsWithTypes:G,coloringTypes:ne=[],columnFormatOption:ie,editorSupportedFormatOptions:Ce,vizContext:Se})=>{if(!ie||"object"!=typeof ie)return new Map;const Me=(0,Z.getColumnDataTypeMap)(G);return Object.keys(ie).reduce((G,ke)=>{const xe=Me[ke],De=(0,Z.getFormattingOptDSLKey)(ie[ke]),Ie=Se[De],Re=ce.default.isDslString((0,se.get)(ie,[ke,"data"]))&&!Ie;if(!((G,Z)=>!G[Z]||Object.keys(G[Z]).some(G=>!!ge[G]))(ie,ke))return G;if(!(0,se.isEmpty)(Ce[xe])&&!Re){const ce={_meta:{dynamicallyColoredOption:"Off"}},ge=(0,se.get)((0,fe.getLastFormatterFromDSL)((0,se.get)(ie,[ke,"rowColors"])),"type"),Me=(0,se.get)((0,fe.getLastFormatterFromDSL)((0,se.get)(ie,[ke,"rowBackgroundColors"])),"type");(0,Z.isValidColorFormatter)(ge)&&!Me?ce._meta.dynamicallyColoredOption="rowColors":"pick"===ge&&(0,Z.isValidColorFormatter)(Me)&&(ce._meta.dynamicallyColoredOption="rowBackgroundColors"),ne.forEach(({value:G})=>{const ne=(0,se.get)(ie,[ke,G]);if(ne){const{type:ie,paramKey:Ce}=(0,fe.getLastFormatterFromDSL)(ne)||{};if("pick"===ie&&"rowColors"===G&&!(0,Z.isValidColorFormatter)(Me))return;if("pick"===ie&&"rowColors"!==G||!me[ie])return;if((0,Z.isValidColorFormatter)(ie)&&"rowBackgroundColors"===G&&"pick"!==ge)return;ce[G]={colorContextKey:Ce,colorContextConfig:(0,se.get)(Se,[Ce],{}),colorOptionDSL:ne}}});const Re=Object.keys(ce).length>1,ze=(0,se.get)(Se,[De,xe],{});!Re&&(0,se.isEmpty)(ze)||G.set(ke,{columnColoring:ce,formatByType:{[xe]:Object.assign(Object.assign({},(0,se.pick)(ze,Object.keys(Ce[xe]))),{_meta:{exceedsEditorCapabilities:(0,Z.checkExceedsEditorCapabilities)((0,se.get)(Ie,[xe],{}),Ce[xe])}})}})}return G},new Map)},Z.getColumnFormatDefFromState=({columnFormatOption:G,updatedEditorColumnFormatting:ne})=>{const ie={},ce=(0,se.cloneDeep)(G);return Object.keys(ne).forEach(G=>{const fe=(0,Z.sanitizeColumnName)(G),me=fe+"ColumnFormatEditorConfig";if((0,se.isPlainObject)(ne[G])){const Z=(0,se.get)(ne,[G,"columnColoring"]);(0,se.unset)(Z,["_meta"]),(0,se.isPlainObject)(Z)&&Object.keys(Z).forEach(ne=>{const{colorContextConfig:fe,colorOptionDSL:me,colorContextKey:ge}=Z[ne];null==me?(ie[ge]=null,(0,se.set)(ce,[G,ne],null)):ge&&(ie[ge]=fe,(0,se.set)(ce,[G,ne],me))}),(0,se.isPlainObject)(ne[G].formatByType)&&(Object.keys(ne[G].formatByType).forEach(Z=>{(0,se.unset)(ne,[G,"formatByType",Z,"_meta"])}),ge=ne[G].formatByType,Object.keys(ge).every(G=>(0,se.isEmpty)(ge[G]))?ie[me]=null:(ie[me]=Object.assign({},ne[G].formatByType),(0,se.set)(ce,[G,"data"],`> table | seriesByName("${G}") | formatByType(${me})`)))}else ie[me]=null,ie[fe+"RowColorsEditorConfig"]=null,ie[fe+"RowBackgroundColorsEditorConfig"]=null,ce[G]=null;var ge}),{context:ie,options:{columnFormat:ce}}}},2088:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z};Object.defineProperty(Z,"__esModule",{value:!0}),Z.flyoutConfigPropType=Z.columnColoringConfigPropType=void 0;const fe=ce(ne(23));Z.columnColoringConfigPropType=fe.shape({coloringTypes:fe.arrayOf(fe.shape({label:fe.string,value:fe.string})),formatters:fe.arrayOf(fe.shape({label:fe.string,value:fe.string,defaults:fe.object})),themes:fe.object}),Z.flyoutConfigPropType=fe.shape({number:fe.arrayOf(fe.any),string:fe.arrayOf(fe.any),sparkline:fe.arrayOf(fe.any),time:fe.arrayOf(fe.any)})},5678:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.TrellisSplitBySelectionEditor=Z.AGGREGATIONS=Z.EDITOR_NAME=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(2373)),Se=ne(6649),Me=fe(ne(7464)),ke=ne(9033),xe=ne(9246),De=ne(1256),Ie=ne(6801),Re=fe(ne(3620)),ze=ne(1385),$e=fe(ne(4008));Z.EDITOR_NAME="trellisSplitBySelectionEditor",Z.AGGREGATIONS="aggregations";const v=G=>G;Z.TrellisSplitBySelectionEditor=({name:G,value:ne,label:ie="",labelPosition:se="top",dataSourceKey:ce="primary",dataSourceBindings:fe,isDisabled:ge,onChange:Ie,prepareValue:Je=v})=>{var it;const ot=me.default.useContext(Me.default),at=Boolean(null==ot?void 0:ot.visualizations_enableTrellis),st=(0,ze.useDataSource)({dataSourceBindings:fe,dataSourceKey:ce}),{fields:ct}=(null==st?void 0:st.data)||{columns:[],fields:[]},ut=(0,me.useMemo)(()=>(0,xe.getAllPossibleSplitByFields)(ct),[ct]),{hasError:dt,isMissing:ht,isLoading:ft}=(0,ke.getDataSourceStateInfo)(st),_t=ht||dt||ge,yt=(0,De.getPlaceholderMessage)({isMissing:ht,isLoading:ft,hasError:dt,defaultMessage:""+(0,Se._)("Select a splitby field from datasource")}),vt=(null===(it=ut.fields)||void 0===it?void 0:it.length)?ut.fields[0]:Z.AGGREGATIONS,[wt,Ct]=(0,me.useState)(""),St=(0,me.useCallback)((G,{keyword:Z})=>{Ct(Z)},[]),Mt=ne||vt,[kt,xt]=(0,me.useState)(Mt);(0,me.useEffect)(()=>{xt(Mt)},[Mt]);const Lt=me.default.useCallback((Z,{value:ne})=>{xt(ne);const ie=Je({options:{[G]:""+ne}});Ie(Z,ie)},[Ie,Je,G]),{filteredFields:Tt,splitByFields:At}=(0,me.useMemo)(()=>{var G;let ne=ut.fields.map(G=>({name:G,value:G}));return(null===(G=ut.aggregations)||void 0===G?void 0:G.length)&&(ne=[...ne,{name:`${(0,Se._)("Aggregations")} (${ut.aggregations.length})`,description:ut.aggregations.join(", "),value:Z.AGGREGATIONS}]),{filteredFields:ne.filter(G=>G&&-1!==G.value.toLowerCase().indexOf(wt.toLowerCase())),splitByFields:ne}},[ut]),Dt=(0,me.useMemo)(()=>me.default.createElement(Re.default,{filteredFieldsLength:Tt.length,availableFieldsWithTypesLength:At.length}),[Tt.length,At.length]);return at?me.default.createElement($e.default,{label:ie,labelPosition:se,"data-test":`${Z.EDITOR_NAME}-${G}`},me.default.createElement(Ce.default,{"data-test":`${Z.EDITOR_NAME}-select-${G}`,value:kt,onFilterChange:St,onChange:Lt,footerMessage:Dt,placeholder:yt,disabled:_t,isLoadingOptions:ft,error:dt,filter:!0},Tt.map(G=>G&&me.default.createElement(Ce.default.Option,{key:G.name,"data-test":`${Z.EDITOR_NAME}-option-${G.value}`,label:""+G.name,value:G.value,description:G.description||""})))):null},Z.TrellisSplitBySelectionEditor.propTypes=Object.assign(Object.assign({},Ie.BaseEditorPropTypes),{dataSourceKey:ge.string.isRequired,prepareValue:ge.func}),Z.default=Z.TrellisSplitBySelectionEditor},5135:(G,Z,ne)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.useCSPViolationObserver=void 0;const ie=ne(9497);Z.useCSPViolationObserver=(G,Z="none")=>{const[ne,se]=(0,ie.useState)(Z);return(0,ie.useEffect)(()=>{const a=Z=>{Z.blockedURI!==G&&Z.blockedURI!==G+"/"||"enforce"!==Z.disposition?Z.blockedURI!==G&&Z.blockedURI!==G+"/"||"report"!==Z.disposition||se("warning"):se("error")};return document.addEventListener("securitypolicyviolation",a),se(Z),()=>{document.removeEventListener("securitypolicyviolation",a)}},[G]),ne}},1385:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.useDataSource=void 0;const se=ne(9497),ce=ie(ne(4853)),fe=ne(4793);Z.useDataSource=({dataSourceBindings:G,dataSourceKey:Z})=>{const ne=(0,se.useContext)(ce.default),[ie,me]=(0,se.useState)();return(0,se.useEffect)(()=>{if(!(0,fe.get)(G,Z))return me(null),()=>{};const ie=(0,fe.isFunction)(ne.subscribe)&&ne.subscribe(Z,G=>me(G));return()=>{ie&&ie()}},[G]),ie}},6801:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z};Object.defineProperty(Z,"__esModule",{value:!0}),Z.BaseEditorPropTypes=void 0;const fe=ce(ne(23));Z.BaseEditorPropTypes={name:fe.string.isRequired,value:fe.oneOfType([fe.string,fe.object,fe.arrayOf(fe.string)]),context:fe.object,label:fe.string,labelPosition:fe.oneOf(["top","left"]),labelWidth:fe.number,onChange:fe.func,isAdvanced:fe.bool,isDisabled:fe.bool,dataSourceBindings:fe.object,options:fe.object,optionsSchema:fe.object}},4008:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.AdvancedConfigButton=void 0;const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=ne(6649),Me=fe(ne(6643)),ke=fe(ne(8897)),xe=fe(ne(6379)),De=fe(ne(7020)),Ie=fe(ne(9250)),Re=(0,Ce.default)(Ie.default)` // No margins margin: 0; width: 100%; // remove top margin of the first component in control group &:first-child { margin-top: 0; } // remove bottom margin of the last component in control group &:last-child { margin-bottom: 0; } `,ze=(0,Ce.default)(xe.default)` display: flex; > span { display: flex; width: 35px; } `;Z.AdvancedConfigButton=({label:G="",onClick:Z})=>{const{isPrisma:ne}=(0,ke.default)();return me.default.createElement(ze,{"data-test":G+"-advanced-config-button-tooltip",content:(0,Se._)("Advanced configurations")},me.default.createElement(De.default,{"data-test":G+"-advanced-config-button",icon:me.default.createElement(Me.default,{"data-test":G+"-advanced-config-button-icon"}),appearance:ne?"secondary":"pill",onClick:Z}))};const y=({"data-test":G,children:ne,isAdvanced:ie,label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,style:Me,error:ke,onClick:xe,onAdvancedConfigButtonClick:De})=>me.default.createElement(Re,{"data-test":null!=G?G:"control-group",label:se,hideLabel:ce,labelPosition:fe,labelWidth:ge,tooltip:Ce,help:Se,error:ke,style:Me,onClick:xe},ie?me.Children.toArray(ne).filter(Boolean).map(G=>(0,me.cloneElement)(G,{style:{flex:1}})):ne,ie?me.default.createElement(Z.AdvancedConfigButton,{label:se,onClick:De}):null);y.propTypes={style:ge.object,isAdvanced:ge.bool,onClick:ge.func,onAdvancedConfigButtonClick:ge.func},y.defaultProps={isAdvanced:!1},Z.default=y},6212:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=fe(ne(232)),Ce=ne(6649),Se=fe(ne(9597)),Me=fe(ne(2267)),ke=ge.default.div` position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; color: white; /* this aligns the first item on the far left and the other item is aligned to flex end */ & :first-child { margin-right: auto; } & { padding: 4px 1px; } `;Z.default=()=>me.createElement(ke,null,me.createElement(Se.default,{"aria-label":(0,Ce._)("Bottom range")}),me.createElement(Me.default,{"aria-label":(0,Ce._)("Top range")}))},962:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.CSPMessage=void 0;const me=ce(ne(9497)),ge=ne(6649),Ce=fe(ne(2138)),Se=fe(ne(451)),Me=fe(ne(5711));Z.CSPMessage=({type:G})=>{const{cspMessageLink:Z}=me.useContext(Me.default);return me.createElement(Ce.default,{appearance:"fill",type:G,"data-test":"csp-message-"+G},(0,ge._)("External image URLs must now have their domains listed in the Dashboards Trusted Domains List by working with your administrator. Alternatively, you can upload the image directly into the dashboard. "),Z&&me.createElement(Se.default,{to:Z,openInNewContext:!0},(0,ge._)("Learn more")))}},4251:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=fe(ne(232)),Se=fe(ne(8216)),Me=fe(ne(4566)),ke=Ce.default.div.attrs(G=>({"data-test":G["data-test"]}))` display: flex; height: 35px; width: 35px; align-items: center; justify-content: center; color: ${(0,Se.default)({enterprise:Me.default.textGray,prisma:Me.default.contentColorActive})}; border-radius: ${(0,Se.default)({enterprise:Me.default.borderRadius,prisma:Me.default.spacingXLarge})}; &:hover { background-color: ${(0,Se.default)({enterprise:{light:Me.default.gray92,dark:Me.default.gray45},prisma:Me.default.interactiveColorOverlayHover})}; color: ${(0,Se.default)({enterprise:Me.default.interactiveColorOverlayHover,prisma:Me.default.interactiveColorOverlayHover})}; cursor: pointer; } `,xe={dataTestKey:ge.string,children:ge.node,onClick:ge.func},m=({children:G,dataTestKey:Z,onClick:ne})=>me.createElement(ke,{"data-test":Z,onClick:ne},G);m.propTypes=xe,Z.default=m},5835:function(G,Z,ne){var ie=this&&this.__rest||function(G,Z){var ne={};for(var ie in G)Object.prototype.hasOwnProperty.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var se=0;for(ie=Object.getOwnPropertySymbols(G);se{var{children:Z}=G,ne=ie(G,["children"]);return ce.default.createElement(Se,Object.assign({},ne),ce.default.createElement(Ce,null,Z))}},3620:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z};Object.defineProperty(Z,"__esModule",{value:!0});const fe=ce(ne(9497)),me=ce(ne(23)),ge=ne(6649),Ce={filteredFieldsLength:me.number,availableFieldsWithTypesLength:me.number},c=({filteredFieldsLength:G,availableFieldsWithTypesLength:Z})=>fe.createElement("span",{"data-test":"footer-message"},(0,ge._)("%1 of %2 fields").replace("%1",String(G)).replace("%2",String(Z)));c.propTypes=Ce,Z.default=c},1151:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z},fe=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const me=ce(ne(9497)),ge=ce(ne(23)),Ce=ne(6649),Se=fe(ne(232)),Me=fe(ne(8216)),ke=fe(ne(4566)),xe=fe(ne(2138)),De=fe(ne(451)),Ie=(0,Ce._)("Dynamic Option: Customized in source"),Re=(0,Ce._)("Configured in source code beyond what can be shown here. Resetting to default will overwrite this custom configurations."),ze=(0,Ce._)("Reset to default"),$e=Se.default.div` padding: ${({padding:G})=>null!=G?G:"20px"}; width: ${({width:G})=>null!=G?G:"300px"}; color: ${(0,Me.default)({enterprise:ke.default.textColor,prisma:ke.default.contentColorActive})}; `,Je=Se.default.div` font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 10px; `,it={headerText:ge.string,info:ge.string,linkText:ge.string,onResetToDefault:ge.func,style:ge.object},O=({headerText:G=Ie,info:Z=Re,linkText:ne=ze,onResetToDefault:ie=(()=>{}),style:se={}})=>me.createElement($e,{style:se},me.createElement(Je,{"data-test":"popover-header"},G),me.createElement(xe.default,{"data-test":"customized-source-popover-message",type:"info"},Z),me.createElement(De.default,{"data-test":"popover-reset",onClick:ie},ne));O.propTypes=it,Z.default=O},9909:function(G,Z,ne){var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne);var se=Object.getOwnPropertyDescriptor(Z,ne);se&&!("get"in se?!Z.__esModule:se.writable||se.configurable)||(se={enumerable:!0,get:function(){return Z[ne]}}),Object.defineProperty(G,ie,se)}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__setModuleDefault||(Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z}),ce=this&&this.__importStar||function(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&ie(Z,G,ne);return se(Z,G),Z};Object.defineProperty(Z,"__esModule",{value:!0});const fe=ce(ne(9497)),me=ce(ne(23)),s=({columnName:G,dataType:Z})=>"_time"===G?fe.createElement("span",null,"_time"):fe.createElement("span",{"data-test":"format-field-name-"+G},G+" - ",fe.createElement("span",{style:{fontStyle:"italic"}},Z));s.propTypes={columnName:me.string,dataType:me.string},Z.default=s},137:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.MessageContainer=void 0;const se=ie(ne(232));Z.MessageContainer=se.default.div` margin-top: 10px; `},1494:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0});const se=ie(ne(232));Z.default=se.default.div` border-radius: 3px; /* @TODO(pwied): should this be imported from SUI variables? */ overflow: hidden; position: relative; width: 100%; height: 20px; `},5862:(G,Z)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.editorStyle=Z.DROPDOWN_MENU_WIDTH=Z.VERTICAL_EDITOR_SPACING_PRISMA_COMPACT=Z.VERTICAL_EDITOR_SPACING_PRISMA_COMFORTABLE=Z.VERTICAL_EDITOR_SPACING_ENTERPRISE=Z.FLYOUT_WIDTH=Z.FLYOUT_PADDING=void 0,Z.FLYOUT_PADDING=21,Z.FLYOUT_WIDTH=344,Z.VERTICAL_EDITOR_SPACING_ENTERPRISE=14,Z.VERTICAL_EDITOR_SPACING_PRISMA_COMFORTABLE=16,Z.VERTICAL_EDITOR_SPACING_PRISMA_COMPACT=12,Z.DROPDOWN_MENU_WIDTH=327,Z.editorStyle={width:"100%"}},1256:(G,Z,ne)=>{Object.defineProperty(Z,"__esModule",{value:!0}),Z.getPlaceholderMessage=Z.sanitizeFieldNames=Z.getFilteredFields=Z.getAvailableFieldsWithTypes=void 0;const ie=ne(6649),se=ne(2588);Z.getAvailableFieldsWithTypes=(G,Z)=>Z.map((Z,ne)=>{const{name:ie}=Z;return{name:ie,type:(0,se.canInferTypeFromMeta)(Z)?(0,se.getDataTypeForMeta)(Z):(0,se.inferDataTypeFromData)(G[ne])}}),Z.getFilteredFields=(G,Z)=>G.filter(G=>-1!==G.name.indexOf(Z)),Z.sanitizeFieldNames=(G,Z)=>"string"==typeof G&&Z.includes(G)?[G]:Array.isArray(G)?G.filter(G=>Z.includes(G)):[],Z.getPlaceholderMessage=({hasError:G,isLoading:Z,isMissing:ne,defaultMessage:se="Select a field from data source"})=>ne?(0,ie._)("Set up data source to select"):G?(0,ie._)("Please set up valid data source to select"):Z?(0,ie._)("Loading data source..."):(0,ie._)(se)},4381:function(G,Z,ne){var ie=this&&this.__importDefault||function(G){return G&&G.__esModule?G:{default:G}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.getDynamicOptionsFromConfig=Z.isConfigAdvanced=Z.getFieldFromFieldNameDsl=void 0;const se=ne(4793),ce=ne(2918),fe=ie(ne(6447));Z.getFieldFromFieldNameDsl=G=>{try{const Z=ce.DslParser.parse(fe.default.withoutArrow(G)),ne=(0,se.find)(Z,{type:"method",name:"seriesByName"});return(0,se.get)(ne,["args","0","v"],"")}catch(G){return""}};const i=G=>{try{const Z=ce.DslParser.parse(fe.default.withoutArrow(G)),ne=(0,se.findLastIndex)(Z,{type:"method",name:"seriesByName"}),ie=(0,se.findLastIndex)(Z,{type:"method",name:"renameSeries"});return-1!==ne&&-1!==ie&&ne{if("string"!=typeof G)return!1;const{label:ne,value:ie}=Z;return"string"!=typeof ne||"string"!=typeof ie||!(G=>{try{const Z=ce.DslParser.parse(fe.default.withoutArrow(G));return 3===Z.length&&(0,se.isMatch)(Z[0],{type:"method",name:"frame"})&&(0,se.isMatch)(Z[1],{type:"method",name:"prepend"})&&(0,se.isMatch)(Z[2],{type:"method",name:"objects"})}catch(G){return!1}})(G)||!i(ne)||!i(ie)},Z.getDynamicOptionsFromConfig=({items:G,context:ne})=>{if(Array.isArray(G))return{staticOptions:G,dynamicOptionsLabel:"",dynamicOptionsValue:""};const ie=ne.statics||[],ce=(0,se.zipWith)(...ie,(G,Z)=>({label:G,value:Z})),{label:fe,value:me}=ne;return{staticOptions:ce,dynamicOptionsLabel:fe?(0,Z.getFieldFromFieldNameDsl)(fe):"",dynamicOptionsValue:me?(0,Z.getFieldFromFieldNameDsl)(me):""}}},6195:G=>{G.exports=ne(11)},2649:G=>{G.exports=ne(66)},9597:G=>{G.exports=ne(7439)},2267:G=>{G.exports=ne(7440)},8949:G=>{G.exports=ne(2882)},5784:G=>{G.exports=ne(814)},6643:G=>{G.exports=ne(2016)},7020:G=>{G.exports=ne(762)},8855:G=>{G.exports=ne(7441)},7408:G=>{G.exports=ne(7444)},7143:G=>{G.exports=ne(7446)},9250:G=>{G.exports=ne(1310)},6214:G=>{G.exports=ne(1160)},8965:G=>{G.exports=ne(7447)},451:G=>{G.exports=ne(1312)},1018:G=>{G.exports=ne(7451)},2138:G=>{G.exports=ne(2880)},7446:G=>{G.exports=ne(7456)},2782:G=>{G.exports=ne(4136)},1551:G=>{G.exports=ne(1308)},5411:G=>{G.exports=ne(7458)},2373:G=>{G.exports=ne(4129)},5309:G=>{G.exports=ne(7459)},5777:G=>{G.exports=ne(2024)},4082:G=>{G.exports=ne(1313)},6379:G=>{G.exports=ne(1311)},3563:G=>{G.exports=ne(204)},8216:G=>{G.exports=ne(1307)},8897:G=>{G.exports=ne(1159)},4566:G=>{G.exports=ne(2018)},6649:G=>{G.exports=ne(2023)},8987:G=>{G.exports=ne(7460)},5295:G=>{G.exports=ne(4125)},3850:G=>{G.exports=ne(258)},5089:G=>{G.exports=ne(413)},4853:G=>{G.exports=ne(2501)},7464:G=>{G.exports=ne(268)},5711:G=>{G.exports=ne(1850)},2918:G=>{G.exports=ne(7461)},6447:G=>{G.exports=ne(7462)},2687:G=>{G.exports=ne(274)},1413:G=>{G.exports=ne(1846)},2588:G=>{G.exports=ne(1527)},4836:G=>{G.exports=ne(7463)},6769:G=>{G.exports=ne(7464)},8318:G=>{G.exports=ne(7465)},6343:G=>{G.exports=ne(7466)},3283:G=>{G.exports=ne(220)},9033:G=>{G.exports=ne(1916)},7124:G=>{G.exports=ne(230)},9246:G=>{G.exports=ne(1912)},4793:G=>{G.exports=ne(24)},3951:G=>{G.exports=ne(160)},1785:G=>{G.exports=ne(101)},9590:G=>{G.exports=ne(112)},7598:G=>{G.exports=ne(45)},5071:G=>{G.exports=ne(718)},4868:G=>{G.exports=ne(41)},23:G=>{G.exports=ne(2)},9497:G=>{G.exports=ne(0)},348:G=>{G.exports=ne(4139)},6265:G=>{G.exports=ne(7488)},232:G=>{G.exports=ne(3)}},ie={};function a(G){var ne=ie[G];if(void 0!==ne)return ne.exports;var se=ie[G]={exports:{}};return Z[G].call(se.exports,se,se.exports,a),se.exports}a.n=G=>{var Z=G&&G.__esModule?()=>G.default:()=>G;return a.d(Z,{a:Z}),Z},a.d=(G,Z)=>{for(var ne in Z)a.o(Z,ne)&&!a.o(G,ne)&&Object.defineProperty(G,ne,{enumerable:!0,get:Z[ne]})},a.o=(G,Z)=>Object.prototype.hasOwnProperty.call(G,Z),a.r=G=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})};var se={};(()=>{a.r(se),a.d(se,{default:()=>Rt,mergeVisualizationDefinition:()=>ae});var G=a(6195),Z=a.n(G),ie=a(9497),ce=a.n(ie),fe=a(23),me=a.n(fe),ge=a(4868),Ce=a.n(ge),Se=a(7598),Me=a.n(Se),ke=a(3951),xe=a.n(ke),De=a(1785),Ie=a.n(De),Re=a(5071),ze=a.n(Re),$e=a(6649),Je=a(4267),it=a(5835),ot=a(3941),at=a(232),st=a.n(at),ct=a(7143),ut=a.n(ct),dt=a(8216),ht=a.n(dt),ft=a(4566),_t=a.n(ft),yt=a(8897),vt=a.n(yt),wt=a(9590),Ct=a.n(wt);const St=ne(4107);var Mt=a.n(St);const kt=ne(2017);var xt=a.n(kt),Lt=a(6447),Tt=a.n(Lt),At=a(1296);function q(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function N(G){for(var ne=1;ne{let{key:Z,context:ne,options:ie,item:se,itemSchema:ce,theme:fe}=G,me=Ct()(ie,Z);if(void 0===me){if(me=ce.default,void 0===me&&"editor.presetSelector"===se.editor||"editor.tableColumnFormatter"===se.editor){const G=Ct()(se,["editorProps","value"]);"function"==typeof G&&(me=G({context:ne,options:ie}))}if(void 0===me&&"editor.color"===se.editor){const G=Ct()(se,["editorProps","pickFromTheme"]);if("function"==typeof G)me=G(fe)({theme:fe});else{const G=Ct()(se,["editorProps","themeVariable"]);if(G){var ge;const Z=xt()(Mt()({theme:fe}));me=null!==(ge=Ct()(Z,G))&&void 0!==ge?ge:Ct()(fe,G)}}}if(Array.isArray(ce.default)&&Z.indexOf("[")>-1&&Z.indexOf("]")===Z.indexOf("[")+2){const G=""+Z.slice(Z.indexOf("]")+2),ne=Z.slice(0,Z.indexOf("]"))+"]",se=Ct()(ie,ne,void 0);if(se){const Z=(G=>{let{searchList:Z,inputObj:ne}=G;if(!Array.isArray(Z)||0===Z.length)return-1;const ie=Object.keys(ne);let se=0,ce=0;return Z.forEach((G,Z)=>{let fe=0;ie.forEach(Z=>{G[Z]===ne[Z]&&(fe+=1)}),Math.max(se,fe)>se&&(se=fe,ce=Z)}),ce})({searchList:ce.default,inputObj:se});me=Ct()(ce.default[Z],G,ce.default[Z])}else me=Ct()(ce.default,"["+Z.slice(Z.indexOf("[")),void 0)}}return!Tt().isDslString(me)||"editor.color"!==se.editor&&"editor.tableBackgroundColor"!==se.editor||(me=(G=>{var Z;let{value:ne,item:ie,theme:se}=G;const ce=null==ie||null===(Z=ie.editorProps)||void 0===Z?void 0:Z.themes,fe={};ce&&"object"==typeof ce&&Object.keys(ce).forEach(G=>{fe[G]="function"==typeof ce[G]?ce[G]({theme:se}):void 0});const me=Tt().parseOptions({options:{value:ne},context:{themes:fe}}),ge=Ct()(me,["expressions","value"],[]).pop();if("identifier"===Ct()(ge,"type")){const G=Ct()(me,"context."+ge.v);if("string"==typeof G)return G}})({value:me,item:se,theme:fe})||me),me},U=G=>{let{item:Z,options:ne,context:se,schema:fe,encoding:me,dataContract:ge,dataSourceBindings:Ce,onOptionChange:Se,onEncodingChange:ke,onVisualizationChange:xe}=G;const De=(0,ie.useContext)(at.ThemeContext),Re=(0,ie.useCallback)((G,ne,ie)=>{if(null==ie)return ke(G,ne,null);const se=Ie()(me[ne]||Ct()(ge,["encoding",ne,"default"],{}));return void 0!==Z.formatKey?se.format=N(N({},se.format),{},{[Z.formatKey]:ie}):se.field=ie,ke(G,ne,se)},[ke,Z,me,ge]),ze="function"==typeof Z.isDisabled&&Z.isDisabled({options:ne,context:se}),$e=(0,ie.useMemo)(()=>Z.encoding?((G,Z)=>{const ne=Ie()(Ct()(G,["encoding",Z.encoding],{}));return Z.formatKey?ne.default=Ct()(ne,["default","format",Z.formatKey]):ne.default=Ct()(ne,["default","field"]),ne})(ge,Z):(G=>{let Z,{item:ne,schema:ie,theme:se}=G;const ce=ne.option||ne.key;if(Z=Ie()(Ct()(ie,ce,{})),Me()(Z)&&ce&&ce.includes(".")&&(Z=Ie()(Ct()(ie,ce.split(".").join(".properties."),{}))),Me()(Z)&&ce&&-1!==ce.indexOf("["))return Z=Ie()(Ct()(ie,ce.split("[")[0],{})),Z;if(void 0!==Z.default)return Z;const fe=Ct()(ne,["editorProps","themeVariable"]);if(fe){var me;const G=xt()(Mt()({theme:se}));Z.default=null!==(me=Ct()(G,fe))&&void 0!==me?me:Ct()(se,fe)}return Z})({item:Z,schema:fe,theme:De}),[Z,ge,fe,De]);let Je,it,ot;return Z.encoding?(Je=Z.encoding,it=(G=>{let{key:Z,encoding:ne,itemSchema:ie,item:se}=G,ce=se.formatKey?Ct()(ne,[Z,"format",se.formatKey]):Ct()(ne,[Z,"field"]);return void 0===ce&&ie.isRequired&&(ce=ie.default),ce})({key:Je,encoding:me,itemSchema:$e,item:Z}),ot=Re):Z.option&&Z.context||!Z.option&&!Z.context?(Je=Z.option||Z.key,it=z({key:Je,options:ne,context:se,item:Z,itemSchema:$e,theme:De}),ot=xe):(Je=Z.option,it=z({key:Je,options:ne,item:Z,itemSchema:$e,theme:De}),ot=Se),ce().createElement(At.default,{item:Z,name:Je,context:se,itemSchema:$e,dataSourceBindings:Ce,value:it,onChange:ot,isDisabled:ze,options:ne,optionsSchema:fe})};U.propTypes={item:me().object.isRequired,options:me().object,encoding:me().object,context:me().object,dataContract:me().object.isRequired,dataSourceBindings:me().object,schema:me().object.isRequired,onOptionChange:me().func,onEncodingChange:me().func,onVisualizationChange:me().func},U.defaultProps={options:{},encoding:{},context:{},dataSourceBindings:{},onOptionChange:()=>{},onEncodingChange:()=>{},onVisualizationChange:()=>{}};const Dt=U;var Et=a(5862);const jt=st()(ut())` padding: ${ht()({enterprise:_t().spacingMedium,prisma:_t().spacingLarge})}; `,Y=(G,Z)=>`row_${G.map(G=>G.option||G.encoding).join("_")}_${Z}`,H=G=>{let{layout:Z,options:ne,context:ie,schema:se,encoding:fe,dataContract:me,dataSourceBindings:ge,onOptionChange:Ce,onEncodingChange:Se,onVisualizationChange:ke}=G;const xe=Z||[],{density:De,family:Ie}=vt()();let Re=Et.VERTICAL_EDITOR_SPACING_ENTERPRISE;return"prisma"===Ie&&(Re="compact"===De?Et.VERTICAL_EDITOR_SPACING_PRISMA_COMPACT:Et.VERTICAL_EDITOR_SPACING_PRISMA_COMFORTABLE),ce().createElement(jt,{gutter:Re},xe.map((G,Z)=>{const xe=(0,Je.getFilteredRowsByShowEditor)(G,ne,fe);return 0===xe.length?null:ce().createElement(ut().Row,{key:Y(G,Z),alignItems:"center","data-test":"editorRow"},xe.map((xe,De)=>{const Ie=12/G.length;return Me()(xe)?ce().createElement(ut().Column,{key:`item_${Z}_${De}`,span:Ie}):ce().createElement(ut().Column,{key:`item_${xe.item}_${Z}_${De}`,span:Ie},ce().createElement(Dt,{item:xe,schema:se,dataContract:me,dataSourceBindings:ge,options:ne,context:ie,encoding:fe,onOptionChange:Ce,onEncodingChange:Se,onVisualizationChange:ke}))}))}))};H.propTypes={layout:me().arrayOf(me().arrayOf(me().object)),options:me().object,encoding:me().object,context:me().object,dataContract:me().object.isRequired,dataSourceBindings:me().object,schema:me().object.isRequired,onOptionChange:me().func,onEncodingChange:me().func,onVisualizationChange:me().func},H.defaultProps={options:{},encoding:{},context:{},dataSourceBindings:{},onOptionChange:()=>{},onEncodingChange:()=>{},onVisualizationChange:()=>{}};const It=H,J=G=>{var Z;let{section:ne,sItr:se,visualization:fe,optionSchema:me,dataContract:ge,handleOptionChange:Ce,handleEncodingChange:Se,handleVisualizationChange:Me,onCollapsibleOpen:ke,onCollapsibleClose:xe,initialIsOpen:De}=G;const Ie=ne.label||(0,$e._)("Untitled Section"),[Re,ze]=(0,ie.useState)(De),at=(0,ie.useCallback)(()=>{ze(!0),null==ke||ke(Ie)},[Ie,ke]),st=(0,ie.useCallback)(()=>{ze(!1),null==xe||xe(Ie)},[Ie,xe]),{enableCollapsible:ct=!0,enableSeparator:ut=!0}=ne,dt=(0,ie.useMemo)(()=>ce().createElement(It,{layout:ne.layout,schema:me,dataContract:ge,dataSourceBindings:fe.dataSources,options:fe.options,onOptionChange:Ce,context:fe.context,encoding:fe.encoding,onEncodingChange:Se,onVisualizationChange:Me}),[ne.layout,me,ge,fe,Ce,Se,Me]),ht=(0,ie.useMemo)(()=>ct?ce().createElement(it.DECollapsiblePanel,{panelId:se,title:Ie,open:Re,onRequestClose:st,onRequestOpen:at},dt):dt,[dt,ct,st,at,Re,Ie,se]);return null!=ne&&null!==(Z=ne.layout)&&void 0!==Z&&Z.length&&ne.layout.some(G=>(0,Je.getFilteredRowsByShowEditor)(G,fe.options,fe.encoding).length>0)?ce().createElement(ce().Fragment,null,ht,ut&&!ct&&ce().createElement(ot.default,null)):null};J.propTypes={section:me().object.isRequired,sItr:me().number,visualization:me().object.isRequired,optionSchema:me().object.isRequired,dataContract:me().object,handleOptionChange:me().func.isRequired,handleEncodingChange:me().func.isRequired,handleVisualizationChange:me().func.isRequired,onCollapsibleOpen:me().func,onCollapsibleClose:me().func,initialIsOpen:me().bool},J.defaultProps={dataContract:{}};const Nt=J;function Q(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function ee(G){for(var ne=1;ne0&&void 0!==arguments[0]?arguments[0]:{},Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const ne=xe()(G);let ie=!1;return Object.keys(Z).forEach(se=>{if(ze()(Z[se])){const ce=te(G[se],Z[se]);Me()(ce)?(delete ne[se],ie=!0):ce!==G[se]&&(ne[se]=ce,ie=!0)}else null===Z[se]||void 0===Z[se]?(delete ne[se],ie=!0):Z[se]!==G[se]&&(ne[se]=Z[se],ie=!0)}),ie?ne:G},ae=function(){let G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const ne=xe()(G);let ie=!1;return Object.keys(Z).forEach(se=>{const ce=te(G[se],Z[se]);ce!==G[se]&&(ne[se]=ce,ie=!0)}),ie?ne:G},oe=G=>{let{editorLayout:Z,optionSchema:ne,dataContract:se,onVisualizationChange:fe,visualization:me,transformLayout:ge,onCollapsibleOpen:Se,onCollapsibleClose:Me,initialCollapsibleState:ke}=G;const xe=(0,ie.useRef)(null!=ke?ke:{}),De=(0,ie.useCallback)((G,Z,ie)=>fe(G=>(0,Je.setOption)(Z,ie,G,ne)),[fe,ne]),Re=(0,ie.useCallback)((G,Z,ne)=>{fe(G=>{const ie=null==ne?Ce()(G.encoding,Z):ee(ee({},G.encoding),{},{[Z]:ne});return ee(ee({},G),{},{encoding:ie})})},[fe]),ze=(0,ie.useCallback)((G,Z)=>{fe(G=>ae(G,Z))},[fe]),it=(0,ie.useMemo)(()=>{let G=[];try{G="function"==typeof ge?ge({layout:Ie()(Z),visualization:Ie()(me)}):Z}catch(G){console.error((0,$e._)("Layout transformation failed"),G)}return Array.isArray(G)?G:[]},[Z,ge,me]);return ce().createElement(ce().Fragment,null,it.map((G,Z)=>{var ie,fe;return ce().createElement(Nt,{key:`${G.label}-${Z}`,section:G,sItr:Z,visualization:me,optionSchema:ne,dataContract:se,handleOptionChange:De,handleEncodingChange:Re,handleVisualizationChange:ze,onCollapsibleOpen:Se,onCollapsibleClose:Me,initialIsOpen:null===(ie=null!==(fe=xe.current[G.label])&&void 0!==fe?fe:G.open)||void 0===ie||ie})}))};oe.propTypes={visualization:me().object.isRequired,onVisualizationChange:me().func.isRequired,dataContract:me().object,optionSchema:me().object.isRequired,editorLayout:me().arrayOf(me().shape({label:me().string,open:me().bool,layout:me().arrayOf(me().arrayOf(me().object)),enableCollapsible:me().bool,enableSeparator:me().bool})).isRequired,transformLayout:me().func,onCollapsibleOpen:me().func,onCollapsibleClose:me().func,initialCollapsibleState:me().object},oe.defaultProps={dataContract:{}};const Rt=oe})(),G.exports=se})()},4138:function(G,Z,ne){"use strict";function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=me&&ie<=me+Me&&Se.setStart(ge=fe,ie-me),se>=me&&se<=me+Me&&Se.setEnd(Ce=fe,se-me),me+=Me,fe=fe.nextSibling}ie!==se&&Se.deleteContents(),Se.insertNode(ce)}else G.appendChild(ce)}else{var ke=G.value;G.value=ke.slice(0,ie)+Z+ke.slice(se)}G.setSelectionRange(ie+Z.length,ie+Z.length);var xe=document.createEvent("UIEvent");xe.initEvent("input",!0,!1),G.dispatchEvent(xe)}}},4145:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.SuggestionsDropdown=void 0;var ie=ne(0),se=ne(1314);Z.SuggestionsDropdown=function(G){var Z=G.classes,ne=G.suggestions,ce=G.caret,fe=G.onSuggestionSelected,me=G.suggestionsAutoplace,ge=G.focusIndex,Ce=G.textAreaRef,handleSuggestionClick=function(G){G.preventDefault();var Z=parseInt(G.currentTarget.attributes["data-index"].value);fe(Z)},handleMouseDown=function(G){return G.preventDefault()},Se=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Me=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0),ke=ce.left-Ce.current.scrollLeft,xe=ce.top-Ce.current.scrollTop,De={};return me&&xe+Ce.current.getBoundingClientRect().top>Me/2?De.bottom=Ce.current.offsetHeight-xe:De.top=xe,me&&ke+Ce.current.getBoundingClientRect().left>Se/2?De.right=Ce.current.offsetWidth-ke:De.left=ke,ie.createElement("ul",{className:se.classNames("mde-suggestions",Z),style:De},ne.map((function(G,Z){return ie.createElement("li",{onClick:handleSuggestionClick,onMouseDown:handleMouseDown,key:Z,"aria-selected":ge===Z?"true":"false","data-index":""+Z},G.preview)})))}},4146:function(G,Z,ne){"use strict";var ie=this&&this.__createBinding||(Object.create?function(G,Z,ne,ie){void 0===ie&&(ie=ne),Object.defineProperty(G,ie,{enumerable:!0,get:function(){return Z[ne]}})}:function(G,Z,ne,ie){void 0===ie&&(ie=ne),G[ie]=Z[ne]}),se=this&&this.__exportStar||function(G,Z){for(var ne in G)"default"===ne||Object.prototype.hasOwnProperty.call(Z,ne)||ie(Z,G,ne)};Object.defineProperty(Z,"__esModule",{value:!0}),se(ne(4143),Z),se(ne(7485),Z)},4147:function(G,Z,ne){var ie=ne(7518);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},4148:function(G,Z,ne){var ie=ne(7559);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},4149:function(G,Z,ne){"use strict";var ie=ne(4),se=ne(50),ce=ne(13),fe=ne(67);const me=Object(ce.wc)("symbolIcon.arrayForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ge=Object(ce.wc)("symbolIcon.booleanForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(ce.wc)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(ie.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Se=Object(ce.wc)("symbolIcon.colorForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(ce.wc)("symbolIcon.constantForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ke=Object(ce.wc)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(ie.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xe=Object(ce.wc)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(ie.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),De=Object(ce.wc)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(ie.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ie=Object(ce.wc)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(ie.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Re=Object(ce.wc)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(ie.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ze=Object(ce.wc)("symbolIcon.fileForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$e=Object(ce.wc)("symbolIcon.folderForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Je=Object(ce.wc)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(ie.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),it=Object(ce.wc)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(ie.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ot=Object(ce.wc)("symbolIcon.keyForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),at=Object(ce.wc)("symbolIcon.keywordForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),st=Object(ce.wc)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(ie.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ct=Object(ce.wc)("symbolIcon.moduleForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ut=Object(ce.wc)("symbolIcon.namespaceForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dt=Object(ce.wc)("symbolIcon.nullForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ht=Object(ce.wc)("symbolIcon.numberForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ft=Object(ce.wc)("symbolIcon.objectForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_t=Object(ce.wc)("symbolIcon.operatorForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yt=Object(ce.wc)("symbolIcon.packageForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vt=Object(ce.wc)("symbolIcon.propertyForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),wt=Object(ce.wc)("symbolIcon.referenceForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ct=Object(ce.wc)("symbolIcon.snippetForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),St=Object(ce.wc)("symbolIcon.stringForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(ce.wc)("symbolIcon.structForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kt=Object(ce.wc)("symbolIcon.textForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xt=Object(ce.wc)("symbolIcon.typeParameterForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lt=Object(ce.wc)("symbolIcon.unitForeground",{dark:ce.eb,light:ce.eb,hc:ce.eb},Object(ie.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tt=Object(ce.wc)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(ie.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(se.f)((G,Z)=>{const ne=G.getColor(me);ne&&Z.addRule(`${fe.b.symbolArray.cssSelector} { color: ${ne}; }`);const ie=G.getColor(ge);ie&&Z.addRule(`${fe.b.symbolBoolean.cssSelector} { color: ${ie}; }`);const se=G.getColor(Ce);se&&Z.addRule(`${fe.b.symbolClass.cssSelector} { color: ${se}; }`);const ce=G.getColor(st);ce&&Z.addRule(`${fe.b.symbolMethod.cssSelector} { color: ${ce}; }`);const At=G.getColor(Se);At&&Z.addRule(`${fe.b.symbolColor.cssSelector} { color: ${At}; }`);const Dt=G.getColor(Me);Dt&&Z.addRule(`${fe.b.symbolConstant.cssSelector} { color: ${Dt}; }`);const Et=G.getColor(ke);Et&&Z.addRule(`${fe.b.symbolConstructor.cssSelector} { color: ${Et}; }`);const jt=G.getColor(xe);jt&&Z.addRule(`\n\t\t\t${fe.b.symbolValue.cssSelector},${fe.b.symbolEnum.cssSelector} { color: ${jt}; }`);const It=G.getColor(De);It&&Z.addRule(`${fe.b.symbolEnumMember.cssSelector} { color: ${It}; }`);const Nt=G.getColor(Ie);Nt&&Z.addRule(`${fe.b.symbolEvent.cssSelector} { color: ${Nt}; }`);const Rt=G.getColor(Re);Rt&&Z.addRule(`${fe.b.symbolField.cssSelector} { color: ${Rt}; }`);const zt=G.getColor(ze);zt&&Z.addRule(`${fe.b.symbolFile.cssSelector} { color: ${zt}; }`);const qt=G.getColor($e);qt&&Z.addRule(`${fe.b.symbolFolder.cssSelector} { color: ${qt}; }`);const Wt=G.getColor(Je);Wt&&Z.addRule(`${fe.b.symbolFunction.cssSelector} { color: ${Wt}; }`);const Bt=G.getColor(it);Bt&&Z.addRule(`${fe.b.symbolInterface.cssSelector} { color: ${Bt}; }`);const Ft=G.getColor(ot);Ft&&Z.addRule(`${fe.b.symbolKey.cssSelector} { color: ${Ft}; }`);const Ht=G.getColor(at);Ht&&Z.addRule(`${fe.b.symbolKeyword.cssSelector} { color: ${Ht}; }`);const $t=G.getColor(ct);$t&&Z.addRule(`${fe.b.symbolModule.cssSelector} { color: ${$t}; }`);const Vt=G.getColor(ut);Vt&&Z.addRule(`${fe.b.symbolNamespace.cssSelector} { color: ${Vt}; }`);const Yt=G.getColor(dt);Yt&&Z.addRule(`${fe.b.symbolNull.cssSelector} { color: ${Yt}; }`);const Ut=G.getColor(ht);Ut&&Z.addRule(`${fe.b.symbolNumber.cssSelector} { color: ${Ut}; }`);const Kt=G.getColor(ft);Kt&&Z.addRule(`${fe.b.symbolObject.cssSelector} { color: ${Kt}; }`);const Gt=G.getColor(_t);Gt&&Z.addRule(`${fe.b.symbolOperator.cssSelector} { color: ${Gt}; }`);const Zt=G.getColor(yt);Zt&&Z.addRule(`${fe.b.symbolPackage.cssSelector} { color: ${Zt}; }`);const Jt=G.getColor(vt);Jt&&Z.addRule(`${fe.b.symbolProperty.cssSelector} { color: ${Jt}; }`);const Qt=G.getColor(wt);Qt&&Z.addRule(`${fe.b.symbolReference.cssSelector} { color: ${Qt}; }`);const on=G.getColor(Ct);on&&Z.addRule(`${fe.b.symbolSnippet.cssSelector} { color: ${on}; }`);const sn=G.getColor(St);sn&&Z.addRule(`${fe.b.symbolString.cssSelector} { color: ${sn}; }`);const cn=G.getColor(Mt);cn&&Z.addRule(`${fe.b.symbolStruct.cssSelector} { color: ${cn}; }`);const dn=G.getColor(kt);dn&&Z.addRule(`${fe.b.symbolText.cssSelector} { color: ${dn}; }`);const mn=G.getColor(xt);mn&&Z.addRule(`${fe.b.symbolTypeParameter.cssSelector} { color: ${mn}; }`);const _n=G.getColor(Lt);_n&&Z.addRule(`${fe.b.symbolUnit.cssSelector} { color: ${_n}; }`);const gn=G.getColor(Tt);gn&&Z.addRule(`${fe.b.symbolVariable.cssSelector} { color: ${gn}; }`)})},4150:function(G,Z,ne){var ie=ne(7572);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},4151:function(G,Z,ne){var ie=ne(7598);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},4152:function(G,Z,ne){"use strict";(function(Z){class JSONParseError extends SyntaxError{constructor(G,Z,ne,ie){const se=((G,Z,ne)=>{if(!Z)return{message:G.message+" while parsing empty string",position:0};const ie=G.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),se=ie?+ie[2]:G.message.match(/^Unexpected end of JSON.*/i)?Z.length-1:null,ce=ie?G.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(ie[1])} (${(G=>{const Z=G.charCodeAt(0).toString(16).toUpperCase();return"0x"+(Z.length%2?"0":"")+Z})(ie[1])})`):G.message;if(null!=se){const G=se<=ne?0:se-ne,ie=se+ne>=Z.length?Z.length:se+ne,fe=(0===G?"":"...")+Z.slice(G,ie)+(ie===Z.length?"":"...");return{message:ce+` while parsing ${Z===fe?"":"near "}${JSON.stringify(fe)}`,position:se}}return{message:ce+` while parsing '${Z.slice(0,2*ne)}'`,position:0}})(G,Z,ne=ne||20);super(se.message),Object.assign(this,se),this.code="EJSONPARSE",this.systemError=G,Error.captureStackTrace(this,ie||this.constructor)}get name(){return this.constructor.name}set name(G){}get[Symbol.toStringTag](){return this.constructor.name}}const ne=Symbol.for("indent"),ie=Symbol.for("newline"),se=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,ce=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,parseJson=(G,fe,me)=>{const ge=stripBOM(G);me=me||20;try{const[,G="\n",Z=" "]=ge.match(ce)||ge.match(se)||[,"",""],me=JSON.parse(ge,fe);return me&&"object"==typeof me&&(me[ie]=G,me[ne]=Z),me}catch(ne){if("string"!=typeof G&&!Z.isBuffer(G)){const Z=Array.isArray(G)&&0===G.length;throw Object.assign(new TypeError("Cannot parse "+(Z?"an empty array":String(G))),{code:"EJSONPARSE",systemError:ne})}throw new JSONParseError(ne,ge,me,parseJson)}},stripBOM=G=>String(G).replace(/^\uFEFF/,"");G.exports=parseJson,parseJson.JSONParseError=JSONParseError,parseJson.noExceptions=(G,Z)=>{try{return JSON.parse(stripBOM(G),Z)}catch(G){}}}).call(this,ne(783).Buffer)},4153:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.CodeGen=Z.Name=Z.nil=Z.stringify=Z.str=Z._=Z.KeywordCxt=void 0;const ie=ne(7649),se=ne(7656),ce=ne(7689),fe=ne(7691),me=["/properties"],ge="http://json-schema.org/draft-07/schema";class Ajv extends ie.default{_addVocabularies(){super._addVocabularies(),se.default.forEach(G=>this.addVocabulary(G)),this.opts.discriminator&&this.addKeyword(ce.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const G=this.opts.$data?this.$dataMetaSchema(fe,me):fe;this.addMetaSchema(G,ge,!1),this.refs["http://json-schema.org/schema"]=ge}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ge)?ge:void 0)}}G.exports=Z=Ajv,Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=Ajv;var Ce=ne(2026);Object.defineProperty(Z,"KeywordCxt",{enumerable:!0,get:function(){return Ce.KeywordCxt}});var Se=ne(233);Object.defineProperty(Z,"_",{enumerable:!0,get:function(){return Se._}}),Object.defineProperty(Z,"str",{enumerable:!0,get:function(){return Se.str}}),Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return Se.stringify}}),Object.defineProperty(Z,"nil",{enumerable:!0,get:function(){return Se.nil}}),Object.defineProperty(Z,"Name",{enumerable:!0,get:function(){return Se.Name}}),Object.defineProperty(Z,"CodeGen",{enumerable:!0,get:function(){return Se.CodeGen}})},4154:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.ValueScope=Z.ValueScopeName=Z.Scope=Z.varKinds=Z.UsedValueState=void 0;const ie=ne(2028);class ValueError extends Error{constructor(G){super(`CodeGen: "code" for ${G} not defined`),this.value=G.value}}var se;!function(G){G[G.Started=0]="Started",G[G.Completed=1]="Completed"}(se=Z.UsedValueState||(Z.UsedValueState={})),Z.varKinds={const:new ie.Name("const"),let:new ie.Name("let"),var:new ie.Name("var")};class Scope{constructor({prefixes:G,parent:Z}={}){this._names={},this._prefixes=G,this._parent=Z}toName(G){return G instanceof ie.Name?G:this.name(G)}name(G){return new ie.Name(this._newName(G))}_newName(G){return`${G}${(this._names[G]||this._nameGroup(G)).index++}`}_nameGroup(G){var Z,ne;if((null===(ne=null===(Z=this._parent)||void 0===Z?void 0:Z._prefixes)||void 0===ne?void 0:ne.has(G))||this._prefixes&&!this._prefixes.has(G))throw new Error(`CodeGen: prefix "${G}" is not allowed in this scope`);return this._names[G]={prefix:G,index:0}}}Z.Scope=Scope;class ValueScopeName extends ie.Name{constructor(G,Z){super(Z),this.prefix=G}setValue(G,{property:Z,itemIndex:ne}){this.value=G,this.scopePath=ie._`.${new ie.Name(Z)}[${ne}]`}}Z.ValueScopeName=ValueScopeName;const ce=ie._`\n`;Z.ValueScope=class ValueScope extends Scope{constructor(G){super(G),this._values={},this._scope=G.scope,this.opts={...G,_n:G.lines?ce:ie.nil}}get(){return this._scope}name(G){return new ValueScopeName(G,this._newName(G))}value(G,Z){var ne;if(void 0===Z.ref)throw new Error("CodeGen: ref must be passed in value");const ie=this.toName(G),{prefix:se}=ie,ce=null!==(ne=Z.key)&&void 0!==ne?ne:Z.ref;let fe=this._values[se];if(fe){const G=fe.get(ce);if(G)return G}else fe=this._values[se]=new Map;fe.set(ce,ie);const me=this._scope[se]||(this._scope[se]=[]),ge=me.length;return me[ge]=Z.ref,ie.setValue(Z,{property:se,itemIndex:ge}),ie}getValue(G,Z){const ne=this._values[G];if(ne)return ne.get(Z)}scopeRefs(G,Z=this._values){return this._reduceValues(Z,Z=>{if(void 0===Z.scopePath)throw new Error(`CodeGen: name "${Z}" has no value`);return ie._`${G}${Z.scopePath}`})}scopeCode(G=this._values,Z,ne){return this._reduceValues(G,G=>{if(void 0===G.value)throw new Error(`CodeGen: name "${G}" has no value`);return G.value.code},Z,ne)}_reduceValues(G,ne,ce={},fe){let me=ie.nil;for(const ge in G){const Ce=G[ge];if(!Ce)continue;const Se=ce[ge]=ce[ge]||new Map;Ce.forEach(G=>{if(Se.has(G))return;Se.set(G,se.Started);let ce=ne(G);if(ce){const ne=this.opts.es5?Z.varKinds.var:Z.varKinds.const;me=ie._`${me}${ne} ${G} = ${ce};${this.opts._n}`}else{if(!(ce=null==fe?void 0:fe(G)))throw new ValueError(G);me=ie._`${me}${ce}${this.opts._n}`}Se.set(G,se.Completed)})}return me}}},4155:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getRules=Z.isJSONType=void 0;const ie=new Set(["string","number","integer","boolean","null","object","array"]);Z.isJSONType=function isJSONType(G){return"string"==typeof G&&ie.has(G)},Z.getRules=function getRules(){const G={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...G,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},G.number,G.string,G.array,G.object],post:{rules:[]},all:{},keywords:{}}}},4156:function(G,Z,ne){"use strict";function shouldUseGroup(G,Z){return Z.rules.some(Z=>shouldUseRule(G,Z))}function shouldUseRule(G,Z){var ne;return void 0!==G[Z.keyword]||(null===(ne=Z.definition.implements)||void 0===ne?void 0:ne.some(Z=>void 0!==G[Z]))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.shouldUseRule=Z.shouldUseGroup=Z.schemaHasRulesForType=void 0,Z.schemaHasRulesForType=function schemaHasRulesForType({schema:G,self:Z},ne){const ie=Z.RULES.types[ne];return ie&&!0!==ie&&shouldUseGroup(G,ie)},Z.shouldUseGroup=shouldUseGroup,Z.shouldUseRule=shouldUseRule},4157:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});class ValidationError extends Error{constructor(G){super("validation failed"),this.errors=G,this.ajv=this.validation=!0}}Z.default=ValidationError},4158:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(2030);class MissingRefError extends Error{constructor(G,Z,ne){super(ne||`can't resolve reference ${Z} from id ${G}`),this.missingRef=(0,ie.resolveUrl)(G,Z),this.missingSchema=(0,ie.normalizeId)((0,ie.getFullPath)(this.missingRef))}}Z.default=MissingRefError},4159:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.resolveSchema=Z.getCompilingSchema=Z.resolveRef=Z.compileSchema=Z.SchemaEnv=void 0;const ie=ne(233),se=ne(4157),ce=ne(981),fe=ne(2030),me=ne(286),ge=ne(2026),Ce=ne(1250);class SchemaEnv{constructor(G){var Z;let ne;this.refs={},this.dynamicAnchors={},"object"==typeof G.schema&&(ne=G.schema),this.schema=G.schema,this.schemaId=G.schemaId,this.root=G.root||this,this.baseId=null!==(Z=G.baseId)&&void 0!==Z?Z:(0,fe.normalizeId)(null==ne?void 0:ne[G.schemaId||"$id"]),this.schemaPath=G.schemaPath,this.localRefs=G.localRefs,this.meta=G.meta,this.$async=null==ne?void 0:ne.$async,this.refs={}}}function compileSchema(G){const Z=getCompilingSchema.call(this,G);if(Z)return Z;const ne=(0,fe.getFullPath)(G.root.baseId),{es5:me,lines:Ce}=this.opts.code,{ownProperties:Se}=this.opts,Me=new ie.CodeGen(this.scope,{es5:me,lines:Ce,ownProperties:Se});let ke;G.$async&&(ke=Me.scopeValue("Error",{ref:se.default,code:ie._`require("ajv/dist/runtime/validation_error").default`}));const xe=Me.scopeName("validate");G.validateName=xe;const De={gen:Me,allErrors:this.opts.allErrors,data:ce.default.data,parentData:ce.default.parentData,parentDataProperty:ce.default.parentDataProperty,dataNames:[ce.default.data],dataPathArr:[ie.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:Me.scopeValue("schema",!0===this.opts.code.source?{ref:G.schema,code:(0,ie.stringify)(G.schema)}:{ref:G.schema}),validateName:xe,ValidationError:ke,schema:G.schema,schemaEnv:G,rootId:ne,baseId:G.baseId||ne,schemaPath:ie.nil,errSchemaPath:G.schemaPath||(this.opts.jtd?"":"#"),errorPath:ie._`""`,opts:this.opts,self:this};let Ie;try{this._compilations.add(G),(0,ge.validateFunctionCode)(De),Me.optimize(this.opts.code.optimize);const Z=Me.toString();Ie=`${Me.scopeRefs(ce.default.scope)}return ${Z}`,this.opts.code.process&&(Ie=this.opts.code.process(Ie,G));const ne=new Function(""+ce.default.self,""+ce.default.scope,Ie)(this,this.scope.get());if(this.scope.value(xe,{ref:ne}),ne.errors=null,ne.schema=G.schema,ne.schemaEnv=G,G.$async&&(ne.$async=!0),!0===this.opts.code.source&&(ne.source={validateName:xe,validateCode:Z,scopeValues:Me._values}),this.opts.unevaluated){const{props:G,items:Z}=De;ne.evaluated={props:G instanceof ie.Name?void 0:G,items:Z instanceof ie.Name?void 0:Z,dynamicProps:G instanceof ie.Name,dynamicItems:Z instanceof ie.Name},ne.source&&(ne.source.evaluated=(0,ie.stringify)(ne.evaluated))}return G.validate=ne,G}catch(Z){throw delete G.validate,delete G.validateName,Ie&&this.logger.error("Error compiling schema, function code:",Ie),Z}finally{this._compilations.delete(G)}}function inlineOrCompile(G){return(0,fe.inlineRef)(G.schema,this.opts.inlineRefs)?G.schema:G.validate?G:compileSchema.call(this,G)}function getCompilingSchema(G){for(const ie of this._compilations)if(ne=G,(Z=ie).schema===ne.schema&&Z.root===ne.root&&Z.baseId===ne.baseId)return ie;var Z,ne}function resolve(G,Z){let ne;for(;"string"==typeof(ne=this.refs[Z]);)Z=ne;return ne||this.schemas[Z]||resolveSchema.call(this,G,Z)}function resolveSchema(G,Z){const ne=Ce.parse(Z),ie=(0,fe._getFullPath)(ne);let se=(0,fe.getFullPath)(G.baseId);if(Object.keys(G.schema).length>0&&ie===se)return getJsonPointer.call(this,ne,G);const ce=(0,fe.normalizeId)(ie),me=this.refs[ce]||this.schemas[ce];if("string"==typeof me){const Z=resolveSchema.call(this,G,me);if("object"!=typeof(null==Z?void 0:Z.schema))return;return getJsonPointer.call(this,ne,Z)}if("object"==typeof(null==me?void 0:me.schema)){if(me.validate||compileSchema.call(this,me),ce===(0,fe.normalizeId)(Z)){const{schema:Z}=me,{schemaId:ne}=this.opts,ie=Z[ne];return ie&&(se=(0,fe.resolveUrl)(se,ie)),new SchemaEnv({schema:Z,schemaId:ne,root:G,baseId:se})}return getJsonPointer.call(this,ne,me)}}Z.SchemaEnv=SchemaEnv,Z.compileSchema=compileSchema,Z.resolveRef=function resolveRef(G,Z,ne){var ie;ne=(0,fe.resolveUrl)(Z,ne);const se=G.refs[ne];if(se)return se;let ce=resolve.call(this,G,ne);if(void 0===ce){const se=null===(ie=G.localRefs)||void 0===ie?void 0:ie[ne],{schemaId:fe}=this.opts;se&&(ce=new SchemaEnv({schema:se,schemaId:fe,root:G,baseId:Z}))}return void 0!==ce?G.refs[ne]=inlineOrCompile.call(this,ce):void 0},Z.getCompilingSchema=getCompilingSchema,Z.resolveSchema=resolveSchema;const Se=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(G,{baseId:Z,schema:ne,root:ie}){var se;if("/"!==(null===(se=G.fragment)||void 0===se?void 0:se[0]))return;for(const ie of G.fragment.slice(1).split("/")){if("boolean"==typeof ne)return;const G=ne[(0,me.unescapeFragment)(ie)];if(void 0===G)return;const se="object"==typeof(ne=G)&&ne[this.opts.schemaId];!Se.has(ie)&&se&&(Z=(0,fe.resolveUrl)(Z,se))}let ce;if("boolean"!=typeof ne&&ne.$ref&&!(0,me.schemaHasRulesButRef)(ne,this.RULES)){const G=(0,fe.resolveUrl)(Z,ne.$ref);ce=resolveSchema.call(this,ie,G)}const{schemaId:ge}=this.opts;return ce=ce||new SchemaEnv({schema:ne,schemaId:ge,root:ie,baseId:Z}),ce.schema!==ce.root.schema?ce:void 0}},416:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return scrollableElement_ScrollableElement})),ne.d(Z,"c",(function(){return SmoothScrollableElement})),ne.d(Z,"a",(function(){return DomScrollableElement}));ne(7512);var ie=ne(6),se=ne(128),ce=ne(279),fe=ne(446),me=ne(316),ge=ne(57);class scrollbarArrow_ScrollbarArrow extends me.a{constructor(G){super(),this._onActivate=G.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=G.bgWidth+"px",this.bgDomNode.style.height=G.bgHeight+"px",void 0!==G.top&&(this.bgDomNode.style.top="0px"),void 0!==G.left&&(this.bgDomNode.style.left="0px"),void 0!==G.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==G.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=G.className,this.domNode.classList.add(...G.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==G.top&&(this.domNode.style.top=G.top+"px"),void 0!==G.left&&(this.domNode.style.left=G.left+"px"),void 0!==G.bottom&&(this.domNode.style.bottom=G.bottom+"px"),void 0!==G.right&&(this.domNode.style.right=G.right+"px"),this._mouseMoveMonitor=this._register(new fe.a),this.onmousedown(this.bgDomNode,G=>this._arrowMouseDown(G)),this.onmousedown(this.domNode,G=>this._arrowMouseDown(G)),this._mousedownRepeatTimer=this._register(new ge.c),this._mousedownScheduleRepeatTimer=this._register(new ge.g)}_arrowMouseDown(G){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)},200),this._mouseMoveMonitor.startMonitoring(G.target,G.buttons,fe.b,G=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),G.preventDefault()}}var Ce=ne(10);class scrollbarVisibilityController_ScrollbarVisibilityController extends Ce.a{constructor(G,Z,ne){super(),this._visibility=G,this._visibleClassName=Z,this._invisibleClassName=ne,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new ge.g)}setVisibility(G){this._visibility!==G&&(this._visibility=G,this._updateShouldBeVisible())}setShouldBeVisible(G){this._rawShouldBeVisible=G,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const G=this._applyVisibilitySetting();this._shouldBeVisible!==G&&(this._shouldBeVisible=G,this.ensureVisibility())}setIsNeeded(G){this._isNeeded!==G&&(this._isNeeded=G,this.ensureVisibility())}setDomNode(G){this._domNode=G,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(G){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(G?" fade":"")))}}var Se=ne(46);class abstractScrollbar_AbstractScrollbar extends me.a{constructor(G){super(),this._lazyRender=G.lazyRender,this._host=G.host,this._scrollable=G.scrollable,this._scrollByPage=G.scrollByPage,this._scrollbarState=G.scrollbarState,this._visibilityController=this._register(new scrollbarVisibilityController_ScrollbarVisibilityController(G.visibility,"visible scrollbar "+G.extraScrollbarClassName,"invisible scrollbar "+G.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new fe.a),this._shouldRender=!0,this.domNode=Object(se.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,G=>this._domNodeMouseDown(G))}_createArrow(G){const Z=this._register(new scrollbarArrow_ScrollbarArrow(G));this.domNode.domNode.appendChild(Z.bgDomNode),this.domNode.domNode.appendChild(Z.domNode)}_createSlider(G,Z,ne,ie){this.slider=Object(se.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(G),this.slider.setLeft(Z),"number"==typeof ne&&this.slider.setWidth(ne),"number"==typeof ie&&this.slider.setHeight(ie),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,G=>{G.leftButton&&(G.preventDefault(),this._sliderMouseDown(G,()=>{}))}),this.onclick(this.slider.domNode,G=>{G.leftButton&&G.stopPropagation()})}_onElementSize(G){return this._scrollbarState.setVisibleSize(G)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(G){return this._scrollbarState.setScrollSize(G)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(G){return this._scrollbarState.setScrollPosition(G)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(G){G.target===this.domNode.domNode&&this._onMouseDown(G)}delegateMouseDown(G){const Z=this.domNode.domNode.getClientRects()[0].top,ne=Z+this._scrollbarState.getSliderPosition(),ie=Z+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),se=this._sliderMousePosition(G);ne<=se&&se<=ie?G.leftButton&&(G.preventDefault(),this._sliderMouseDown(G,()=>{})):this._onMouseDown(G)}_onMouseDown(G){let Z,ne;if(G.target===this.domNode.domNode&&"number"==typeof G.browserEvent.offsetX&&"number"==typeof G.browserEvent.offsetY)Z=G.browserEvent.offsetX,ne=G.browserEvent.offsetY;else{const se=ie.D(this.domNode.domNode);Z=G.posx-se.left,ne=G.posy-se.top}const se=this._mouseDownRelativePosition(Z,ne);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(se):this._scrollbarState.getDesiredScrollPositionFromOffset(se)),G.leftButton&&(G.preventDefault(),this._sliderMouseDown(G,()=>{}))}_sliderMouseDown(G,Z){const ne=this._sliderMousePosition(G),ie=this._sliderOrthogonalMousePosition(G),se=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(G.target,G.buttons,fe.b,G=>{const Z=this._sliderOrthogonalMousePosition(G),ce=Math.abs(Z-ie);if(Se.j&&ce>140)return void this._setDesiredScrollPositionNow(se.getScrollPosition());const fe=this._sliderMousePosition(G)-ne;this._setDesiredScrollPositionNow(se.getDesiredScrollPositionFromDelta(fe))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),Z()}),this._host.onDragStart()}_setDesiredScrollPositionNow(G){const Z={};this.writeScrollPosition(Z,G),this._scrollable.setScrollPositionNow(Z)}updateScrollbarSize(G){this._updateScrollbarSize(G),this._scrollbarState.setScrollbarSize(G),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class ScrollbarState{constructor(G,Z,ne,ie,se,ce){this._scrollbarSize=Math.round(Z),this._oppositeScrollbarSize=Math.round(ne),this._arrowSize=Math.round(G),this._visibleSize=ie,this._scrollSize=se,this._scrollPosition=ce,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new ScrollbarState(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(G){const Z=Math.round(G);return this._visibleSize!==Z&&(this._visibleSize=Z,this._refreshComputedValues(),!0)}setScrollSize(G){const Z=Math.round(G);return this._scrollSize!==Z&&(this._scrollSize=Z,this._refreshComputedValues(),!0)}setScrollPosition(G){const Z=Math.round(G);return this._scrollPosition!==Z&&(this._scrollPosition=Z,this._refreshComputedValues(),!0)}setScrollbarSize(G){this._scrollbarSize=Math.round(G)}setOppositeScrollbarSize(G){this._oppositeScrollbarSize=Math.round(G)}static _computeValues(G,Z,ne,ie,se){const ce=Math.max(0,ne-G),fe=Math.max(0,ce-2*Z),me=ie>0&&ie>ne;if(!me)return{computedAvailableSize:Math.round(ce),computedIsNeeded:me,computedSliderSize:Math.round(fe),computedSliderRatio:0,computedSliderPosition:0};const ge=Math.round(Math.max(20,Math.floor(ne*fe/ie))),Ce=(fe-ge)/(ie-ne),Se=se*Ce;return{computedAvailableSize:Math.round(ce),computedIsNeeded:me,computedSliderSize:Math.round(ge),computedSliderRatio:Ce,computedSliderPosition:Math.round(Se)}}_refreshComputedValues(){const G=ScrollbarState._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=G.computedAvailableSize,this._computedIsNeeded=G.computedIsNeeded,this._computedSliderSize=G.computedSliderSize,this._computedSliderRatio=G.computedSliderRatio,this._computedSliderPosition=G.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(G){if(!this._computedIsNeeded)return 0;const Z=G-this._arrowSize-this._computedSliderSize/2;return Math.round(Z/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(G){if(!this._computedIsNeeded)return 0;const Z=G-this._arrowSize;let ne=this._scrollPosition;return Zthis._host.onMouseWheel(new ce.b(null,1,0))}),this._createArrow({className:"scra",icon:xe,top:ne,left:void 0,bottom:void 0,right:G,bgWidth:Z.arrowSize,bgHeight:Z.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new ce.b(null,-1,0))})}this._createSlider(Math.floor((Z.horizontalScrollbarSize-Z.horizontalSliderSize)/2),0,void 0,Z.horizontalSliderSize)}_updateSlider(G,Z){this.slider.setWidth(G),this.slider.setLeft(Z)}_renderDomNode(G,Z){this.domNode.setWidth(G),this.domNode.setHeight(Z),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(G){return this._shouldRender=this._onElementScrollSize(G.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(G.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(G.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(G,Z){return G}_sliderMousePosition(G){return G.posx}_sliderOrthogonalMousePosition(G){return G.posy}_updateScrollbarSize(G){this.slider.setHeight(G)}writeScrollPosition(G,Z){G.scrollLeft=Z}updateOptions(G){this.updateScrollbarSize(2===G.horizontal?0:G.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===G.vertical?0:G.verticalScrollbarSize),this._visibilityController.setVisibility(G.horizontal),this._scrollByPage=G.scrollByPage}}const De=Object(Me.e)("scrollbar-button-up",Me.b.triangleUp),Ie=Object(Me.e)("scrollbar-button-down",Me.b.triangleDown);class verticalScrollbar_VerticalScrollbar extends abstractScrollbar_AbstractScrollbar{constructor(G,Z,ne){const ie=G.getScrollDimensions(),se=G.getCurrentScrollPosition();if(super({lazyRender:Z.lazyRender,host:ne,scrollbarState:new ScrollbarState(Z.verticalHasArrows?Z.arrowSize:0,2===Z.vertical?0:Z.verticalScrollbarSize,0,ie.height,ie.scrollHeight,se.scrollTop),visibility:Z.vertical,extraScrollbarClassName:"vertical",scrollable:G,scrollByPage:Z.scrollByPage}),Z.verticalHasArrows){const G=(Z.arrowSize-11)/2,ne=(Z.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:De,top:G,left:ne,bottom:void 0,right:void 0,bgWidth:Z.verticalScrollbarSize,bgHeight:Z.arrowSize,onActivate:()=>this._host.onMouseWheel(new ce.b(null,0,1))}),this._createArrow({className:"scra",icon:Ie,top:void 0,left:ne,bottom:G,right:void 0,bgWidth:Z.verticalScrollbarSize,bgHeight:Z.arrowSize,onActivate:()=>this._host.onMouseWheel(new ce.b(null,0,-1))})}this._createSlider(0,Math.floor((Z.verticalScrollbarSize-Z.verticalSliderSize)/2),Z.verticalSliderSize,void 0)}_updateSlider(G,Z){this.slider.setHeight(G),this.slider.setTop(Z)}_renderDomNode(G,Z){this.domNode.setWidth(Z),this.domNode.setHeight(G),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(G){return this._shouldRender=this._onElementScrollSize(G.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(G.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(G.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(G,Z){return Z}_sliderMousePosition(G){return G.posy}_sliderOrthogonalMousePosition(G){return G.posx}_updateScrollbarSize(G){this.slider.setWidth(G)}writeScrollPosition(G,Z){G.scrollTop=Z}updateOptions(G){this.updateScrollbarSize(2===G.vertical?0:G.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(G.vertical),this._scrollByPage=G.scrollByPage}}var Re=ne(19),ze=ne(994),$e=ne(130);class MouseWheelClassifierItem{constructor(G,Z,ne){this.timestamp=G,this.deltaX=Z,this.deltaY=ne,this.score=0}}class MouseWheelClassifier{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let G=1,Z=0,ne=1,ie=this._rear;for(;;){const se=ie===this._front?G:Math.pow(2,-ne);if(G-=se,Z+=this._memory[ie].score*se,ie===this._front)break;ie=(this._capacity+ie-1)%this._capacity,ne++}return Z<=.5}accept(G,Z,ne){const ie=new MouseWheelClassifierItem(G,Z,ne);ie.score=this._computeScore(ie),-1===this._front&&-1===this._rear?(this._memory[0]=ie,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ie)}_computeScore(G){if(Math.abs(G.deltaX)>0&&Math.abs(G.deltaY)>0)return 1;let Z=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(G.deltaX)&&this._isAlmostInt(G.deltaY)||(Z+=.25),Math.min(Math.max(Z,0),1)}_isAlmostInt(G){return Math.abs(Math.round(G)-G)<.01}}MouseWheelClassifier.INSTANCE=new MouseWheelClassifier;class scrollableElement_AbstractScrollableElement extends me.a{constructor(G,Z,ne){super(),this._onScroll=this._register(new Re.b),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new Re.b),G.style.overflow="hidden",this._options=function resolveOptions(G){const Z={lazyRender:void 0!==G.lazyRender&&G.lazyRender,className:void 0!==G.className?G.className:"",useShadows:void 0===G.useShadows||G.useShadows,handleMouseWheel:void 0===G.handleMouseWheel||G.handleMouseWheel,flipAxes:void 0!==G.flipAxes&&G.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==G.consumeMouseWheelIfScrollbarIsNeeded&&G.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==G.alwaysConsumeMouseWheel&&G.alwaysConsumeMouseWheel,scrollYToX:void 0!==G.scrollYToX&&G.scrollYToX,mouseWheelScrollSensitivity:void 0!==G.mouseWheelScrollSensitivity?G.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==G.fastScrollSensitivity?G.fastScrollSensitivity:5,scrollPredominantAxis:void 0===G.scrollPredominantAxis||G.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===G.mouseWheelSmoothScroll||G.mouseWheelSmoothScroll,arrowSize:void 0!==G.arrowSize?G.arrowSize:11,listenOnDomNode:void 0!==G.listenOnDomNode?G.listenOnDomNode:null,horizontal:void 0!==G.horizontal?G.horizontal:1,horizontalScrollbarSize:void 0!==G.horizontalScrollbarSize?G.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==G.horizontalSliderSize?G.horizontalSliderSize:0,horizontalHasArrows:void 0!==G.horizontalHasArrows&&G.horizontalHasArrows,vertical:void 0!==G.vertical?G.vertical:1,verticalScrollbarSize:void 0!==G.verticalScrollbarSize?G.verticalScrollbarSize:10,verticalHasArrows:void 0!==G.verticalHasArrows&&G.verticalHasArrows,verticalSliderSize:void 0!==G.verticalSliderSize?G.verticalSliderSize:0,scrollByPage:void 0!==G.scrollByPage&&G.scrollByPage};Z.horizontalSliderSize=void 0!==G.horizontalSliderSize?G.horizontalSliderSize:Z.horizontalScrollbarSize,Z.verticalSliderSize=void 0!==G.verticalSliderSize?G.verticalSliderSize:Z.verticalScrollbarSize,Se.f&&(Z.className+=" mac");return Z}(Z),this._scrollable=ne,this._register(this._scrollable.onScroll(G=>{this._onWillScroll.fire(G),this._onDidScroll(G),this._onScroll.fire(G)}));const ie={onMouseWheel:G=>this._onMouseWheel(G),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new verticalScrollbar_VerticalScrollbar(this._scrollable,this._options,ie)),this._horizontalScrollbar=this._register(new horizontalScrollbar_HorizontalScrollbar(this._scrollable,this._options,ie)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(G),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(se.b)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(se.b)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(se.b)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,G=>this._onMouseOver(G)),this.onnonbubblingmouseout(this._listenOnDomNode,G=>this._onMouseOut(G)),this._hideTimeout=this._register(new ge.g),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(Ce.f)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(G){this._verticalScrollbar.delegateMouseDown(G)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(G){this._scrollable.setScrollDimensions(G,!1)}updateClassName(G){this._options.className=G,Se.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(G){void 0!==G.handleMouseWheel&&(this._options.handleMouseWheel=G.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==G.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=G.mouseWheelScrollSensitivity),void 0!==G.fastScrollSensitivity&&(this._options.fastScrollSensitivity=G.fastScrollSensitivity),void 0!==G.scrollPredominantAxis&&(this._options.scrollPredominantAxis=G.scrollPredominantAxis),void 0!==G.horizontal&&(this._options.horizontal=G.horizontal),void 0!==G.vertical&&(this._options.vertical=G.vertical),void 0!==G.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=G.horizontalScrollbarSize),void 0!==G.verticalScrollbarSize&&(this._options.verticalScrollbarSize=G.verticalScrollbarSize),void 0!==G.scrollByPage&&(this._options.scrollByPage=G.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(G){if(this._mouseWheelToDispose.length>0!==G&&(this._mouseWheelToDispose=Object(Ce.f)(this._mouseWheelToDispose),G)){const onMouseWheel=G=>{this._onMouseWheel(new ce.b(G))};this._mouseWheelToDispose.push(ie.i(this._listenOnDomNode,ie.d.MOUSE_WHEEL,onMouseWheel,{passive:!1}))}}_onMouseWheel(G){const Z=MouseWheelClassifier.INSTANCE;{const ne=window.devicePixelRatio/Object($e.c)();Se.j||Se.d?Z.accept(Date.now(),G.deltaX/ne,G.deltaY/ne):Z.accept(Date.now(),G.deltaX,G.deltaY)}let ne=!1;if(G.deltaY||G.deltaX){let ie=G.deltaY*this._options.mouseWheelScrollSensitivity,se=G.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(ie)>=Math.abs(se)?se=0:ie=0),this._options.flipAxes&&([ie,se]=[se,ie]);const ce=!Se.f&&G.browserEvent&&G.browserEvent.shiftKey;!this._options.scrollYToX&&!ce||se||(se=ie,ie=0),G.browserEvent&&G.browserEvent.altKey&&(se*=this._options.fastScrollSensitivity,ie*=this._options.fastScrollSensitivity);const fe=this._scrollable.getFutureScrollPosition();let me={};if(ie){const G=fe.scrollTop-50*ie;this._verticalScrollbar.writeScrollPosition(me,G)}if(se){const G=fe.scrollLeft-50*se;this._horizontalScrollbar.writeScrollPosition(me,G)}if(me=this._scrollable.validateScrollPosition(me),fe.scrollLeft!==me.scrollLeft||fe.scrollTop!==me.scrollTop){this._options.mouseWheelSmoothScroll&&Z.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(me):this._scrollable.setScrollPositionNow(me),ne=!0}}let ie=ne;!ie&&this._options.alwaysConsumeMouseWheel&&(ie=!0),!ie&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(ie=!0),ie&&(G.preventDefault(),G.stopPropagation())}_onDidScroll(G){this._shouldRender=this._horizontalScrollbar.onDidScroll(G)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(G)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const G=this._scrollable.getCurrentScrollPosition(),Z=G.scrollTop>0,ne=G.scrollLeft>0,ie=ne?" left":"",se=Z?" top":"",ce=ne||Z?" top-left-corner":"";this._leftShadowDomNode.setClassName("shadow"+ie),this._topShadowDomNode.setClassName("shadow"+se),this._topLeftShadowDomNode.setClassName(`shadow${ce}${se}${ie}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(G){this._mouseIsOver=!1,this._hide()}_onMouseOver(G){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class scrollableElement_ScrollableElement extends scrollableElement_AbstractScrollableElement{constructor(G,Z){(Z=Z||{}).mouseWheelSmoothScroll=!1;const ne=new ze.a(0,G=>ie.V(G));super(G,Z,ne),this._register(ne)}setScrollPosition(G){this._scrollable.setScrollPositionNow(G)}}class SmoothScrollableElement extends scrollableElement_AbstractScrollableElement{constructor(G,Z,ne){super(G,Z,ne)}setScrollPosition(G){G.reuseAnimation?this._scrollable.setScrollPositionSmooth(G,G.reuseAnimation):this._scrollable.setScrollPositionNow(G)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class DomScrollableElement extends scrollableElement_ScrollableElement{constructor(G,Z){super(G,Z),this._element=G,this.onScroll(G=>{G.scrollTopChanged&&(this._element.scrollTop=G.scrollTop),G.scrollLeftChanged&&(this._element.scrollLeft=G.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},4160:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateAdditionalItems=void 0;const ie=ne(233),se=ne(286),ce={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:G}})=>ie.str`must NOT have more than ${G} items`,params:({params:{len:G}})=>ie._`{limit: ${G}}`},code(G){const{parentSchema:Z,it:ne}=G,{items:ie}=Z;Array.isArray(ie)?validateAdditionalItems(G,ie):(0,se.checkStrictMode)(ne,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(G,Z){const{gen:ne,schema:ce,data:fe,keyword:me,it:ge}=G;ge.items=!0;const Ce=ne.const("len",ie._`${fe}.length`);if(!1===ce)G.setParams({len:Z.length}),G.pass(ie._`${Ce} <= ${Z.length}`);else if("object"==typeof ce&&!(0,se.alwaysValidSchema)(ge,ce)){const ce=ne.var("valid",ie._`${Ce} <= ${Z.length}`);ne.if((0,ie.not)(ce),()=>function validateItems(ce){ne.forRange("i",Z.length,Ce,Z=>{G.subschema({keyword:me,dataProp:Z,dataPropType:se.Type.Num},ce),ge.allErrors||ne.if((0,ie.not)(ce),()=>ne.break())})}(ce)),G.ok(ce)}}Z.validateAdditionalItems=validateAdditionalItems,Z.default=ce},4161:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateTuple=void 0;const ie=ne(233),se=ne(286),ce=ne(766),fe={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(G){const{schema:Z,it:ne}=G;if(Array.isArray(Z))return validateTuple(G,"additionalItems",Z);ne.items=!0,(0,se.alwaysValidSchema)(ne,Z)||G.ok((0,ce.validateArray)(G))}};function validateTuple(G,Z,ne=G.schema){const{gen:ce,parentSchema:fe,data:me,keyword:ge,it:Ce}=G;!function checkStrictTuple(G){const{opts:ie,errSchemaPath:ce}=Ce,fe=ne.length,me=fe===G.minItems&&(fe===G.maxItems||!1===G[Z]);if(ie.strictTuples&&!me){const G=`"${ge}" is ${fe}-tuple, but minItems or maxItems/${Z} are not specified or different at path "${ce}"`;(0,se.checkStrictMode)(Ce,G,ie.strictTuples)}}(fe),Ce.opts.unevaluated&&ne.length&&!0!==Ce.items&&(Ce.items=se.mergeEvaluated.items(ce,ne.length,Ce.items));const Se=ce.name("valid"),Me=ce.const("len",ie._`${me}.length`);ne.forEach((Z,ne)=>{(0,se.alwaysValidSchema)(Ce,Z)||(ce.if(ie._`${Me} > ${ne}`,()=>G.subschema({keyword:ge,schemaProp:ne,dataProp:ne},Se)),G.ok(Se))})}Z.validateTuple=validateTuple,Z.default=fe},4162:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(766),se=ne(233),ce=ne(981),fe=ne(286),me={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:G})=>se._`{additionalProperty: ${G.additionalProperty}}`},code(G){const{gen:Z,schema:ne,parentSchema:me,data:ge,errsCount:Ce,it:Se}=G;if(!Ce)throw new Error("ajv implementation error");const{allErrors:Me,opts:ke}=Se;if(Se.props=!0,"all"!==ke.removeAdditional&&(0,fe.alwaysValidSchema)(Se,ne))return;const xe=(0,ie.allSchemaProperties)(me.properties),De=(0,ie.allSchemaProperties)(me.patternProperties);function deleteAdditional(G){Z.code(se._`delete ${ge}[${G}]`)}function additionalPropertyCode(ie){if("all"===ke.removeAdditional||ke.removeAdditional&&!1===ne)deleteAdditional(ie);else{if(!1===ne)return G.setParams({additionalProperty:ie}),G.error(),void(Me||Z.break());if("object"==typeof ne&&!(0,fe.alwaysValidSchema)(Se,ne)){const ne=Z.name("valid");"failing"===ke.removeAdditional?(applyAdditionalSchema(ie,ne,!1),Z.if((0,se.not)(ne),()=>{G.reset(),deleteAdditional(ie)})):(applyAdditionalSchema(ie,ne),Me||Z.if((0,se.not)(ne),()=>Z.break()))}}}function applyAdditionalSchema(Z,ne,ie){const se={keyword:"additionalProperties",dataProp:Z,dataPropType:fe.Type.Str};!1===ie&&Object.assign(se,{compositeRule:!0,createErrors:!1,allErrors:!1}),G.subschema(se,ne)}!function checkAdditionalProperties(){Z.forIn("key",ge,ne=>{xe.length||De.length?Z.if(function isAdditional(ne){let ce;if(xe.length>8){const G=(0,fe.schemaRefOrVal)(Se,me.properties,"properties");ce=(0,ie.isOwnProperty)(Z,G,ne)}else ce=xe.length?(0,se.or)(...xe.map(G=>se._`${ne} === ${G}`)):se.nil;De.length&&(ce=(0,se.or)(ce,...De.map(Z=>se._`${(0,ie.usePattern)(G,Z)}.test(${ne})`)));return(0,se.not)(ce)}(ne),()=>additionalPropertyCode(ne)):additionalPropertyCode(ne)})}(),G.ok(se._`${Ce} === ${ce.default.errors}`)}};Z.default=me},4163:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},4164:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=194)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},126:function(G,Z){G.exports=ne(7714)},194:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Mt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(23),ge=ne.n(me),Ce=ne(22),Se=ne(41),Me=ne(3),ke=ne.n(Me),xe=ne(64),De=ne.n(xe),Ie=ne(0),Re=ke.a.span.withConfig({displayName:"ButtonStyles__StyledIcon",componentId:"eqxqs2-0"})(["display:flex;align-items:center;flex-shrink:0;font-size:",";",";"],Object(Ie.pick)({enterprise:"inherit",prisma:{comfortable:"21px",compact:"16px"}}),Object(Ie.pickVariant)("$isIconOnly",{false:{enterprise:Object(Me.css)(["padding-right:3px;"]),prisma:Object(Me.css)(["padding-right:8px;"])}})),ze=ke()(De.a).withConfig({displayName:"ButtonStyles__StyledButtonSimple",componentId:"eqxqs2-1"})(["text-align:center;vertical-align:middle;text-decoration:none;white-space:nowrap;flex-grow:1;min-width:0;max-width:100%;line-height:",";min-height:",";padding:",";"," "," &[data-inline]{display:inline-block;vertical-align:middle;","}[data-inline] + &&[data-inline]{margin-bottom:0;","}"],Ie.variables.lineHeight,Ie.variables.inputHeight,Object(Ie.pick)({enterprise:{comfortable:"5px 14px",compact:"2px 14px"},prisma:{comfortable:function comfortable(G){return G.$hasPrismaIcon?"7px 18px":"9px 18px"},compact:function compact(G){return G.$isMenu?"5px 8px 5px 16px":"5px 16px"}}}),(function(G){var Z=G.$inline,ne=G.append,ie=G.prepend;return!Z&&!ne&&!ie&&Object(Me.css)(["width:100%;"])}),(function(G){return G.$isIconOnly&&Object(Me.css)(["box-sizing:border-box;padding:",";width:",";min-width:",";"],Object(Ie.pick)({enterprise:{comfortable:"0 5px",compact:"0 2px"},prisma:{comfortable:Object(Me.css)(["0px calc("," / 2 - 1px)"],Ie.variables.inputHeight),compact:Object(Me.css)(["0px calc("," / 2 - 1px)"],Ie.variables.inputHeight)}}),Ie.variables.inputHeight,Ie.variables.inputHeight)}),(function(G){return G.$isIconOnly?null:Object(Me.css)(["width:auto;"])}),(function(G){return!G.prepend&&Object(Me.css)(["margin-left:",";"],Object(Ie.pick)({enterprise:Ie.variables.spacingHalf,prisma:Ie.variables.spacingSmall}))})),$e=ke.a.span.withConfig({displayName:"ButtonStyles__StyledContentWrapper",componentId:"eqxqs2-2"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;max-width:100%;padding:",";"],Object(Ie.pick)({enterprise:function enterprise(G){return G.$error?"1px":Object(Ie.pickVariant)("$appearance",{default:"0",secondary:"0",destructive:"1px",primary:"1px",pill:"0",toggle:"0",flat:"0"})},prisma:Object(Ie.pickVariant)("$appearance",{default:0,secondary:"1px 0",primary:"1px 0",destructive:"1px 0",pill:"1px 0",toggle:"0",flat:"1px 0"})})),Je=ke.a.span.withConfig({displayName:"ButtonStyles__StyledLabel",componentId:"eqxqs2-3"})(["text-overflow:ellipsis;overflow:hidden;flex:0 1 auto;&:not(:last-child){padding-right:",";}",""],Object(Ie.pick)({enterprise:"3px",prisma:"10px"}),(function(G){return G.$isMenu&&Object(Me.css)(["flex:1 1 auto;text-align:left;"])})),it=ke.a.span.withConfig({displayName:"ButtonStyles__StyledCaretWrapper",componentId:"eqxqs2-4"})(["display:inline-flex;",""],Object(Ie.pickVariant)("$disabled",{false:{prisma:Object(Ie.pickVariant)("$primary",{true:Object(Me.css)(["color:",";"],Ie.variables.contentColorInverted),false:Object(Me.css)(["color:",";",":hover > * > &,",":active > * > &,{color:",";}"],Ie.variables.contentColorDefault,ze,ze,Ie.variables.contentColorDefault)})}})),ot=ne(56),at=ne.n(ot),st=ne(57),ct=ne.n(st),ut=function CaretSmallDown(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(ct.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(at.a,{height:ne,width:ne})},dt=ne(126),ht=ne.n(dt),ft=ne(65),_t=ne.n(ft),yt=ne(4),vt=Object(yt._)("Open externally");var wt=function External(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(_t.a,{screenReaderText:vt,size:.8,style:{verticalAlign:"baseline"}}):se.a.createElement(ht.a,{"aria-label":vt,height:ne,width:ne},se.a.createElement("title",null,vt))};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},4171:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=185)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},150:function(G,Z){G.exports=ne(470)},151:function(G,Z){G.exports=ne(271)},152:function(G,Z){G.exports=ne(182)},16:function(G,Z){G.exports=ne(2890)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},185:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Jt})),ne.d(Z,"PopoverContext",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(93),ge=ne(150),Ce=ne.n(ge),Se=ne(58),Me=ne.n(Se),ke=ne(151),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(15),ze=ne.n(Re),$e=ne(152),Je=ne.n($e),it=ne(19),ot=ne.n(it),at=ne(71),st=ne.n(at),ct=ne(9),ut=ne.n(ct),dt=ne(5),ht=ne.n(dt),ft=ne(33),_t=ne.n(ft),yt=ne(0),vt=ne(43),wt=ne(16),Ct=ne.n(wt),St=ne(85),Mt=ne.n(St),kt=ne(53),xt=ne.n(kt),Lt=ne(31);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2033)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(2035)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(2891)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(4173)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},4172:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=192)}({1:function(G,Z){G.exports=ne(2)},192:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Me})),ne.d(Z,"AnimationToggleContext",(function(){return me})),ne.d(Z,"AnimationToggleProvider",(function(){return xe})),ne.d(Z,"useAnimationToggle",(function(){return ge}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=se.a.createContext(!0);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},4177:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=75)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(698)},4:function(G,Z){G.exports=ne(815)},75:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return External}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of me(Z))Ce.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=fe(Z,se))||ie.enumerable});return G},Se={};__export(Se,{customThemeVariables:()=>ze,monacoColors:()=>Re}),G.exports=(ie=Se,__copyProps(ce({},"__esModule",{value:!0}),ie));var Me={};__export(Me,{default:()=>xe});var ke=((G,Z,ne)=>(ne=null!=G?se(ge(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)))(ne(218));((G,Z,ne)=>{__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")})(Me,ne(218));var xe="default"in ke?ke.default:ke,De=(0,Me.pick)({enterprise:{light:Me.variables.white,dark:Me.variables.black},prisma:Me.variables.backgroundColorNavigation}),Ie=(0,Me.pick)({enterprise:Me.variables.borderColor,prisma:Me.variables.contentColorDisabled}),Re={background:{light:"#FFFFFE",dark:"#222222"},popup:{light:"#DDDDDD",dark:"#000000"}},ze={invalidDropTargetBackgroundColor:"#8A393B",validDropTargetBackgroundColor:(0,Me.pick)({light:"#80EC9F",dark:"#117E32"}),invalidDropTargetBorderColor:(0,Me.pick)({enterprise:"#FE3A3A",prisma:Me.variables.accentColorNegative}),validDropTargetBorderColor:(0,Me.pick)({enterprise:{light:"#07BA39",dark:"#08E045"},prisma:Me.variables.accentColorPositive}),dashboardBackgroundColor:(0,Me.pick)({enterprise:{light:Me.variables.gray96,dark:Me.variables.gray20},prisma:Me.variables.backgroundColorSection}),selectedInputBackgroundColor:(0,Me.pick)({enterprise:{light:Me.variables.gray92,dark:Me.variables.gray30},prisma:Me.variables.backgroundColorPopup}),selectedInputBorderColor:(0,Me.pick)({enterprise:{light:Me.variables.borderColor,dark:Me.variables.gray45},prisma:Me.variables.contentColorDisabled}),vizPanelBackgroundColor:(0,Me.pick)({enterprise:{light:Me.variables.white,dark:Me.variables.black},prisma:Me.variables.backgroundColorSidebar}),toolbarBackgroundColor:De,toolbarBorderColor:Ie,sidebarPanelBackgroundColor:De,sidebarPanelBorderColor:Ie,monacoBackgroundColor:(0,Me.pick)(Re.background),monacoBorder:"1px solid rgba(0, 0, 0, 0.15)"}},4181:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=174)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},12:function(G,Z){G.exports=ne(2893)},145:function(G,Z){G.exports=ne(7719)},174:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return on})),ne.d(Z,"Item",(function(){return Vt})),ne.d(Z,"Heading",(function(){return ht})),ne.d(Z,"Divider",(function(){return Je})),ne.d(Z,"MenuContext",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(5),ge=ne.n(me),Ce=ne(21),Se=ne(31),Me=ne(7),ke=ne(48),xe=ne.n(ke),De=ne(3),Ie=ne.n(De),Re=ne(0),ze=Ie.a.div.withConfig({displayName:"DividerStyles__Styled",componentId:"l3zfh3-0"})(["border-top:1px solid ",";",""],Object(Re.pick)({enterprise:Re.variables.borderColor,prisma:Re.variables.neutral200}),Object(Re.pick)({prisma:{comfortable:Object(De.css)(["margin:8px 0;"]),compact:Object(De.css)(["margin:6px 0;"])}})),$e=Object(ie.createContext)({role:"menu"});function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var dt={children:fe.a.node,title:fe.a.bool,outerStyle:fe.a.object};function Heading(G){var Z=G.children,ne=G.title,ce=G.outerStyle,fe=_objectWithoutProperties(G,["children","title","outerStyle"]),me=Object(ie.useContext)($e).role,ge="prisma"===st()().family?se.a.createElement(ut,Heading_extends({as:ne?"h4":"h5",style:ce,"data-test":"heading"},fe),Z):se.a.createElement(ot.a,Heading_extends({style:_objectSpread(_objectSpread({},ce),{},{margin:0}),level:ne?4:"ss","data-test":"heading"},fe),Z);return se.a.createElement(ct,{"aria-hidden":"listbox"===me},ge)}Heading.propTypes=dt,Heading.filterConsecutive=!0,Heading.filterLast=!0,Heading.as="Heading";var ht=Heading,ft=ne(23),_t=ne.n(ft),yt=ne(145),vt=ne.n(yt),wt=ne(78),Ct=ne.n(wt),St=ne(97),Mt=ne.n(St),kt=ne(38),xt=ne.n(kt),Lt=ne(25),Tt=ne(96),At=ne.n(Tt),Dt=ne(65),Et=ne.n(Dt),jt=ne(4),It=Object(jt._)("Open externally"),Nt=Object(De.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),Rt=Ie()(Et.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-1turs2s-0"})([""," margin:0 0 0 3px;"],Nt),zt=Ie()(At.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-1turs2s-1"})([""," margin:0 0 0 4px;"],Nt);var qt=function External(){var G=Object(Re.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(Rt,{screenReaderText:It}):se.a.createElement(zt,{"aria-label":It,height:ne,width:ne},se.a.createElement("title",null,It))},Wt=ne(10),Bt=ne(91);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Item_extends(){return(Item_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Qt={children:fe.a.node,controlledExternally:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),retainFocus:fe.a.bool,stopScrollPropagation:fe.a.bool};function Menu(G){var Z=G.children,ne=G.controlledExternally,ce=G.elementRef,fe=G.retainFocus,me=G.stopScrollPropagation,ke=Menu_objectWithoutProperties(G,["children","controlledExternally","elementRef","retainFocus","stopScrollPropagation"]),De=Object(ie.useContext)($e).role,Ie=void 0===De?"menu":De,Re=Object(ie.useContext)(Ce.PopoverContext).retainFocus,ze=xe()(),Je=!0;null!=fe?Je=fe:null!=Re&&(Je=Re);var it,ot=se.a.useRef(0),at=[],st=0,ct=!1,ut=!1,dt=!1,ht=Object(ie.useCallback)((function(G,Z){var ne=Z.itemKey;null!=ne&&(ot.current=ne)}),[]),ft=ie.Children.toArray(Z).filter(ie.isValidElement).reduce((function(G,Z,ie,ce){if("Divider"===Z.type.as&&0===G.length)return G;if(("Heading"===Z.type.as||"Divider"===Z.type.as)&&!Z.props.title&&Z.type.filterConsecutive&&ce.length>ie+1){var fe=ce[ie+1];if("Heading"===fe.type.as||"Divider"===fe.type.as)return G}if(("Divider"===Z.type.as||"Heading"===Z.type.as)&&ie===ce.length-1)return G;if("Divider"!==Z.type.as&&"Heading"!==Z.type.as&&"string"!=typeof Z.type){var me=se.a.createRef();at.push(me),null!=it||"disabled"in Z.props&&Z.props.disabled||(it=st),ot.current===st&&"disabled"in Z.props&&Z.props.disabled&&(ct=!0),"selected"in Z.props&&Z.props.selected&&(ut=!0,"disabled"in Z.props&&!Z.props.disabled&&(dt=!0));var ge=ne||ot.current!==st?-1:void 0;return G.push(se.a.cloneElement(Z,{itemKey:st,onFocus:ht,preventFocus:ne,ref:function ref(G){Object(Wt.a)(Z.ref,G),Object(Wt.a)(me,G)},tabIndex:ge})),st+=1,G}return G.push(Z),G}),[]);it===ot.current||ut&&!dt||!ct||null==it||(ot.current=it,ze());var _t={"data-test":"menu",onKeyDown:function handleKeyDown(G){var Z,ne,ie,se=Object(Me.keycode)(G.nativeEvent),ce=ot.current;("down"===se||Je&&Object(Se.isTabKey)(G)?Z=Object(Jt.a)(at,ce,ce+1):"up"===se||Je&&Object(Se.isTabKey)(G)&&G.shiftKey?Z=Object(Jt.b)(at,ce,ce-1):"home"===se?Z=Object(Jt.a)(at,ce,0):"end"===se&&(Z=Object(Jt.b)(at,ce,at.length-1)),null!=Z)&&(null===(ne=Z.current)||void 0===ne||null===(ie=ne.focus)||void 0===ie||ie.call(ne),G.preventDefault())},role:Ie,tabIndex:null!=it||ne?void 0:0};return me?se.a.createElement(Zt,Menu_extends({},_t,{elementRef:ce,stopScrollPropagation:!0},ge()(ke,"tagName")),ft):se.a.createElement(Gt,Menu_extends({},_t,{ref:ce},ke),ft)}Menu.propTypes=Qt,Menu.defaultProps={stopScrollPropagation:!1},Menu.Item=Vt,Menu.Divider=Je,Menu.Heading=ht;var on=Menu},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(4171)},23:function(G,Z){G.exports=ne(78)},25:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2033)},38:function(G,Z){G.exports=ne(2894)},39:function(G,Z){G.exports=ne(2895)},4:function(G,Z){G.exports=ne(2036)},48:function(G,Z){G.exports=ne(7720)},5:function(G,Z){G.exports=ne(41)},60:function(G,Z,ne){"use strict";function getNextListItem(G,Z,ne){for(var ie=0;ie0;ie-=1){var se,ce=(ie+ne)%G.length;if(!0!==(null===(se=G[ce].current)||void 0===se?void 0:se.props.disabled))return G[ce]}return G[Z]}ne.d(Z,"a",(function(){return getNextListItem})),ne.d(Z,"b",(function(){return getPrevListItem}))},65:function(G,Z){G.exports=ne(4177)},7:function(G,Z){G.exports=ne(2034)},70:function(G,Z){G.exports=ne(4170)},78:function(G,Z){G.exports=ne(7721)},80:function(G,Z){G.exports=ne(7722)},89:function(G,Z){G.exports=ne(7723)},91:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie=function scrollIntoViewIfNeeded(G){if(G){var Z=G.offsetParent;Z&&(Z.scrollTop+Z.clientHeightG.offsetTop&&(Z.scrollTop=G.offsetTop))}}},96:function(G,Z){G.exports=ne(7724)},97:function(G,Z){G.exports=ne(4183)}})},4182:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},4183:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=47)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(698)},4:function(G,Z){G.exports=ne(815)},47:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Check}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ct={children:fe.a.node};function Body(G){var Z=G.children,ne=_objectWithoutProperties(G,["children"]),ce=_slicedToArray(Object(ie.useState)(),2),fe=ce[0],me=ce[1],ge=Object(ie.useCallback)((function(G){me(G)}),[]);return se.a.createElement(st,_extends({"data-test":"body"},ne,{elementRef:ge}),se.a.createElement(ze.ScrollContainerProvider,{value:fe},Z))}Body.propTypes=ct;var ut=Body,dt=ne(113),ht=ne.n(dt),ft=Je()(ot.a).withConfig({displayName:"FooterStyles__StyledBox",componentId:"yszcmv-0"})(["flex:0 0 auto;text-align:right;padding:",";background-color:",";& > button{min-width:80px;}"],Object(at.pick)({enterprise:at.variables.spacing,prisma:{comfortable:"24px",compact:"18px 24px"}}),Object(at.pick)({enterprise:at.variables.backgroundColor,prisma:at.variables.backgroundColorDialog})),_t=Object(ie.createContext)({});function Footer_extends(){return(Footer_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var yt={children:fe.a.node};function Footer(G){var Z=G.children,ne=Footer_objectWithoutProperties(G,["children"]),ce=Object(ie.useContext)(_t).divider,fe="both"===ce||"footer"===ce;return se.a.createElement(se.a.Fragment,null,fe&&se.a.createElement(ht.a,{"aria-hidden":!0}),se.a.createElement(ft,Footer_extends({"data-test":"footer"},ne),Z))}Footer.propTypes=yt;var vt=Footer,wt=ne(92),Ct=ne.n(wt),St=Je()(ot.a).withConfig({displayName:"HeaderStyles__StyledBox",componentId:"sc-1y722ut-0"})(["",";flex:0 0 auto;position:relative;min-height:",";background-color:",";padding:",";align-items:center;padding-right:",";"],at.mixins.reset("flex"),Object(at.pick)({enterprise:"30px",prisma:{comfortable:"60px",compact:"52px"}}),Object(at.pick)({enterprise:at.variables.backgroundColor,prisma:at.variables.backgroundColorDialog}),Object(at.pick)({enterprise:"25px 28px",prisma:{comfortable:"18px 24px",compact:"14px 24px"}}),(function(G){return G.$close&&Object(at.pick)({enterprise:"54px",prisma:{comfortable:"64px",compact:"56px"}})})),Mt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledTitleWrapper",componentId:"sc-1y722ut-1"})(["",";flex-direction:column;"],at.mixins.reset("flex")),kt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledIcon",componentId:"sc-1y722ut-2"})(["",";align-items:center;justify-content:center;margin-right:",";"," width:",";height:",";flex-shrink:0;"],at.mixins.reset("inline-flex"),at.variables.spacingLarge,Object(at.pick)({prisma:Object($e.css)(["background-color:",";"],at.variables.transparent)}),Object(at.pick)({comfortable:"40px",compact:"32px"}),Object(at.pick)({comfortable:"40px",compact:"32px"})),xt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledTitle",componentId:"sc-1y722ut-3"})(["",";font-size:20px;margin:0;overflow-wrap:break-word;font-weight:",";",""],at.mixins.reset("block"),at.variables.fontWeightSemiBold,Object(at.pick)({enterprise:Object($e.css)(["line-height:22px;"]),prisma:Object($e.css)(["color:",";line-height:24px;"],at.variables.contentColorActive)})),Lt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledSubtitle",componentId:"sc-1y722ut-4"})(["",";font-size:14px;overflow-wrap:break-word;line-height:",";"],at.mixins.reset("block"),Object(at.pick)({enterprise:at.variables.lineHeight,prisma:"20px"})),Tt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledButtonsWrapper",componentId:"sc-1y722ut-5"})(["",";position:absolute;top:",";right:",";bottom:50%;"," max-height:35px;transform-origin:bottom right;transform:rotate(-90deg) translateX(100%);"],at.mixins.reset("block"),Object(at.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(at.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(at.pick)({prisma:{comfortable:Object($e.css)(["min-height:35px;"]),compact:Object($e.css)(["min-height:30px;"])}})),At=Je.a.div.withConfig({displayName:"HeaderStyles__StyledClose",componentId:"sc-1y722ut-6"})(["",";position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"],at.mixins.reset("block"));function Header_extends(){return(Header_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Dt={children:fe.a.node,icon:fe.a.node,onRequestClose:fe.a.func,subtitle:fe.a.node,title:fe.a.string};function Header(G){var Z=G.children,ne=G.icon,ce=G.onRequestClose,fe=G.subtitle,me=G.title,ge=Header_objectWithoutProperties(G,["children","icon","onRequestClose","subtitle","title"]),Ce=Object(ie.useContext)(_t),Se=Ce.titleId,Me=Ce.divider,ke="both"===Me||"header"===Me;return se.a.createElement(se.a.Fragment,null,se.a.createElement(St,Header_extends({$close:!!ce,"data-test":"header"},ge),ne&&se.a.createElement(kt,null,ne),me?se.a.createElement(Mt,null,me&&se.a.createElement(xt,{id:Se,"data-test":"title"},me),fe&&se.a.createElement(Lt,{"data-test":"subtitle"},fe)):Z,ce&&se.a.createElement(Tt,null,ce&&se.a.createElement(At,null,se.a.createElement(Ct.a,{onClick:ce,"data-test":"close"})))),ke&&se.a.createElement(ht.a,{"aria-hidden":!0}))}Header.propTypes=Dt;var Et=Header,jt=ne(24),It=Je()(jt.animated.div).withConfig({displayName:"ModalStyles__Styled",componentId:"sc-5fn8ds-0"})(["",";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:",";",""],at.mixins.reset("flex"),at.variables.zindexModal,Object(at.pick)({enterprise:Object($e.css)(["box-shadow:0 1px 5px ",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);"],at.variables.black,at.variables.spacing,at.variables.spacing),prisma:Object($e.css)(["box-shadow:",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);border-radius:",";overflow:hidden;"],at.variables.modalShadow,at.variables.spacingXLarge,at.variables.spacingXLarge,at.variables.borderRadius)}));function Modal_extends(){return(Modal_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Paragraph(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"paragraph",ref:ne},ie),Z)}Paragraph.propTypes=Me;var ke=Paragraph},3:function(G,Z){G.exports=ne(3)}})},4189:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),__async=(G,Z,ne)=>new Promise((ie,se)=>{var fulfilled=G=>{try{step(ne.next(G))}catch(G){se(G)}},rejected=G=>{try{step(ne.throw(G))}catch(G){se(G)}},step=G=>G.done?ie(G.value):Promise.resolve(G.value).then(fulfilled,rejected);step((ne=ne.apply(G,Z)).next())}),De={};__export(De,{default:()=>ImageGallery_default}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(0));__reExport(Ie,ne(0));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(1869));__reExport($e,ne(1869));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(24));__reExport(ot,ne(24));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(138));__reExport(ct,ne(138));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(301));__reExport(ht,ne(301));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(3));__reExport(yt,ne(3));var wt="default"in vt?vt.default:vt,Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(1541));__reExport(Ct,ne(1541));var Mt="default"in St?St.default:St,kt={};__export(kt,{default:()=>Lt});var xt=__toESM(ne(218));__reExport(kt,ne(218));var Lt="default"in xt?xt.default:xt,Tt={};__export(Tt,{default:()=>Dt});var At=__toESM(ne(1106));__reExport(Tt,ne(1106));var Dt="default"in At?At.default:At,Et={};__export(Et,{default:()=>It});var jt=__toESM(ne(1879));__reExport(Et,ne(1879));var It="default"in jt?jt.default:jt,Nt={};__export(Nt,{default:()=>zt});var Rt=__toESM(ne(1878));__reExport(Nt,ne(1878));var zt="default"in Rt?Rt.default:Rt,qt={};__export(qt,{default:()=>Bt});var Wt=__toESM(ne(1254));__reExport(qt,ne(1254));var Bt="default"in Wt?Wt.default:Wt,Ft=wt(It)` width: 600px; `,GalleryDeletionModal_default=({testId:G="gallery-deletion-modal",objectName:Z,objectType:ne,sourceElement:ie,handleObjectDeletion:se,handleDeletionCancel:ce})=>{const{family:fe}=Bt(),me=(0,Ie.useCallback)(G=>{var Z;ce&&ce(G),null==(Z=null==ie?void 0:ie.current)||Z.focus()},[ie,ce]),ge=(0,Ie.useCallback)(({event:G})=>me(G),[me]),Ce=(0,Ie.useMemo)(()=>{const G=(0,$e._)("Deleting the ");let ie=(0,$e._)("is permanent for this dashboard and all other dashboards that use the");return ie=` ${ne} ${ie} ${ne}.`,ze.createElement(zt,null,G,ze.createElement("i",null,Z),ie)},[Z,ne]),Se=ne.length?ne[0].toUpperCase()+ne.substring(1):ne,Me="enterprise"===fe?"pill":"secondary",ke="enterprise"===fe?"primary":"destructive";return ze.createElement(Ft,{"data-test":G,onRequestClose:ge,open:!0,divider:"none"},ze.createElement(It.Header,{onRequestClose:me,title:`${(0,$e._)("Delete")} ${Z}`}),ze.createElement(It.Body,null,Ce),ze.createElement(It.Footer,null,ze.createElement(Dt,{"data-test-appearance":Me,"data-test-family":fe,"data-test":G+"-cancel",appearance:Me,onClick:me,label:(0,$e._)("Keep "+Se)}),ze.createElement(Dt,{"data-test-appearance":ke,"data-test-family":fe,"data-test":G+"-confirm",appearance:ke,label:(0,$e._)("Delete "+Se),onClick:se})))},Ht=wt.div` display: flex; align-items: center; justify-content: space-between; flex-direction: column; padding: 5px; width: 515px; min-height: 200px; background-color: ${kt.variables.backgroundColorDialog}; `,$t=wt.div` display: flex; flex-direction: row; flex-wrap: wrap; overflow: auto; padding: 5px 0px; width: 100%; height: 200px; border-bottom: ${(0,kt.pick)({prisma:"1px solid #43454b",enterprise:"1px solid #c3cbd4"})}; `,Vt={margin:"auto"},Gallery_default=({isLoading:G=!1,search:Z=null,message:ne=null,upload:ie=null,items:se,Item:ce,onItemRemove:fe,onItemClick:me=ct.noop,testId:ge="gallery",setHasChildModal:Ce,galleryType:Se="item"})=>{const Me=Array.isArray(se)&&se.length>0,[ke,xe]=(0,Ie.useState)(null),[De,Re]=(0,Ie.useState)(),Je=(0,Ie.useRef)(!1),it=(0,Ie.useRef)(null),ot=(0,Ie.useMemo)(()=>Z?ze.cloneElement(Z,{ref:it}):null,[Z]),at=(0,Ie.useCallback)(()=>{Je.current=!0,null==Ce||Ce(!0)},[Ce]),st=(0,Ie.useCallback)(()=>{var G;Je.current=!1,null==Ce||Ce(!1),null==(G=it.current)||G.focus()},[Ce]);(0,Ie.useEffect)(()=>{Je.current&&!De?st():!Je.current&&De&&at()},[De,at,st]);const ut=(0,Ie.useCallback)(G=>xe(G.url),[xe]),dt=(0,Ie.useCallback)(()=>xe(null),[xe]),ht=(0,Ie.useCallback)(()=>{Re(void 0)},[]),ft=(0,Ie.useCallback)(G=>{fe&&fe(G),ht()},[fe,ht]),_t=(0,Ie.useCallback)(G=>()=>{Re({objectName:G.name,objectType:Se,handleObjectDeletion:()=>ft(G),handleDeletionCancel:ht})},[Se,ht,ft]),yt=(0,Ie.useMemo)(()=>G||!Me?[]:se.map(G=>ze.createElement(ce,{key:G.url,item:G,selected:ke===G.url,onMouseEnter:ut,onMouseLeave:dt,onRemove:fe?_t(G):null,onClick:me})),[Me,G,se,ke,ut,dt,me,fe,_t,ce]);return De?ze.createElement(GalleryDeletionModal_default,__spreadValues({testId:ge+"-deletion-modal"},De)):ze.createElement(Ht,{"data-test":ge,"data-test-loading":""+G,tabIndex:-1},ot,ne,G&&ze.createElement(Mt,{size:"medium",screenReaderText:(0,$e._)("loading"),style:Vt}),!G&&Me&&ze.createElement($t,{"data-test":"gallery-list"},yt),!G&&ie)},Yt={};__export(Yt,{default:()=>Kt});var Ut=__toESM(ne(1259));__reExport(Yt,ne(1259));var Kt="default"in Ut?Ut.default:Ut,Gt=wt.div` height: 50px; width: 100%; padding: 5px 0px; `,Zt=ze.forwardRef(({onSearch:G,disabled:Z,placeholder:ne="Search"},ie)=>{const[se,ce]=(0,Ie.useState)(""),fe=(0,Ie.useCallback)((Z,{value:ne})=>{ce(ne),null==G||G(ne)},[G]);return G?ze.createElement(Gt,null,ze.createElement(Kt,{inputRef:ie,canClear:!0,value:""+se,disabled:Z,placeholder:ne,appearance:"search",onChange:fe,"data-test":"gallery-search"})):null}),Jt={};__export(Jt,{default:()=>on});var Qt=__toESM(ne(799));__reExport(Jt,ne(799));var on="default"in Qt?Qt.default:Qt,sn={};__export(sn,{default:()=>dn});var cn=__toESM(ne(1880));__reExport(sn,ne(1880));var dn="default"in cn?cn.default:cn,mn=yt.css` position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); `,_n=wt.div` ${G=>G.centered?mn:null} font-size: 15px; `,Message_default2=({level:G="info",message:Z="",centered:ne=!0})=>ze.createElement(_n,{"data-test":"dashboard-message",centered:ne},ze.createElement(dn,{type:G},Z)),gn=wt.div` display: inline-block; width: 95%; height: 200px; position: relative; `,bn=wt.div` float: right; `,GalleryMessage_default=({error:G,warning:Z,onClose:ne})=>{if(!G&&!Z)return null;const ie=G?"error":"warning",se=G||Z;return ze.createElement(gn,null,ze.createElement(Message_default2,{level:ie,message:se}),ne&&ze.createElement(bn,{onClick:ne},ze.createElement(on,{size:.5})))},yn={};__export(yn,{default:()=>wn});var vn=__toESM(ne(1884));__reExport(yn,ne(1884));var wn="default"in vn?vn.default:vn,Cn=wt.div` width: 90px; height: 35px; margin: 8px 5px 0 5px; border-radius: 3px; &:hover { cursor: pointer; background: ${kt.variables.backgroundColorHover}; } `,On=wt.div` display: flex; visibility: ${G=>G.selected?"visible":"hidden"}; justify-content: flex-end; `,Mn=wt.div` text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-align: center; color: ${kt.variables.contentColorDefault}; `,ImageGalleryItem_default=({item:G,selected:Z=!1,onClick:ne=ct.noop,onMouseEnter:ie=ct.noop,onMouseLeave:se=ct.noop,onRemove:ce=ct.noop})=>{const{name:fe,url:me}=G,ge=(0,Ie.useCallback)(()=>ne(G.url),[ne,G]),Ce=(0,Ie.useCallback)(()=>ie(G),[ie,G]),Se=(0,Ie.useCallback)(()=>se(G),[se,G]),Me=(0,Ie.useCallback)(Z=>{Z.stopPropagation(),null==ce||ce(G)},[ce,G]);return ze.createElement(Cn,{"data-test":"image-container","data-url":me,key:me,title:fe,onClick:ge,onMouseEnter:Ce,onMouseLeave:Se},ce&&ze.createElement(On,{selected:Z,"data-test":"image-close",onClick:Me},ze.createElement(wn,{size:.5})),ze.createElement(Mn,{"data-test":"image-name"},fe))},kn={};__export(kn,{default:()=>Tn});var xn=__toESM(ne(1883));__reExport(kn,ne(1883));var Tn="default"in xn?xn.default:xn,Dn=wt.div` padding: 5px 0px; width: 100%; `,En=wt.span` height: 20px; font-size: smaller; font-style: italic; `,jn=(0,$e._)("Note: Uploaded image files can be accessed and deleted by others in your organization"),GalleryUpload_default=({fileTypes:G,onUpload:Z,enableGallerySharingWarning:ne})=>ze.createElement(Dn,null,ze.createElement(Tn,{onRequestAdd:Z,accept:G,allowMultiple:!0},ne?ze.createElement(En,{"data-test":"gallery-sharing-warning"},jn):null)),getWarning=(G,Z)=>{if(!Array.isArray(G)||!G.length)return Z},ImageGallery_default=({providerType:G,onClick:Z=ct.noop,enableSearch:ne=!0,setHasChildModal:ie})=>{const[se,ce]=(0,Ie.useState)([]),[fe,me]=(0,Ie.useState)(G),[ge,Ce]=(0,Ie.useState)(!0),[Se,Me]=(0,Ie.useState)(!1),[ke,xe]=(0,Ie.useState)(),[De,Re]=(0,Ie.useState)(),Je=(0,ht.useImageRegistry)(),it=(0,Ie.useCallback)(()=>{if(!Je)throw new Error((0,$e._)("No image registry found"));return Je},[Je]);(0,Ie.useEffect)(()=>{if(!fe)try{const G=it().listProviders().find(G=>G.isDefault);if(!G)throw new Error("No image providers found");me(G.type)}catch(G){G instanceof Error&&xe(G.message)}},[fe,it]);const at=(0,Ie.useCallback)(G=>__async(void 0,null,(function*(){const Z=it(),ne=Z.listProviders();return(yield Promise.all(ne.map(ne=>__async(void 0,null,(function*(){const{type:ie}=ne;return(yield Z.listIds(ie,__spreadProps(__spreadValues({},G),{meta:["name"]}))).map(G=>__spreadProps(__spreadValues({},G),{providerType:ie}))}))))).reduce((G,Z)=>G.concat(Z),[])})),[it]),st=(0,Ie.useCallback)(()=>__async(void 0,null,(function*(){if(fe)try{const G=(yield at()).map(G=>({url:`${G.providerType}://${G.id}`,name:G.metaData.name?G.metaData.name.split(".")[0]:(0,$e._)("Unnamed image")}));ce((0,ot.sortBy)(G,["name"])),xe(void 0),Ce(!1),Re(getWarning(G,(0,$e._)("No images. Please upload images.")))}catch(G){G instanceof Error&&xe(G.message),Ce(!1)}else Ce(!1)})),[fe,at]);(0,Ie.useEffect)(()=>{st()},[st]);const ut=(0,Ie.useCallback)(G=>{fe&&(Ce(!0),G.forEach(G=>{const Z=new FileReader;Z.onload=()=>__async(void 0,null,(function*(){const ne=G.name;try{const G=yield it().upload(Z.result,{name:ne},fe);ce(Z=>(0,ot.sortBy)([...Z,{url:G,name:ne}],["name"])),Re(void 0),xe(void 0),Ce(!1)}catch(G){G instanceof Error&&xe(G.message),Ce(!1)}})),Z.readAsDataURL(G)}))},[it,fe]),dt=(0,Ie.useCallback)((G="")=>__async(void 0,null,(function*(){Me(!0);try{const Z=(yield at({search:G.trim()})).map(G=>({url:`${G.providerType}://${G.id}`,name:G.filename?G.filename.split(".")[0]:G.filename||G.metaData.name}));ce((0,ot.sortBy)(Z,["name"])),xe(void 0),Me(!1),Re(getWarning(Z,(0,$e._)("No images found.")))}catch(G){G instanceof Error&&xe(G.message),Me(!1)}})),[at]),ft=(0,Ie.useCallback)(G=>__async(void 0,null,(function*(){Ce(!0);try{yield it().deleteByURL(G.url);const Z=se.filter(Z=>Z.url!==G.url);ce(Z),Ce(!1),Re(getWarning(Z,(0,$e._)("No images. Please upload images.")))}catch(G){G instanceof Error&&xe(G.message),Ce(!1)}})),[se,it]),_t=(0,Ie.useCallback)(G=>Z(G),[Z]),yt=(0,Ie.useMemo)(()=>ze.createElement(Zt,{placeholder:(0,$e._)("Search Images"),onSearch:dt}),[dt]),vt=(0,Ie.useMemo)(()=>ze.createElement(GalleryMessage_default,{error:ke,warning:De}),[ke,De]);return ze.createElement(Gallery_default,{testId:"image-gallery",isLoading:ge||Se,search:ne&&!ke&&se?yt:null,message:vt,items:se,Item:ImageGalleryItem_default,upload:ke?null:ze.createElement(GalleryUpload_default,{fileTypes:".jpeg,.png,.gif",onUpload:ut}),onItemClick:_t,onItemRemove:ft,setHasChildModal:ie,galleryType:"image"})}},419:function(G,Z,ne){var ie;self.MonacoEnvironment=(ie={editorWorkerService:"editor.worker.js",json:"json.worker.js"},{globalAPI:!1,getWorkerUrl:function(G,Z){var ne="/builds/it-markets/app-itsi/apps/itsi/appserver/static/build",se=function stripTrailingSlash(G){return G.replace(/\/$/,"")}(ne)+"/"+ie[Z];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(se)){var ce=String(window.location),fe=ce.substr(0,ce.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(se.substring(0,fe.length)!==fe){/^(\/\/)/.test(se)&&(se=window.location.protocol+se);var me=new Blob(["/*"+Z+'*/importScripts("'+se+'");'],{type:"application/javascript"});return URL.createObjectURL(me)}}return se}}),ne(7490),ne(7495),ne(7498),ne(8420),ne(7501),ne(7502),ne(8412),ne(7509),ne(8416),ne(7589),ne(381),ne(7590),ne(8421),ne(7593),ne(1680),ne(8404),ne(7603),ne(7604),ne(2113),ne(8422),ne(3118),ne(7605),ne(8423),ne(7608),ne(7609),ne(832),ne(7610),ne(8409),ne(7613),ne(8424),ne(7616),ne(8413),ne(8410),ne(8425),ne(8417),ne(7619),ne(8426),ne(8427),ne(1003),ne(1365),ne(7622),ne(2103),ne(7623),ne(7624),ne(7625),ne(7626),ne(1364),ne(7627),G.exports=ne(8400),ne(7648)},4190:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=53)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(698)},4:function(G,Z){G.exports=ne(815)},53:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Circle}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZZ in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))Se.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(ge)for(var ne of ge(Z))Me.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of me(Z))Se.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=fe(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Ce(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),ke={};__export(ke,{LinkCreateDataSource:()=>mn,default:()=>DefaultDataSourcePanel_default}),G.exports=(ie=ke,__copyProps(ce({},"__esModule",{value:!0}),ie));var xe={};__export(xe,{default:()=>Ie});var De=__toESM(ne(0));__reExport(xe,ne(0));var Ie="default"in De?De.default:De,Re={};__export(Re,{default:()=>$e});var ze=__toESM(ne(3));__reExport(Re,ne(3));var $e="default"in ze?ze.default:ze,Je={};__export(Je,{default:()=>ot});var it=__toESM(ne(24));__reExport(Je,ne(24));var ot="default"in it?it.default:it,at={};__export(at,{default:()=>ct});var st=__toESM(ne(391));__reExport(at,ne(391));var ct="default"in st?st.default:st,ut={};__export(ut,{default:()=>ht});var dt=__toESM(ne(4193));__reExport(ut,ne(4193));var ht="default"in dt?dt.default:dt,ft={};__export(ft,{default:()=>yt});var _t=__toESM(ne(4194));__reExport(ft,ne(4194));var yt="default"in _t?_t.default:_t,vt={};__export(vt,{default:()=>Ct});var wt=__toESM(ne(573));__reExport(vt,ne(573));var Ct="default"in wt?wt.default:wt,St={};__export(St,{default:()=>kt});var Mt=__toESM(ne(138));__reExport(St,ne(138));var kt="default"in Mt?Mt.default:Mt,xt={};__export(xt,{default:()=>Tt});var Lt=__toESM(ne(301));__reExport(xt,ne(301));var Tt="default"in Lt?Lt.default:Lt,At={};__export(At,{default:()=>Et});var Dt=__toESM(ne(2));__reExport(At,ne(2));var Et="default"in Dt?Dt.default:Dt,jt={};__export(jt,{default:()=>Nt});var It=__toESM(ne(389));__reExport(jt,ne(389));var Nt="default"in It?It.default:It,RemoveIcon=()=>Ie.createElement(jt.Remove,{screenReaderText:(0,ut._)("Delete"),size:"16px"}),Rt={padding:"0 10px 0 30px"},DataSourceItem=({dsId:G,name:Z,onItemClick:ne,onEditClick:ie,onDeleteClick:se,isUsed:ce=!0})=>{const fe=Z||(0,ut._)("Unnamed"),me=(0,xe.useCallback)(()=>null==ne?void 0:ne(G),[G,ne]),ge=(0,xe.useCallback)(()=>ie(G),[G,ie]),Ce=(0,xe.useCallback)(()=>se({id:G,isUsed:ce}),[G,ce,se]);return Ie.createElement(at.EditableListItem,{"data-test":"datasourceitem","data-test-id":G,name:fe,onItemClick:ne&&me,onEditClick:ge,onRemoveClick:Ce,itemStyle:Rt,RemoveIcon:RemoveIcon,isUsed:ce})};DataSourceItem.propTypes={dsId:Et.string,name:Et.string,onItemClick:Et.func,onEditClick:Et.func.isRequired,onDeleteClick:Et.func.isRequired};var zt=DataSourceItem,qt={};__export(qt,{default:()=>Bt});var Wt=__toESM(ne(4208));__reExport(qt,ne(4208));var Bt="default"in Wt?Wt.default:Wt,Ft={};__export(Ft,{default:()=>$t});var Ht=__toESM(ne(4210));__reExport(Ft,ne(4210));var $t="default"in Ht?Ht.default:Ht,Vt={};__export(Vt,{default:()=>Ut});var Yt=__toESM(ne(4211));__reExport(Vt,ne(4211));var Ut="default"in Yt?Yt.default:Yt,Kt={};__export(Kt,{default:()=>Zt});var Gt=__toESM(ne(312));__reExport(Kt,ne(312));var Zt="default"in Gt?Gt.default:Gt,Jt={width:"600px"},Qt={getDataSourceName:G=>(0,Je.get)(G.dataSource,"name",""),dataSourceRemoveVerb:(0,ut._)("delete")},DataSourceModal_default=({selectedDataSource:G,definition:Z,onRequestClose:ne,onRemove:ie,isOpen:se})=>{const ce=(0,xt.usePreset)(),fe=(0,xe.useMemo)(()=>ce.getPresetDefinition(),[ce]),{numVizInUse:me,numInputsInUse:ge,numChainSearches:Ce,dsConfig:Se,dsType:Me,isSmartSource:ke}=(0,xe.useMemo)(()=>(({dsId:G,definition:Z})=>{var ne;if(!G)return{numVizInUse:0,numInputsInUse:0,numChainSearches:0,isSmartSource:!1};const ie=Kt.DashboardDefinition.fromJSON(Z),se=ie.countVisualizationsUsingDataSource(G),ce=ie.countInputsUsingDataSource(G),fe=ie.getChainSearchesUsingDataSource(G).length,me=ie.getDataSource(G);return{numVizInUse:se,numInputsInUse:ce,numChainSearches:fe,dsConfig:me,dsType:null==me?void 0:me.type,isSmartSource:!!(null==(ne=null==me?void 0:me.options)?void 0:ne.enableSmartSources)}})({dsId:G,definition:Z}),[G,Z]),De=(0,xe.useMemo)(()=>{var G,Z;return Me?__spreadValues(__spreadValues({},Qt),null==(Z=null==(G=null==fe?void 0:fe.dataSources)?void 0:G[Me])?void 0:Z.config):Qt},[fe,Me]),{dataSourceRemoveVerb:Re}=De,ze=Se&&De.getDataSourceName({dataSource:Se})||"",$e=(0,xe.useMemo)(()=>{const G=[],{vizText:Z,chainSearchText:ne,inputText:ie}=(0,at.getWarningTextForDataSource)(me,Ce,ge);me&&G.push(Z),Ce&&G.push(ne),ge&&G.push(ie),ke&&G.push((0,ut._)("might be referenced by tokens"));const se=me+Ce+ge===0?" ":(0,ut._)(" is currently being used by ");return G.length?Ie.createElement("span",null,Ie.createElement("i",null,ze),se,G.flatMap((G,Z)=>[...Z?[(0,ut._)(" and ")]:[],Ie.createElement("strong",{key:G},G)]),(0,ut._)(`. Are you sure you want to ${Re} this data source?`)):Ie.createElement("span",null,Ie.createElement("i",null,ze),(0,ut._)(` is not being used by any visualizations, chain searches, or inputs. Are you sure you want to ${Re} this data source?`))},[ze,Ce,ge,me,ke,Re]);return Ie.createElement(Bt,{onRequestClose:ne,open:se,style:Jt,divider:"none"},Ie.createElement(Bt.Header,{title:(0,ut._)(`${(0,Je.upperFirst)(Re)} '${ze}'`),onRequestClose:ne}),Ie.createElement(Bt.Body,null,Ie.createElement(Ut,null,$e)),Ie.createElement(Bt.Footer,null,Ie.createElement($t,{appearance:"secondary",onClick:ne,label:(0,ut._)("Cancel")}),Ie.createElement($t,{appearance:"primary",onClick:ie,label:(0,Je.upperFirst)(Re)})))},on=$e.div` background-color: ${at.customThemeVariables.sidebarPanelBackgroundColor}; color: ${vt.variables.contentColorDefault}; display: flex; flex-direction: column; `,sn=$e.div` flex-basis: auto; overflow-y: auto; max-width: 360px; `,cn=$e.div` max-width: 359px; `,getUsedDataSourcesByItem=G=>(0,Je.flatten)((0,Je.map)(G,G=>{var Z;return(0,Je.values)(null!=(Z=G.dataSources)?Z:{})})),getUsedDataSourcesByDS=G=>{const Z=[];return(0,Je.each)(G,(G,ne)=>{var ie,se;(null==(ie=G.options)?void 0:ie.extend)&&Z.push(G.options.extend),(null==(se=G.options)?void 0:se.enableSmartSources)&&Z.push(ne)}),Z},groupDataSources=({dataSources:G={},visualizations:Z={},inputs:ne={}})=>{const ie=(({visualizations:G,inputs:Z,dataSources:ne})=>Array.from(new Set([...getUsedDataSourcesByItem(G),...getUsedDataSourcesByItem(Z),...getUsedDataSourcesByDS(ne)])))({visualizations:Z,inputs:ne,dataSources:G});return(0,Je.groupBy)((0,Je.map)(G,(G,Z)=>({id:Z,dataSource:G,used:ie.includes(Z)})),({dataSource:G})=>G.type)},dn={height:"35px",lineHeight:"35px",paddingLeft:"30px"},mn=(0,xe.memo)(({linkName:G,type:Z,options:ne,createDataSource:ie,title:se})=>{const ce=(0,xe.useCallback)(()=>ie({type:Z,options:ne}),[ie,Z,ne]);return Ie.createElement(yt,{"data-test":`create-${fe=se,fe.replace(/\s+/g,"-").toLowerCase()}-datasource`,style:dn,onClick:ce},G);var fe}),_n={},DefaultDataSourcePanel_default=({selectedItem:G,dataSourceBindingType:Z,dashboardApi:ne,onRequestClose:ie=St.noop,createDataSource:se=St.noop,editDataSource:ce=St.noop,deleteDataSource:fe=St.noop,additionalPanels:me=_n,definition:ge=_n})=>{const[Ce,Se]=(0,xe.useState)(),Me=(0,xt.usePreset)(),ke=(0,xe.useMemo)(()=>Me.getPresetDefinition(),[Me]),De=(0,xe.useCallback)(({id:G,isUsed:Z})=>{Z?Se(G):fe(G)},[fe]),Re=(0,xe.useCallback)(()=>{Se(void 0)},[]),ze=(0,xe.useCallback)(se=>{const ce=null==G?void 0:G.id,fe=null==G?void 0:G.type;ce&&Z&&(ne.connectDataSource(ce,Z,se,fe),ie())},[ne,Z,ie,G]),$e=(0,xe.useCallback)(()=>{fe(Ce),Re()},[fe,Re,Ce]),it=(0,xe.useMemo)(()=>{const{dataSources:G,visualizations:Z,inputs:ne}=ge;return groupDataSources({dataSources:G,visualizations:Z,inputs:ne})},[ge]),ot=(0,xe.useMemo)(()=>{var G;const Z=(0,Je.pickBy)((0,Je.mapValues)(null!=(G=null==ke?void 0:ke.dataSources)?G:{},({config:G})=>G||{}),G=>null==G?void 0:G.displayDataSourceItemListByDefault);return __spreadValues(__spreadValues({},Z),me)},[ke,me]);return Ie.createElement(on,null,Ie.createElement(sn,null,Object.keys(ot).map(ne=>{const{title:ie,displayDataSourceItemListByDefault:fe=!1,canCreateDataSource:me=!0,getDataSourceName:Ce=St.getDefaultDataSourceName,defaultOptions:Se}=ot[ne],Me=(0,Je.isFunction)(ie)?ie({searchType:ne}):ie,ke="+ "+`${(0,ut._)("Create")} ${null==Me?void 0:Me.toLowerCase()}`,xe=it[ne]||[];return Ie.createElement(at.SidebarCollapsiblePanel,{padded:!1,defaultOpen:fe,key:ne,title:Me,panelId:Me||ne},Ie.createElement(cn,null,me&&Ie.createElement(mn,{linkName:ke,type:ne,createDataSource:se,options:(0,Je.isFunction)(Se)?Se({definition:ge,searchType:ne}):Se||_n,title:Me||(0,ut._)("Unnamed")}),xe.map(({id:ne,dataSource:ie,used:se})=>{const fe=Ce({dataSource:ie});return Ie.createElement(zt,{key:ne,dsId:ne,name:fe,isUsed:se,onItemClick:(null==G?void 0:G.id)&&Z?ze:void 0,onEditClick:ce,onDeleteClick:De})})))})),Ie.createElement(DataSourceModal_default,{selectedDataSource:Ce||"",onRemove:$e,onRequestClose:Re,isOpen:!!Ce,definition:ge}))}},4193:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},4194:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=203)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(4200)},2:function(G,Z){G.exports=ne(0)},203:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(22),ge=ne(3),Ce=ne.n(ge),Se=ne(96),Me=ne.n(Se),ke=ne(65),xe=ne.n(ke),De=ne(0),Ie=ne(4),Re=Object(Ie._)("Open externally"),ze=Object(ge.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),$e=Ce()(xe.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-13bdx45-0"})([""," margin:0 0 0 3px;"],ze),Je=Ce()(Me.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-13bdx45-1"})([""," margin:0 0 0 4px;"],ze);var it=function External(){return Object(De.useSplunkTheme)().isEnterprise?se.a.createElement($e,{screenReaderText:Re}):se.a.createElement(Je,{"aria-label":Re},se.a.createElement("title",null,Re))},ot=ne(12),at=ne.n(ot),st=Ce()(at.a).withConfig({displayName:"LinkStyles__StyledClickable",componentId:"sc-1hhltcf-0"})(["",";color:",";text-decoration:none;font-size:inherit;font-weight:inherit;line-height:inherit;border-radius:",";&:not([disabled],[aria-disabled='true']){cursor:pointer;",";&:focus{box-shadow:",";outline:0;&:active{box-shadow:none;}}}&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),Object(De.pick)({enterprise:De.variables.linkColor,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:0,prisma:"1px"}),Object(De.pick)({enterprise:Object(ge.css)(["&:hover{text-decoration:underline;}"]),prisma:Object(ge.css)(["&:hover:not(:focus),&:active{text-decoration:underline;text-underline-position:under;}"])}),De.variables.focusShadow,De.variables.contentColorDisabled);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne1&&void 0!==arguments[1]?arguments[1]:"first",ne=G.querySelector(":focus");if(ne)return ne;if("first"===Z){var ie=getSortedTabbableElements(G)[0];if(ie)return(0,se.default)((function(){return ie.focus()})),ie}if(G.hasAttribute("tabIndex"))return(0,se.default)((function(){return G.focus()})),G;return null};var ie=ne(2900),se=_interopRequireDefault(ne(153)),ce=_interopRequireDefault(ne(95)),fe=_interopRequireDefault(ne(172));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var me=["a[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[contenteditable]"],ge=me.concat(["[tabindex]"]),Ce=function isHidden(G){return!(G.offsetWidth||G.offsetHeight||G.getClientRects().length>0)||"hidden"===getComputedStyle(G).visibility};function getSortedTabbableElements(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ne=Z.ignoreTabIndex,ie=(ne?me:ge).join(", "),se=G.querySelectorAll(ie),Se=(0,ce.default)(se,(function(G){return!Ce(G)&&(ne||G.tabIndex>=0)||G===document.activeElement})),Me=Se.reduce((function(G,Z){var ne=G[G.length-1],ie="radio"===(null==ne?void 0:ne.getAttribute("type")),se="radio"===Z.getAttribute("type"),ce=Z.getAttribute("name")===(null==ne?void 0:ne.getAttribute("name"));return ie&&se&&ce?Z.checked&&(G.pop(),G.push(Z)):G.push(Z),G}),[]);return(0,fe.default)(Me,(function(G){return G.tabIndex>0?-1/G.tabIndex:0}))}function isTabKey(G){return!("tab"!==(0,ie.keycode)(G)||G.metaKey||G.altKey||G.controlKey)}},4203:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=239)}({239:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"Spring",(function(){return Spring})),ne.d(Z,"Transition",(function(){return Transition}));var ie=ne(24),se=ne(51);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Spring(G){var Z=G.children,ne=G.immediate,ce=_objectWithoutProperties(G,["children","immediate"]),fe=Object(se.useAnimationToggle)();return Z(Object(ie.useSpring)(_objectSpread({immediate:ne||"on"!==fe},ce)))}function Transition(G){var Z=G.items,ne=G.children,ce=G.immediate,fe=_objectWithoutProperties(G,["items","children","immediate"]),me=Object(se.useAnimationToggle)();return Object(ie.useTransition)(Z,_objectSpread({immediate:ce||"on"!==me},fe))(ne)}},24:function(G,Z){G.exports=ne(136)},51:function(G,Z){G.exports=ne(7748)}})},4204:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=242)}({18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},2:function(G,Z){G.exports=ne(0)},242:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ge})),ne.d(Z,"ScrollContainerContext",(function(){return fe})),ne.d(Z,"ScrollContainerProvider",(function(){return me}));var ie=ne(2),se=ne.n(ie),ce=ne(18),fe=se.a.createContext(Object(ce.a)()),me=fe.Provider,ge=fe},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}}})},4205:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=223)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},123:function(G,Z){G.exports=ne(421)},15:function(G,Z){G.exports=ne(65)},16:function(G,Z){G.exports=ne(4201)},168:function(G,Z){var ne;ne=function(){return this}();try{ne=ne||new Function("return this")()}catch(G){"object"==typeof window&&(ne=window)}G.exports=ne},2:function(G,Z){G.exports=ne(0)},223:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"LayerStackContext",(function(){return ze.b})),ne.d(Z,"LayerContext",(function(){return ze.a})),ne.d(Z,"LayerStackGlobalProvider",(function(){return ze.c}));var ie=ne(2),se=ne.n(ie),ce=ne(93),fe=ne(1),me=ne.n(fe),ge=ne(15),Ce=ne.n(ge),Se=ne(94),Me=ne.n(Se),ke=ne(123),xe=ne.n(ke),De=ne(7),Ie=ne(16),Re=ne.n(Ie),ze=ne(95),$e=ne(3),Je=ne.n($e),it=ne(0),ot=Je.a.div.withConfig({displayName:"LayerStyles__StyledLayer",componentId:"ii6psl-0"})(["",""],(function(G){return G.$separateStackingContexts&&Object($e.css)(["isolation:isolate;z-index:",";"],it.variables.zindexLayer)})),at=ne(28);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _defineProperties(G,Z){for(var ne=0;ne0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},4207:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=75)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(1626)},4:function(G,Z){G.exports=ne(2901)},75:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return External}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ct={children:fe.a.node};function Body(G){var Z=G.children,ne=_objectWithoutProperties(G,["children"]),ce=_slicedToArray(Object(ie.useState)(),2),fe=ce[0],me=ce[1],ge=Object(ie.useCallback)((function(G){me(G)}),[]);return se.a.createElement(st,_extends({"data-test":"body"},ne,{elementRef:ge}),se.a.createElement(ze.ScrollContainerProvider,{value:fe},Z))}Body.propTypes=ct;var ut=Body,dt=ne(113),ht=ne.n(dt),ft=Je()(ot.a).withConfig({displayName:"FooterStyles__StyledBox",componentId:"yszcmv-0"})(["flex:0 0 auto;text-align:right;padding:",";background-color:",";& > button{min-width:80px;}"],Object(at.pick)({enterprise:at.variables.spacing,prisma:{comfortable:"24px",compact:"18px 24px"}}),Object(at.pick)({enterprise:at.variables.backgroundColor,prisma:at.variables.backgroundColorDialog})),_t=Object(ie.createContext)({});function Footer_extends(){return(Footer_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var yt={children:fe.a.node};function Footer(G){var Z=G.children,ne=Footer_objectWithoutProperties(G,["children"]),ce=Object(ie.useContext)(_t).divider,fe="both"===ce||"footer"===ce;return se.a.createElement(se.a.Fragment,null,fe&&se.a.createElement(ht.a,{"aria-hidden":!0}),se.a.createElement(ft,Footer_extends({"data-test":"footer"},ne),Z))}Footer.propTypes=yt;var vt=Footer,wt=ne(92),Ct=ne.n(wt),St=Je()(ot.a).withConfig({displayName:"HeaderStyles__StyledBox",componentId:"sc-1y722ut-0"})(["",";flex:0 0 auto;position:relative;min-height:",";background-color:",";padding:",";align-items:center;padding-right:",";"],at.mixins.reset("flex"),Object(at.pick)({enterprise:"30px",prisma:{comfortable:"60px",compact:"52px"}}),Object(at.pick)({enterprise:at.variables.backgroundColor,prisma:at.variables.backgroundColorDialog}),Object(at.pick)({enterprise:"25px 28px",prisma:{comfortable:"18px 24px",compact:"14px 24px"}}),(function(G){return G.$close&&Object(at.pick)({enterprise:"54px",prisma:{comfortable:"64px",compact:"56px"}})})),Mt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledTitleWrapper",componentId:"sc-1y722ut-1"})(["",";flex-direction:column;"],at.mixins.reset("flex")),kt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledIcon",componentId:"sc-1y722ut-2"})(["",";align-items:center;justify-content:center;margin-right:",";"," width:",";height:",";flex-shrink:0;"],at.mixins.reset("inline-flex"),at.variables.spacingLarge,Object(at.pick)({prisma:Object($e.css)(["background-color:",";"],at.variables.transparent)}),Object(at.pick)({comfortable:"40px",compact:"32px"}),Object(at.pick)({comfortable:"40px",compact:"32px"})),xt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledTitle",componentId:"sc-1y722ut-3"})(["",";font-size:20px;margin:0;overflow-wrap:break-word;font-weight:",";",""],at.mixins.reset("block"),at.variables.fontWeightSemiBold,Object(at.pick)({enterprise:Object($e.css)(["line-height:22px;"]),prisma:Object($e.css)(["color:",";line-height:24px;"],at.variables.contentColorActive)})),Lt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledSubtitle",componentId:"sc-1y722ut-4"})(["",";font-size:14px;overflow-wrap:break-word;line-height:",";"],at.mixins.reset("block"),Object(at.pick)({enterprise:at.variables.lineHeight,prisma:"20px"})),Tt=Je.a.div.withConfig({displayName:"HeaderStyles__StyledButtonsWrapper",componentId:"sc-1y722ut-5"})(["",";position:absolute;top:",";right:",";bottom:50%;"," max-height:35px;transform-origin:bottom right;transform:rotate(-90deg) translateX(100%);"],at.mixins.reset("block"),Object(at.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(at.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(at.pick)({prisma:{comfortable:Object($e.css)(["min-height:35px;"]),compact:Object($e.css)(["min-height:30px;"])}})),At=Je.a.div.withConfig({displayName:"HeaderStyles__StyledClose",componentId:"sc-1y722ut-6"})(["",";position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"],at.mixins.reset("block"));function Header_extends(){return(Header_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Dt={children:fe.a.node,icon:fe.a.node,onRequestClose:fe.a.func,subtitle:fe.a.node,title:fe.a.string};function Header(G){var Z=G.children,ne=G.icon,ce=G.onRequestClose,fe=G.subtitle,me=G.title,ge=Header_objectWithoutProperties(G,["children","icon","onRequestClose","subtitle","title"]),Ce=Object(ie.useContext)(_t),Se=Ce.titleId,Me=Ce.divider,ke="both"===Me||"header"===Me;return se.a.createElement(se.a.Fragment,null,se.a.createElement(St,Header_extends({$close:!!ce,"data-test":"header"},ge),ne&&se.a.createElement(kt,null,ne),me?se.a.createElement(Mt,null,me&&se.a.createElement(xt,{id:Se,"data-test":"title"},me),fe&&se.a.createElement(Lt,{"data-test":"subtitle"},fe)):Z,ce&&se.a.createElement(Tt,null,ce&&se.a.createElement(At,null,se.a.createElement(Ct.a,{onClick:ce,"data-test":"close"})))),ke&&se.a.createElement(ht.a,{"aria-hidden":!0}))}Header.propTypes=Dt;var Et=Header,jt=ne(24),It=Je()(jt.animated.div).withConfig({displayName:"ModalStyles__Styled",componentId:"sc-5fn8ds-0"})(["",";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:",";",""],at.mixins.reset("flex"),at.variables.zindexModal,Object(at.pick)({enterprise:Object($e.css)(["box-shadow:0 1px 5px ",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);"],at.variables.black,at.variables.spacing,at.variables.spacing),prisma:Object($e.css)(["box-shadow:",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);border-radius:",";overflow:hidden;"],at.variables.modalShadow,at.variables.spacingXLarge,at.variables.spacingXLarge,at.variables.borderRadius)}));function Modal_extends(){return(Modal_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne * > &,",":active > * > &,{color:",";}"],Ie.variables.contentColorDefault,ze,ze,Ie.variables.contentColorDefault)})}})),ot=ne(56),at=ne.n(ot),st=ne(57),ct=ne.n(st),ut=function CaretSmallDown(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(ct.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(at.a,{height:ne,width:ne})},dt=ne(126),ht=ne.n(dt),ft=ne(65),_t=ne.n(ft),yt=ne(4),vt=Object(yt._)("Open externally");var wt=function External(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(_t.a,{screenReaderText:vt,size:.8,style:{verticalAlign:"baseline"}}):se.a.createElement(ht.a,{"aria-label":vt,height:ne,width:ne},se.a.createElement("title",null,vt))};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Paragraph(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"paragraph",ref:ne},ie),Z)}Paragraph.propTypes=Me;var ke=Paragraph},3:function(G,Z){G.exports=ne(3)}})},4212:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(2903));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},4218:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=242)}({18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},2:function(G,Z){G.exports=ne(0)},242:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ge})),ne.d(Z,"ScrollContainerContext",(function(){return fe})),ne.d(Z,"ScrollContainerProvider",(function(){return me}));var ie=ne(2),se=ne.n(ie),ce=ne(18),fe=se.a.createContext(Object(ce.a)()),me=fe.Provider,ge=fe},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}}})},4219:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=213)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(770)},2:function(G,Z){G.exports=ne(771)},213:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4220:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=183)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},100:function(G,Z){G.exports=ne(4221)},101:function(G,Z){G.exports=ne(4222)},102:function(G,Z){G.exports=ne(4223)},103:function(G,Z){G.exports=ne(4224)},12:function(G,Z){G.exports=ne(767)},146:function(G,Z){G.exports=ne(7779)},183:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ft})),ne.d(Z,"Link",(function(){return kt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(72),ge=ne.n(me),Ce=ne(26),Se=ne.n(Ce),Me=ne(27),ke=ne.n(Me),xe=ne(73),De=ne.n(xe),Ie=ne(98),Re=ne.n(Ie),ze=ne(99),$e=ne.n(ze),Je=ne(100),it=ne.n(Je),ot=ne(101),at=ne.n(ot),st=ne(102),ct=ne.n(st),ut=ne(103),dt=ne.n(ut),ht=ne(146),ft=ne.n(ht),_t=ne(0),yt=ne(3),vt=ne.n(yt),wt=ne(37),Ct=ne.n(wt),St=vt()(Ct.a).withConfig({displayName:"LinkStyles__StyledLink",componentId:"w06zjv-0"})([""]);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Mt={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),openInNewContext:fe.a.bool,to:fe.a.string};function Link(G){var Z=G.children,ne=_objectWithoutProperties(G,["children"]);return se.a.createElement(St,ne,Z)}Link.propTypes=Mt;var kt=Link,xt=ne(6),Lt=ne.n(xt),Tt=ne(12),At=ne.n(Tt),Dt=vt.a.p.withConfig({displayName:"TitleStyles__StyledTitle",componentId:"sc-6gbjha-0"})([""," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:Object(yt.css)(["font-size:14px;line-height:20px;"])})),Et=vt.a.div.withConfig({displayName:"MessageStyles__StyledContent",componentId:"eg66af-0"})(["",";",""],_t.mixins.reset("inline"),Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorActive)})),jt=vt()(At.a).withConfig({displayName:"MessageStyles__StyledRemove",componentId:"eg66af-1"})(["",";border:1px solid transparent;border-radius:",";color:",";",";cursor:pointer;position:absolute;"," padding:8px;&:hover,&:focus{background:",";border:",";color:",";}&:active{",";}",""],_t.mixins.reset("flex"),Object(_t.pick)({prisma:"50%",enterprise:_t.variables.borderRadius}),Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:{dark:_t.variables.gray96,light:_t.variables.gray45}}),(function(G){return"banner"===G.$appearance&&Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorInverted)})}),Object(_t.pick)({prisma:Object(yt.css)(["top:1px;right:2px;"]),enterprise:Object(yt.css)(["top:6px;right:8px;"])}),Object(_t.pick)({prisma:_t.variables.interactiveColorOverlayHover,enterprise:{dark:_t.variables.gray30,light:_t.variables.gray92}}),Object(_t.pick)({prisma:Object(yt.css)(["1px solid inherit"]),enterprise:Object(yt.css)(["1px solid ",""],_t.variables.gray80)}),Object(_t.pick)({enterprise:{dark:_t.variables.gray96,light:_t.variables.linkColor},prisma:_t.variables.contentColorActive}),Object(_t.pick)({prisma:Object(yt.css)(["background:",";"],_t.variables.interactiveColorOverlayActive),enterprise:Object(yt.css)(["box-shadow:",";"],_t.variables.focusShadow)}),Object(_t.pick)({prisma:Object(yt.css)(["&:focus{box-shadow:0 0 0 3px ",";}"],_t.variables.focusColor)})),It=vt.a.span.withConfig({displayName:"MessageStyles__StyledIconWrapper",componentId:"eg66af-2"})(["position:absolute;top:",";left:0;width:",";height:calc(100% - 8px);text-align:center;color:",";"," border-top-left-radius:inherit;border-bottom-left-radius:inherit;"," ",";"],Object(_t.pick)({prisma:"0px",enterprise:"7px"}),Object(_t.pick)({prisma:"24px",enterprise:"25px"}),_t.variables.white,Object(_t.pick)({prisma:Object(yt.css)(["padding-top:8px;"])}),Object(_t.pickVariant)("$type",{info:Object(yt.css)(["color:",";"],Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:_t.variables.infoColor})),success:Object(yt.css)(["color:",";"],_t.variables.accentColorPositive),warning:Object(yt.css)(["color:",";"],_t.variables.accentColorWarning),error:Object(yt.css)(["color:",";"],_t.variables.accentColorNegative)}),(function(G){return G.$fillStyle&&Object(_t.pick)({prisma:Object(yt.css)(["background-color:",";"],Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,success:_t.variables.accentColorPositive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative}))})})),Nt=vt()(Lt.a).withConfig({displayName:"MessageStyles__StyledBox",componentId:"eg66af-3"})(["",";position:relative;border-radius:",";margin-bottom:",";padding:",";word-wrap:break-word;"," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:_t.variables.borderRadius,enterprise:"5px"}),_t.variables.spacingSmall,Object(_t.pickVariant)("$hasRemoveIcon",{true:{prisma:"10px 40px 10px 28px",enterprise:"10px 40px 10px 40px"},false:{prisma:"10px 8px 10px 28px",enterprise:"10px 10px 10px 40px"}}),(function(G){return G.$fillStyle&&Object(_t.pick)({enterprise:Object(yt.css)(["& > ","{left:",";}",""],It,_t.variables.spacingXSmall,Object(_t.pickVariant)("$type",{info:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.infoColorL50,_t.variables.infoColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.infoColor,.5))})),success:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.successColorL50,_t.variables.successColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.successColor,.5))})),warning:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.warningColorL50,_t.variables.warningColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.warningColor,.5))})),error:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.errorColorL50,_t.variables.errorColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.errorColor,.5))}))})),prisma:Object(yt.css)(["border:1px solid transparent;background-color:",";box-shadow:",";& > ","{color:",";}"],_t.variables.backgroundColorPopup,_t.variables.embossShadow,It,_t.variables.backgroundColorPopup)})}),Object(_t.pick)({prisma:Object(yt.css)(["& ","{color:",";}"],Dt,Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative,success:_t.variables.accentColorPositive}))}));function Title_objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function Title_objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Rt={children:fe.a.node};function Title(G){var Z=G.children,ne=Title_objectWithoutProperties(G,["children"]);return se.a.createElement(Dt,ne,Z)}Title.propTypes=Rt;var zt=Title;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var qt={appearance:fe.a.oneOf(["default","fill","banner"]),children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),onRequestRemove:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"])},Wt=Object.freeze({info:at.a,warning:dt.a,error:it.a,success:ct.a}),Bt=Object.freeze({info:Re.a,warning:$e.a,error:De.a,success:ge.a});function Message(G){var Z=G.appearance,ne=void 0===Z?"default":Z,ce=G.children,fe=G.type,me=void 0===fe?"warning":fe,ge=G.onRequestRemove,Ce=Message_objectWithoutProperties(G,["appearance","children","type","onRequestRemove"]),Me=Object(_t.useSplunkTheme)().isEnterprise;var xe=Object(ie.useCallback)((function(G){null==ge||ge(G)}),[ge]);if("banner"===ne)return se.a.createElement(ft.a,_extends({type:me,"data-test":"banner",onRequestClose:xe},Ce),ce);var De=(Me?Wt:Bt)[me],Ie="fill"===ne,Re="default"===ne||"fill"===ne;return se.a.createElement(Nt,_extends({$appearance:ne,$fillStyle:Ie,$hasRemoveIcon:!!ge,$type:me,"data-test-type":me,"data-test":"message"},Ce),Re&&se.a.createElement(It,{$fillStyle:Ie,$type:me},Me?se.a.createElement(De,{height:"24px",width:"24px",hideDefaultTooltip:!0,screenReaderText:null}):se.a.createElement(De,{variant:"filled",style:{verticalAlign:"bottom"}})),se.a.createElement(Et,{"data-test":"content",$fillStyle:Ie},ce),ge&&se.a.createElement(jt,{"data-test":"remove",onClick:xe,$appearance:ne},Me?se.a.createElement(ke.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(Se.a,{height:"20px",width:"20px"})))}Message.propTypes=qt,Message.Title=zt,Message.Link=kt;var Ft=Message},2:function(G,Z){G.exports=ne(0)},26:function(G,Z){G.exports=ne(2045)},27:function(G,Z){G.exports=ne(1320)},3:function(G,Z){G.exports=ne(3)},37:function(G,Z){G.exports=ne(2041)},6:function(G,Z){G.exports=ne(1165)},72:function(G,Z){G.exports=ne(4225)},73:function(G,Z){G.exports=ne(4226)},98:function(G,Z){G.exports=ne(4227)},99:function(G,Z){G.exports=ne(4228)}})},4221:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=73)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(644)},4:function(G,Z){G.exports=ne(769)},73:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Error}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M16.8739 10.0405C17.2645 9.64996 17.2645 9.01679 16.8739 8.62627C16.4834 8.23574 15.8502 8.23574 15.4597 8.62627L10.5247 13.5613L8.5405 11.5776C8.14992 11.1872 7.51675 11.1873 7.12629 11.5779C6.73582 11.9684 6.73591 12.6016 7.12649 12.9921L9.46426 15.3291C10.0501 15.9148 10.9997 15.9147 11.5854 15.329L16.8739 10.0405Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.8738 8.62627C17.2643 9.01679 17.2643 9.64996 16.8738 10.0405L11.5853 15.329C10.9996 15.9147 10.0499 15.9148 9.46414 15.3291L7.12637 12.9921C6.73579 12.6016 6.7357 11.9684 7.12616 11.5779C7.51663 11.1873 8.1498 11.1872 8.54038 11.5776L10.5246 13.5613L15.4596 8.62627C15.8501 8.23574 16.4833 8.23574 16.8738 8.62627Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CheckCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4226:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=396)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(770)},2:function(G,Z){G.exports=ne(771)},396:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 15.8001C13.2003 16.4628 12.663 17.0001 12.0003 17.0001C11.3376 17.0001 10.8003 16.4628 10.8003 15.8001C10.8003 15.1374 11.3376 14.6001 12.0003 14.6001C12.663 14.6001 13.2003 15.1374 13.2003 15.8001Z"}),se.a.createElement("path",{d:"M11.0005 7.9906V12.0001C11.0005 12.5524 11.4482 13.0001 12.0005 13.0001C12.5528 13.0001 13.0005 12.5524 13.0005 12.0001V7.9906C13.0005 7.43832 12.5528 6.9906 12.0005 6.9906C11.4482 6.9906 11.0005 7.43832 11.0005 7.9906Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12ZM11.0001 7.9906V12.0001C11.0001 12.5524 11.4478 13.0001 12.0001 13.0001C12.5524 13.0001 13.0001 12.5524 13.0001 12.0001V7.9906C13.0001 7.43832 12.5524 6.9906 12.0001 6.9906C11.4478 6.9906 11.0001 7.43832 11.0001 7.9906ZM12.0001 17.0001C12.6628 17.0001 13.2001 16.4628 13.2001 15.8001C13.2001 15.1374 12.6628 14.6001 12.0001 14.6001C11.3373 14.6001 10.8001 15.1374 10.8001 15.8001C10.8001 16.4628 11.3373 17.0001 12.0001 17.0001Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4227:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=486)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(770)},2:function(G,Z){G.exports=ne(771)},486:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13.2003 8.1999C13.2003 7.53716 12.663 6.9999 12.0003 6.9999C11.3376 6.9999 10.8003 7.53716 10.8003 8.1999C10.8003 8.86264 11.3376 9.3999 12.0003 9.3999C12.663 9.3999 13.2003 8.86264 13.2003 8.1999Z"}),se.a.createElement("path",{d:"M11.0005 16.0094V11.9999C11.0005 11.4476 11.4482 10.9999 12.0005 10.9999C12.5528 10.9999 13.0005 11.4476 13.0005 11.9999V16.0094C13.0005 16.5617 12.5528 17.0094 12.0005 17.0094C11.4482 17.0094 11.0005 16.5617 11.0005 16.0094Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM11.0001 16.0094V11.9999C11.0001 11.4476 11.4478 10.9999 12.0001 10.9999C12.5524 10.9999 13.0001 11.4476 13.0001 11.9999V16.0094C13.0001 16.5617 12.5524 17.0094 12.0001 17.0094C11.4478 17.0094 11.0001 16.5617 11.0001 16.0094ZM12 6.9999C12.6628 6.9999 13.2 7.53716 13.2 8.1999C13.2 8.86264 12.6628 9.3999 12 9.3999C11.3373 9.3999 10.8 8.86264 10.8 8.1999C10.8 7.53716 11.3373 6.9999 12 6.9999Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function InformationCircle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="informationcircle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4228:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=398)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(770)},2:function(G,Z){G.exports=ne(771)},398:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618Z"}),se.a.createElement("path",{d:"M13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}),se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3173 2.82369C12.7659 1.72544 11.2341 1.72544 10.6827 2.82369L2.16616 19.7867C1.65878 20.7973 2.37462 22 3.48349 22H20.5165C21.6254 22 22.3412 20.7973 21.8338 19.7867L13.3173 2.82369ZM4.29301 19.9753L12 4.62472L19.707 19.9753H4.29301Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6827 2.82369C11.2341 1.72544 12.7659 1.72544 13.3173 2.82369L21.8338 19.7867C22.3412 20.7973 21.6254 22 20.5165 22H3.48349C2.37462 22 1.65878 20.7973 2.16616 19.7867L10.6827 2.82369ZM11.0002 13.6618V11.0133C11.0002 10.461 11.4479 10.0133 12.0002 10.0133C12.5525 10.0133 13.0002 10.461 13.0002 11.0133V13.6618C13.0002 14.2141 12.5525 14.6618 12.0002 14.6618C11.4479 14.6618 11.0002 14.2141 11.0002 13.6618ZM13.2002 16.9347C13.2002 17.5975 12.6629 18.1347 12.0002 18.1347C11.3374 18.1347 10.8002 17.5975 10.8002 16.9347C10.8002 16.272 11.3374 15.7347 12.0002 15.7347C12.6629 15.7347 13.2002 16.272 13.2002 16.9347Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ExclamationTriangle(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="exclamationtriangle-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4229:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=254)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(770)},2:function(G,Z){G.exports=ne(771)},254:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M7.27904 9.00002C6.84633 9.00002 6.61792 9.51239 6.90715 9.83423L11.408 14.8426C11.6067 15.0637 11.9533 15.0636 12.1519 14.8425L16.6502 9.8341C16.9392 9.51223 16.7108 9 16.2782 9L7.27904 9.00002Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmalldown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},4230:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(0)},13:function(G,Z){G.exports=ne(7782)},3:function(G,Z){G.exports=ne(644)},38:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cancel}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(13),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Select_defineProperties(G,Z){for(var ne=0;ne svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},30:function(G,Z,ne){"use strict";var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(13);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;neZ.value?(fece)&&(ne=G):ce>fe&&(ne=G):ne=G}return!1}));return 0===ce.length&&ne?[ne]:ce}},61:function(G,Z){G.exports=ne(198)},62:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return wt.Divider})),ne.d(Z,"b",(function(){return wt.Heading})),ne.d(Z,"d",(function(){return isOption}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(67),ge=ne.n(me),Ce=ne(55),Se=ne.n(Ce),Me=ne(105),ke=ne.n(Me),xe=ne(11),De=ne.n(xe),Ie=ne(15),Re=ne.n(Ie),ze=ne(42),$e=ne.n(ze),Je=ne(9),it=ne.n(Je),ot=ne(40),at=ne.n(ot),st=ne(5),ct=ne.n(st),ut=ne(44),dt=ne.n(ut),ht=ne(106),ft=ne.n(ht),_t=ne(61),yt=ne.n(_t),vt=ne(8),wt=ne(13),Ct=ne(22),St=ne.n(Ct),Mt=ne(7),kt=ne(35),xt=ne(37),Lt=ne.n(xt),Tt=ne(47),At=ne.n(Tt),Dt=ne(32),Et=ne.n(Dt),jt=ne(4),It=ne(56),Nt=ne.n(It),Rt=ne(57),zt=ne.n(Rt),qt=ne(0),Wt=function CaretSmallDownIcon(){return Object(qt.useSplunkTheme)().isEnterprise?se.a.createElement(zt.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(Nt.a,null)},Bt=ne(54),Ft=ne.n(Bt),Ht=ne(49),$t=ne.n(Ht),Vt=function Search(){var G=Object(qt.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact,ie=Object(jt._)("Search"),ce=ne?"20px":"24px";return Z?se.a.createElement(Ft.a,{role:"presentation",size:"16px",screenReaderText:ie,hideDefaultTooltip:!0}):se.a.createElement($t.a,{role:"presentation","aria-label":ie,width:ce,height:ce})},Yt=ne(30),Ut=ne(3),Kt=ne.n(Ut),Gt=ne(25),Zt=Kt()(Gt.g).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllLabel",componentId:"y6bn08-0"})(["font-weight:",";"],qt.variables.fontWeightBold),Jt=Kt()(Yt.a).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllOption",componentId:"y6bn08-1"})(["padding-inline-start:",";box-shadow:none;"],Object(qt.pick)({prisma:"42px;",enterprise:"32px;"})),Qt={active:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),id:fe.a.string,onClick:fe.a.func,selectAllLabel:fe.a.string,totalCount:fe.a.number,changedToggle:fe.a.bool,selected:fe.a.oneOf([!1,!0,"some"])},on=se.a.forwardRef((function(G,Z){var ne=G.active,ie=G.id,ce=G.onClick,fe=G.selectAllLabel,me=G.totalCount,ge=G.changedToggle,Ce=G.selected,Se=ge?" (".concat(null==me?void 0:me.toString(),")"):"";return se.a.createElement(Jt,{label:fe,value:"selectAll",key:"selectAll",onClick:ce,"data-test":"select-all","aria-keyshortcuts":"Control+A",id:ie,active:ne,ref:Z,tabIndex:-1},se.a.createElement(Gt.j,{interactive:!1,selected:"some"===Ce?"some":Ce,key:"main-checkbox",value:"main-checkbox",appearance:"checkbox","aria-label":!Ce&&Object(jt._)("No options selected")||"some"===Ce&&Object(jt._)("Some options selected")||Object(jt._)("All options selected"),"data-test":"select-all-switch",selectedLabel:!0===Ce?Object(jt._)("All options selected"):Object(jt._)("Option selected"),unselectedLabel:!0===Ce?Object(jt._)("No options selected"):Object(jt._)("Option unselected"),someSelectedLabel:Object(jt._)("Some options selected")}),se.a.createElement(Gt.d,{"data-test":"description"},"".concat(Se," Ctrl-a")),se.a.createElement(Gt.b,null,se.a.createElement(Gt.k,{$truncate:!1},se.a.createElement(Zt,{$truncate:!1},fe))))}));on.propTypes=Qt;var sn=on,cn=ne(17),dn=ne.n(cn),mn=Kt()(dn.a).withConfig({displayName:"SelectBaseStyles__StyledButton",componentId:"sc-16cj7sk-0"})(["&[data-inline]{width:",";}",""],(function(G){return G.$multiple?"400px":"auto"}),(function(G){return!G.$multiple&&"flex-grow: 0;"})),_n=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkIcon",componentId:"sc-16cj7sk-1"})(["padding-right:2px;"]),gn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkCaret",componentId:"sc-16cj7sk-2"})(["padding-left:2px;"]),bn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledFilter",componentId:"sc-16cj7sk-3"})(["padding:",";min-width:160px;"],Object(qt.pick)({enterprise:"8px",prisma:"10px 16px"})),yn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledSearchIconWrapper",componentId:"sc-16cj7sk-4"})(["color:",";pointer-events:none;padding:",";"],Object(qt.pick)({enterprise:{light:qt.variables.gray60,dark:qt.variables.white},prisma:qt.variables.contentColorMuted}),Object(qt.pick)({comfortable:"0 8px",compact:"0 6px"})),vn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledCount",componentId:"sc-16cj7sk-5"})(["padding-right:",";"],Object(qt.pick)({enterprise:qt.variables.spacingQuarter,prisma:qt.variables.spacingXSmall})),wn=Kt()(Lt.a).withConfig({displayName:"SelectBaseStyles__StyledControlsLink",componentId:"sc-16cj7sk-6"})(["margin-right:20px;",";"],(function(G){return G.$disabled&&Object(Ut.css)(["color:",";"],qt.variables.contentColorDisabled)})),Cn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledToggleAllControls",componentId:"sc-16cj7sk-7"})(["padding:",";",""],Object(qt.pick)({enterprise:"5px 8px",prisma:"10px 16px"}),Object(qt.pickVariant)("$placement",{above:{enterprise:Object(Ut.css)(["border-top:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-top:1px solid ",";"],qt.variables.neutral200)},below:{enterprise:Object(Ut.css)(["border-bottom:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-bottom:1px solid ",";"],qt.variables.neutral200)}})),On=ne(59),Mn=ne(18);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&(ce.index=ne.matchCharacter.index+1,se=Object(On.a)(ne.currentMatchOptions,ce));else{if(" "===ie)return void ne.resetMatches();se=Object(On.a)(ne.availableMatchOptions,ce)}if(se.length){var fe=0;if(0===ce.index&&se.length>1){var me=se.indexOf(ne.availableMatchOptions[Z]);me>=0&&(fe=me===se.length-1?0:me+1)}var ge,Ce=se[fe],Se=ne.optionRefsByKey[itemKeyFromValueLabel(Ce.value,Ce.label)];if(null!=Se)null===(ge=Se.focus)||void 0===ge||ge.call(Se)}ne.currentMatchOptions=se,ne.matchCharacter=ce,ne.matchTimeout&&clearTimeout(ne.matchTimeout),ne.matchTimeout=setTimeout(ne.resetMatches,500),G.preventDefault(),G.stopPropagation()}})),_defineProperty(_assertThisInitialized(ne),"handleTextChange",(function(G,Z){var ie,se,ce=Z.value;ne.setState({filterKeyword:ce,open:!0,activeIndex:0}),null===(ie=(se=ne.props).onFilterChange)||void 0===ie||ie.call(se,G,{keyword:ce})})),_defineProperty(_assertThisInitialized(ne),"handleTextFocus",(function(){ne.setState({textHasFocus:!0})})),_defineProperty(_assertThisInitialized(ne),"handleTextBlur",(function(){ne.setState({textHasFocus:!1})})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G){var Z={open:!0,topValues:ne.getTopValues()};ne.props.multiple&&(Z.filterKeyword="");var ie=ne.state.filterKeyword;ne.setState(Z,(function(){var Z,se,ce,fe,me;(null===(Z=(se=ne.props).onOpen)||void 0===Z||Z.call(se),ne.firstSelectedEnabledOption&&!ne.hasFilter())?ne.firstSelectedEnabledOption.focus():ne.setState({activeIndex:null!==(ce=ne.firstSelectedOptionIndex)&&void 0!==ce?ce:0});ie!==ne.state.filterKeyword&&(null===(fe=(me=ne.props).onFilterChange)||void 0===fe||fe.call(me,G,{keyword:ne.state.filterKeyword}))}))})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(){ne.setState({open:!1,activeIndex:0},(function(){var G,Z;ne.previousActiveIndex=null,null===(G=(Z=ne.props).onClose)||void 0===G||G.call(Z)}))})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottom",(function(G){var Z,ie;ne.state.open&&!ne.props.isLoadingOptions&&(null===(Z=(ie=ne.props).onScrollBottom)||void 0===Z||Z.call(ie,G))})),_defineProperty(_assertThisInitialized(ne),"handleActiveOptionMount",(function(G){ne.previousActiveIndex!==ne.state.activeIndex&&(null==G||G.scrollIntoViewIfNeeded())})),_defineProperty(_assertThisInitialized(ne),"handleOptionMount",(function(G,Z,ie){ie&&(ne.firstSelectedEnabledOption=G),null==G?delete ne.optionRefsByKey[Z]:ne.optionRefsByKey[Z]=G})),_defineProperty(_assertThisInitialized(ne),"createToggle",(function(){var G,Z,ce,fe=ne.props,me=fe.toggle,ge=fe.appearance,Ce=fe.children,Me=fe.describedBy,ke=fe.disabled,xe=fe.elementRef,De=fe.error,Ie=fe.inline,Re=fe.labelledBy,ze=fe.labelText,$e=fe.multiple,Je=fe.placeholder,ot=fe.prefixLabel,at=fe.required,st=fe.suffixLabel,ut=null!==(G=ne.getCurrentValues())&&void 0!==G?G:[],ht=ie.Children.toArray(Ce);(ce=ut.reduce((function(G,ne,ie,se){var ce=Se()(ht,(function(G){return isOption(G)&&G.props.value===ne}));return ce?(G.push(ce.props.children||ce.props.label),$e||1!==ut.length||(Z=ce.props.icon)):$e&&G.push(ne),ie0&&(ce=ne.wrapLabel({prefixLabel:ot,label:ce,suffixLabel:st})),(0===ce.length||!$e&&ce.every((function(G){return""===G})))&&(ce=Tn(Je));var ft=ce;ce.length>1&&(ft=ne.wrapLabel({prefixLabel:ot,label:["".concat(ut.length," items selected")],suffixLabel:st}));var _t=_objectSpread({"aria-describedby":Me,"aria-label":"".concat(ze?"".concat(ze,", "):"").concat(ft),"aria-labelledby":ze?void 0:Re,"aria-multiselectable":$e||void 0,"aria-required":at,"data-select-appearance":ge,"data-test":$e?"multiselect":"select",disabled:ke,elementRef:xe,error:De},ct()(ne.props,it()(SelectBase.propTypes)));if($e)_t["data-test-values"]=JSON.stringify(ut);else{var yt=_slicedToArray(ut,1)[0];_t["data-test-value"]=yt}return me?Object(ie.cloneElement)(me,_t):"link"===ge?se.a.createElement(Lt.a,_extends({},_t,{"data-select-appearance":"link"}),!!Z&&se.a.createElement(_n,null,Z),ce||Je,se.a.createElement(gn,null,se.a.createElement(Wt,null))):se.a.createElement(mn,_extends({},_t,{$multiple:$e,appearance:ge,label:ce,error:De,icon:Z,inline:Ie,isMenu:!0,"aria-haspopup":"listbox","aria-owns":ne.menuId,onClick:ne.props.onClick},dt()(ne.props,SelectBase.invalidLinkAppearanceProps)),!!ut.length&&$e&&se.a.createElement(vn,{"data-role":"count"},"(",ut.length,")"))})),_defineProperty(_assertThisInitialized(ne),"createChildren",(function(){var G,Z=ne.state,ce=Z.filterKeyword,fe=Z.textHasFocus,me=Z.topValues,ge=ne.props,Ce=ge.allowKeyMatching,Me=ge.allowNewValues,xe=ge.filter,De=ge.multiple,Ie=ge.selectAllAppearance,Re=ge.showSelectedValuesFirst,ze=ge.isLoadingOptions,$e=ge.onScrollBottom,Je=ne.getCurrentValues();ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.activeValue=void 0,ne.availableMatchOptions=[];var it,ot=0,at=!1,st="immediately"===Re?ne.getTopValues():me,ct=ie.Children.toArray(ne.props.children).reduce((function(Z,ce,fe){if(!isOption(ce))return Z.push(ce),Z;ce.props.value===ne.state.filterKeyword&&(G=!0);var me=Je&&Je.indexOf(ce.props.value)>=0,ge=!!me&&!ce.props.disabled&&!it,Se=Ce&&!De&&!xe&&!ze&&!$e,Me=itemKeyFromValueLabel(ce.props.value,ce.props.label),ke=-1;!Se||ce.props.disabled||ce.props.hidden||(ne.availableMatchOptions.push({label:ce.props.label,value:ce.props.value}),ke=ne.availableMatchOptions.length-1);var Ie=Object(ie.cloneElement)(ce,{key:ce.key||fe,onClick:ne.handleMenuOptionClick,onKeyDown:Se?function(G){return ne.handleMenuOptionKeyDown(G,ke)}:void 0,selected:me,multiple:De,role:"option",ref:function ref(G){return ne.handleOptionMount(G,Me,ge)}});return ge&&(it=!0),st&&st.indexOf(ce.props.value)>=0?(0===ot&&(Z.splice(ot,0,se.a.createElement(wt.Divider,{key:"topDivider"})),at=!0),Z.splice(ot,0,Ie),ot+=1):Z.push(Ie),Z}),[]);De&&ke()(Je,(function(Z){if(!Se()(ct,(function(G){return isOption(G)&&G.props&&G.props.value===Z}))){Z===ne.state.filterKeyword&&(G=!0);var ie=st&&st.indexOf(Z)>=0,ce=st.length;0===ot&&(ct.splice(0,0,se.a.createElement(wt.Divider,{key:"topDivider"})),ot+=1,at=!0),ct.splice(ie?0:ce+1,0,se.a.createElement(Yt.a,{label:String(Z),value:Z,key:"missing-value-".concat(Z),onClick:ne.handleMenuOptionClick,multiple:De,selected:!0})),ie&&(ot+=1)}}));var ut="controlled"===xe,dt=Object(kt.stringToKeywords)(ce);if(ct=ut?ct:ct.filter((function(G){return!isOption(G)||Object(kt.testPhrase)(G.props.label,dt)})).map((function(G){if(!isOption(G))return G;var Z=dt&&Object(kt.keywordLocations)(G.props.label,dt);return Object(ie.cloneElement)(G,{matchRanges:Z||void 0})})),Me&&!G&&ce){var ht=at?ot+1:ot;ct.splice(ht,0,se.a.createElement(Yt.a,{label:"".concat(ce," (new value)"),value:ce,key:"newValue",multiple:De,onClick:ne.handleMenuOptionClick}))}var ft,_t,yt="checkbox"===Ie&&De&&ct.length>1?1:0,vt=!0;(ct=ct.reduce((function(G,Z){if(!isOption(Z))return G.push(Z),G;if(Z.props&&Z.props.hidden)return G;Z.props.selected&&!Z.props.disabled&&null==ne.firstSelectedOptionIndex&&(ne.firstSelectedOptionIndex=ne.availableOptionCount);var se=yt===ne.state.activeIndex;if(yt+=1,ne.availableOptionCount+=1,ne.selectedOptionCount+=Z.props.selected?1:0,"newValue"===Z.key||Z.props.disabled||Z.props.selected||(vt=!1),!se||!fe)return G.push(Z),G;Z.props.disabled||(ne.activeValue=Z.props.value);var ce=Object(ie.cloneElement)(Z,{active:se,id:ne.activeItemId,ref:ne.handleActiveOptionMount});return G.push(ce),G}),[]),ne.optionSelection=(0===ne.selectedOptionCount?"none":vt&&"all")||"some","checkbox"===Ie&&De&&ne.availableOptionCount>0)&&(_t="all"===ne.optionSelection?""===ce?Object(jt._)("Clear all"):Object(jt._)("Clear all matches"):""===ce?Object(jt._)("Select all"):Object(jt._)("Select all matches"),0===ne.state.activeIndex&&fe&&(ne.activeValue="selectAll"),ct.unshift(se.a.createElement(sn,{key:"selectAllOption",selected:"all"===ne.optionSelection||"none"!==ne.optionSelection&&"some",selectAllLabel:_t,totalCount:null===(ft=ne.getCurrentValues())||void 0===ft?void 0:ft.length,changedToggle:!!ne.props.toggle,onClick:"all"===ne.optionSelection?ne.handleClearAll:ne.handleSelectAll,id:0===ne.state.activeIndex?ne.activeItemId:void 0,active:0===ne.state.activeIndex,ref:ne.handleActiveOptionMount,tabIndex:-1}),se.a.createElement(wt.Divider,{key:"selectAllDivider"})));return ne.displayedValues=ct.reduce((function(G,Z){return isOption(Z)&&G.push(Z.props.value),G}),[]),ct})),_defineProperty(_assertThisInitialized(ne),"wrapLabel",(function(G){var Z=G.prefixLabel,ne=G.label,ie=G.suffixLabel,se=ne;return Z&&(se=["".concat(Z,": ")].concat(se)),ie&&(se=ge()(se).concat(" ".concat(ie))),se})),_defineProperty(_assertThisInitialized(ne),"handleDropdownMount",(function(G){ne.dropdown=G})),ne.state={activeIndex:0,filterKeyword:"",open:!1,textHasFocus:!1,topValues:[],values:G.defaultValues||[]},ne.controlledExternally=De()(G,"values"),ne.displayedValues=[],ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.matchCharacter=null,ne.matchTimeout=null,ne.currentMatchOptions=[],ne.availableMatchOptions=[],ne.optionRefsByKey={},ne.optionSelection="none",SelectBase.validateAppearance(G),ne.menuId=Object(vt.createDOMID)("menu"),ne.activeItemId=Object(vt.createDOMID)("active-item"),ne}return _createClass(SelectBase,null,[{key:"validateAppearance",value:function validateAppearance(G){0}}]),_createClass(SelectBase,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){SelectBase.validateAppearance(this.props),this.previousActiveIndex=Z.activeIndex}},{key:"getCurrentValues",value:function getCurrentValues(){var G=this.isControlled()?this.props.values:this.state.values;return this.props.multiple||null==G?G:G.slice(0,1)}},{key:"getTopValues",value:function getTopValues(){var G;return this.props.multiple&&"never"!==this.props.showSelectedValuesFirst&&null!==(G=this.getCurrentValues())&&void 0!==G?G:[]}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"hasFilter",value:function hasFilter(){return!!this.props.filter}},{key:"toggleValue",value:function toggleValue(G,Z){var ne,ie,se,ce,fe=null!==(ne=this.getCurrentValues())&&void 0!==ne?ne:[],me=fe.indexOf(Z),ge=this.props,Ce=ge.name,Se=ge.multiple;ce=Se?me>=0?[].concat(_toConsumableArray(fe.slice(0,me)),_toConsumableArray(fe.slice(me+1))):fe.concat([Z]):[Z];var Me=!this.isControlled();Me&&this.setState({values:ce}),Se?Me&&this.setState({open:!0}):(this.handleRequestClose({reason:"contentClick"}),this.focus()),null===(ie=(se=this.props).onChange)||void 0===ie||ie.call(se,G,{values:ce,name:Ce,reason:"valueToggle"})}},{key:"focus",value:function focus(){var G;null===(G=this.dropdown)||void 0===G||G.focus()}},{key:"renderControls",value:function renderControls(G){var Z=G.hasChildren,ne=G.placement,ie=this.state.filterKeyword,ce=this.props,fe=ce.inputId,me=ce.inputRef,ge=ce.multiple,Ce=ce.selectAllAppearance,Se=Object(jt._)("Select all options".concat("all"===this.optionSelection?" disabled":"")),Me=Object(jt._)("Clear all options".concat("none"===this.optionSelection?" disabled":"")),ke=se.a.createElement(Cn,{$placement:ne,key:"selectAll"},se.a.createElement(wn,{$disabled:"all"===this.optionSelection,"aria-label":Se,onClick:this.handleSelectAll,"data-test":"select-all"},ie?Object(jt._)("Select All Matches"):Object(jt._)("Select All")),se.a.createElement(wn,{$disabled:"none"===this.optionSelection,"aria-label":Me,onClick:this.handleClearAll,"data-test":"clear-all"},ie?Object(jt._)("Clear All Matches"):Object(jt._)("Clear All")));return this.hasFilter()&&se.a.createElement("div",{key:"controls"},se.a.createElement(bn,{key:"filter","data-test":"filter"},se.a.createElement(Et.a,{value:ie,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,onChange:this.handleTextChange,onKeyDown:this.handleTextKeyDown,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur,placeholder:Object(jt._)("filter"),role:"combobox","aria-expanded":"true","aria-label":Object(jt._)("Filter"),"aria-activedescendant":this.activeItemId,inputRef:me,inputId:fe,canClear:!0,startAdornment:se.a.createElement(yn,null,se.a.createElement(Vt,null))})),ge&&Z&&"buttongroup"===Ce&&ke)}},{key:"render",value:function render(){var G,Z=this,ne=this.props,ce=ne.children,fe=ne.defaultPlacement,me=ne.inputId,ge=ne.multiple,Ce=ne.repositionMode,Me=this.hasFilter(),ke=null!==(G=this.getCurrentValues())&&void 0!==G?G:[],xe=ie.Children.toArray(ce),De=ke.some((function(G){var Z=Se()(xe,(function(Z){return isOption(Z)&&Z.props.value===G}));return Z&&!Z.props.disabled})),Ie=this.createChildren(),Re=this.createToggle(),ze=function createMenu(G){var ne=G.anchorWidth,ie=G.maxHeight,ce=G.placement,fe=Dn({anchorWidth:ne,isMultiple:Z.props.multiple,menuStyle:Z.props.menuStyle}),me=ke.length>0&&!De&&!Z.hasFilter()?0:void 0;return se.a.createElement(At.a,_extends({"aria-multiselectable":ge||void 0,childrenStart:Z.renderControls({placement:ce,hasChildren:!!Ie.length}),controlledExternally:Z.hasFilter(),placement:null!=ce?ce:void 0,maxHeight:null!=ie?ie:void 0,onScrollBottom:Z.props.onScrollBottom?Z.handleScrollBottom:void 0,"data-test":"results-menu",isLoading:Z.props.isLoadingOptions,id:Z.menuId},dt()(Z.props,"noOptionsMessage","footerMessage","animateLoading","loadingMessage","onScroll"),{style:fe,tabIndex:me}),Ie)};return se.a.createElement(St.a,{closeReasons:En,inputId:me,toggle:Re,onRequestOpen:this.handleRequestOpen,onRequestClose:this.handleRequestClose,open:this.state.open,openWithArrowKeys:!0,repositionMode:Ce,defaultPlacement:Me?fe:void 0,canCoverAnchor:Object(Mn.a)().innerHeight<500,ref:this.handleDropdownMount,retainFocus:!1,takeFocus:0===ke.length||ke.length>0&&!De||!!Me},ze)}}]),SelectBase}(ie.Component);_defineProperty(jn,"propTypes",kn),_defineProperty(jn,"defaultProps",xn),_defineProperty(jn,"Option",Yt.a),_defineProperty(jn,"Divider",wt.Divider),_defineProperty(jn,"Heading",wt.Heading),_defineProperty(jn,"invalidLinkAppearanceProps",["append","error","prepend"]);Z.c=jn},67:function(G,Z){G.exports=ne(594)},7:function(G,Z){G.exports=ne(1318)},8:function(G,Z){G.exports=ne(1627)},9:function(G,Z){G.exports=ne(62)}})},4232:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=174)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},12:function(G,Z){G.exports=ne(767)},145:function(G,Z){G.exports=ne(7784)},174:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return on})),ne.d(Z,"Item",(function(){return Vt})),ne.d(Z,"Heading",(function(){return ht})),ne.d(Z,"Divider",(function(){return Je})),ne.d(Z,"MenuContext",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(5),ge=ne.n(me),Ce=ne(21),Se=ne(31),Me=ne(7),ke=ne(48),xe=ne.n(ke),De=ne(3),Ie=ne.n(De),Re=ne(0),ze=Ie.a.div.withConfig({displayName:"DividerStyles__Styled",componentId:"l3zfh3-0"})(["border-top:1px solid ",";",""],Object(Re.pick)({enterprise:Re.variables.borderColor,prisma:Re.variables.neutral200}),Object(Re.pick)({prisma:{comfortable:Object(De.css)(["margin:8px 0;"]),compact:Object(De.css)(["margin:6px 0;"])}})),$e=Object(ie.createContext)({role:"menu"});function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var dt={children:fe.a.node,title:fe.a.bool,outerStyle:fe.a.object};function Heading(G){var Z=G.children,ne=G.title,ce=G.outerStyle,fe=_objectWithoutProperties(G,["children","title","outerStyle"]),me=Object(ie.useContext)($e).role,ge="prisma"===st()().family?se.a.createElement(ut,Heading_extends({as:ne?"h4":"h5",style:ce,"data-test":"heading"},fe),Z):se.a.createElement(ot.a,Heading_extends({style:_objectSpread(_objectSpread({},ce),{},{margin:0}),level:ne?4:"ss","data-test":"heading"},fe),Z);return se.a.createElement(ct,{"aria-hidden":"listbox"===me},ge)}Heading.propTypes=dt,Heading.filterConsecutive=!0,Heading.filterLast=!0,Heading.as="Heading";var ht=Heading,ft=ne(23),_t=ne.n(ft),yt=ne(145),vt=ne.n(yt),wt=ne(78),Ct=ne.n(wt),St=ne(97),Mt=ne.n(St),kt=ne(38),xt=ne.n(kt),Lt=ne(25),Tt=ne(96),At=ne.n(Tt),Dt=ne(65),Et=ne.n(Dt),jt=ne(4),It=Object(jt._)("Open externally"),Nt=Object(De.css)(["width:0.8em;height:0.8em;vertical-align:baseline;"]),Rt=Ie()(Et.a).withConfig({displayName:"External__StyledEnterprise",componentId:"sc-1turs2s-0"})([""," margin:0 0 0 3px;"],Nt),zt=Ie()(At.a).withConfig({displayName:"External__StyledPrisma",componentId:"sc-1turs2s-1"})([""," margin:0 0 0 4px;"],Nt);var qt=function External(){var G=Object(Re.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(Rt,{screenReaderText:It}):se.a.createElement(zt,{"aria-label":It,height:ne,width:ne},se.a.createElement("title",null,It))},Wt=ne(10),Bt=ne(91);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Item_extends(){return(Item_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Qt={children:fe.a.node,controlledExternally:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),retainFocus:fe.a.bool,stopScrollPropagation:fe.a.bool};function Menu(G){var Z=G.children,ne=G.controlledExternally,ce=G.elementRef,fe=G.retainFocus,me=G.stopScrollPropagation,ke=Menu_objectWithoutProperties(G,["children","controlledExternally","elementRef","retainFocus","stopScrollPropagation"]),De=Object(ie.useContext)($e).role,Ie=void 0===De?"menu":De,Re=Object(ie.useContext)(Ce.PopoverContext).retainFocus,ze=xe()(),Je=!0;null!=fe?Je=fe:null!=Re&&(Je=Re);var it,ot=se.a.useRef(0),at=[],st=0,ct=!1,ut=!1,dt=!1,ht=Object(ie.useCallback)((function(G,Z){var ne=Z.itemKey;null!=ne&&(ot.current=ne)}),[]),ft=ie.Children.toArray(Z).filter(ie.isValidElement).reduce((function(G,Z,ie,ce){if("Divider"===Z.type.as&&0===G.length)return G;if(("Heading"===Z.type.as||"Divider"===Z.type.as)&&!Z.props.title&&Z.type.filterConsecutive&&ce.length>ie+1){var fe=ce[ie+1];if("Heading"===fe.type.as||"Divider"===fe.type.as)return G}if(("Divider"===Z.type.as||"Heading"===Z.type.as)&&ie===ce.length-1)return G;if("Divider"!==Z.type.as&&"Heading"!==Z.type.as&&"string"!=typeof Z.type){var me=se.a.createRef();at.push(me),null!=it||"disabled"in Z.props&&Z.props.disabled||(it=st),ot.current===st&&"disabled"in Z.props&&Z.props.disabled&&(ct=!0),"selected"in Z.props&&Z.props.selected&&(ut=!0,"disabled"in Z.props&&!Z.props.disabled&&(dt=!0));var ge=ne||ot.current!==st?-1:void 0;return G.push(se.a.cloneElement(Z,{itemKey:st,onFocus:ht,preventFocus:ne,ref:function ref(G){Object(Wt.a)(Z.ref,G),Object(Wt.a)(me,G)},tabIndex:ge})),st+=1,G}return G.push(Z),G}),[]);it===ot.current||ut&&!dt||!ct||null==it||(ot.current=it,ze());var _t={"data-test":"menu",onKeyDown:function handleKeyDown(G){var Z,ne,ie,se=Object(Me.keycode)(G.nativeEvent),ce=ot.current;("down"===se||Je&&Object(Se.isTabKey)(G)?Z=Object(Jt.a)(at,ce,ce+1):"up"===se||Je&&Object(Se.isTabKey)(G)&&G.shiftKey?Z=Object(Jt.b)(at,ce,ce-1):"home"===se?Z=Object(Jt.a)(at,ce,0):"end"===se&&(Z=Object(Jt.b)(at,ce,at.length-1)),null!=Z)&&(null===(ne=Z.current)||void 0===ne||null===(ie=ne.focus)||void 0===ie||ie.call(ne),G.preventDefault())},role:Ie,tabIndex:null!=it||ne?void 0:0};return me?se.a.createElement(Zt,Menu_extends({},_t,{elementRef:ce,stopScrollPropagation:!0},ge()(ke,"tagName")),ft):se.a.createElement(Gt,Menu_extends({},_t,{ref:ce},ke),ft)}Menu.propTypes=Qt,Menu.defaultProps={stopScrollPropagation:!1},Menu.Item=Vt,Menu.Divider=Je,Menu.Heading=ht;var on=Menu},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(2906)},23:function(G,Z){G.exports=ne(78)},25:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(2907)},38:function(G,Z){G.exports=ne(7785)},39:function(G,Z){G.exports=ne(4233)},4:function(G,Z){G.exports=ne(768)},48:function(G,Z){G.exports=ne(7786)},5:function(G,Z){G.exports=ne(41)},60:function(G,Z,ne){"use strict";function getNextListItem(G,Z,ne){for(var ie=0;ie0;ie-=1){var se,ce=(ie+ne)%G.length;if(!0!==(null===(se=G[ce].current)||void 0===se?void 0:se.props.disabled))return G[ce]}return G[Z]}ne.d(Z,"a",(function(){return getNextListItem})),ne.d(Z,"b",(function(){return getPrevListItem}))},65:function(G,Z){G.exports=ne(2910)},7:function(G,Z){G.exports=ne(1318)},70:function(G,Z){G.exports=ne(4217)},78:function(G,Z){G.exports=ne(7787)},80:function(G,Z){G.exports=ne(7788)},89:function(G,Z){G.exports=ne(7789)},91:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));var ie=function scrollIntoViewIfNeeded(G){if(G){var Z=G.offsetParent;Z&&(Z.scrollTop+Z.clientHeightG.offsetTop&&(Z.scrollTop=G.offsetTop))}}},96:function(G,Z){G.exports=ne(4219)},97:function(G,Z){G.exports=ne(4234)}})},4233:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=209)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(767)},14:function(G,Z){G.exports=ne(1319)},2:function(G,Z){G.exports=ne(0)},209:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(51),ge=ne.n(me),Ce=ne(14),Se=ne.n(Ce),Me=ne(8),ke=ne(97),xe=ne.n(ke),De=ne(0);function CheckIcon(){return"enterprise"===Object(De.useSplunkTheme)().family?se.a.createElement(xe.a,{inline:!1,size:"12px",screenReaderText:null,hideDefaultTooltip:!0,style:{marginTop:"1px"}}):se.a.createElement("svg",{width:"12",height:"12",viewBox:"-1 -2 11 10",style:{display:"block"},xmlns:"http://www.w3.org/2000/svg"},se.a.createElement("path",{d:"M8.70711 0.292893C9.09763 0.683417 9.09763 1.31658 8.70711 1.70711L4.32132 6.0929C3.73559 6.67862 2.78596 6.67869 2.20015 6.09305L0.292997 4.18646C-0.0975845 3.79599 -0.0976776 3.16282 0.292789 2.77224C0.683256 2.38166 1.31642 2.38157 1.707 2.77203L3.26061 4.32518L7.29289 0.292893C7.68342 -0.0976311 8.31658 -0.0976311 8.70711 0.292893Z",fill:"currentColor"}))}var Ie=ne(3),Re=ne.n(Ie),ze=ne(6),$e=ne.n(ze),Je=ne(12),it=ne.n(Je),ot=Re()($e.a).withConfig({displayName:"SwitchStyles__StyledBox",componentId:"sc-844ieu-0"})(["display:inline;position:relative;color:",";flex-shrink:0;padding:",";[data-inline] + &{margin-left:",";}"],Object(De.pickVariant)("$switchState",{error:{enterprise:De.variables.errorColor,prisma:De.variables.accentColorNegative},disabled:{enterprise:De.variables.textDisabledColor,prisma:De.variables.contentColorDisabled}}),Object(De.pick)({enterprise:Object(Ie.css)(["calc(("," - ",") / 2) 0"],De.variables.inputHeight,"18px"),prisma:{compact:"6px 0",comfortable:"10px 0"}}),Object(De.pick)({enterprise:De.variables.spacingHalf,prisma:De.variables.spacingSmall})),at=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledCheckboxClickable",componentId:"sc-844ieu-1"})([""," position:relative;width:",";height:",";line-height:",";padding:2px;border-radius:2px;cursor:pointer;flex:0 0 auto;border:",";color:",";"," &:focus{box-shadow:",";}"," "," &[disabled]{cursor:not-allowed;border-color:",";","}"],De.mixins.reset("inline"),"18px","18px","18px",Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["1px solid ",""],De.variables.gray45),dark:Object(Ie.css)(["1px solid ",""],De.variables.gray80)}),prisma:Object(Ie.css)(["2px solid ",""],De.variables.contentColorMuted)}),Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray45,dark:De.variables.gray80}),prisma:De.variables.white}),Object(De.pick)({prisma:Object(Ie.css)(["top:1px;padding:1px;border-radius:3px;"," ",""],(function(G){return G.$interactive&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{box-shadow:0 0 0 2px ",",0 0 0 5px ",";}"],De.variables.backgroundColorPage,De.variables.interactiveColorOverlayHover)}),(function(G){return!G.$selected&&Object(Ie.css)(["&:not([disabled]):not(:focus):hover{border-color:",";}"],De.variables.contentColorDefault)}))}),De.variables.focusShadow,(function(G){return G.$selected&&Object(Ie.css)(["&:not([disabled]){border-color:",";background-color:",";}"],Object(De.pick)({enterprise:{light:De.variables.gray45,dark:De.variables.gray80},prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({enterprise:"#none",prisma:Object(Ie.css)(["",";"],De.variables.interactiveColorPrimary)}))}),(function(G){return G.$error&&Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["&:not([disabled]){border-color:",";color:",";","}"],De.variables.errorColorL30,De.variables.errorColor,(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";"],De.variables.errorColor)})),dark:Object(Ie.css)(["border-color:",";}"],De.variables.errorColor)}),prisma:Object(Ie.css)(["&:not([disabled]){border-color:",";","}"],De.variables.accentColorNegative,(function(G){return G.$selected&&Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})}),Object(De.pick)({enterprise:{light:De.variables.borderColor,dark:De.variables.gray45},prisma:De.variables.contentColorDisabled}),(function(G){return G.$selected&&Object(De.pick)({prisma:Object(Ie.css)(["border-color:transparent;background-color:",";"],De.variables.interactiveColorBackgroundDisabled)})})),st=at.withComponent("span"),ct=Re.a.div.withConfig({displayName:"SwitchStyles__StyledSome",componentId:"sc-844ieu-2"})(["display:block;margin:",";height:",";width:",";background:currentColor;border-radius:1px;"],Object(De.pick)({enterprise:"2px",prisma:"5px 2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"2px"}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," - 10px);"],"18px"),prisma:"8px"})),ut=Re.a.div.withConfig({displayName:"SwitchStyles__StyledIndicator",componentId:"sc-844ieu-3"})(["background-color:",";border-color:",";box-sizing:border-box;border-radius:50%;border-width:1px;position:absolute;left:-1px;top:-1px;",";"," "," ",""],Object(De.pick)({enterprise:{light:De.variables.gray98,dark:De.variables.gray80},prisma:De.variables.white}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:left ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["width:",";height:",";border-style:solid;"],"18px","18px"),prisma:Object(Ie.css)(["height:16px;width:16px;margin:2px;border-style:none;box-shadow:",";"],De.variables.embossShadow)}),(function(G){return G.$disabled&&Object(Ie.css)(["border-color:",";border-style:solid;background-color:",";"],Object(De.pick)({enterprise:{light:De.mixins.colorWithAlpha(De.variables.borderLightColor,.8),dark:De.variables.gray22},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{dark:De.variables.gray45},prisma:De.mixins.colorWithAlpha(De.variables.white,.3)}))}),(function(G){return G.$selected&&Object(Ie.css)(["left:",";"],Object(De.pick)({enterprise:Object(Ie.css)(["calc(100% - "," + 1px)"],"18px"),prisma:Object(Ie.css)(["calc(100% - "," + 1px)"],"20px")}))})),dt=Re.a.div.withConfig({displayName:"SwitchStyles__StyledToggleOutline",componentId:"sc-844ieu-4"})(["position:absolute;border:1px solid transparent;",";border-radius:",";top:-1px;right:-1px;bottom:-1px;left:-1px;z-index:1;"," ",""],(function(G){var Z=G.$delay;return Z&&Object(Ie.css)(["transition:border-color ",";"],Z)}),Object(De.pick)({enterprise:Object(Ie.css)(["calc("," * 0.5)"],"18px"),prisma:"15px"}),Object(De.pick)({prisma:Object(Ie.css)(["margin:-6px;"])}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}))})),ht=Re()(it.a).withConfig({displayName:"SwitchStyles__StyledToggleClickable",componentId:"sc-844ieu-5"})(["position:relative;"," border-radius:",";transition:background-color ",";flex:0 0 auto;border:1px solid ",";"," &:not([disabled]){&:focus{outline:0;box-shadow:",";","}&:hover ","{background-color:",";}&:hover ","{background-color:",";}};&[disabled]{border:1px solid ",";background-color:",";"," ","}",";",""],Object(De.pick)({enterprise:Object(De.pick)({light:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray98,"18px"),dark:Object(Ie.css)(["width:calc("," * 2);background-color:",";height:",";"],"18px",De.variables.gray45,"18px")}),prisma:Object(Ie.css)(["width:32px;background-color:",";height:",";top:1px;"],De.variables.contentColorMuted,"20px")}),"18px",(function(G){return G.$delay}),Object(De.pick)({enterprise:{light:De.variables.gray60,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.1);"])}),Object(De.pick)({enterprise:Object(Ie.css)(["",",inset 0 2px 0 rgba(0,0,0,0.1);"],De.variables.focusShadow),prisma:De.variables.focusShadow}),Object(De.pick)({enterprise:Object(Ie.css)(["> ","{border-color:",";}"],dt,De.mixins.colorWithAlpha(De.variables.focusColor,.8))}),ut,Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.gray96,dark:"#b1bcc7"}),prisma:De.variables.white}),dt,Object(De.pick)({prisma:De.variables.interactiveColorOverlayHover}),Object(De.pick)({enterprise:{light:De.variables.borderLightColor,dark:De.variables.borderColor},prisma:De.variables.transparent}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray30},prisma:De.variables.interactiveColorBackgroundDisabled}),Object(De.pick)({enterprise:Object(Ie.css)(["box-shadow:inset 0 2px 0 rgba(0,0,0,0.06);"])}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:transparent;background-color:",";"],Object(De.pick)({enterprise:Object(De.pick)({light:De.variables.accentColorL40,dark:De.variables.accentColorD20}),prisma:De.mixins.colorWithAlpha(De.variables.interactiveColorPrimary,.7)}))}),(function(G){return G.$selected&&Object(Ie.css)(["border-color:",";background-color:",";",""],Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.transparent}),Object(De.pick)({enterprise:De.variables.accentColorL10,prisma:De.variables.interactiveColorPrimary}),Object(De.pick)({prisma:Object(Ie.css)(["box-shadow:",";"],De.variables.embossShadow)}))}),(function(G){return G.$error&&Object(Ie.css)(["border-color:",";",";"],Object(De.pick)({enterprise:De.variables.errorColor,prisma:De.variables.transparent}),Object(De.pick)({prisma:Object(Ie.css)(["background-color:",";"],De.variables.accentColorNegative)}))})),ft=ht.withComponent("span"),_t=Re.a.label.withConfig({displayName:"SwitchStyles__StyledLabel",componentId:"sc-844ieu-6"})([""," flex:1 1 auto;padding-left:",";color:inherit;",";"],De.mixins.reset("inline-block"),Object(De.pick)({enterprise:Object(Ie.css)(["",";"],De.variables.spacingQuarter),prisma:"8px"}),(function(G){return!G.$disabled&&Object(Ie.css)(["cursor:pointer;"])}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne &{color:inherit;}",""],Me.mixins.reset("block"),Me.variables.fontSizeSmall,(function(G){return!G.$help&&Object(ze.css)(["margin-top:",";"],Object(Me.pick)({enterprise:"2px",prisma:"4px"}))})),_t=$e.a.span.withConfig({displayName:"ControlGroupStyles__StyledAsterisk",componentId:"wjnyif-8"})(["color:inherit;margin-right:2px;"]),yt=se.a.createContext({});function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne0&&(se.prepend=!0),ne1&&(se.inline=!0),"stack"===ce&&(se.inline=!1,ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ut={disabled:fe.a.bool,startAdornment:fe.a.node,endAdornment:fe.a.node,icon:fe.a.node,label:fe.a.string,selected:fe.a.bool,value:fe.a.any.isRequired};function Option(G){var Z=G.disabled,ne=G.icon,ce=G.label,fe=G.selected,me=G.startAdornment,ge=G.endAdornment,Ce=G.value,Se=_objectWithoutProperties(G,["disabled","icon","label","selected","startAdornment","endAdornment","value"]),Me=Object(ie.useContext)(ct),ke=Me.onClick,xe=Me.appearance,Ie=Me.error,Re=Me.onKeyDown,ze=Me.firstValue,$e=Me.selectedValue;var st=-1;$e?Ce===$e&&(st=0):Ce===ze&&(st=0);var ut=st;return"prisma"===xe?se.a.createElement(Je,_extends({"data-test":"option","data-test-value":Ce},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,$selected:fe,tabIndex:ut,disabled:Z,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),ne&&se.a.createElement(it,null,ne),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge)):se.a.createElement(De.a,_extends({"data-test":"option","data-test-value":Ce,appearance:xe,disabled:Z,icon:ne,selected:fe,value:Ce,error:Ie},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,tabIndex:ut,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge))}Option.propTypes=ut;var dt=Option,ht=ne(6),ft=ne.n(ht),_t=Re()(ft.a).withConfig({displayName:"RadioBarStyles__StyledRadioBar",componentId:"gg1b79-0"})(["height:",";"," [data-inline] + &{margin-left:",";}"],ke.variables.inputHeight,Object(ke.pick)({prisma:Object(Ie.css)(["padding:2px;border-radius:",";border:1px solid ",";background:",";"],ke.variables.borderRadius,(function(G){return G.$error?ke.variables.accentColorNegative:"transparent"}),(function(G){return G.$disabled?ke.variables.interactiveColorBackgroundDisabled:ke.variables.interactiveColorBackground}))}),Object(ke.pick)({enterprise:ke.variables.spacingHalf,prisma:ke.variables.spacingSmall}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function RadioBar_extends(){return(RadioBar_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;nene.filteredValues.length-1&&(Ce=0),ge=me.nextSibling?me.nextSibling:null===(ie=me.parentElement)||void 0===ie?void 0:ie.firstElementChild;else if("up"===fe||"left"===fe){var ke;G.preventDefault(),(Ce=Se-1)<0&&(Ce=ne.filteredValues.length-1),ge=me.previousSibling?me.previousSibling:null===(ke=me.parentElement)||void 0===ke?void 0:ke.lastElementChild}if(ge){var xe;null===(xe=ge)||void 0===xe||xe.focus();var De=ne.filteredValues[Ce];ne.handleOnChange(G,{value:De,label:ce})}})),_defineProperty(_assertThisInitialized(ne),"handleOnChange",(function(G,Z){var ie,se;ne.props.value!==Z.value&&(null===(ie=(se=ne.props).onChange)||void 0===ie||ie.call(se,G,function _objectSpread(G){for(var Z=1;Z0})})),$e=this.filteredValues[0],Je=null==Me||this.filteredValues.includes(De);var it={appearance:Ie?"prisma":ne,onClick:this.handleClick,error:!Ie&&me,onKeyDown:this.handleOnKeyDown,firstValue:$e,selectedValue:Je?De:void 0};return se.a.createElement(_t,RadioBar_extends({flex:!0,$disabled:Re,$error:me,"data-test":"radio-bar","data-test-value":De,role:"radiogroup","aria-labelledby":ge,"aria-describedby":fe,"aria-required":ke},Se()(xe,"onChange")),se.a.createElement(ct.Provider,{value:it},ze))}}]),RadioBar}(ie.Component);_defineProperty(vt,"propTypes",yt),_defineProperty(vt,"defaultProps",{appearance:"default",error:!1,inline:!1}),_defineProperty(vt,"Option",dt);var wt=Object(ke.withSplunkTheme)(vt);wt.propTypes=vt.propTypes,wt.Option=dt;var Ct=wt},2:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(3)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(1165)},7:function(G,Z){G.exports=ne(1318)}})},4237:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=204)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},204:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ie})),ne.d(Z,"Item",(function(){return xe}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.ol.withConfig({displayName:"ListStyles__StyledOl",componentId:"sc-1yyh8l9-0"})(["",";",";list-style-type:",";padding-left:40px;margin-bottom:1.3em;margin-top:1em;"],Ce.mixins.reset("block"),Ce.mixins.typography("body"),(function(G){return G.$type})),Me=ge.a.li.withConfig({displayName:"ListStyles__StyledItem",componentId:"sc-1yyh8l9-1"})(["",";list-style-type:inherit;"],Ce.mixins.reset("list-item"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ke={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Item(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Me,_extends({"data-test":"item",ref:ne},ie),Z)}Item.propTypes=ke;var xe=Item;function List_extends(){return(List_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var De={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),ordered:fe.a.bool,type:fe.a.oneOf(["disc","decimal","lower-alpha","upper-alpha"])};function List(G){var Z=G.children,ne=G.elementRef,ie=G.type,ce=void 0===ie?"disc":ie,fe=G.ordered,me=List_objectWithoutProperties(G,["children","elementRef","type","ordered"]);return se.a.createElement(Se,List_extends({as:fe||"disc"!==ce?"ol":"ul","data-test":"list",ref:ne,$type:fe||"decimal"===ce?"decimal":ce},me),Z)}List.propTypes=De,List.Item=xe;var Ie=List},3:function(G,Z){G.exports=ne(3)}})},4238:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=237)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},237:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return at}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(43),ke=ne(31),xe=ne(41),De=ne(24),Ie=ne(3),Re=ne.n(Ie),ze=ne(0),$e=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__Styled",componentId:"sc-1x58s0g-0"})(["",";",";"],ze.mixins.reset("block"),(function(G){return G.$hideOverflow&&Object(Ie.css)(["overflow:hidden;"])})),Je=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__StyledInner",componentId:"sc-1x58s0g-1"})(["",";",";width:100%;"],ze.mixins.reset("table"),ze.mixins.clearfix());function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{var Z={};return Object.keys(G).forEach(ne=>{var ie=G[ne].meta&&G[ne].meta.serviceID;if(ie){var se=G[ne].meta.kpiID;Z[ie]?Z[ie].includes(se)||Z[ie].push(se):(Z[ie]=[],Z[ie].push(se))}}),Z};Z.isSelected=(G,Z,ne)=>G&&(G[Z]||!1)&&G[Z].includes(ne);Z.countVisualizationsInUse=(G,Z)=>{var ne=0;return Object.keys(Z).forEach(ie=>{Z[ie].dataSources&&Object.keys(Z[ie].dataSources).forEach(se=>{Z[ie].dataSources[se]===G&&(ne+=1)})}),ne};Z.findKPI=(G,Z)=>G.kpis.find(G=>G._key===Z);Z.groupByType=(G,Z)=>{var ne=(0,se.default)((0,fe.default)(Z,G=>Object.values(G.dataSources||{})));return(0,ce.default)((0,fe.default)(G,(G,Z)=>({id:Z,dataSource:G,used:ne.includes(Z)})),G=>{var{dataSource:Z}=G;return Z.type})}},4317:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Se})),ne.d(Z,"MonacoDiffEditor",(function(){return ge})),ne.d(Z,"monaco",(function(){return ie}));var ie=ne(419),se=ne(2),ce=ne(0);function processSize(G){return/^\d+$/.test(G)?G+"px":G}function noop(){}var fe,me=(fe=function(G,Z){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)},function(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=G}fe(G,Z),G.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)}),__assign=function(){return(__assign=Object.assign||function(G){for(var Z,ne=1,ie=arguments.length;ne0){switch(ge=Math.min(Ce<=.5?Se/(2*Ce):Se/(2-2*Ce),1),ce){case Z:me=(ne-ie)/Se+(ne1&&(ne-=1),ne<1/6?G+6*(Z-G)*ne:ne<.5?Z:ne<2/3?G+(Z-G)*(2/3-ne)*6:G}static toRGBA(G){const Z=G.h/360,{s:ne,l:ie,a:se}=G;let ce,fe,me;if(0===ne)ce=fe=me=ie;else{const G=ie<.5?ie*(1+ne):ie+ne-ie*ne,se=2*ie-G;ce=HSLA._hue2rgb(se,G,Z+1/3),fe=HSLA._hue2rgb(se,G,Z),me=HSLA._hue2rgb(se,G,Z-1/3)}return new RGBA(Math.round(255*ce),Math.round(255*fe),Math.round(255*me),se)}}class HSVA{constructor(G,Z,ne,ie){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,G),0),this.s=roundFloat(Math.max(Math.min(1,Z),0),3),this.v=roundFloat(Math.max(Math.min(1,ne),0),3),this.a=roundFloat(Math.max(Math.min(1,ie),0),3)}static equals(G,Z){return G.h===Z.h&&G.s===Z.s&&G.v===Z.v&&G.a===Z.a}static fromRGBA(G){const Z=G.r/255,ne=G.g/255,ie=G.b/255,se=Math.max(Z,ne,ie),ce=se-Math.min(Z,ne,ie),fe=0===se?0:ce/se;let me;return me=0===ce?0:se===Z?((ne-ie)/ce%6+6)%6:se===ne?(ie-Z)/ce+2:(Z-ne)/ce+4,new HSVA(Math.round(60*me),fe,se,G.a)}static toRGBA(G){const{h:Z,s:ne,v:ie,a:se}=G,ce=ie*ne,fe=ce*(1-Math.abs(Z/60%2-1)),me=ie-ce;let[ge,Ce,Se]=[0,0,0];return Z<60?(ge=ce,Ce=fe):Z<120?(ge=fe,Ce=ce):Z<180?(Ce=ce,Se=fe):Z<240?(Ce=fe,Se=ce):Z<300?(ge=fe,Se=ce):Z<=360&&(ge=ce,Se=fe),ge=Math.round(255*(ge+me)),Ce=Math.round(255*(Ce+me)),Se=Math.round(255*(Se+me)),new RGBA(ge,Ce,Se,se)}}class Color{constructor(G){if(!G)throw new Error("Color needs a value");if(G instanceof RGBA)this.rgba=G;else if(G instanceof HSLA)this._hsla=G,this.rgba=HSLA.toRGBA(G);else{if(!(G instanceof HSVA))throw new Error("Invalid color ctor argument");this._hsva=G,this.rgba=HSVA.toRGBA(G)}}static fromHex(G){return Color.Format.CSS.parseHex(G)||Color.red}get hsla(){return this._hsla?this._hsla:HSLA.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:HSVA.fromRGBA(this.rgba)}equals(G){return!!G&&RGBA.equals(this.rgba,G.rgba)&&HSLA.equals(this.hsla,G.hsla)&&HSVA.equals(this.hsva,G.hsva)}getRelativeLuminance(){return roundFloat(.2126*Color._relativeLuminanceForComponent(this.rgba.r)+.7152*Color._relativeLuminanceForComponent(this.rgba.g)+.0722*Color._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(G){const Z=G/255;return Z<=.03928?Z/12.92:Math.pow((Z+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(G){return this.getRelativeLuminance()>G.getRelativeLuminance()}isDarkerThan(G){return this.getRelativeLuminance()G.window.document),ke=ie.F(G);ke&&Me.unshift(ke);for(const G of Me)this._hooks.add(ie.l(G,Se,G=>{G.buttons===Z?this._mouseMoveCallback(G):this.stopMonitoring(!0)},(G,Z)=>this._mouseMoveEventMerger(G,Z))),this._hooks.add(ie.i(G,"mouseup",G=>this.stopMonitoring(!0)));if(se.a.hasDifferentOriginAncestor()){let G=Ce[Ce.length-1];this._hooks.add(ie.i(G.window.document,"mouseout",G=>{"html"===new ce.a(G).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(ie.i(G.window.document,"mouseover",G=>{"html"===new ce.a(G).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(ie.i(G.window.document.body,"mouseleave",G=>{this.stopMonitoring(!0)}))}}}},447:function(G,Z,ne){"use strict";ne.d(Z,"e",(function(){return isInputElement})),ne.d(Z,"f",(function(){return isMonacoEditor})),ne.d(Z,"a",(function(){return ot})),ne.d(Z,"h",(function(){return isSelectionSingleChangeEvent})),ne.d(Z,"g",(function(){return isSelectionRangeChangeEvent})),ne.d(Z,"d",(function(){return listWidget_MouseController})),ne.d(Z,"b",(function(){return listWidget_DefaultStyleController})),ne.d(Z,"c",(function(){return listWidget_List}));ne(4150);var ie=ne(10),se=ne(54),ce=ne(69),fe=ne(287),me=ne(46),ge=ne(209),Ce=ne(205),Se=ne(19),Me=ne(206);class ListError extends Error{constructor(G,Z){super(`ListError [${G}] ${Z}`)}}var ke=ne(1005),xe=ne(44),De=ne(166);class CombinedSpliceable{constructor(G){this.spliceables=G}splice(G,Z,ne){this.spliceables.forEach(ie=>ie.splice(G,Z,ne))}}var Ie,Re=ne(466),ze=ne(253),$e=ne(215),Je=ne(6),it=ne(57),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class TraitRenderer{constructor(G){this.trait=G,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(G){return G}renderElement(G,Z,ne){const ie=this.renderedElements.findIndex(G=>G.templateData===ne);if(ie>=0){const G=this.renderedElements[ie];this.trait.unrender(ne),G.index=Z}else{const G={index:Z,templateData:ne};this.renderedElements.push(G)}this.trait.renderIndex(Z,ne)}splice(G,Z,ne){const ie=[];for(const se of this.renderedElements)se.index=G+Z&&ie.push({index:se.index+ne-Z,templateData:se.templateData});this.renderedElements=ie}renderIndexes(G){for(const{index:Z,templateData:ne}of this.renderedElements)G.indexOf(Z)>-1&&this.trait.renderIndex(Z,ne)}disposeTemplate(G){const Z=this.renderedElements.findIndex(Z=>Z.templateData===G);Z<0||this.renderedElements.splice(Z,1)}}class listWidget_Trait{constructor(G){this._trait=G,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new Se.b,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new TraitRenderer(this)}splice(G,Z,ne){var ie;Z=Math.max(0,Math.min(Z,this.length-G));const se=ne.length-Z,ce=G+Z,fe=[...this.sortedIndexes.filter(Z=>ZZ?ne+G:-1).filter(G=>-1!==G),...this.sortedIndexes.filter(G=>G>=ce).map(G=>G+se)],me=this.length+se;if(this.sortedIndexes.length>0&&0===fe.length&&me>0){const Z=null!==(ie=this.sortedIndexes.find(Z=>Z>=G))&&void 0!==ie?ie:me-1;fe.push(Math.min(Z,me-1))}this.renderer.splice(G,Z,ne.length),this._set(fe,fe),this.length=me}renderIndex(G,Z){Z.classList.toggle(this._trait,this.contains(G))}unrender(G){G.classList.remove(this._trait)}set(G,Z){return this._set(G,[...G].sort(numericSort),Z)}_set(G,Z,ne){const ie=this.indexes,se=this.sortedIndexes;this.indexes=G,this.sortedIndexes=Z;const ce=disjunction(se,G);return this.renderer.renderIndexes(ce),this._onChange.fire({indexes:G,browserEvent:ne}),ie}get(){return this.indexes}contains(G){return Object(ce.d)(this.sortedIndexes,G,numericSort)>=0}dispose(){Object(ie.f)(this._onChange)}}__decorate([fe.a],listWidget_Trait.prototype,"renderer",null);class SelectionTrait extends listWidget_Trait{constructor(G){super("selected"),this.setAriaSelected=G}renderIndex(G,Z){super.renderIndex(G,Z),this.setAriaSelected&&(this.contains(G)?Z.setAttribute("aria-selected","true"):Z.setAttribute("aria-selected","false"))}}class TraitSpliceable{constructor(G,Z,ne){this.trait=G,this.view=Z,this.identityProvider=ne}splice(G,Z,ne){if(!this.identityProvider)return this.trait.splice(G,Z,ne.map(()=>!1));const ie=this.trait.get().map(G=>this.identityProvider.getId(this.view.element(G)).toString()),se=ne.map(G=>ie.indexOf(this.identityProvider.getId(G).toString())>-1);this.trait.splice(G,Z,se)}}function isInputElement(G){return"INPUT"===G.tagName||"TEXTAREA"===G.tagName}function isMonacoEditor(G){return!!G.classList.contains("monaco-editor")||!G.classList.contains("monaco-list")&&(!!G.parentElement&&isMonacoEditor(G.parentElement))}class listWidget_KeyboardController{constructor(G,Z,ne){this.list=G,this.view=Z,this.disposables=new ie.b,this.multipleSelectionDisposables=new ie.b,this.onKeyDown.filter(G=>3===G.keyCode).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(G=>16===G.keyCode).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(G=>18===G.keyCode).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(G=>11===G.keyCode).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(G=>12===G.keyCode).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(G=>9===G.keyCode).on(this.onEscape,this,this.disposables),!1!==ne.multipleSelectionSupport&&this.onKeyDown.filter(G=>(me.f?G.metaKey:G.ctrlKey)&&31===G.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return Se.c.chain(this.disposables.add(new Me.a(this.view.domNode,"keydown")).event).filter(G=>!isInputElement(G.target)).map(G=>new Ce.a(G))}updateOptions(G){void 0!==G.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),G.multipleSelectionSupport&&this.onKeyDown.filter(G=>(me.f?G.metaKey:G.ctrlKey)&&31===G.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(G){G.preventDefault(),G.stopPropagation(),this.list.setSelection(this.list.getFocus(),G.browserEvent)}onUpArrow(G){G.preventDefault(),G.stopPropagation(),this.list.focusPrevious(1,!1,G.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(G){G.preventDefault(),G.stopPropagation(),this.list.focusNext(1,!1,G.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(G){G.preventDefault(),G.stopPropagation(),this.list.focusPreviousPage(G.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(G){G.preventDefault(),G.stopPropagation(),this.list.focusNextPage(G.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(G){G.preventDefault(),G.stopPropagation(),this.list.setSelection(Object(ce.r)(this.list.length),G.browserEvent),this.view.domNode.focus()}onEscape(G){this.list.getSelection().length&&(G.preventDefault(),G.stopPropagation(),this.list.setSelection([],G.browserEvent),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}__decorate([fe.a],listWidget_KeyboardController.prototype,"onKeyDown",null),function(G){G[G.Idle=0]="Idle",G[G.Typing=1]="Typing"}(Ie||(Ie={}));const ot=new class{mightProducePrintableCharacter(G){return!(G.ctrlKey||G.metaKey||G.altKey)&&(G.keyCode>=31&&G.keyCode<=56||G.keyCode>=21&&G.keyCode<=30||G.keyCode>=93&&G.keyCode<=102||G.keyCode>=80&&G.keyCode<=90)}};class listWidget_TypeLabelController{constructor(G,Z,ne,se){this.list=G,this.view=Z,this.keyboardNavigationLabelProvider=ne,this.delegate=se,this.enabled=!1,this.state=Ie.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new ie.b,this.disposables=new ie.b,this.updateOptions(G.options)}updateOptions(G){void 0===G.enableKeyboardNavigation||!!G.enableKeyboardNavigation?this.enable():this.disable(),void 0!==G.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=G.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const G=Se.c.chain(this.enabledDisposables.add(new Me.a(this.view.domNode,"keydown")).event).filter(G=>!isInputElement(G.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(G=>new Ce.a(G)).filter(G=>this.delegate.mightProducePrintableCharacter(G)).forEach(G=>{G.stopPropagation(),G.preventDefault()}).map(G=>G.browserEvent.key).event,Z=Se.c.debounce(G,()=>null,800);Se.c.reduce(Se.c.any(G,Z),(G,Z)=>null===Z?null:(G||"")+Z)(this.onInput,this,this.enabledDisposables),Z(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var G;const Z=this.list.getFocus();if(Z.length>0&&Z[0]===this.previouslyFocused){const ne=null===(G=this.list.options.accessibilityProvider)||void 0===G?void 0:G.getAriaLabel(this.list.element(Z[0]));ne&&Object($e.a)(ne)}this.previouslyFocused=-1}onInput(G){if(!G)return this.state=Ie.Idle,void(this.triggered=!1);const Z=this.list.getFocus(),ne=Z.length>0?Z[0]:0,ie=this.state===Ie.Idle?1:0;this.state=Ie.Typing;for(let Z=0;Z!isInputElement(G.target)).map(G=>new Ce.a(G)).filter(G=>!(2!==G.keyCode||G.ctrlKey||G.metaKey||G.shiftKey||G.altKey)).on(this.onTab,this,this.disposables)}onTab(G){if(G.target!==this.view.domNode)return;const Z=this.list.getFocus();if(0===Z.length)return;const ne=this.view.domElement(Z[0]);if(!ne)return;const ie=ne.querySelector("[tabIndex]");if(!(ie&&ie instanceof HTMLElement&&-1!==ie.tabIndex))return;const se=window.getComputedStyle(ie);"hidden"!==se.visibility&&"none"!==se.display&&(G.preventDefault(),G.stopPropagation(),ie.focus())}dispose(){this.disposables.dispose()}}function isSelectionSingleChangeEvent(G){return me.f?G.browserEvent.metaKey:G.browserEvent.ctrlKey}function isSelectionRangeChangeEvent(G){return G.browserEvent.shiftKey}const at={isSelectionSingleChangeEvent:isSelectionSingleChangeEvent,isSelectionRangeChangeEvent:isSelectionRangeChangeEvent};class listWidget_MouseController{constructor(G){this.list=G,this.disposables=new ie.b,this._onPointer=new Se.b,this.onPointer=this._onPointer.event,!1!==G.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||at),this.mouseSupport=void 0===G.options.mouseSupport||!!G.options.mouseSupport,this.mouseSupport&&(G.onMouseDown(this.onMouseDown,this,this.disposables),G.onContextMenu(this.onContextMenu,this,this.disposables),G.onMouseDblClick(this.onDoubleClick,this,this.disposables),G.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(ge.b.addTarget(G.getHTMLElement()))),Se.c.any(G.onMouseClick,G.onMouseMiddleClick,G.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(G){void 0!==G.multipleSelectionSupport&&(this.multipleSelectionController=void 0,G.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||at))}isSelectionSingleChangeEvent(G){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(G)}isSelectionRangeChangeEvent(G){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(G)}isSelectionChangeEvent(G){return this.isSelectionSingleChangeEvent(G)||this.isSelectionRangeChangeEvent(G)}onMouseDown(G){isMonacoEditor(G.browserEvent.target)||document.activeElement!==G.browserEvent.target&&this.list.domFocus()}onContextMenu(G){if(isMonacoEditor(G.browserEvent.target))return;const Z=void 0===G.index?[]:[G.index];this.list.setFocus(Z,G.browserEvent)}onViewPointer(G){if(!this.mouseSupport)return;if(isInputElement(G.browserEvent.target)||isMonacoEditor(G.browserEvent.target))return;const Z=G.index;return void 0===Z?(this.list.setFocus([],G.browserEvent),this.list.setSelection([],G.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionRangeChangeEvent(G)||this.isSelectionChangeEvent(G)?this.changeSelection(G):(this.list.setFocus([Z],G.browserEvent),this.list.setAnchor(Z),function isMouseRightClick(G){return G instanceof MouseEvent&&2===G.button}(G.browserEvent)||this.list.setSelection([Z],G.browserEvent),void this._onPointer.fire(G))}onDoubleClick(G){if(isInputElement(G.browserEvent.target)||isMonacoEditor(G.browserEvent.target))return;if(this.isSelectionChangeEvent(G))return;const Z=this.list.getFocus();this.list.setSelection(Z,G.browserEvent)}changeSelection(G){const Z=G.index;let ne=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(G)){if(void 0===ne){const G=this.list.getFocus()[0];ne=null!=G?G:Z,this.list.setAnchor(ne)}const ie=Math.min(ne,Z),se=Math.max(ne,Z),fe=Object(ce.r)(ie,se+1),me=this.list.getSelection(),ge=function getContiguousRangeContaining(G,Z){const ne=G.indexOf(Z);if(-1===ne)return[];const ie=[];let se=ne-1;for(;se>=0&&G[se]===Z-(ne-se);)ie.push(G[se--]);ie.reverse(),se=ne;for(;se=G.length)ne.push(Z[se++]);else if(se>=Z.length)ne.push(G[ie++]);else{if(G[ie]===Z[se]){ie++,se++;continue}G[ie]G!==Z);this.list.setFocus([Z]),this.list.setAnchor(Z),ne.length===ie.length?this.list.setSelection([...ie,Z],G.browserEvent):this.list.setSelection(ie,G.browserEvent)}}dispose(){this.disposables.dispose()}}class listWidget_DefaultStyleController{constructor(G,Z){this.styleElement=G,this.selectorSuffix=Z}style(G){const Z=this.selectorSuffix&&"."+this.selectorSuffix,ne=[];G.listBackground&&(G.listBackground.isOpaque()?ne.push(`.monaco-list${Z} .monaco-list-rows { background: ${G.listBackground}; }`):me.f||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),G.listFocusBackground&&(ne.push(`.monaco-list${Z}:focus .monaco-list-row.focused { background-color: ${G.listFocusBackground}; }`),ne.push(`.monaco-list${Z}:focus .monaco-list-row.focused:hover { background-color: ${G.listFocusBackground}; }`)),G.listFocusForeground&&ne.push(`.monaco-list${Z}:focus .monaco-list-row.focused { color: ${G.listFocusForeground}; }`),G.listActiveSelectionBackground&&(ne.push(`.monaco-list${Z}:focus .monaco-list-row.selected { background-color: ${G.listActiveSelectionBackground}; }`),ne.push(`.monaco-list${Z}:focus .monaco-list-row.selected:hover { background-color: ${G.listActiveSelectionBackground}; }`)),G.listActiveSelectionForeground&&ne.push(`.monaco-list${Z}:focus .monaco-list-row.selected { color: ${G.listActiveSelectionForeground}; }`),G.listActiveSelectionIconForeground&&ne.push(`.monaco-list${Z}:focus .monaco-list-row.selected .codicon { color: ${G.listActiveSelectionIconForeground}; }`),G.listFocusAndSelectionBackground&&ne.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${Z}:focus .monaco-list-row.selected.focused { background-color: ${G.listFocusAndSelectionBackground}; }\n\t\t\t`),G.listFocusAndSelectionForeground&&ne.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${Z}:focus .monaco-list-row.selected.focused { color: ${G.listFocusAndSelectionForeground}; }\n\t\t\t`),G.listInactiveFocusForeground&&(ne.push(`.monaco-list${Z} .monaco-list-row.focused { color: ${G.listInactiveFocusForeground}; }`),ne.push(`.monaco-list${Z} .monaco-list-row.focused:hover { color: ${G.listInactiveFocusForeground}; }`)),G.listInactiveSelectionIconForeground&&ne.push(`.monaco-list${Z} .monaco-list-row.focused .codicon { color: ${G.listInactiveSelectionIconForeground}; }`),G.listInactiveFocusBackground&&(ne.push(`.monaco-list${Z} .monaco-list-row.focused { background-color: ${G.listInactiveFocusBackground}; }`),ne.push(`.monaco-list${Z} .monaco-list-row.focused:hover { background-color: ${G.listInactiveFocusBackground}; }`)),G.listInactiveSelectionBackground&&(ne.push(`.monaco-list${Z} .monaco-list-row.selected { background-color: ${G.listInactiveSelectionBackground}; }`),ne.push(`.monaco-list${Z} .monaco-list-row.selected:hover { background-color: ${G.listInactiveSelectionBackground}; }`)),G.listInactiveSelectionForeground&&ne.push(`.monaco-list${Z} .monaco-list-row.selected { color: ${G.listInactiveSelectionForeground}; }`),G.listHoverBackground&&ne.push(`.monaco-list${Z}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${G.listHoverBackground}; }`),G.listHoverForeground&&ne.push(`.monaco-list${Z} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${G.listHoverForeground}; }`),G.listSelectionOutline&&ne.push(`.monaco-list${Z} .monaco-list-row.selected { outline: 1px dotted ${G.listSelectionOutline}; outline-offset: -1px; }`),G.listFocusOutline&&ne.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${Z}:focus .monaco-list-row.focused { outline: 1px solid ${G.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),G.listInactiveFocusOutline&&ne.push(`.monaco-list${Z} .monaco-list-row.focused { outline: 1px dotted ${G.listInactiveFocusOutline}; outline-offset: -1px; }`),G.listHoverOutline&&ne.push(`.monaco-list${Z} .monaco-list-row:hover { outline: 1px dashed ${G.listHoverOutline}; outline-offset: -1px; }`),G.listDropBackground&&ne.push(`\n\t\t\t\t.monaco-list${Z}.drop-target,\n\t\t\t\t.monaco-list${Z} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${Z} .monaco-list-row.drop-target { background-color: ${G.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),G.listFilterWidgetBackground&&ne.push(`.monaco-list-type-filter { background-color: ${G.listFilterWidgetBackground} }`),G.listFilterWidgetOutline&&ne.push(`.monaco-list-type-filter { border: 1px solid ${G.listFilterWidgetOutline}; }`),G.listFilterWidgetNoMatchesOutline&&ne.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${G.listFilterWidgetNoMatchesOutline}; }`),G.listMatchesShadow&&ne.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${G.listMatchesShadow}; }`),G.tableColumnsBorder&&ne.push(`\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${G.tableColumnsBorder};\n\t\t\t}`),this.styleElement.textContent=ne.join("\n")}}const st={listFocusBackground:xe.a.fromHex("#7FB0D0"),listActiveSelectionBackground:xe.a.fromHex("#0E639C"),listActiveSelectionForeground:xe.a.fromHex("#FFFFFF"),listActiveSelectionIconForeground:xe.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:xe.a.fromHex("#094771"),listFocusAndSelectionForeground:xe.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:xe.a.fromHex("#3F3F46"),listInactiveSelectionIconForeground:xe.a.fromHex("#FFFFFF"),listHoverBackground:xe.a.fromHex("#2A2D2E"),listDropBackground:xe.a.fromHex("#383B3D"),treeIndentGuidesStroke:xe.a.fromHex("#a9a9a9"),tableColumnsBorder:xe.a.fromHex("#cccccc").transparent(.2)},ct={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){}}};function disjunction(G,Z){const ne=[];let ie=0,se=0;for(;ie=G.length)ne.push(Z[se++]);else if(se>=Z.length)ne.push(G[ie++]);else{if(G[ie]===Z[se]){ne.push(G[ie]),ie++,se++;continue}G[ie]G-Z;class PipelineRenderer{constructor(G,Z){this._templateId=G,this.renderers=Z}get templateId(){return this._templateId}renderTemplate(G){return this.renderers.map(Z=>Z.renderTemplate(G))}renderElement(G,Z,ne,ie){let se=0;for(const ce of this.renderers)ce.renderElement(G,Z,ne[se++],ie)}disposeElement(G,Z,ne,ie){let se=0;for(const ce of this.renderers)ce.disposeElement&&ce.disposeElement(G,Z,ne[se],ie),se+=1}disposeTemplate(G){let Z=0;for(const ne of this.renderers)ne.disposeTemplate(G[Z++])}}class AccessibiltyRenderer{constructor(G){this.accessibilityProvider=G,this.templateId="a18n"}renderTemplate(G){return G}renderElement(G,Z,ne){const ie=this.accessibilityProvider.getAriaLabel(G);ie?ne.setAttribute("aria-label",ie):ne.removeAttribute("aria-label");const se=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(G);"number"==typeof se?ne.setAttribute("aria-level",""+se):ne.removeAttribute("aria-level")}disposeTemplate(G){}}class ListViewDragAndDrop{constructor(G,Z){this.list=G,this.dnd=Z}getDragElements(G){const Z=this.list.getSelectedElements();return Z.indexOf(G)>-1?Z:[G]}getDragURI(G){return this.dnd.getDragURI(G)}getDragLabel(G,Z){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(G,Z)}onDragStart(G,Z){this.dnd.onDragStart&&this.dnd.onDragStart(G,Z)}onDragOver(G,Z,ne,ie){return this.dnd.onDragOver(G,Z,ne,ie)}onDragLeave(G,Z,ne,ie){var se,ce;null===(ce=(se=this.dnd).onDragLeave)||void 0===ce||ce.call(se,G,Z,ne,ie)}onDragEnd(G){this.dnd.onDragEnd&&this.dnd.onDragEnd(G)}drop(G,Z,ne,ie){this.dnd.drop(G,Z,ne,ie)}}class listWidget_List{constructor(G,Z,ne,se,ce=ct){var fe;this.user=G,this._options=ce,this.focus=new listWidget_Trait("focused"),this.anchor=new listWidget_Trait("anchor"),this.eventBufferer=new Se.d,this._ariaLabel="",this.disposables=new ie.b,this._onDidDispose=new Se.b,this.onDidDispose=this._onDidDispose.event;const me=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(fe=this._options.accessibilityProvider)||void 0===fe?void 0:fe.getWidgetRole():"list";this.selection=new SelectionTrait("listbox"!==me),Object(De.f)(ce,st,!1);const ge=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=ce.accessibilityProvider,this.accessibilityProvider&&(ge.push(new AccessibiltyRenderer(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),se=se.map(G=>new PipelineRenderer(G.templateId,[...ge,G]));const Ce=Object.assign(Object.assign({},ce),{dnd:ce.dnd&&new ListViewDragAndDrop(this,ce.dnd)});if(this.view=new ke.b(Z,ne,se,Ce),this.view.domNode.setAttribute("role",me),ce.styleController)this.styleController=ce.styleController(this.view.domId);else{const G=Object(Je.w)(this.view.domNode);this.styleController=new listWidget_DefaultStyleController(G,this.view.domId)}if(this.spliceable=new CombinedSpliceable([new TraitSpliceable(this.focus,this.view,ce.identityProvider),new TraitSpliceable(this.selection,this.view,ce.identityProvider),new TraitSpliceable(this.anchor,this.view,ce.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new listWidget_DOMFocusController(this,this.view)),("boolean"!=typeof ce.keyboardSupport||ce.keyboardSupport)&&(this.keyboardController=new listWidget_KeyboardController(this,this.view,ce),this.disposables.add(this.keyboardController)),ce.keyboardNavigationLabelProvider){const G=ce.keyboardNavigationDelegate||ot;this.typeLabelController=new listWidget_TypeLabelController(this,this.view,ce.keyboardNavigationLabelProvider,G),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(ce),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return Se.c.map(this.eventBufferer.wrapEvent(this.focus.onChange),G=>this.toListEvent(G))}get onDidChangeSelection(){return Se.c.map(this.eventBufferer.wrapEvent(this.selection.onChange),G=>this.toListEvent(G))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let G=!1;const Z=Se.c.chain(this.disposables.add(new Me.a(this.view.domNode,"keydown")).event).map(G=>new Ce.a(G)).filter(Z=>G=58===Z.keyCode||Z.shiftKey&&68===Z.keyCode).map(Me.b).filter(()=>!1).event,ne=Se.c.chain(this.disposables.add(new Me.a(this.view.domNode,"keyup")).event).forEach(()=>G=!1).map(G=>new Ce.a(G)).filter(G=>58===G.keyCode||G.shiftKey&&68===G.keyCode).map(Me.b).map(({browserEvent:G})=>{const Z=this.getFocus(),ne=Z.length?Z[0]:void 0;return{index:ne,element:void 0!==ne?this.view.element(ne):void 0,anchor:void 0!==ne?this.view.domElement(ne):this.view.domNode,browserEvent:G}}).event,ie=Se.c.chain(this.view.onContextMenu).filter(Z=>!G).map(({element:G,index:Z,browserEvent:ne})=>({element:G,index:Z,anchor:{x:ne.pageX+1,y:ne.pageY},browserEvent:ne})).event;return Se.c.any(Z,ne,ie)}get onKeyDown(){return this.disposables.add(new Me.a(this.view.domNode,"keydown")).event}get onDidFocus(){return Se.c.signal(this.disposables.add(new Me.a(this.view.domNode,"focus",!0)).event)}createMouseController(G){return new listWidget_MouseController(this)}updateOptions(G={}){var Z;this._options=Object.assign(Object.assign({},this._options),G),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(G),null===(Z=this.keyboardController)||void 0===Z||Z.updateOptions(G),this.view.updateOptions(G)}get options(){return this._options}splice(G,Z,ne=[]){if(G<0||G>this.view.length)throw new ListError(this.user,"Invalid start index: "+G);if(Z<0)throw new ListError(this.user,"Invalid delete count: "+Z);0===Z&&0===ne.length||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(G,Z,ne))}rerender(){this.view.rerender()}element(G){return this.view.element(G)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(G){this.view.setScrollTop(G)}get ariaLabel(){return this._ariaLabel}set ariaLabel(G){this._ariaLabel=G,this.view.domNode.setAttribute("aria-label",G)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(G,Z){this.view.layout(G,Z)}setSelection(G,Z){for(const Z of G)if(Z<0||Z>=this.length)throw new ListError(this.user,"Invalid index "+Z);this.selection.set(G,Z)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(G=>this.view.element(G))}setAnchor(G){if(void 0!==G){if(G<0||G>=this.length)throw new ListError(this.user,"Invalid index "+G);this.anchor.set([G])}else this.anchor.set([])}getAnchor(){return Object(ce.j)(this.anchor.get(),void 0)}getAnchorElement(){const G=this.getAnchor();return void 0===G?void 0:this.element(G)}setFocus(G,Z){for(const Z of G)if(Z<0||Z>=this.length)throw new ListError(this.user,"Invalid index "+Z);this.focus.set(G,Z)}focusNext(G=1,Z=!1,ne,ie){if(0===this.length)return;const se=this.focus.get(),ce=this.findNextIndex(se.length>0?se[0]+G:0,Z,ie);ce>-1&&this.setFocus([ce],ne)}focusPrevious(G=1,Z=!1,ne,ie){if(0===this.length)return;const se=this.focus.get(),ce=this.findPreviousIndex(se.length>0?se[0]-G:0,Z,ie);ce>-1&&this.setFocus([ce],ne)}focusNextPage(G,Z){return __awaiter(this,void 0,void 0,(function*(){let ne=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ne=0===ne?0:ne-1;const ie=this.view.element(ne),se=this.getFocusedElements()[0];if(se!==ie){const ie=this.findPreviousIndex(ne,!1,Z);ie>-1&&se!==this.view.element(ie)?this.setFocus([ie],G):this.setFocus([ne],G)}else{const ie=this.view.getScrollTop();this.view.setScrollTop(ie+this.view.renderHeight-this.view.elementHeight(ne)),this.view.getScrollTop()!==ie&&(this.setFocus([]),yield Object(it.n)(0),yield this.focusNextPage(G,Z))}}))}focusPreviousPage(G,Z){return __awaiter(this,void 0,void 0,(function*(){let ne;const ie=this.view.getScrollTop();ne=0===ie?this.view.indexAt(ie):this.view.indexAfter(ie-1);const se=this.view.element(ne),ce=this.getFocusedElements()[0];if(ce!==se){const ie=this.findNextIndex(ne,!1,Z);ie>-1&&ce!==this.view.element(ie)?this.setFocus([ie],G):this.setFocus([ne],G)}else{const ne=ie;this.view.setScrollTop(ie-this.view.renderHeight),this.view.getScrollTop()!==ne&&(this.setFocus([]),yield Object(it.n)(0),yield this.focusPreviousPage(G,Z))}}))}focusLast(G,Z){if(0===this.length)return;const ne=this.findPreviousIndex(this.length-1,!1,Z);ne>-1&&this.setFocus([ne],G)}focusFirst(G,Z){this.focusNth(0,G,Z)}focusNth(G,Z,ne){if(0===this.length)return;const ie=this.findNextIndex(G,!1,ne);ie>-1&&this.setFocus([ie],Z)}findNextIndex(G,Z=!1,ne){for(let ie=0;ie=this.length&&!Z)return-1;if(G%=this.length,!ne||ne(this.element(G)))return G;G++}return-1}findPreviousIndex(G,Z=!1,ne){for(let ie=0;iethis.view.element(G))}reveal(G,Z){if(G<0||G>=this.length)throw new ListError(this.user,"Invalid index "+G);const ne=this.view.getScrollTop(),ie=this.view.elementTop(G),ce=this.view.elementHeight(G);if(Object(se.i)(Z)){const G=ce-this.view.renderHeight;this.view.setScrollTop(G*Object(Re.b)(Z,0,1)+ie)}else{const G=ie+ce,Z=ne+this.view.renderHeight;ie=Z||(ie=Z&&ce>=this.view.renderHeight?this.view.setScrollTop(ie):G>=Z&&this.view.setScrollTop(G-this.view.renderHeight))}}getRelativeTop(G){if(G<0||G>=this.length)throw new ListError(this.user,"Invalid index "+G);const Z=this.view.getScrollTop(),ne=this.view.elementTop(G),ie=this.view.elementHeight(G);if(neZ+this.view.renderHeight)return null;const se=ie-this.view.renderHeight;return Math.abs((Z-ne)/se)}getHTMLElement(){return this.view.domNode}style(G){this.styleController.style(G)}toListEvent({indexes:G,browserEvent:Z}){return{indexes:G,elements:G.map(G=>this.view.element(G)),browserEvent:Z}}_onFocusChange(){const G=this.focus.get();this.view.domNode.classList.toggle("element-focused",G.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var G;const Z=this.focus.get();if(Z.length>0){let ne;(null===(G=this.accessibilityProvider)||void 0===G?void 0:G.getActiveDescendantId)&&(ne=this.accessibilityProvider.getActiveDescendantId(this.view.element(Z[0]))),this.view.domNode.setAttribute("aria-activedescendant",ne||this.view.getElementDomId(Z[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const G=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===G.length),this.view.domNode.classList.toggle("selection-single",1===G.length),this.view.domNode.classList.toggle("selection-multiple",G.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}__decorate([fe.a],listWidget_List.prototype,"onDidChangeFocus",null),__decorate([fe.a],listWidget_List.prototype,"onDidChangeSelection",null),__decorate([fe.a],listWidget_List.prototype,"onContextMenu",null),__decorate([fe.a],listWidget_List.prototype,"onKeyDown",null),__decorate([fe.a],listWidget_List.prototype,"onDidFocus",null)},448:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return Re})),ne.d(Z,"f",(function(){return ze})),ne.d(Z,"g",(function(){return $e})),ne.d(Z,"e",(function(){return Je})),ne.d(Z,"c",(function(){return it})),ne.d(Z,"a",(function(){return CodeActionItem})),ne.d(Z,"d",(function(){return getCodeActions}));var ie=ne(69),se=ne(103),ce=ne(51),fe=ne(10),me=ne(94),ge=ne(332),Ce=ne(12),Se=ne(80),Me=ne(35),ke=ne(187),xe=ne(241),De=ne(331),Ie=ne(98),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const Re="editor.action.codeAction",ze="editor.action.refactor",$e="editor.action.sourceAction",Je="editor.action.organizeImports",it="editor.action.fixAll";class CodeActionItem{constructor(G,Z){this.action=G,this.provider=Z}resolve(G){var Z;return __awaiter(this,void 0,void 0,(function*(){if((null===(Z=this.provider)||void 0===Z?void 0:Z.resolveCodeAction)&&!this.action.edit){let Z;try{Z=yield this.provider.resolveCodeAction(this.action,G)}catch(G){Object(ce.f)(G)}Z&&(this.action.edit=Z.edit)}return this}))}}class ManagedCodeActionSet extends fe.a{constructor(G,Z,ne){super(),this.documentation=Z,this._register(ne),this.allActions=[...G].sort(ManagedCodeActionSet.codeActionsComparator),this.validActions=this.allActions.filter(({action:G})=>!G.disabled)}static codeActionsComparator({action:G},{action:Z}){return G.isPreferred&&!Z.isPreferred?-1:!G.isPreferred&&Z.isPreferred?1:Object(ie.n)(G.diagnostics)?Object(ie.n)(Z.diagnostics)?G.diagnostics[0].message.localeCompare(Z.diagnostics[0].message):-1:Object(ie.n)(Z.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:G})=>!!G.kind&&xe.b.QuickFix.contains(new xe.b(G.kind))&&!!G.isPreferred)}}const ot={actions:[],documentation:void 0};function getCodeActions(G,Z,ne,se,me){var Ce;const Se=ne.filter||{},ke={only:null===(Ce=Se.include)||void 0===Ce?void 0:Ce.value,trigger:ne.type},De=new ge.d(G,me),Ie=function getCodeActionProviders(G,Z){return Me.a.all(G).filter(G=>!G.providedCodeActionKinds||G.providedCodeActionKinds.some(G=>Object(xe.d)(Z,new xe.b(G))))}(G,Se),Re=new fe.b,ze=Ie.map(ne=>__awaiter(this,void 0,void 0,(function*(){try{se.report(ne);const ie=yield ne.provideCodeActions(G,Z,ke,De.token);if(ie&&Re.add(ie),De.token.isCancellationRequested)return ot;const ce=((null==ie?void 0:ie.actions)||[]).filter(G=>G&&Object(xe.c)(Se,G)),fe=function getDocumentation(G,Z,ne){if(!G.documentation)return;const ie=G.documentation.map(G=>({kind:new xe.b(G.kind),command:G.command}));if(ne){let G;for(const Z of ie)Z.kind.contains(ne)&&(G?G.kind.contains(Z.kind)&&(G=Z):G=Z);if(G)return null==G?void 0:G.command}for(const G of Z)if(G.kind)for(const Z of ie)if(Z.kind.contains(new xe.b(G.kind)))return Z.command;return}(ne,ce,Se.include);return{actions:ce.map(G=>new CodeActionItem(G,ne)),documentation:fe}}catch(G){if(Object(ce.d)(G))throw G;return Object(ce.f)(G),ot}}))),$e=Me.a.onDidChange(()=>{const Z=Me.a.all(G);Object(ie.h)(Z,Ie)||De.cancel()});return Promise.all(ze).then(G=>{const Z=Object(ie.k)(G.map(G=>G.actions)),ne=Object(ie.e)(G.map(G=>G.documentation));return new ManagedCodeActionSet(Z,ne,Re)}).finally(()=>{$e.dispose(),De.dispose()})}Ie.a.registerCommand("_executeCodeActionProvider",(function(G,Z,ne,ie,fe){return __awaiter(this,void 0,void 0,(function*(){if(!(Z instanceof me.a))throw Object(ce.b)();const ge=G.get(ke.a).getModel(Z);if(!ge)throw Object(ce.b)();const Me=Se.a.isISelection(ne)?Se.a.liftSelection(ne):Ce.a.isIRange(ne)?ge.validateRange(ne):void 0;if(!Me)throw Object(ce.b)();const Ie="string"==typeof ie?new xe.b(ie):void 0,Re=yield getCodeActions(ge,Me,{type:1,filter:{includeSourceActions:!0,include:Ie}},De.b.None,se.a.None),ze=[],$e=Math.min(Re.validActions.length,"number"==typeof fe?fe:0);for(let G=0;G<$e;G++)ze.push(Re.validActions[G].resolve(se.a.None));try{return yield Promise.all(ze),Re.validActions.map(G=>G.action)}finally{setTimeout(()=>Re.dispose(),100)}}))}))},46:function(G,Z,ne){"use strict";(function(G,ie){var se;ne.d(Z,"b",(function(){return Re})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"j",(function(){return at})),ne.d(Z,"f",(function(){return st})),ne.d(Z,"d",(function(){return ct})),ne.d(Z,"g",(function(){return ut})),ne.d(Z,"i",(function(){return dt})),ne.d(Z,"c",(function(){return ht})),ne.d(Z,"l",(function(){return ft})),ne.d(Z,"k",(function(){return _t})),ne.d(Z,"a",(function(){return yt})),ne.d(Z,"e",(function(){return isLittleEndian}));let ce=!1,fe=!1,me=!1,ge=!1,Ce=!1,Se=!1,Me=!1,ke=void 0,xe="en",De=void 0,Ie=void 0;const Re="object"==typeof self?self:"object"==typeof G?G:{};let ze=void 0;void 0!==Re.vscode&&void 0!==Re.vscode.process?ze=Re.vscode.process:void 0!==ie&&(ze=ie);const $e="string"==typeof(null===(se=null==ze?void 0:ze.versions)||void 0===se?void 0:se.electron)&&"renderer"===ze.type,Je=$e&&(null==ze?void 0:ze.sandboxed),it="string"==typeof(()=>{if(Je)return"bypassHeatCheck";const G=null==ze?void 0:ze.env.VSCODE_BROWSER_CODE_LOADING;return"string"==typeof G?"none"===G||"code"===G||"bypassHeatCheck"===G||"bypassHeatCheckAndEagerCompile"===G?G:"bypassHeatCheck":void 0})();if("object"!=typeof navigator||$e)if("object"==typeof ze){ce="win32"===ze.platform,fe="darwin"===ze.platform,me="linux"===ze.platform,ge=me&&!!ze.env.SNAP&&!!ze.env.SNAP_REVISION,ke="en",xe="en";const G=ze.env.VSCODE_NLS_CONFIG;if(G)try{const Z=JSON.parse(G),ne=Z.availableLanguages["*"];ke=Z.locale,xe=ne||"en",De=Z._translationsConfigFile}catch(G){}Ce=!0}else console.error("Unable to resolve platform.");else Ie=navigator.userAgent,ce=Ie.indexOf("Windows")>=0,fe=Ie.indexOf("Macintosh")>=0,Me=(Ie.indexOf("Macintosh")>=0||Ie.indexOf("iPad")>=0||Ie.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,me=Ie.indexOf("Linux")>=0,Se=!0,ke=navigator.language,xe=ke;let ot=0;fe?ot=1:ce?ot=3:me&&(ot=2);const at=ce,st=fe,ct=me,ut=Ce,dt=Se,ht=Me,ft=Ie,_t=function defineSetImmediate(){if(Re.setImmediate)return Re.setImmediate.bind(Re);if("function"==typeof Re.postMessage&&!Re.importScripts){let G=[];Re.addEventListener("message",Z=>{if(Z.data&&Z.data.vscodeSetImmediateId)for(let ne=0,ie=G.length;ne{const ie=++Z;G.push({id:ie,callback:ne}),Re.postMessage({vscodeSetImmediateId:ie},"*")}}if("function"==typeof(null==ze?void 0:ze.nextTick))return ze.nextTick.bind(ze);const G=Promise.resolve();return Z=>G.then(Z)}(),yt=fe||Me?2:ce?1:3;let vt=!0,wt=!1;function isLittleEndian(){if(!wt){wt=!0;const G=new Uint8Array(2);G[0]=1,G[1]=2;const Z=new Uint16Array(G.buffer);vt=513===Z[0]}return vt}}).call(this,ne(123),ne(399))},465:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(577);class WordCharacterClassifier extends ie.a{constructor(G){super(0);for(let Z=0,ne=G.length;Z(Z.hasOwnProperty(ne)||(Z[ne]=G(ne)),Z[ne])}(G=>new WordCharacterClassifier(G))},466:function(G,Z,ne){"use strict";function clamp(G,Z,ne){return Math.min(Math.max(G,Z),ne)}ne.d(Z,"b",(function(){return clamp})),ne.d(Z,"a",(function(){return MovingAverage}));class MovingAverage{constructor(){this._n=1,this._val=0}update(G){return this._val=this._val+(G-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},467:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return SearchParams})),ne.d(Z,"d",(function(){return createFindMatch})),ne.d(Z,"c",(function(){return TextModelSearch})),ne.d(Z,"e",(function(){return isValidMatch})),ne.d(Z,"b",(function(){return Searcher}));var ie=ne(27),se=ne(465),ce=ne(34),fe=ne(12),me=ne(194);class SearchParams{constructor(G,Z,ne,ie){this.searchString=G,this.isRegex=Z,this.matchCase=ne,this.wordSeparators=ie}parseSearchRequest(){if(""===this.searchString)return null;let G;G=this.isRegex?function isMultilineRegexSource(G){if(!G||0===G.length)return!1;for(let Z=0,ne=G.length;Z=ne)break;const ie=G.charCodeAt(Z);if(110===ie||114===ie||87===ie||119===ie)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let Z=null;try{Z=ie.q(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:G,global:!0,unicode:!0})}catch(G){return null}if(!Z)return null;let ne=!this.isRegex&&!G;return ne&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(ne=this.matchCase),new SearchData(Z,this.wordSeparators?Object(se.a)(this.wordSeparators):null,ne?this.searchString:null)}}class SearchData{constructor(G,Z,ne){this.regex=G,this.wordSeparators=Z,this.simpleSearch=ne}}function createFindMatch(G,Z,ne){if(!ne)return new me.b(G,null);let ie=[];for(let G=0,ne=Z.length;G>0);Z[se]>=G?ie=se-1:Z[se+1]>=G?(ne=se,ie=se):ne=se+1}return ne+1}}class TextModelSearch{static findMatches(G,Z,ne,ie,se){const ce=Z.parseSearchRequest();return ce?ce.regex.multiline?this._doFindMatchesMultiline(G,ne,new Searcher(ce.wordSeparators,ce.regex),ie,se):this._doFindMatchesLineByLine(G,ne,ce,ie,se):[]}static _getMultilineMatchRange(G,Z,ne,ie,se,ce){let me,ge,Ce=0;if(ie?(Ce=ie.findLineFeedCountBeforeOffset(se),me=Z+se+Ce):me=Z+se,ie){let G=ie.findLineFeedCountBeforeOffset(se+ce.length)-Ce;ge=me+ce.length+G}else ge=me+ce.length;const Se=G.getPositionAt(me),Me=G.getPositionAt(ge);return new fe.a(Se.lineNumber,Se.column,Me.lineNumber,Me.column)}static _doFindMatchesMultiline(G,Z,ne,ie,se){const ce=G.getOffsetAt(Z.getStartPosition()),fe=G.getValueInRange(Z,1),me="\r\n"===G.getEOL()?new LineFeedCounter(fe):null,ge=[];let Ce,Se=0;for(ne.reset(0);Ce=ne.next(fe);)if(ge[Se++]=createFindMatch(this._getMultilineMatchRange(G,ce,fe,me,Ce.index,Ce[0]),Ce,ie),Se>=se)return ge;return ge}static _doFindMatchesLineByLine(G,Z,ne,ie,se){const ce=[];let fe=0;if(Z.startLineNumber===Z.endLineNumber){const me=G.getLineContent(Z.startLineNumber).substring(Z.startColumn-1,Z.endColumn-1);return fe=this._findMatchesInLine(ne,me,Z.startLineNumber,Z.startColumn-1,fe,ce,ie,se),ce}const me=G.getLineContent(Z.startLineNumber).substring(Z.startColumn-1);fe=this._findMatchesInLine(ne,me,Z.startLineNumber,Z.startColumn-1,fe,ce,ie,se);for(let me=Z.startLineNumber+1;me=Ce))return se;return se}const Me=new Searcher(G.wordSeparators,G.regex);let ke;Me.reset(0);do{if(ke=Me.next(Z),ke&&(ce[se++]=createFindMatch(new fe.a(ne,ke.index+1+ie,ne,ke.index+1+ke[0].length+ie),ke,ge),se>=Ce))return se}while(ke);return se}static findNextMatch(G,Z,ne,ie){const se=Z.parseSearchRequest();if(!se)return null;const ce=new Searcher(se.wordSeparators,se.regex);return se.regex.multiline?this._doFindNextMatchMultiline(G,ne,ce,ie):this._doFindNextMatchLineByLine(G,ne,ce,ie)}static _doFindNextMatchMultiline(G,Z,ne,ie){const se=new ce.a(Z.lineNumber,1),me=G.getOffsetAt(se),ge=G.getLineCount(),Ce=G.getValueInRange(new fe.a(se.lineNumber,se.column,ge,G.getLineMaxColumn(ge)),1),Se="\r\n"===G.getEOL()?new LineFeedCounter(Ce):null;ne.reset(Z.column-1);let Me=ne.next(Ce);return Me?createFindMatch(this._getMultilineMatchRange(G,me,Ce,Se,Me.index,Me[0]),Me,ie):1!==Z.lineNumber||1!==Z.column?this._doFindNextMatchMultiline(G,new ce.a(1,1),ne,ie):null}static _doFindNextMatchLineByLine(G,Z,ne,ie){const se=G.getLineCount(),ce=Z.lineNumber,fe=G.getLineContent(ce),me=this._findFirstMatchInLine(ne,fe,ce,Z.column,ie);if(me)return me;for(let Z=1;Z<=se;Z++){const fe=(ce+Z-1)%se,me=G.getLineContent(fe+1),ge=this._findFirstMatchInLine(ne,me,fe+1,1,ie);if(ge)return ge}return null}static _findFirstMatchInLine(G,Z,ne,ie,se){G.reset(ie-1);const ce=G.next(Z);return ce?createFindMatch(new fe.a(ne,ce.index+1,ne,ce.index+1+ce[0].length),ce,se):null}static findPreviousMatch(G,Z,ne,ie){const se=Z.parseSearchRequest();if(!se)return null;const ce=new Searcher(se.wordSeparators,se.regex);return se.regex.multiline?this._doFindPreviousMatchMultiline(G,ne,ce,ie):this._doFindPreviousMatchLineByLine(G,ne,ce,ie)}static _doFindPreviousMatchMultiline(G,Z,ne,ie){const se=this._doFindMatchesMultiline(G,new fe.a(1,1,Z.lineNumber,Z.column),ne,ie,9990);if(se.length>0)return se[se.length-1];const me=G.getLineCount();return Z.lineNumber!==me||Z.column!==G.getLineMaxColumn(me)?this._doFindPreviousMatchMultiline(G,new ce.a(me,G.getLineMaxColumn(me)),ne,ie):null}static _doFindPreviousMatchLineByLine(G,Z,ne,ie){const se=G.getLineCount(),ce=Z.lineNumber,fe=G.getLineContent(ce).substring(0,Z.column-1),me=this._findLastMatchInLine(ne,fe,ce,ie);if(me)return me;for(let Z=1;Z<=se;Z++){const fe=(se+ce-Z-1)%se,me=G.getLineContent(fe+1),ge=this._findLastMatchInLine(ne,me,fe+1,ie);if(ge)return ge}return null}static _findLastMatchInLine(G,Z,ne,ie){let se,ce=null;for(G.reset(0);se=G.next(Z);)ce=createFindMatch(new fe.a(ne,se.index+1,ne,se.index+1+se[0].length),se,ie);return ce}}function isValidMatch(G,Z,ne,ie,se){return function leftIsWordBounday(G,Z,ne,ie,se){if(0===ie)return!0;const ce=Z.charCodeAt(ie-1);if(0!==G.get(ce))return!0;if(13===ce||10===ce)return!0;if(se>0){const ne=Z.charCodeAt(ie);if(0!==G.get(ne))return!0}return!1}(G,Z,0,ie,se)&&function rightIsWordBounday(G,Z,ne,ie,se){if(ie+se===ne)return!0;const ce=Z.charCodeAt(ie+se);if(0!==G.get(ce))return!0;if(13===ce||10===ce)return!0;if(se>0){const ne=Z.charCodeAt(ie+se-1);if(0!==G.get(ne))return!0}return!1}(G,Z,ne,ie,se)}class Searcher{constructor(G,Z){this._wordSeparators=G,this._searchRegex=Z,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(G){this._searchRegex.lastIndex=G,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(G){const Z=G.length;let ne;do{if(this._prevMatchStartIndex+this._prevMatchLength===Z)return null;if(ne=this._searchRegex.exec(G),!ne)return null;const se=ne.index,ce=ne[0].length;if(se===this._prevMatchStartIndex&&ce===this._prevMatchLength){if(0===ce){ie.A(G,Z,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=se,this._prevMatchLength=ce,!this._wordSeparators||isValidMatch(this._wordSeparators,G,Z,se,ce))return ne}while(ne);return null}}},490:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=8)}([function(G,Z){G.exports=ne(0)},,,,,function(G,Z){G.exports=ne(2)},function(G,Z){G.exports=ne(3)},,function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},491:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=21)}({0:function(G,Z){G.exports=ne(0)},21:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IconContext",(function(){return Se})),ne.d(Z,"IconProvider",(function(){return Me}));var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(8);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},493:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ce}));var ie=ne(60),se=ne(581);ne.d(Z,"b",(function(){return se.a}));const ce=Object(ie.c)("quickInputService")},495:function(G,Z,ne){"use strict";var ie;ne.d(Z,"a",(function(){return ie})),function(G){G.DARK="dark",G.LIGHT="light",G.HIGH_CONTRAST="hc"}(ie||(ie={}))},496:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return escapeIcons})),ne.d(Z,"b",(function(){return markdownEscapeEscapedIcons})),ne.d(Z,"e",(function(){return stripIcons})),ne.d(Z,"d",(function(){return parseLabelWithIcons})),ne.d(Z,"c",(function(){return matchesFuzzyIconAware}));var ie=ne(67),se=ne(253),ce=ne(27);const fe=new RegExp(`\\$\\(${ie.a.iconNameExpression}(?:${ie.a.iconModifierExpression})?\\)`,"g"),me=new RegExp("(\\\\)?"+fe.source,"g");function escapeIcons(G){return G.replace(me,(G,Z)=>Z?G:"\\"+G)}const ge=new RegExp("\\\\"+fe.source,"g");function markdownEscapeEscapedIcons(G){return G.replace(ge,G=>"\\"+G)}const Ce=new RegExp(`(\\s)?(\\\\)?${fe.source}(\\s)?`,"g");function stripIcons(G){return-1===G.indexOf("$(")?G:G.replace(Ce,(G,Z,ne,ie)=>ne?G:Z||ie||"")}function parseLabelWithIcons(G){const Z=G.indexOf("$(");return-1===Z?{text:G}:function doParseLabelWithIcons(G,Z){const ne=[];let ie="";function appendChars(G){if(G){ie+=G;for(const Z of G)ne.push(ge)}}let se,ce,fe=-1,me="",ge=0,Ce=Z;const Se=G.length;appendChars(G.substr(0,Z));for(;Ce0&&G.getLanguageId(fe-1)===se;)fe--;return new ScopedLineTokens(G,se,fe,ce+1,G.getStartOffset(fe),G.getEndOffset(ce))}ne.d(Z,"a",(function(){return createScopedLineTokens})),ne.d(Z,"b",(function(){return ignoreBracketsInToken}));class ScopedLineTokens{constructor(G,Z,ne,ie,se,ce){this._scopedLineTokensBrand=void 0,this._actual=G,this.languageId=Z,this._firstTokenIndex=ne,this._lastTokenIndex=ie,this.firstCharOffset=se,this._lastCharOffset=ce}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(G){return this._actual.getLineContent().substring(0,this.firstCharOffset+G)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(G){return this._actual.findTokenIndexAtOffset(G+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(G){return this._actual.getStandardTokenType(G+this._firstTokenIndex)}}function ignoreBracketsInToken(G){return 0!=(7&G)}},499:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"AutoScrollActivator",(function(){return ut})),ne.d(Z,"DndContext",(function(){return Et})),ne.d(Z,"DragOverlay",(function(){return Ft})),ne.d(Z,"KeyboardCode",(function(){return Je})),ne.d(Z,"KeyboardSensor",(function(){return KeyboardSensor})),ne.d(Z,"MeasuringFrequency",(function(){return _t})),ne.d(Z,"MeasuringStrategy",(function(){return ft})),ne.d(Z,"MouseSensor",(function(){return MouseSensor})),ne.d(Z,"PointerSensor",(function(){return PointerSensor})),ne.d(Z,"TouchSensor",(function(){return TouchSensor})),ne.d(Z,"TraversalOrder",(function(){return dt})),ne.d(Z,"applyModifiers",(function(){return applyModifiers})),ne.d(Z,"closestCenter",(function(){return closestCenter})),ne.d(Z,"closestCorners",(function(){return closestCorners})),ne.d(Z,"defaultAnnouncements",(function(){return Se})),ne.d(Z,"defaultCoordinates",(function(){return ke})),ne.d(Z,"defaultDropAnimation",(function(){return Wt})),ne.d(Z,"defaultDropAnimationSideEffects",(function(){return defaultDropAnimationSideEffects})),ne.d(Z,"defaultScreenReaderInstructions",(function(){return Ce})),ne.d(Z,"getClientRect",(function(){return getClientRect})),ne.d(Z,"getFirstCollision",(function(){return getFirstCollision})),ne.d(Z,"getScrollableAncestors",(function(){return getScrollableAncestors})),ne.d(Z,"pointerWithin",(function(){return pointerWithin})),ne.d(Z,"rectIntersection",(function(){return rectIntersection})),ne.d(Z,"useDndContext",(function(){return useDndContext})),ne.d(Z,"useDndMonitor",(function(){return useDndMonitor})),ne.d(Z,"useDraggable",(function(){return useDraggable})),ne.d(Z,"useDroppable",(function(){return useDroppable})),ne.d(Z,"useSensor",(function(){return useSensor})),ne.d(Z,"useSensors",(function(){return useSensors}));var ie=ne(0),se=ne.n(ie),ce=ne(36),fe=ne(108),me=ne(1006);const ge=Object(ie.createContext)(null);function useDndMonitor(G){const Z=Object(ie.useContext)(ge);Object(ie.useEffect)(()=>{if(!Z)throw new Error("useDndMonitor must be used within a children of ");return Z(G)},[G,Z])}const Ce={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Se={onDragStart(G){let{active:Z}=G;return"Picked up draggable item "+Z.id+"."},onDragOver(G){let{active:Z,over:ne}=G;return ne?"Draggable item "+Z.id+" was moved over droppable area "+ne.id+".":"Draggable item "+Z.id+" is no longer over a droppable area."},onDragEnd(G){let{active:Z,over:ne}=G;return ne?"Draggable item "+Z.id+" was dropped over droppable area "+ne.id:"Draggable item "+Z.id+" was dropped."},onDragCancel(G){let{active:Z}=G;return"Dragging was cancelled. Draggable item "+Z.id+" was dropped."}};function Accessibility(G){let{announcements:Z=Se,container:ne,hiddenTextDescribedById:ge,screenReaderInstructions:Me=Ce}=G;const{announce:ke,announcement:xe}=Object(me.c)(),De=Object(fe.useUniqueId)("DndLiveRegion"),[Ie,Re]=Object(ie.useState)(!1);if(Object(ie.useEffect)(()=>{Re(!0)},[]),useDndMonitor(Object(ie.useMemo)(()=>({onDragStart(G){let{active:ne}=G;ke(Z.onDragStart({active:ne}))},onDragMove(G){let{active:ne,over:ie}=G;Z.onDragMove&&ke(Z.onDragMove({active:ne,over:ie}))},onDragOver(G){let{active:ne,over:ie}=G;ke(Z.onDragOver({active:ne,over:ie}))},onDragEnd(G){let{active:ne,over:ie}=G;ke(Z.onDragEnd({active:ne,over:ie}))},onDragCancel(G){let{active:ne,over:ie}=G;ke(Z.onDragCancel({active:ne,over:ie}))}}),[ke,Z])),!Ie)return null;const ze=se.a.createElement(se.a.Fragment,null,se.a.createElement(me.a,{id:ge,value:Me.draggable}),se.a.createElement(me.b,{id:De,announcement:xe}));return ne?Object(ce.createPortal)(ze,ne):ze}var Me;function noop(){}function useSensor(G,Z){return Object(ie.useMemo)(()=>({sensor:G,options:null!=Z?Z:{}}),[G,Z])}function useSensors(){for(var G=arguments.length,Z=new Array(G),ne=0;ne[...Z].filter(G=>null!=G),[...Z])}!function(G){G.DragStart="dragStart",G.DragMove="dragMove",G.DragEnd="dragEnd",G.DragCancel="dragCancel",G.DragOver="dragOver",G.RegisterDroppable="registerDroppable",G.SetDroppableDisabled="setDroppableDisabled",G.UnregisterDroppable="unregisterDroppable"}(Me||(Me={}));const ke=Object.freeze({x:0,y:0});function distanceBetween(G,Z){return Math.sqrt(Math.pow(G.x-Z.x,2)+Math.pow(G.y-Z.y,2))}function getRelativeTransformOrigin(G,Z){const ne=Object(fe.getEventCoordinates)(G);if(!ne)return"0 0";return(ne.x-Z.left)/Z.width*100+"% "+(ne.y-Z.top)/Z.height*100+"%"}function sortCollisionsAsc(G,Z){let{data:{value:ne}}=G,{data:{value:ie}}=Z;return ne-ie}function sortCollisionsDesc(G,Z){let{data:{value:ne}}=G,{data:{value:ie}}=Z;return ie-ne}function cornersOfRectangle(G){let{left:Z,top:ne,height:ie,width:se}=G;return[{x:Z,y:ne},{x:Z+se,y:ne},{x:Z,y:ne+ie},{x:Z+se,y:ne+ie}]}function getFirstCollision(G,Z){if(!G||0===G.length)return null;const[ne]=G;return Z?ne[Z]:ne}function centerOfRectangle(G,Z,ne){return void 0===Z&&(Z=G.left),void 0===ne&&(ne=G.top),{x:Z+.5*G.width,y:ne+.5*G.height}}const closestCenter=G=>{let{collisionRect:Z,droppableRects:ne,droppableContainers:ie}=G;const se=centerOfRectangle(Z,Z.left,Z.top),ce=[];for(const G of ie){const{id:Z}=G,ie=ne.get(Z);if(ie){const ne=distanceBetween(centerOfRectangle(ie),se);ce.push({id:Z,data:{droppableContainer:G,value:ne}})}}return ce.sort(sortCollisionsAsc)},closestCorners=G=>{let{collisionRect:Z,droppableRects:ne,droppableContainers:ie}=G;const se=cornersOfRectangle(Z),ce=[];for(const G of ie){const{id:Z}=G,ie=ne.get(Z);if(ie){const ne=cornersOfRectangle(ie),fe=se.reduce((G,Z,ie)=>G+distanceBetween(ne[ie],Z),0),me=Number((fe/4).toFixed(4));ce.push({id:Z,data:{droppableContainer:G,value:me}})}}return ce.sort(sortCollisionsAsc)};function getIntersectionRatio(G,Z){const ne=Math.max(Z.top,G.top),ie=Math.max(Z.left,G.left),se=Math.min(Z.left+Z.width,G.left+G.width),ce=Math.min(Z.top+Z.height,G.top+G.height),fe=se-ie,me=ce-ne;if(ie{let{collisionRect:Z,droppableRects:ne,droppableContainers:ie}=G;const se=[];for(const G of ie){const{id:ie}=G,ce=ne.get(ie);if(ce){const ne=getIntersectionRatio(ce,Z);ne>0&&se.push({id:ie,data:{droppableContainer:G,value:ne}})}}return se.sort(sortCollisionsDesc)};function isPointWithinRect(G,Z){const{top:ne,left:ie,bottom:se,right:ce}=Z;return ne<=G.y&&G.y<=se&&ie<=G.x&&G.x<=ce}const pointerWithin=G=>{let{droppableContainers:Z,droppableRects:ne,pointerCoordinates:ie}=G;if(!ie)return[];const se=[];for(const G of Z){const{id:Z}=G,ce=ne.get(Z);if(ce&&isPointWithinRect(ie,ce)){const ne=cornersOfRectangle(ce).reduce((G,Z)=>G+distanceBetween(ie,Z),0),fe=Number((ne/4).toFixed(4));se.push({id:Z,data:{droppableContainer:G,value:fe}})}}return se.sort(sortCollisionsAsc)};function getRectDelta(G,Z){return G&&Z?{x:G.left-Z.left,y:G.top-Z.top}:ke}function createRectAdjustmentFn(G){return function adjustClientRect(Z){for(var ne=arguments.length,ie=new Array(ne>1?ne-1:0),se=1;se({...Z,top:Z.top+G*ne.y,bottom:Z.bottom+G*ne.y,left:Z.left+G*ne.x,right:Z.right+G*ne.x}),{...Z})}}const xe=createRectAdjustmentFn(1);function parseTransform(G){if(G.startsWith("matrix3d(")){const Z=G.slice(9,-1).split(/, /);return{x:+Z[12],y:+Z[13],scaleX:+Z[0],scaleY:+Z[5]}}if(G.startsWith("matrix(")){const Z=G.slice(7,-1).split(/, /);return{x:+Z[4],y:+Z[5],scaleX:+Z[0],scaleY:+Z[3]}}return null}const De={ignoreTransform:!1};function getClientRect(G,Z){void 0===Z&&(Z=De);let ne=G.getBoundingClientRect();if(Z.ignoreTransform){const{transform:Z,transformOrigin:ie}=Object(fe.getWindow)(G).getComputedStyle(G);Z&&(ne=function inverseTransform(G,Z,ne){const ie=parseTransform(Z);if(!ie)return G;const{scaleX:se,scaleY:ce,x:fe,y:me}=ie,ge=G.left-fe-(1-se)*parseFloat(ne),Ce=G.top-me-(1-ce)*parseFloat(ne.slice(ne.indexOf(" ")+1)),Se=se?G.width/se:G.width,Me=ce?G.height/ce:G.height;return{width:Se,height:Me,top:Ce,right:ge+Se,bottom:Ce+Me,left:ge}}(ne,Z,ie))}const{top:ie,left:se,width:ce,height:me,bottom:ge,right:Ce}=ne;return{top:ie,left:se,width:ce,height:me,bottom:ge,right:Ce}}function getTransformAgnosticClientRect(G){return getClientRect(G,{ignoreTransform:!0})}function getScrollableAncestors(G,Z){const ne=[];return G?function findScrollableAncestors(ie){if(null!=Z&&ne.length>=Z)return ne;if(!ie)return ne;if(Object(fe.isDocument)(ie)&&null!=ie.scrollingElement&&!ne.includes(ie.scrollingElement))return ne.push(ie.scrollingElement),ne;if(!Object(fe.isHTMLElement)(ie)||Object(fe.isSVGElement)(ie))return ne;if(ne.includes(ie))return ne;const se=Object(fe.getWindow)(G).getComputedStyle(ie);return ie!==G&&function isScrollable(G,Z){void 0===Z&&(Z=Object(fe.getWindow)(G).getComputedStyle(G));const ne=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(G=>{const ie=Z[G];return"string"==typeof ie&&ne.test(ie)})}(ie,se)&&ne.push(ie),function isFixed(G,Z){return void 0===Z&&(Z=Object(fe.getWindow)(G).getComputedStyle(G)),"fixed"===Z.position}(ie,se)?ne:findScrollableAncestors(ie.parentNode)}(G):ne}function getFirstScrollableAncestor(G){const[Z]=getScrollableAncestors(G,1);return null!=Z?Z:null}function getScrollableElement(G){return fe.canUseDOM&&G?Object(fe.isWindow)(G)?G:Object(fe.isNode)(G)?Object(fe.isDocument)(G)||G===Object(fe.getOwnerDocument)(G).scrollingElement?window:Object(fe.isHTMLElement)(G)?G:null:null:null}function getScrollXCoordinate(G){return Object(fe.isWindow)(G)?G.scrollX:G.scrollLeft}function getScrollYCoordinate(G){return Object(fe.isWindow)(G)?G.scrollY:G.scrollTop}function getScrollCoordinates(G){return{x:getScrollXCoordinate(G),y:getScrollYCoordinate(G)}}var Ie;function isDocumentScrollingElement(G){return!(!fe.canUseDOM||!G)&&G===document.scrollingElement}function getScrollPosition(G){const Z={x:0,y:0},ne=isDocumentScrollingElement(G)?{height:window.innerHeight,width:window.innerWidth}:{height:G.clientHeight,width:G.clientWidth},ie={x:G.scrollWidth-ne.width,y:G.scrollHeight-ne.height};return{isTop:G.scrollTop<=Z.y,isLeft:G.scrollLeft<=Z.x,isBottom:G.scrollTop>=ie.y,isRight:G.scrollLeft>=ie.x,maxScroll:ie,minScroll:Z}}!function(G){G[G.Forward=1]="Forward",G[G.Backward=-1]="Backward"}(Ie||(Ie={}));const Re={x:.2,y:.2};function getScrollDirectionAndSpeed(G,Z,ne,ie,se){let{top:ce,left:fe,right:me,bottom:ge}=ne;void 0===ie&&(ie=10),void 0===se&&(se=Re);const{isTop:Ce,isBottom:Se,isLeft:Me,isRight:ke}=getScrollPosition(G),xe={x:0,y:0},De={x:0,y:0},ze=Z.height*se.y,$e=Z.width*se.x;return!Ce&&ce<=Z.top+ze?(xe.y=Ie.Backward,De.y=ie*Math.abs((Z.top+ze-ce)/ze)):!Se&&ge>=Z.bottom-ze&&(xe.y=Ie.Forward,De.y=ie*Math.abs((Z.bottom-ze-ge)/ze)),!ke&&me>=Z.right-$e?(xe.x=Ie.Forward,De.x=ie*Math.abs((Z.right-$e-me)/$e)):!Me&&fe<=Z.left+$e&&(xe.x=Ie.Backward,De.x=ie*Math.abs((Z.left+$e-fe)/$e)),{direction:xe,speed:De}}function getScrollElementRect(G){if(G===document.scrollingElement){const{innerWidth:G,innerHeight:Z}=window;return{top:0,left:0,right:G,bottom:Z,width:G,height:Z}}const{top:Z,left:ne,right:ie,bottom:se}=G.getBoundingClientRect();return{top:Z,left:ne,right:ie,bottom:se,width:G.clientWidth,height:G.clientHeight}}function getScrollOffsets(G){return G.reduce((G,Z)=>Object(fe.add)(G,getScrollCoordinates(Z)),ke)}function scrollIntoViewIfNeeded(G,Z){if(void 0===Z&&(Z=getClientRect),!G)return;const{top:ne,left:ie,bottom:se,right:ce}=Z(G);getFirstScrollableAncestor(G)&&(se<=0||ce<=0||ne>=window.innerHeight||ie>=window.innerWidth)&&G.scrollIntoView({block:"center",inline:"center"})}const ze=[["x",["left","right"],function getScrollXOffset(G){return G.reduce((G,Z)=>G+getScrollXCoordinate(Z),0)}],["y",["top","bottom"],function getScrollYOffset(G){return G.reduce((G,Z)=>G+getScrollYCoordinate(Z),0)}]];class Rect{constructor(G,Z){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const ne=getScrollableAncestors(Z),ie=getScrollOffsets(ne);this.rect={...G},this.width=G.width,this.height=G.height;for(const[G,Z,se]of ze)for(const ce of Z)Object.defineProperty(this,ce,{get:()=>{const Z=se(ne),fe=ie[G]-Z;return this.rect[ce]+fe},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Listeners{constructor(G){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(G=>{var Z;return null==(Z=this.target)?void 0:Z.removeEventListener(...G)})},this.target=G}add(G,Z,ne){var ie;null==(ie=this.target)||ie.addEventListener(G,Z,ne),this.listeners.push([G,Z,ne])}}function hasExceededDistance(G,Z){const ne=Math.abs(G.x),ie=Math.abs(G.y);return"number"==typeof Z?Math.sqrt(ne**2+ie**2)>Z:"x"in Z&&"y"in Z?ne>Z.x&&ie>Z.y:"x"in Z?ne>Z.x:"y"in Z&&ie>Z.y}var $e,Je;function preventDefault(G){G.preventDefault()}function stopPropagation(G){G.stopPropagation()}!function(G){G.Click="click",G.DragStart="dragstart",G.Keydown="keydown",G.ContextMenu="contextmenu",G.Resize="resize",G.SelectionChange="selectionchange",G.VisibilityChange="visibilitychange"}($e||($e={})),function(G){G.Space="Space",G.Down="ArrowDown",G.Right="ArrowRight",G.Left="ArrowLeft",G.Up="ArrowUp",G.Esc="Escape",G.Enter="Enter"}(Je||(Je={}));const it={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter]},defaultKeyboardCoordinateGetter=(G,Z)=>{let{currentCoordinates:ne}=Z;switch(G.code){case Je.Right:return{...ne,x:ne.x+25};case Je.Left:return{...ne,x:ne.x-25};case Je.Down:return{...ne,y:ne.y+25};case Je.Up:return{...ne,y:ne.y-25}}};class KeyboardSensor{constructor(G){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=G;const{event:{target:Z}}=G;this.props=G,this.listeners=new Listeners(Object(fe.getOwnerDocument)(Z)),this.windowListeners=new Listeners(Object(fe.getWindow)(Z)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add($e.Resize,this.handleCancel),this.windowListeners.add($e.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add($e.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:G,onStart:Z}=this.props,ne=G.node.current;ne&&scrollIntoViewIfNeeded(ne),Z(ke)}handleKeyDown(G){if(Object(fe.isKeyboardEvent)(G)){const{active:Z,context:ne,options:ie}=this.props,{keyboardCodes:se=it,coordinateGetter:ce=defaultKeyboardCoordinateGetter,scrollBehavior:me="smooth"}=ie,{code:ge}=G;if(se.end.includes(ge))return void this.handleEnd(G);if(se.cancel.includes(ge))return void this.handleCancel(G);const{collisionRect:Ce}=ne.current,Se=Ce?{x:Ce.left,y:Ce.top}:ke;this.referenceCoordinates||(this.referenceCoordinates=Se);const Me=ce(G,{active:Z,context:ne.current,currentCoordinates:Se});if(Me){const Z=Object(fe.subtract)(Me,Se),ie={x:0,y:0},{scrollableAncestors:se}=ne.current;for(const ne of se){const se=G.code,{isTop:ce,isRight:fe,isLeft:ge,isBottom:Ce,maxScroll:Se,minScroll:ke}=getScrollPosition(ne),xe=getScrollElementRect(ne),De={x:Math.min(se===Je.Right?xe.right-xe.width/2:xe.right,Math.max(se===Je.Right?xe.left:xe.left+xe.width/2,Me.x)),y:Math.min(se===Je.Down?xe.bottom-xe.height/2:xe.bottom,Math.max(se===Je.Down?xe.top:xe.top+xe.height/2,Me.y))},Ie=se===Je.Right&&!fe||se===Je.Left&&!ge,Re=se===Je.Down&&!Ce||se===Je.Up&&!ce;if(Ie&&De.x!==Me.x){const G=ne.scrollLeft+Z.x,ce=se===Je.Right&&G<=Se.x||se===Je.Left&&G>=ke.x;if(ce&&!Z.y)return void ne.scrollTo({left:G,behavior:me});ie.x=ce?ne.scrollLeft-G:se===Je.Right?ne.scrollLeft-Se.x:ne.scrollLeft-ke.x,ie.x&&ne.scrollBy({left:-ie.x,behavior:me});break}if(Re&&De.y!==Me.y){const G=ne.scrollTop+Z.y,ce=se===Je.Down&&G<=Se.y||se===Je.Up&&G>=ke.y;if(ce&&!Z.x)return void ne.scrollTo({top:G,behavior:me});ie.y=ce?ne.scrollTop-G:se===Je.Down?ne.scrollTop-Se.y:ne.scrollTop-ke.y,ie.y&&ne.scrollBy({top:-ie.y,behavior:me});break}}this.handleMove(G,Object(fe.add)(Object(fe.subtract)(Me,this.referenceCoordinates),ie))}}}handleMove(G,Z){const{onMove:ne}=this.props;G.preventDefault(),ne(Z)}handleEnd(G){const{onEnd:Z}=this.props;G.preventDefault(),this.detach(),Z()}handleCancel(G){const{onCancel:Z}=this.props;G.preventDefault(),this.detach(),Z()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function isDistanceConstraint(G){return Boolean(G&&"distance"in G)}function isDelayConstraint(G){return Boolean(G&&"delay"in G)}KeyboardSensor.activators=[{eventName:"onKeyDown",handler:(G,Z,ne)=>{let{keyboardCodes:ie=it,onActivation:se}=Z,{active:ce}=ne;const{code:fe}=G.nativeEvent;if(ie.start.includes(fe)){const Z=ce.activatorNode.current;return(!Z||G.target===Z)&&(G.preventDefault(),null==se||se({event:G.nativeEvent}),!0)}return!1}}];class AbstractPointerSensor{constructor(G,Z,ne){var ie;void 0===ne&&(ne=function getEventListenerTarget(G){const{EventTarget:Z}=Object(fe.getWindow)(G);return G instanceof Z?G:Object(fe.getOwnerDocument)(G)}(G.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=G,this.events=Z;const{event:se}=G,{target:ce}=se;this.props=G,this.events=Z,this.document=Object(fe.getOwnerDocument)(ce),this.documentListeners=new Listeners(this.document),this.listeners=new Listeners(ne),this.windowListeners=new Listeners(Object(fe.getWindow)(ce)),this.initialCoordinates=null!=(ie=Object(fe.getEventCoordinates)(se))?ie:ke,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:G,props:{options:{activationConstraint:Z}}}=this;if(this.listeners.add(G.move.name,this.handleMove,{passive:!1}),this.listeners.add(G.end.name,this.handleEnd),this.windowListeners.add($e.Resize,this.handleCancel),this.windowListeners.add($e.DragStart,preventDefault),this.windowListeners.add($e.VisibilityChange,this.handleCancel),this.windowListeners.add($e.ContextMenu,preventDefault),this.documentListeners.add($e.Keydown,this.handleKeydown),Z){if(isDistanceConstraint(Z))return;if(isDelayConstraint(Z))return void(this.timeoutId=setTimeout(this.handleStart,Z.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:G}=this,{onStart:Z}=this.props;G&&(this.activated=!0,this.documentListeners.add($e.Click,stopPropagation,{capture:!0}),this.removeTextSelection(),this.documentListeners.add($e.SelectionChange,this.removeTextSelection),Z(G))}handleMove(G){var Z;const{activated:ne,initialCoordinates:ie,props:se}=this,{onMove:ce,options:{activationConstraint:me}}=se;if(!ie)return;const ge=null!=(Z=Object(fe.getEventCoordinates)(G))?Z:ke,Ce=Object(fe.subtract)(ie,ge);if(!ne&&me){if(isDelayConstraint(me))return hasExceededDistance(Ce,me.tolerance)?this.handleCancel():void 0;if(isDistanceConstraint(me))return null!=me.tolerance&&hasExceededDistance(Ce,me.tolerance)?this.handleCancel():hasExceededDistance(Ce,me.distance)?this.handleStart():void 0}G.cancelable&&G.preventDefault(),ce(ge)}handleEnd(){const{onEnd:G}=this.props;this.detach(),G()}handleCancel(){const{onCancel:G}=this.props;this.detach(),G()}handleKeydown(G){G.code===Je.Esc&&this.handleCancel()}removeTextSelection(){var G;null==(G=this.document.getSelection())||G.removeAllRanges()}}const ot={move:{name:"pointermove"},end:{name:"pointerup"}};class PointerSensor extends AbstractPointerSensor{constructor(G){const{event:Z}=G,ne=Object(fe.getOwnerDocument)(Z.target);super(G,ot,ne)}}PointerSensor.activators=[{eventName:"onPointerDown",handler:(G,Z)=>{let{nativeEvent:ne}=G,{onActivation:ie}=Z;return!(!ne.isPrimary||0!==ne.button)&&(null==ie||ie({event:ne}),!0)}}];const at={move:{name:"mousemove"},end:{name:"mouseup"}};var st;!function(G){G[G.RightClick=2]="RightClick"}(st||(st={}));class MouseSensor extends AbstractPointerSensor{constructor(G){super(G,at,Object(fe.getOwnerDocument)(G.event.target))}}MouseSensor.activators=[{eventName:"onMouseDown",handler:(G,Z)=>{let{nativeEvent:ne}=G,{onActivation:ie}=Z;return ne.button!==st.RightClick&&(null==ie||ie({event:ne}),!0)}}];const ct={move:{name:"touchmove"},end:{name:"touchend"}};class TouchSensor extends AbstractPointerSensor{constructor(G){super(G,ct)}static setup(){return window.addEventListener(ct.move.name,noop,{capture:!1,passive:!1}),function teardown(){window.removeEventListener(ct.move.name,noop)};function noop(){}}}var ut,dt;function useAutoScroller(G){let{acceleration:Z,activator:ne=ut.Pointer,canScroll:se,draggingRect:ce,enabled:me,interval:ge=5,order:Ce=dt.TreeOrder,pointerCoordinates:Se,scrollableAncestors:Me,scrollableAncestorRects:ke,delta:xe,threshold:De}=G;const Re=function useScrollIntent(G){let{delta:Z,disabled:ne}=G;const ie=Object(fe.usePrevious)(Z);return Object(fe.useLazyMemo)(G=>{if(ne||!ie||!G)return ht;const se=Math.sign(Z.x-ie.x),ce=Math.sign(Z.y-ie.y);return{x:{[Ie.Backward]:G.x[Ie.Backward]||-1===se,[Ie.Forward]:G.x[Ie.Forward]||1===se},y:{[Ie.Backward]:G.y[Ie.Backward]||-1===ce,[Ie.Forward]:G.y[Ie.Forward]||1===ce}}},[ne,Z,ie])}({delta:xe,disabled:!me}),[ze,$e]=Object(fe.useInterval)(),Je=Object(ie.useRef)({x:0,y:0}),it=Object(ie.useRef)({x:0,y:0}),ot=Object(ie.useMemo)(()=>{switch(ne){case ut.Pointer:return Se?{top:Se.y,bottom:Se.y,left:Se.x,right:Se.x}:null;case ut.DraggableRect:return ce}},[ne,ce,Se]),at=Object(ie.useRef)(null),st=Object(ie.useCallback)(()=>{const G=at.current;if(!G)return;const Z=Je.current.x*it.current.x,ne=Je.current.y*it.current.y;G.scrollBy(Z,ne)},[]),ct=Object(ie.useMemo)(()=>Ce===dt.TreeOrder?[...Me].reverse():Me,[Ce,Me]);Object(ie.useEffect)(()=>{if(me&&Me.length&&ot){for(const G of ct){if(!1===(null==se?void 0:se(G)))continue;const ne=Me.indexOf(G),ie=ke[ne];if(!ie)continue;const{direction:ce,speed:fe}=getScrollDirectionAndSpeed(G,ie,ot,Z,De);for(const G of["x","y"])Re[G][ce[G]]||(fe[G]=0,ce[G]=0);if(fe.x>0||fe.y>0)return $e(),at.current=G,ze(st,ge),Je.current=fe,void(it.current=ce)}Je.current={x:0,y:0},it.current={x:0,y:0},$e()}else $e()},[Z,st,se,$e,me,ge,JSON.stringify(ot),JSON.stringify(Re),ze,Me,ct,ke,JSON.stringify(De)])}TouchSensor.activators=[{eventName:"onTouchStart",handler:(G,Z)=>{let{nativeEvent:ne}=G,{onActivation:ie}=Z;const{touches:se}=ne;return!(se.length>1)&&(null==ie||ie({event:ne}),!0)}}],function(G){G[G.Pointer=0]="Pointer",G[G.DraggableRect=1]="DraggableRect"}(ut||(ut={})),function(G){G[G.TreeOrder=0]="TreeOrder",G[G.ReversedTreeOrder=1]="ReversedTreeOrder"}(dt||(dt={}));const ht={x:{[Ie.Backward]:!1,[Ie.Forward]:!1},y:{[Ie.Backward]:!1,[Ie.Forward]:!1}};var ft,_t;!function(G){G[G.Always=0]="Always",G[G.BeforeDragging=1]="BeforeDragging",G[G.WhileDragging=2]="WhileDragging"}(ft||(ft={})),function(G){G.Optimized="optimized"}(_t||(_t={}));const yt=new Map;function useInitialValue(G,Z){return Object(fe.useLazyMemo)(ne=>G?ne||("function"==typeof Z?Z(G):G):null,[Z,G])}function useResizeObserver(G){let{callback:Z,disabled:ne}=G;const se=Object(fe.useEvent)(Z),ce=Object(ie.useMemo)(()=>{if(ne||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:G}=window;return new G(se)},[ne]);return Object(ie.useEffect)(()=>()=>null==ce?void 0:ce.disconnect(),[ce]),ce}function defaultMeasure(G){return new Rect(getClientRect(G),G)}function useRect(G,Z,ne){void 0===Z&&(Z=defaultMeasure);const[se,ce]=Object(ie.useReducer)((function reducer(ie){if(!G)return null;var se;if(!1===G.isConnected)return null!=(se=null!=ie?ie:ne)?se:null;const ce=Z(G);if(JSON.stringify(ie)===JSON.stringify(ce))return ie;return ce}),null),me=function useMutationObserver(G){let{callback:Z,disabled:ne}=G;const se=Object(fe.useEvent)(Z),ce=Object(ie.useMemo)(()=>{if(ne||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:G}=window;return new G(se)},[se,ne]);return Object(ie.useEffect)(()=>()=>null==ce?void 0:ce.disconnect(),[ce]),ce}({callback(Z){if(G)for(const ne of Z){const{type:Z,target:ie}=ne;if("childList"===Z&&ie instanceof HTMLElement&&ie.contains(G)){ce();break}}}}),ge=useResizeObserver({callback:ce});return Object(fe.useIsomorphicLayoutEffect)(()=>{ce(),G?(null==ge||ge.observe(G),null==me||me.observe(document.body,{childList:!0,subtree:!0})):(null==ge||ge.disconnect(),null==me||me.disconnect())},[G]),se}const vt=[];function useScrollOffsetsDelta(G,Z){void 0===Z&&(Z=[]);const ne=Object(ie.useRef)(null);return Object(ie.useEffect)(()=>{ne.current=null},Z),Object(ie.useEffect)(()=>{const Z=G!==ke;Z&&!ne.current&&(ne.current=G),!Z&&ne.current&&(ne.current=null)},[G]),ne.current?Object(fe.subtract)(G,ne.current):ke}function useWindowRect(G){return Object(ie.useMemo)(()=>G?function getWindowClientRect(G){const Z=G.innerWidth,ne=G.innerHeight;return{top:0,left:0,right:Z,bottom:ne,width:Z,height:ne}}(G):null,[G])}const wt=[];function getMeasurableNode(G){if(!G)return null;if(G.children.length>1)return G;const Z=G.children[0];return Object(fe.isHTMLElement)(Z)?Z:G}const Ct=[{sensor:PointerSensor,options:{}},{sensor:KeyboardSensor,options:{}}],St={current:{}},Mt={draggable:{measure:getTransformAgnosticClientRect},droppable:{measure:getTransformAgnosticClientRect,strategy:ft.WhileDragging,frequency:_t.Optimized},dragOverlay:{measure:getClientRect}};class DroppableContainersMap extends Map{get(G){var Z;return null!=G&&null!=(Z=super.get(G))?Z:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(G=>{let{disabled:Z}=G;return!Z})}getNodeFor(G){var Z,ne;return null!=(Z=null==(ne=this.get(G))?void 0:ne.node.current)?Z:void 0}}const kt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new DroppableContainersMap,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:noop},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mt,measureDroppableContainers:noop,windowRect:null,measuringScheduled:!1},xt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:noop,draggableNodes:new Map,over:null,measureDroppableContainers:noop},Lt=Object(ie.createContext)(xt),Tt=Object(ie.createContext)(kt);function getInitialState(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new DroppableContainersMap}}}function reducer(G,Z){switch(Z.type){case Me.DragStart:return{...G,draggable:{...G.draggable,initialCoordinates:Z.initialCoordinates,active:Z.active}};case Me.DragMove:return G.draggable.active?{...G,draggable:{...G.draggable,translate:{x:Z.coordinates.x-G.draggable.initialCoordinates.x,y:Z.coordinates.y-G.draggable.initialCoordinates.y}}}:G;case Me.DragEnd:case Me.DragCancel:return{...G,draggable:{...G.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Me.RegisterDroppable:{const{element:ne}=Z,{id:ie}=ne,se=new DroppableContainersMap(G.droppable.containers);return se.set(ie,ne),{...G,droppable:{...G.droppable,containers:se}}}case Me.SetDroppableDisabled:{const{id:ne,key:ie,disabled:se}=Z,ce=G.droppable.containers.get(ne);if(!ce||ie!==ce.key)return G;const fe=new DroppableContainersMap(G.droppable.containers);return fe.set(ne,{...ce,disabled:se}),{...G,droppable:{...G.droppable,containers:fe}}}case Me.UnregisterDroppable:{const{id:ne,key:ie}=Z,se=G.droppable.containers.get(ne);if(!se||ie!==se.key)return G;const ce=new DroppableContainersMap(G.droppable.containers);return ce.delete(ne),{...G,droppable:{...G.droppable,containers:ce}}}default:return G}}function RestoreFocus(G){let{disabled:Z}=G;const{active:ne,activatorEvent:se,draggableNodes:ce}=Object(ie.useContext)(Lt),me=Object(fe.usePrevious)(se),ge=Object(fe.usePrevious)(null==ne?void 0:ne.id);return Object(ie.useEffect)(()=>{if(!Z&&!se&&me&&null!=ge){if(!Object(fe.isKeyboardEvent)(me))return;if(document.activeElement===me.target)return;const G=ce.get(ge);if(!G)return;const{activatorNode:Z,node:ne}=G;if(!Z.current&&!ne.current)return;requestAnimationFrame(()=>{for(const G of[Z.current,ne.current]){if(!G)continue;const Z=Object(fe.findFirstFocusableNode)(G);if(Z){Z.focus();break}}})}},[se,Z,ce,ge,me]),null}function applyModifiers(G,Z){let{transform:ne,...ie}=Z;return null!=G&&G.length?G.reduce((G,Z)=>Z({transform:G,...ie}),ne):ne}const At=Object(ie.createContext)({...ke,scaleX:1,scaleY:1});var Dt;!function(G){G[G.Uninitialized=0]="Uninitialized",G[G.Initializing=1]="Initializing",G[G.Initialized=2]="Initialized"}(Dt||(Dt={}));const Et=Object(ie.memo)((function DndContext(G){var Z,ne,me,Ce;let{id:Se,accessibility:De,autoScroll:Ie=!0,children:Re,sensors:ze=Ct,collisionDetection:$e=rectIntersection,measuring:Je,modifiers:it,...ot}=G;const at=Object(ie.useReducer)(reducer,void 0,getInitialState),[st,ct]=at,[ut,dt]=function useDndMonitorProvider(){const[G]=Object(ie.useState)(()=>new Set),Z=Object(ie.useCallback)(Z=>(G.add(Z),()=>G.delete(Z)),[G]);return[Object(ie.useCallback)(Z=>{let{type:ne,event:ie}=Z;G.forEach(G=>{var Z;return null==(Z=G[ne])?void 0:Z.call(G,ie)})},[G]),Z]}(),[ht,_t]=Object(ie.useState)(Dt.Uninitialized),kt=ht===Dt.Initialized,{draggable:{active:xt,nodes:Et,translate:jt},droppable:{containers:It}}=st,Nt=xt?Et.get(xt):null,Rt=Object(ie.useRef)({initial:null,translated:null}),zt=Object(ie.useMemo)(()=>{var G;return null!=xt?{id:xt,data:null!=(G=null==Nt?void 0:Nt.data)?G:St,rect:Rt}:null},[xt,Nt]),qt=Object(ie.useRef)(null),[Wt,Bt]=Object(ie.useState)(null),[Ft,Ht]=Object(ie.useState)(null),$t=Object(fe.useLatestValue)(ot,Object.values(ot)),Vt=Object(fe.useUniqueId)("DndDescribedBy",Se),Yt=Object(ie.useMemo)(()=>It.getEnabled(),[It]),Ut=function useMeasuringConfiguration(G){return Object(ie.useMemo)(()=>({draggable:{...Mt.draggable,...null==G?void 0:G.draggable},droppable:{...Mt.droppable,...null==G?void 0:G.droppable},dragOverlay:{...Mt.dragOverlay,...null==G?void 0:G.dragOverlay}}),[null==G?void 0:G.draggable,null==G?void 0:G.droppable,null==G?void 0:G.dragOverlay])}(Je),{droppableRects:Kt,measureDroppableContainers:Gt,measuringScheduled:Zt}=function useDroppableMeasuring(G,Z){let{dragging:ne,dependencies:se,config:ce}=Z;const[me,ge]=Object(ie.useState)(null),{frequency:Ce,measure:Se,strategy:Me}=ce,ke=Object(ie.useRef)(G),xe=function isDisabled(){switch(Me){case ft.Always:return!1;case ft.BeforeDragging:return ne;default:return!ne}}(),De=Object(fe.useLatestValue)(xe),Ie=Object(ie.useCallback)((function(G){void 0===G&&(G=[]),De.current||ge(Z=>null===Z?G:Z.concat(G.filter(G=>!Z.includes(G))))}),[De]),Re=Object(ie.useRef)(null),ze=Object(fe.useLazyMemo)(Z=>{if(xe&&!ne)return yt;if(!Z||Z===yt||ke.current!==G||null!=me){const Z=new Map;for(let ne of G){if(!ne)continue;if(me&&me.length>0&&!me.includes(ne.id)&&ne.rect.current){Z.set(ne.id,ne.rect.current);continue}const G=ne.node.current,ie=G?new Rect(Se(G),G):null;ne.rect.current=ie,ie&&Z.set(ne.id,ie)}return Z}return Z},[G,me,ne,xe,Se]);return Object(ie.useEffect)(()=>{ke.current=G},[G]),Object(ie.useEffect)(()=>{xe||Ie()},[ne,xe]),Object(ie.useEffect)(()=>{me&&me.length>0&&ge(null)},[JSON.stringify(me)]),Object(ie.useEffect)(()=>{xe||"number"!=typeof Ce||null!==Re.current||(Re.current=setTimeout(()=>{Ie(),Re.current=null},Ce))},[Ce,xe,Ie,...se]),{droppableRects:ze,measureDroppableContainers:Ie,measuringScheduled:null!=me}}(Yt,{dragging:kt,dependencies:[jt.x,jt.y],config:Ut.droppable}),Jt=function useCachedNode(G,Z){const ne=null!==Z?G.get(Z):void 0,ie=ne?ne.node.current:null;return Object(fe.useLazyMemo)(G=>{var ne;return null===Z?null:null!=(ne=null!=ie?ie:G)?ne:null},[ie,Z])}(Et,xt),Qt=Object(ie.useMemo)(()=>Ft?Object(fe.getEventCoordinates)(Ft):null,[Ft]),on=function getAutoScrollerOptions(){const G=!1===(null==Wt?void 0:Wt.autoScrollEnabled),Z="object"==typeof Ie?!1===Ie.enabled:!1===Ie,ne=kt&&!G&&!Z;if("object"==typeof Ie)return{...Ie,enabled:ne};return{enabled:ne}}(),sn=function useInitialRect(G,Z){return useInitialValue(G,Z)}(Jt,Ut.draggable.measure);!function useLayoutShiftScrollCompensation(G){let{activeNode:Z,measure:ne,initialRect:se,config:ce=!0}=G;const me=Object(ie.useRef)(!1),{x:ge,y:Ce}="boolean"==typeof ce?{x:ce,y:ce}:ce;Object(fe.useIsomorphicLayoutEffect)(()=>{if(!ge&&!Ce||!Z)return void(me.current=!1);if(me.current||!se)return;const G=null==Z?void 0:Z.node.current;if(!G||!1===G.isConnected)return;const ie=getRectDelta(ne(G),se);if(ge||(ie.x=0),Ce||(ie.y=0),me.current=!0,Math.abs(ie.x)>0||Math.abs(ie.y)>0){const Z=getFirstScrollableAncestor(G);Z&&Z.scrollBy({top:ie.y,left:ie.x})}},[Z,ge,Ce,se,ne])}({activeNode:xt?Et.get(xt):null,config:on.layoutShiftCompensation,initialRect:sn,measure:Ut.draggable.measure});const cn=useRect(Jt,Ut.draggable.measure,sn),dn=useRect(Jt?Jt.parentElement:null),mn=Object(ie.useRef)({activatorEvent:null,active:null,activeNode:Jt,collisionRect:null,collisions:null,droppableRects:Kt,draggableNodes:Et,draggingNode:null,draggingNodeRect:null,droppableContainers:It,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_n=It.getNodeFor(null==(Z=mn.current.over)?void 0:Z.id),gn=function useDragOverlayMeasuring(G){let{measure:Z}=G;const[ne,se]=Object(ie.useState)(null),ce=useResizeObserver({callback:Object(ie.useCallback)(G=>{for(const{target:ne}of G)if(Object(fe.isHTMLElement)(ne)){se(G=>{const ie=Z(ne);return G?{...G,width:ie.width,height:ie.height}:ie});break}},[Z])}),me=Object(ie.useCallback)(G=>{const ne=getMeasurableNode(G);null==ce||ce.disconnect(),ne&&(null==ce||ce.observe(ne)),se(ne?Z(ne):null)},[Z,ce]),[ge,Ce]=Object(fe.useNodeRef)(me);return Object(ie.useMemo)(()=>({nodeRef:ge,rect:ne,setRef:Ce}),[ne,ge,Ce])}({measure:Ut.dragOverlay.measure}),bn=null!=(ne=gn.nodeRef.current)?ne:Jt,yn=kt?null!=(me=gn.rect)?me:cn:null,vn=Boolean(gn.nodeRef.current&&gn.rect),wn=function useRectDelta(G){return getRectDelta(G,useInitialValue(G))}(vn?null:cn),Cn=useWindowRect(bn?Object(fe.getWindow)(bn):null),On=function useScrollableAncestors(G){const Z=Object(ie.useRef)(G),ne=Object(fe.useLazyMemo)(ne=>G?ne&&ne!==vt&&G&&Z.current&&G.parentNode===Z.current.parentNode?ne:getScrollableAncestors(G):vt,[G]);return Object(ie.useEffect)(()=>{Z.current=G},[G]),ne}(kt?null!=_n?_n:Jt:null),Mn=function useRects(G,Z){void 0===Z&&(Z=getClientRect);const[ne]=G,se=useWindowRect(ne?Object(fe.getWindow)(ne):null),[ce,me]=Object(ie.useReducer)((function reducer(){if(!G.length)return wt;return G.map(G=>isDocumentScrollingElement(G)?se:new Rect(Z(G),G))}),wt),ge=useResizeObserver({callback:me});return G.length>0&&ce===wt&&me(),Object(fe.useIsomorphicLayoutEffect)(()=>{G.length?G.forEach(G=>null==ge?void 0:ge.observe(G)):(null==ge||ge.disconnect(),me())},[G]),ce}(On),kn=applyModifiers(it,{transform:{x:jt.x-wn.x,y:jt.y-wn.y,scaleX:1,scaleY:1},activatorEvent:Ft,active:zt,activeNodeRect:cn,containerNodeRect:dn,draggingNodeRect:yn,over:mn.current.over,overlayNodeRect:gn.rect,scrollableAncestors:On,scrollableAncestorRects:Mn,windowRect:Cn}),xn=Qt?Object(fe.add)(Qt,jt):null,Tn=function useScrollOffsets(G){const[Z,ne]=Object(ie.useState)(null),se=Object(ie.useRef)(G),ce=Object(ie.useCallback)(G=>{const Z=getScrollableElement(G.target);Z&&ne(G=>G?(G.set(Z,getScrollCoordinates(Z)),new Map(G)):null)},[]);return Object(ie.useEffect)(()=>{const Z=se.current;if(G!==Z){cleanup(Z);const ie=G.map(G=>{const Z=getScrollableElement(G);return Z?(Z.addEventListener("scroll",ce,{passive:!0}),[Z,getScrollCoordinates(Z)]):null}).filter(G=>null!=G);ne(ie.length?new Map(ie):null),se.current=G}return()=>{cleanup(G),cleanup(Z)};function cleanup(G){G.forEach(G=>{const Z=getScrollableElement(G);null==Z||Z.removeEventListener("scroll",ce)})}},[ce,G]),Object(ie.useMemo)(()=>G.length?Z?Array.from(Z.values()).reduce((G,Z)=>Object(fe.add)(G,Z),ke):getScrollOffsets(G):ke,[G,Z])}(On),Dn=useScrollOffsetsDelta(Tn),En=useScrollOffsetsDelta(Tn,[cn]),jn=Object(fe.add)(kn,Dn),Pn=yn?xe(yn,kn):null,Nn=zt&&Pn?$e({active:zt,collisionRect:Pn,droppableRects:Kt,droppableContainers:Yt,pointerCoordinates:xn}):null,qn=getFirstCollision(Nn,"id"),[Wn,Bn]=Object(ie.useState)(null),Hn=function adjustScale(G,Z,ne){return{...G,scaleX:Z&&ne?Z.width/ne.width:1,scaleY:Z&&ne?Z.height/ne.height:1}}(vn?kn:Object(fe.add)(kn,En),null!=(Ce=null==Wn?void 0:Wn.rect)?Ce:null,cn),$n=Object(ie.useCallback)((G,Z)=>{let{sensor:ne,options:ie}=Z;if(null==qt.current)return;const se=Et.get(qt.current);if(!se)return;const fe=G.nativeEvent,me=new ne({active:qt.current,activeNode:se,event:fe,options:ie,context:mn,onStart(G){const Z=qt.current;if(null==Z)return;const ne=Et.get(Z);if(!ne)return;const{onDragStart:ie}=$t.current,se={active:{id:Z,data:ne.data,rect:Rt}};Object(ce.unstable_batchedUpdates)(()=>{null==ie||ie(se),_t(Dt.Initializing),ct({type:Me.DragStart,initialCoordinates:G,active:Z}),ut({type:"onDragStart",event:se})})},onMove(G){ct({type:Me.DragMove,coordinates:G})},onEnd:createHandler(Me.DragEnd),onCancel:createHandler(Me.DragCancel)});function createHandler(G){return async function handler(){const{active:Z,collisions:ne,over:ie,scrollAdjustedTranslate:se}=mn.current;let me=null;if(Z&&se){const{cancelDrop:ce}=$t.current;if(me={activatorEvent:fe,active:Z,collisions:ne,delta:se,over:ie},G===Me.DragEnd&&"function"==typeof ce){await Promise.resolve(ce(me))&&(G=Me.DragCancel)}}qt.current=null,Object(ce.unstable_batchedUpdates)(()=>{ct({type:G}),_t(Dt.Uninitialized),Bn(null),Bt(null),Ht(null);const Z=G===Me.DragEnd?"onDragEnd":"onDragCancel";if(me){const G=$t.current[Z];null==G||G(me),ut({type:Z,event:me})}})}}Object(ce.unstable_batchedUpdates)(()=>{Bt(me),Ht(G.nativeEvent)})},[Et]),Vn=function useCombineActivators(G,Z){return Object(ie.useMemo)(()=>G.reduce((G,ne)=>{const{sensor:ie}=ne;return[...G,...ie.activators.map(G=>({eventName:G.eventName,handler:Z(G.handler,ne)}))]},[]),[G,Z])}(ze,Object(ie.useCallback)((G,Z)=>(ne,ie)=>{const se=ne.nativeEvent,ce=Et.get(ie);if(null!==qt.current||!ce||se.dndKit||se.defaultPrevented)return;const fe={active:ce};!0===G(ne,Z.options,fe)&&(se.dndKit={capturedBy:Z.sensor},qt.current=ie,$n(ne,Z))},[Et,$n]));!function useSensorSetup(G){Object(ie.useEffect)(()=>{if(!fe.canUseDOM)return;const Z=G.map(G=>{let{sensor:Z}=G;return null==Z.setup?void 0:Z.setup()});return()=>{for(const G of Z)null==G||G()}},G.map(G=>{let{sensor:Z}=G;return Z}))}(ze),Object(fe.useIsomorphicLayoutEffect)(()=>{cn&&ht===Dt.Initializing&&_t(Dt.Initialized)},[cn,ht]),Object(ie.useEffect)(()=>{const{onDragMove:G}=$t.current,{active:Z,activatorEvent:ne,collisions:ie,over:se}=mn.current;if(!Z||!ne)return;const fe={active:Z,activatorEvent:ne,collisions:ie,delta:{x:jn.x,y:jn.y},over:se};Object(ce.unstable_batchedUpdates)(()=>{null==G||G(fe),ut({type:"onDragMove",event:fe})})},[jn.x,jn.y]),Object(ie.useEffect)(()=>{const{active:G,activatorEvent:Z,collisions:ne,droppableContainers:ie,scrollAdjustedTranslate:se}=mn.current;if(!G||null==qt.current||!Z||!se)return;const{onDragOver:fe}=$t.current,me=ie.get(qn),ge=me&&me.rect.current?{id:me.id,rect:me.rect.current,data:me.data,disabled:me.disabled}:null,Ce={active:G,activatorEvent:Z,collisions:ne,delta:{x:se.x,y:se.y},over:ge};Object(ce.unstable_batchedUpdates)(()=>{Bn(ge),null==fe||fe(Ce),ut({type:"onDragOver",event:Ce})})},[qn]),Object(fe.useIsomorphicLayoutEffect)(()=>{mn.current={activatorEvent:Ft,active:zt,activeNode:Jt,collisionRect:Pn,collisions:Nn,droppableRects:Kt,draggableNodes:Et,draggingNode:bn,draggingNodeRect:yn,droppableContainers:It,over:Wn,scrollableAncestors:On,scrollAdjustedTranslate:jn},Rt.current={initial:yn,translated:Pn}},[zt,Jt,Nn,Pn,Et,bn,yn,Kt,It,Wn,On,jn]),useAutoScroller({...on,delta:jt,draggingRect:Pn,pointerCoordinates:xn,scrollableAncestors:On,scrollableAncestorRects:Mn});const Un=Object(ie.useMemo)(()=>({active:zt,activeNode:Jt,activeNodeRect:cn,activatorEvent:Ft,collisions:Nn,containerNodeRect:dn,dragOverlay:gn,draggableNodes:Et,droppableContainers:It,droppableRects:Kt,over:Wn,measureDroppableContainers:Gt,scrollableAncestors:On,scrollableAncestorRects:Mn,measuringConfiguration:Ut,measuringScheduled:Zt,windowRect:Cn}),[zt,Jt,cn,Ft,Nn,dn,gn,Et,It,Kt,Wn,Gt,On,Mn,Ut,Zt,Cn]),Kn=Object(ie.useMemo)(()=>({activatorEvent:Ft,activators:Vn,active:zt,activeNodeRect:cn,ariaDescribedById:{draggable:Vt},dispatch:ct,draggableNodes:Et,over:Wn,measureDroppableContainers:Gt}),[Ft,Vn,zt,cn,ct,Vt,Et,Wn,Gt]);return se.a.createElement(ge.Provider,{value:dt},se.a.createElement(Lt.Provider,{value:Kn},se.a.createElement(Tt.Provider,{value:Un},se.a.createElement(At.Provider,{value:Hn},Re)),se.a.createElement(RestoreFocus,{disabled:!1===(null==De?void 0:De.restoreFocus)})),se.a.createElement(Accessibility,{...De,hiddenTextDescribedById:Vt}))})),jt=Object(ie.createContext)(null),It="button";function useDraggable(G){let{id:Z,data:ne,disabled:se=!1,attributes:ce}=G;const me=Object(fe.useUniqueId)("Droppable"),{activators:ge,activatorEvent:Ce,active:Se,activeNodeRect:Me,ariaDescribedById:ke,draggableNodes:xe,over:De}=Object(ie.useContext)(Lt),{role:Ie=It,roleDescription:Re="draggable",tabIndex:ze=0}=null!=ce?ce:{},$e=(null==Se?void 0:Se.id)===Z,Je=Object(ie.useContext)($e?At:jt),[it,ot]=Object(fe.useNodeRef)(),[at,st]=Object(fe.useNodeRef)(),ct=function useSyntheticListeners(G,Z){return Object(ie.useMemo)(()=>G.reduce((G,ne)=>{let{eventName:ie,handler:se}=ne;return G[ie]=G=>{se(G,Z)},G},{}),[G,Z])}(ge,Z),ut=Object(fe.useLatestValue)(ne);Object(fe.useIsomorphicLayoutEffect)(()=>(xe.set(Z,{id:Z,key:me,node:it,activatorNode:at,data:ut}),()=>{const G=xe.get(Z);G&&G.key===me&&xe.delete(Z)}),[xe,Z]);return{active:Se,activatorEvent:Ce,activeNodeRect:Me,attributes:Object(ie.useMemo)(()=>({role:Ie,tabIndex:ze,"aria-disabled":se,"aria-pressed":!(!$e||Ie!==It)||void 0,"aria-roledescription":Re,"aria-describedby":ke.draggable}),[se,Ie,ze,$e,Re,ke.draggable]),isDragging:$e,listeners:se?void 0:ct,node:it,over:De,setNodeRef:ot,setActivatorNodeRef:st,transform:Je}}function useDndContext(){return Object(ie.useContext)(Tt)}const Nt={timeout:25};function useDroppable(G){let{data:Z,disabled:ne=!1,id:se,resizeObserverConfig:ce}=G;const me=Object(fe.useUniqueId)("Droppable"),{active:ge,dispatch:Ce,over:Se,measureDroppableContainers:ke}=Object(ie.useContext)(Lt),xe=Object(ie.useRef)({disabled:ne}),De=Object(ie.useRef)(!1),Ie=Object(ie.useRef)(null),Re=Object(ie.useRef)(null),{disabled:ze,updateMeasurementsFor:$e,timeout:Je}={...Nt,...ce},it=Object(fe.useLatestValue)(null!=$e?$e:se),ot=useResizeObserver({callback:Object(ie.useCallback)(()=>{De.current?(null!=Re.current&&clearTimeout(Re.current),Re.current=setTimeout(()=>{ke(Array.isArray(it.current)?it.current:[it.current]),Re.current=null},Je)):De.current=!0},[Je]),disabled:ze||!ge}),at=Object(ie.useCallback)((G,Z)=>{ot&&(Z&&(ot.unobserve(Z),De.current=!1),G&&ot.observe(G))},[ot]),[st,ct]=Object(fe.useNodeRef)(at),ut=Object(fe.useLatestValue)(Z);return Object(ie.useEffect)(()=>{ot&&st.current&&(ot.disconnect(),De.current=!1,ot.observe(st.current))},[st,ot]),Object(fe.useIsomorphicLayoutEffect)(()=>(Ce({type:Me.RegisterDroppable,element:{id:se,key:me,disabled:ne,node:st,rect:Ie,data:ut}}),()=>Ce({type:Me.UnregisterDroppable,key:me,id:se})),[se]),Object(ie.useEffect)(()=>{ne!==xe.current.disabled&&(Ce({type:Me.SetDroppableDisabled,id:se,key:me,disabled:ne}),xe.current.disabled=ne)},[se,me,ne,Ce]),{active:ge,rect:Ie,isOver:(null==Se?void 0:Se.id)===se,node:st,over:Se,setNodeRef:ct}}function AnimationManager(G){let{animation:Z,children:ne}=G;const[ce,me]=Object(ie.useState)(null),[ge,Ce]=Object(ie.useState)(null),Se=Object(fe.usePrevious)(ne);return ne||ce||!Se||me(Se),Object(fe.useIsomorphicLayoutEffect)(()=>{if(!ge)return;const G=null==ce?void 0:ce.key,ne=null==ce?void 0:ce.props.id;null!=G&&null!=ne?Promise.resolve(Z(ne,ge)).then(()=>{me(null)}):me(null)},[Z,ce,ge]),se.a.createElement(se.a.Fragment,null,ne,ce?Object(ie.cloneElement)(ce,{ref:Ce}):null)}const Rt={x:0,y:0,scaleX:1,scaleY:1};function NullifiedContextProvider(G){let{children:Z}=G;return se.a.createElement(Lt.Provider,{value:xt},se.a.createElement(At.Provider,{value:Rt},Z))}const zt={position:"fixed",touchAction:"none"},defaultTransition=G=>Object(fe.isKeyboardEvent)(G)?"transform 250ms ease":void 0,qt=Object(ie.forwardRef)((G,Z)=>{let{as:ne,activatorEvent:ie,adjustScale:ce,children:me,className:ge,rect:Ce,style:Se,transform:Me,transition:ke=defaultTransition}=G;if(!Ce)return null;const xe=ce?Me:{...Me,scaleX:1,scaleY:1},De={...zt,width:Ce.width,height:Ce.height,top:Ce.top,left:Ce.left,transform:fe.CSS.Transform.toString(xe),transformOrigin:ce&&ie?getRelativeTransformOrigin(ie,Ce):void 0,transition:"function"==typeof ke?ke(ie):ke,...Se};return se.a.createElement(ne,{className:ge,style:De,ref:Z},me)}),defaultDropAnimationSideEffects=G=>Z=>{let{active:ne,dragOverlay:ie}=Z;const se={},{styles:ce,className:fe}=G;if(null!=ce&&ce.active)for(const[G,Z]of Object.entries(ce.active))void 0!==Z&&(se[G]=ne.node.style.getPropertyValue(G),ne.node.style.setProperty(G,Z));if(null!=ce&&ce.dragOverlay)for(const[G,Z]of Object.entries(ce.dragOverlay))void 0!==Z&&ie.node.style.setProperty(G,Z);return null!=fe&&fe.active&&ne.node.classList.add(fe.active),null!=fe&&fe.dragOverlay&&ie.node.classList.add(fe.dragOverlay),function cleanup(){for(const[G,Z]of Object.entries(se))ne.node.style.setProperty(G,Z);null!=fe&&fe.active&&ne.node.classList.remove(fe.active)}},Wt={duration:250,easing:"ease",keyframes:G=>{let{transform:{initial:Z,final:ne}}=G;return[{transform:fe.CSS.Transform.toString(Z)},{transform:fe.CSS.Transform.toString(ne)}]},sideEffects:defaultDropAnimationSideEffects({styles:{active:{opacity:"0"}}})};function useDropAnimation(G){let{config:Z,draggableNodes:ne,droppableContainers:ie,measuringConfiguration:se}=G;return Object(fe.useEvent)((G,ce)=>{if(null===Z)return;const me=ne.get(G);if(!me)return;const ge=me.node.current;if(!ge)return;const Ce=getMeasurableNode(ce);if(!Ce)return;const{transform:Se}=Object(fe.getWindow)(ce).getComputedStyle(ce),Me=parseTransform(Se);if(!Me)return;const ke="function"==typeof Z?Z:function createDefaultDropAnimation(G){const{duration:Z,easing:ne,sideEffects:ie,keyframes:se}={...Wt,...G};return G=>{let{active:ce,dragOverlay:fe,transform:me,...ge}=G;if(!Z)return;const Ce=fe.rect.left-ce.rect.left,Se=fe.rect.top-ce.rect.top,Me={scaleX:1!==me.scaleX?ce.rect.width*me.scaleX/fe.rect.width:1,scaleY:1!==me.scaleY?ce.rect.height*me.scaleY/fe.rect.height:1},ke={x:me.x-Ce,y:me.y-Se,...Me},xe=se({...ge,active:ce,dragOverlay:fe,transform:{initial:me,final:ke}}),[De]=xe,Ie=xe[xe.length-1];if(JSON.stringify(De)===JSON.stringify(Ie))return;const Re=null==ie?void 0:ie({active:ce,dragOverlay:fe,...ge}),ze=fe.node.animate(xe,{duration:Z,easing:ne,fill:"forwards"});return new Promise(G=>{ze.onfinish=()=>{null==Re||Re(),G()}})}}(Z);return scrollIntoViewIfNeeded(ge,se.draggable.measure),ke({active:{id:G,data:me.data,node:ge,rect:se.draggable.measure(ge)},draggableNodes:ne,dragOverlay:{node:ce,rect:se.dragOverlay.measure(Ce)},droppableContainers:ie,measuringConfiguration:se,transform:Me})})}let Bt=0;function useKey(G){return Object(ie.useMemo)(()=>{if(null!=G)return Bt++,Bt},[G])}const Ft=se.a.memo(G=>{let{adjustScale:Z=!1,children:ne,dropAnimation:ce,style:fe,transition:me,modifiers:ge,wrapperElement:Ce="div",className:Se,zIndex:Me=999}=G;const{activatorEvent:ke,active:xe,activeNodeRect:De,containerNodeRect:Ie,draggableNodes:Re,droppableContainers:ze,dragOverlay:$e,over:Je,measuringConfiguration:it,scrollableAncestors:ot,scrollableAncestorRects:at,windowRect:st}=useDndContext(),ct=Object(ie.useContext)(At),ut=useKey(null==xe?void 0:xe.id),dt=applyModifiers(ge,{activatorEvent:ke,active:xe,activeNodeRect:De,containerNodeRect:Ie,draggingNodeRect:$e.rect,over:Je,overlayNodeRect:$e.rect,scrollableAncestors:ot,scrollableAncestorRects:at,transform:ct,windowRect:st}),ht=useInitialValue(De),ft=useDropAnimation({config:ce,draggableNodes:Re,droppableContainers:ze,measuringConfiguration:it}),_t=ht?$e.setRef:void 0;return se.a.createElement(NullifiedContextProvider,null,se.a.createElement(AnimationManager,{animation:ft},xe&&ut?se.a.createElement(qt,{key:ut,id:xe.id,ref:_t,as:Ce,activatorEvent:ke,adjustScale:Z,className:Se,transition:me,rect:ht,style:{zIndex:Me,...fe},transform:dt},ne):null))})},50:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return Ce})),ne.d(Z,"g",(function(){return themeColorFromId})),ne.d(Z,"d",(function(){return Me})),ne.d(Z,"e",(function(){return getThemeTypeSelector})),ne.d(Z,"a",(function(){return ke})),ne.d(Z,"f",(function(){return registerThemingParticipant})),ne.d(Z,"c",(function(){return Themable}));var ie=ne(60),se=ne(10),ce=ne(180),fe=ne(19),me=ne(495),ge=ne(67);const Ce=Object(ie.c)("themeService");var Se,Me;function themeColorFromId(G){return{id:G}}function getThemeTypeSelector(G){switch(G){case me.a.DARK:return"vs-dark";case me.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}!function(G){G.isThemeColor=function isThemeColor(G){return G&&"object"==typeof G&&"string"==typeof G.id}}(Se||(Se={})),function(G){G.isThemeIcon=function isThemeIcon(G){return G&&"object"==typeof G&&"string"==typeof G.id&&(void 0===G.color||Se.isThemeColor(G.color))};const Z=new RegExp(`^\\$\\((${ge.a.iconNameExpression}(?:${ge.a.iconModifierExpression})?)\\)$`);G.fromString=function fromString(G){const ne=Z.exec(G);if(!ne)return;let[,ie]=ne;return{id:ie}},G.modify=function modify(G,Z){let ne=G.id;const ie=ne.lastIndexOf("~");return-1!==ie&&(ne=ne.substring(0,ie)),Z&&(ne=`${ne}~${Z}`),{id:ne}},G.isEqual=function isEqual(G,Z){var ne,ie;return G.id===Z.id&&(null===(ne=G.color)||void 0===ne?void 0:ne.id)===(null===(ie=Z.color)||void 0===ie?void 0:ie.id)},G.asThemeIcon=function asThemeIcon(G,Z){return{id:G.id,color:Z?themeColorFromId(Z):void 0}},G.asClassNameArray=ge.a.asClassNameArray,G.asClassName=ge.a.asClassName,G.asCSSSelector=ge.a.asCSSSelector}(Me||(Me={}));const ke={ThemingContribution:"base.contributions.theming"};let xe=new class ThemingRegistry{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new fe.b}onColorThemeChange(G){return this.themingParticipants.push(G),this.onThemingParticipantAddedEmitter.fire(G),Object(se.i)(()=>{const Z=this.themingParticipants.indexOf(G);this.themingParticipants.splice(Z,1)})}getThemingParticipants(){return this.themingParticipants}};function registerThemingParticipant(G){return xe.onColorThemeChange(G)}ce.a.add(ke.ThemingContribution,xe);class Themable extends se.a{constructor(G){super(),this.themeService=G,this.theme=G.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(G=>this.onThemeChange(G)))}onThemeChange(G){this.theme=G,this.updateStyles()}updateStyles(){}}},51:function(G,Z,ne){"use strict";ne.d(Z,"e",(function(){return onUnexpectedError})),ne.d(Z,"f",(function(){return onUnexpectedExternalError})),ne.d(Z,"g",(function(){return transformErrorForSerialization})),ne.d(Z,"d",(function(){return isPromiseCanceledError})),ne.d(Z,"a",(function(){return canceled})),ne.d(Z,"b",(function(){return illegalArgument})),ne.d(Z,"c",(function(){return illegalState}));const ie=new class ErrorHandler{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(G){setTimeout(()=>{if(G.stack)throw new Error(G.message+"\n\n"+G.stack);throw G},0)}}emit(G){this.listeners.forEach(Z=>{Z(G)})}onUnexpectedError(G){this.unexpectedErrorHandler(G),this.emit(G)}onUnexpectedExternalError(G){this.unexpectedErrorHandler(G)}};function onUnexpectedError(G){isPromiseCanceledError(G)||ie.onUnexpectedError(G)}function onUnexpectedExternalError(G){isPromiseCanceledError(G)||ie.onUnexpectedExternalError(G)}function transformErrorForSerialization(G){if(G instanceof Error){let{name:Z,message:ne}=G;return{$isError:!0,name:Z,message:ne,stack:G.stacktrace||G.stack}}return G}function isPromiseCanceledError(G){return G instanceof Error&&"Canceled"===G.name&&"Canceled"===G.message}function canceled(){const G=new Error("Canceled");return G.name=G.message,G}function illegalArgument(G){return G?new Error("Illegal argument: "+G):new Error("Illegal argument")}function illegalState(G){return G?new Error("Illegal state: "+G):new Error("Illegal state")}},530:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},198:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"isInternalLink",(function(){return at})),ne.d(Z,"NavigationContext",(function(){return ze})),ne.d(Z,"NavigationProvider",(function(){return NavigationProvider}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=(ne(11),ne(23)),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(22),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),De.variables.contentColorDisabled),Re={children:fe.a.node,onClick:fe.a.func,prefix:fe.a.string},ze=se.a.createContext({});function NavigationProvider(G){var Z=G.children,ne=G.onClick,ie=G.prefix;return se.a.createElement(ze.Provider,{value:{onClick:ne,prefix:ie}},Z)}NavigationProvider.propTypes=Re;var $e=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;nethis.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new ge.b),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new ge.b),this.onBeforeRun=this._onBeforeRun.event,this.options=Z,this._context=null!==(ne=Z.context)&&void 0!==ne?ne:null,this._orientation=null!==(ie=this.options.orientation)&&void 0!==ie?ie:0,this._triggerKeys={keyDown:null!==(Se=null===(fe=this.options.triggerKeys)||void 0===fe?void 0:fe.keyDown)&&void 0!==Se&&Se,keys:null!==(ke=null===(Me=this.options.triggerKeys)||void 0===Me?void 0:Me.keys)&&void 0!==ke?ke:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new se.b,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(G=>this._onDidRun.fire(G))),this._register(this._actionRunner.onBeforeRun(G=>this._onBeforeRun.fire(G))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==Z.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:xe=[15],De=[17];break;case 1:xe=[16],De=[18],this.domNode.className+=" vertical"}this._register(ce.i(this.domNode,ce.d.KEY_DOWN,G=>{const Z=new me.a(G);let ne=!0;const ie="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;xe&&(Z.equals(xe[0])||Z.equals(xe[1]))?ne=this.focusPrevious():De&&(Z.equals(De[0])||Z.equals(De[1]))?ne=this.focusNext():Z.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():Z.equals(14)?ne=this.focusFirst():Z.equals(13)?ne=this.focusLast():Z.equals(2)&&ie instanceof Ce.b&&ie.trapsArrowNavigation?ne=this.focusNext():this.isTriggerKeyEvent(Z)?this._triggerKeys.keyDown?this.doTrigger(Z):this.triggerKeyDown=!0:ne=!1,ne&&(Z.preventDefault(),Z.stopPropagation())})),this._register(ce.i(this.domNode,ce.d.KEY_UP,G=>{const Z=new me.a(G);this.isTriggerKeyEvent(Z)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(Z)),Z.preventDefault(),Z.stopPropagation()):(Z.equals(2)||Z.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(ce.Y(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{ce.y()!==this.domNode&&ce.L(ce.y(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),G.appendChild(this.domNode)}isTriggerKeyEvent(G){let Z=!1;return this._triggerKeys.keys.forEach(ne=>{Z=Z||G.equals(ne)}),Z}updateFocusedItem(){for(let G=0;GZ.setActionContext(G))}get actionRunner(){return this._actionRunner}set actionRunner(G){G&&(this._actionRunner=G,this.viewItems.forEach(Z=>Z.actionRunner=G))}getContainer(){return this.domNode}push(G,Z={}){const ne=Array.isArray(G)?G:[G];let ie=fe.i(Z.index)?Z.index:null;ne.forEach(G=>{const ne=document.createElement("li");let se;ne.className="action-item",ne.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(ce.i(ne,ce.d.CONTEXT_MENU,G=>{ce.c.stop(G,!0)})),this.options.actionViewItemProvider&&(se=this.options.actionViewItemProvider(G)),se||(se=new Ce.a(this.context,G,Z)),se.actionRunner=this._actionRunner,se.setActionContext(this.context),se.render(ne),this.focusable&&se instanceof Ce.b&&0===this.viewItems.length&&se.setFocusable(!0),null===ie||ie<0||ie>=this.actionsList.children.length?(this.actionsList.appendChild(ne),this.viewItems.push(se),this._actionIds.push(G.id)):(this.actionsList.insertBefore(ne,this.actionsList.children[ie]),this.viewItems.splice(ie,0,se),this._actionIds.splice(ie,0,G.id),ie++)}),"number"==typeof this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(ie.f)(this.viewItems),this.viewItems=[],this._actionIds=[],ce.t(this.actionsList)}length(){return this.viewItems.length}focus(G){let Z=!1,ne=void 0;if(void 0===G?Z=!0:"number"==typeof G?ne=G:"boolean"==typeof G&&(Z=G),Z&&void 0===this.focusedItem){const G=this.viewItems.findIndex(G=>G.isEnabled());this.focusedItem=-1===G?void 0:G,this.updateFocus()}else void 0!==ne&&(this.focusedItem=ne),this.updateFocus()}focusFirst(){return this.focusedItem=this.length()>1?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const G=this.focusedItem;let Z;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=G,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,Z=this.viewItems[this.focusedItem]}while(this.focusedItem!==G&&this.options.focusOnlyEnabledItems&&!Z.isEnabled());return this.updateFocus(),!0}focusPrevious(){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const G=this.focusedItem;let Z;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=G,!1;this.focusedItem=this.viewItems.length-1}Z=this.viewItems[this.focusedItem]}while(this.focusedItem!==G&&this.options.focusOnlyEnabledItems&&!Z.isEnabled());return this.updateFocus(!0),!0}updateFocus(G,Z){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:Z});for(let ne=0;ne{this.element&&this.handleActionChangeEvent(G)}))}handleActionChangeEvent(G){void 0!==G.enabled&&this.updateEnabled(),void 0!==G.checked&&this.updateChecked(),void 0!==G.class&&this.updateClass(),void 0!==G.label&&(this.updateLabel(),this.updateTooltip()),void 0!==G.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new fe.b)),this._actionRunner}set actionRunner(G){this._actionRunner=G}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(G){this._context=G}render(G){const Z=this.element=G;this._register(ge.b.addTarget(G));const ne=this.options&&this.options.draggable;ne&&(G.draggable=!0,Se.g&&this._register(Object(Me.i)(G,Me.d.DRAG_START,G=>{var Z;return null===(Z=G.dataTransfer)||void 0===Z?void 0:Z.setData(Ce.a.TEXT,this._action.label)}))),this._register(Object(Me.i)(Z,ge.a.Tap,G=>this.onClick(G,!0))),this._register(Object(Me.i)(Z,Me.d.MOUSE_DOWN,G=>{ne||Me.c.stop(G,!0),this._action.enabled&&0===G.button&&Z.classList.add("active")})),ie.f&&this._register(Object(Me.i)(Z,Me.d.CONTEXT_MENU,G=>{0===G.button&&!0===G.ctrlKey&&this.onClick(G)})),this._register(Object(Me.i)(Z,Me.d.CLICK,G=>{Me.c.stop(G,!0),this.options&&this.options.isMenu||ie.k(()=>this.onClick(G))})),this._register(Object(Me.i)(Z,Me.d.DBLCLICK,G=>{Me.c.stop(G,!0)})),[Me.d.MOUSE_UP,Me.d.MOUSE_OUT].forEach(G=>{this._register(Object(Me.i)(Z,G,G=>{Me.c.stop(G),Z.classList.remove("active")}))})}onClick(G,Z=!1){var ne;Me.c.stop(G,!0);const ie=me.m(this._context)?(null===(ne=this.options)||void 0===ne?void 0:ne.useEventAsContext)?G:{preserveFocus:Z}:this._context;this.actionRunner.run(this._action,ie)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(G){this.element&&(this.element.tabIndex=G?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class ActionViewItem extends BaseActionViewItem{constructor(G,Z,ne={}){super(G,Z,ne),this.options=ne,this.options.icon=void 0!==ne.icon&&ne.icon,this.options.label=void 0===ne.label||ne.label,this.cssClass=""}render(G){super.render(G),this.element&&(this.label=Object(Me.q)(this.element,Object(Me.a)("a.action-label"))),this.label&&(this._action.id===fe.d.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(Object(Me.q)(this.element,Object(Me.a)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(G){this.label&&(this.label.tabIndex=G?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let G=null;this.getAction().tooltip?G=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(G=this.getAction().label,this.options.keybinding&&(G=se.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",G,this.options.keybinding))),G&&this.label&&(this.label.title=G)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},537:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Me})),ne.d(Z,"b",(function(){return Sash}));ne(7555);var ie=ne(10),se=ne(46),ce=ne(209),fe=ne(19),me=ne(6),ge=ne(206),Ce=ne(57),Se=ne(287),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe};var Me;!function(G){G.North="north",G.South="south",G.East="east",G.West="west"}(Me||(Me={}));const ke=new fe.b;const xe=new fe.b;class MouseEventFactory{constructor(){this.disposables=new ie.b}get onPointerMove(){return this.disposables.add(new ge.a(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new ge.a(window,"mouseup")).event}dispose(){this.disposables.dispose()}}__decorate([Se.a],MouseEventFactory.prototype,"onPointerMove",null),__decorate([Se.a],MouseEventFactory.prototype,"onPointerUp",null);class GestureEventFactory{constructor(G){this.el=G,this.disposables=new ie.b}get onPointerMove(){return this.disposables.add(new ge.a(this.el,ce.a.Change)).event}get onPointerUp(){return this.disposables.add(new ge.a(this.el,ce.a.End)).event}dispose(){this.disposables.dispose()}}__decorate([Se.a],GestureEventFactory.prototype,"onPointerMove",null),__decorate([Se.a],GestureEventFactory.prototype,"onPointerUp",null);class OrthogonalPointerEventFactory{constructor(G){this.factory=G}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}__decorate([Se.a],OrthogonalPointerEventFactory.prototype,"onPointerMove",null),__decorate([Se.a],OrthogonalPointerEventFactory.prototype,"onPointerUp",null);class Sash extends ie.a{constructor(G,Z,ne){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new Ce.a(this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new fe.b),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new fe.b),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new fe.b),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new fe.b),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new fe.b),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new ie.b),this.orthogonalStartDragHandleDisposables=this._register(new ie.b),this.orthogonalEndSashDisposables=this._register(new ie.b),this.orthogonalEndDragHandleDisposables=this._register(new ie.b),this.el=Object(me.q)(G,Object(me.a)(".monaco-sash")),ne.orthogonalEdge&&this.el.classList.add("orthogonal-edge-"+ne.orthogonalEdge),se.f&&this.el.classList.add("mac");const Se=this._register(new ge.a(this.el,"mousedown")).event;this._register(Se(G=>this.onPointerStart(G,new MouseEventFactory),this));const Me=this._register(new ge.a(this.el,"dblclick")).event;this._register(Me(this.onPointerDoublePress,this));const De=this._register(new ge.a(this.el,"mouseenter")).event;this._register(De(()=>Sash.onMouseEnter(this)));const Ie=this._register(new ge.a(this.el,"mouseleave")).event;this._register(Ie(()=>Sash.onMouseLeave(this))),this._register(ce.b.addTarget(this.el));const Re=fe.c.map(this._register(new ge.a(this.el,ce.a.Start)).event,G=>{var Z;return Object.assign(Object.assign({},G),{target:null!==(Z=G.initialTarget)&&void 0!==Z?Z:null})});this._register(Re(G=>this.onPointerStart(G,new GestureEventFactory(this.el)),this));const ze=this._register(new ge.a(this.el,ce.a.Tap)).event,$e=fe.c.map(fe.c.filter(fe.c.debounce(ze,(G,Z)=>{var ne;return{event:Z,count:(null!==(ne=null==G?void 0:G.count)&&void 0!==ne?ne:0)+1}},250),({count:G})=>2===G),({event:G})=>{var Z;return Object.assign(Object.assign({},G),{target:null!==(Z=G.initialTarget)&&void 0!==Z?Z:null})});this._register($e(this.onPointerDoublePress,this)),"number"==typeof ne.size?(this.size=ne.size,0===ne.orientation?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=4,this._register(ke.event(G=>{this.size=G,this.layout()}))),this._register(xe.event(G=>this.hoverDelay=G)),this.hidden=!1,this.layoutProvider=Z,this.orthogonalStartSash=ne.orthogonalStartSash,this.orthogonalEndSash=ne.orthogonalEndSash,this.orientation=ne.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}get state(){return this._state}set state(G){this._state!==G&&(this.el.classList.toggle("disabled",0===G),this.el.classList.toggle("minimum",1===G),this.el.classList.toggle("maximum",2===G),this._state=G,this._onDidEnablementChange.fire(G))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(G){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),G){const onChange=Z=>{this.orthogonalStartDragHandleDisposables.clear(),0!==Z&&(this._orthogonalStartDragHandle=Object(me.q)(this.el,Object(me.a)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Object(ie.i)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new ge.a(this._orthogonalStartDragHandle,"mouseenter")).event(()=>Sash.onMouseEnter(G),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new ge.a(this._orthogonalStartDragHandle,"mouseleave")).event(()=>Sash.onMouseLeave(G),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(G.onDidEnablementChange(onChange,this)),onChange(G.state)}this._orthogonalStartSash=G}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(G){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),G){const onChange=Z=>{this.orthogonalEndDragHandleDisposables.clear(),0!==Z&&(this._orthogonalEndDragHandle=Object(me.q)(this.el,Object(me.a)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Object(ie.i)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new ge.a(this._orthogonalEndDragHandle,"mouseenter")).event(()=>Sash.onMouseEnter(G),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new ge.a(this._orthogonalEndDragHandle,"mouseleave")).event(()=>Sash.onMouseLeave(G),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(G.onDidEnablementChange(onChange,this)),onChange(G.state)}this._orthogonalEndSash=G}onPointerStart(G,Z){me.c.stop(G);let ne=!1;if(!G.__orthogonalSashEvent){const ie=this.getOrthogonalSash(G);ie&&(ne=!0,G.__orthogonalSashEvent=!0,ie.onPointerStart(G,new OrthogonalPointerEventFactory(Z)))}if(this.linkedSash&&!G.__linkedSashEvent&&(G.__linkedSashEvent=!0,this.linkedSash.onPointerStart(G,new OrthogonalPointerEventFactory(Z))),!this.state)return;const ce=Object(me.E)("iframe");for(const G of ce)G.style.pointerEvents="none";const fe=G.pageX,ge=G.pageY,Ce=G.altKey,Se={startX:fe,currentX:fe,startY:ge,currentY:ge,altKey:Ce};this.el.classList.add("active"),this._onDidStart.fire(Se);const Me=Object(me.w)(this.el),updateStyle=()=>{let G="";G=ne?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":se.f?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":se.f?"col-resize":"ew-resize",Me.textContent=`* { cursor: ${G} !important; }`},ke=new ie.b;updateStyle(),ne||this.onDidEnablementChange(updateStyle,null,ke);Z.onPointerMove(G=>{me.c.stop(G,!1);const Z={startX:fe,currentX:G.pageX,startY:ge,currentY:G.pageY,altKey:Ce};this._onDidChange.fire(Z)},null,ke),Z.onPointerUp(G=>{me.c.stop(G,!1),this.el.removeChild(Me),this.el.classList.remove("active"),this._onDidEnd.fire(),ke.dispose();for(const G of ce)G.style.pointerEvents="auto"},null,ke),ke.add(Z)}onPointerDoublePress(G){const Z=this.getOrthogonalSash(G);Z&&Z._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(G,Z=!1){G.el.classList.contains("active")?(G.hoverDelayer.cancel(),G.el.classList.add("hover")):G.hoverDelayer.trigger(()=>G.el.classList.add("hover"),G.hoverDelay).then(void 0,()=>{}),!Z&&G.linkedSash&&Sash.onMouseEnter(G.linkedSash,!0)}static onMouseLeave(G,Z=!1){G.hoverDelayer.cancel(),G.el.classList.remove("hover"),!Z&&G.linkedSash&&Sash.onMouseLeave(G.linkedSash,!0)}clearSashHoverState(){Sash.onMouseLeave(this)}layout(){if(0===this.orientation){const G=this.layoutProvider;this.el.style.left=G.getVerticalSashLeft(this)-this.size/2+"px",G.getVerticalSashTop&&(this.el.style.top=G.getVerticalSashTop(this)+"px"),G.getVerticalSashHeight&&(this.el.style.height=G.getVerticalSashHeight(this)+"px")}else{const G=this.layoutProvider;this.el.style.top=G.getHorizontalSashTop(this)-this.size/2+"px",G.getHorizontalSashLeft&&(this.el.style.left=G.getHorizontalSashLeft(this)+"px"),G.getHorizontalSashWidth&&(this.el.style.width=G.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(G){if(G.target&&G.target instanceof HTMLElement)return G.target.classList.contains("orthogonal-drag-handle")?G.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},538:function(G,Z,ne){"use strict";ne.d(Z,"d",(function(){return Text})),ne.d(Z,"b",(function(){return Placeholder})),ne.d(Z,"a",(function(){return Choice})),ne.d(Z,"c",(function(){return SnippetParser}));class Scanner{constructor(){this.value="",this.pos=0}static isDigitCharacter(G){return G>=48&&G<=57}static isVariableCharacter(G){return 95===G||G>=97&&G<=122||G>=65&&G<=90}text(G){this.value=G,this.pos=0}tokenText(G){return this.value.substr(G.pos,G.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let G,Z=this.pos,ne=0,ie=this.value.charCodeAt(Z);if(G=Scanner._table[ie],"number"==typeof G)return this.pos+=1,{type:G,pos:Z,len:1};if(Scanner.isDigitCharacter(ie)){G=8;do{ne+=1,ie=this.value.charCodeAt(Z+ne)}while(Scanner.isDigitCharacter(ie));return this.pos+=ne,{type:G,pos:Z,len:ne}}if(Scanner.isVariableCharacter(ie)){G=9;do{ie=this.value.charCodeAt(Z+ ++ne)}while(Scanner.isVariableCharacter(ie)||Scanner.isDigitCharacter(ie));return this.pos+=ne,{type:G,pos:Z,len:ne}}G=10;do{ne+=1,ie=this.value.charCodeAt(Z+ne)}while(!isNaN(ie)&&void 0===Scanner._table[ie]&&!Scanner.isDigitCharacter(ie)&&!Scanner.isVariableCharacter(ie));return this.pos+=ne,{type:G,pos:Z,len:ne}}}Scanner._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class Marker{constructor(){this._children=[]}appendChild(G){return G instanceof Text&&this._children[this._children.length-1]instanceof Text?this._children[this._children.length-1].value+=G.value:(G.parent=this,this._children.push(G)),this}replace(G,Z){const{parent:ne}=G,ie=ne.children.indexOf(G),se=ne.children.slice(0);se.splice(ie,1,...Z),ne._children=se,function _fixParent(G,Z){for(const ne of G)ne.parent=Z,_fixParent(ne.children,ne)}(Z,ne)}get children(){return this._children}get snippet(){let G=this;for(;;){if(!G)return;if(G instanceof TextmateSnippet)return G;G=G.parent}}toString(){return this.children.reduce((G,Z)=>G+Z.toString(),"")}len(){return 0}}class Text extends Marker{constructor(G){super(),this.value=G}toString(){return this.value}len(){return this.value.length}clone(){return new Text(this.value)}}class TransformableMarker extends Marker{}class Placeholder extends TransformableMarker{constructor(G){super(),this.index=G}static compareByIndex(G,Z){return G.index===Z.index?0:G.isFinalTabstop?1:Z.isFinalTabstop||G.indexZ.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof Choice?this._children[0]:void 0}clone(){let G=new Placeholder(this.index);return this.transform&&(G.transform=this.transform.clone()),G._children=this.children.map(G=>G.clone()),G}}class Choice extends Marker{constructor(){super(...arguments),this.options=[]}appendChild(G){return G instanceof Text&&(G.parent=this,this.options.push(G)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let G=new Choice;return this.options.forEach(G.appendChild,G),G}}class Transform extends Marker{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(G){const Z=this;let ne=!1,ie=G.replace(this.regexp,(function(){return ne=!0,Z._replace(Array.prototype.slice.call(arguments,0,-2))}));return!ne&&this._children.some(G=>G instanceof FormatString&&Boolean(G.elseValue))&&(ie=this._replace([])),ie}_replace(G){let Z="";for(const ne of this._children)if(ne instanceof FormatString){let ie=G[ne.index]||"";ie=ne.resolve(ie),Z+=ie}else Z+=ne.toString();return Z}toString(){return""}clone(){let G=new Transform;return G.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),G._children=this.children.map(G=>G.clone()),G}}class FormatString extends Marker{constructor(G,Z,ne,ie){super(),this.index=G,this.shorthandName=Z,this.ifValue=ne,this.elseValue=ie}resolve(G){return"upcase"===this.shorthandName?G?G.toLocaleUpperCase():"":"downcase"===this.shorthandName?G?G.toLocaleLowerCase():"":"capitalize"===this.shorthandName?G?G[0].toLocaleUpperCase()+G.substr(1):"":"pascalcase"===this.shorthandName?G?this._toPascalCase(G):"":"camelcase"===this.shorthandName?G?this._toCamelCase(G):"":Boolean(G)&&"string"==typeof this.ifValue?this.ifValue:Boolean(G)||"string"!=typeof this.elseValue?G||"":this.elseValue}_toPascalCase(G){const Z=G.match(/[a-z0-9]+/gi);return Z?Z.map(G=>G.charAt(0).toUpperCase()+G.substr(1).toLowerCase()).join(""):G}_toCamelCase(G){const Z=G.match(/[a-z0-9]+/gi);return Z?Z.map((G,Z)=>0===Z?G.toLowerCase():G.charAt(0).toUpperCase()+G.substr(1).toLowerCase()).join(""):G}clone(){return new FormatString(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class Variable extends TransformableMarker{constructor(G){super(),this.name=G}resolve(G){let Z=G.resolve(this);return this.transform&&(Z=this.transform.resolve(Z||"")),void 0!==Z&&(this._children=[new Text(Z)],!0)}clone(){const G=new Variable(this.name);return this.transform&&(G.transform=this.transform.clone()),G._children=this.children.map(G=>G.clone()),G}}function walk(G,Z){const ne=[...G];for(;ne.length>0;){const G=ne.shift();if(!Z(G))break;ne.unshift(...G.children)}}class TextmateSnippet extends Marker{get placeholderInfo(){if(!this._placeholders){let G,Z=[];this.walk((function(ne){return ne instanceof Placeholder&&(Z.push(ne),G=!G||G.indexie===G?(ne=!0,!1):(Z+=ie.len(),!0)),ne?Z:-1}fullLen(G){let Z=0;return walk([G],G=>(Z+=G.len(),!0)),Z}enclosingPlaceholders(G){let Z=[],{parent:ne}=G;for(;ne;)ne instanceof Placeholder&&Z.push(ne),ne=ne.parent;return Z}resolveVariables(G){return this.walk(Z=>(Z instanceof Variable&&Z.resolve(G)&&(this._placeholders=void 0),!0)),this}appendChild(G){return this._placeholders=void 0,super.appendChild(G)}replace(G,Z){return this._placeholders=void 0,super.replace(G,Z)}clone(){let G=new TextmateSnippet;return this._children=this.children.map(G=>G.clone()),G}walk(G){walk(this.children,G)}}class SnippetParser{constructor(){this._scanner=new Scanner,this._token={type:14,pos:0,len:0}}static escape(G){return G.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(G){return/\${?CLIPBOARD/.test(G)}parse(G,Z,ne){this._scanner.text(G),this._token=this._scanner.next();const ie=new TextmateSnippet;for(;this._parse(ie););const se=new Map,ce=[];let fe=0;ie.walk(G=>(G instanceof Placeholder&&(fe+=1,G.isFinalTabstop?se.set(0,void 0):!se.has(G.index)&&G.children.length>0?se.set(G.index,G.children):ce.push(G)),!0));for(const G of ce){const Z=se.get(G.index);if(Z){const ne=new Placeholder(G.index);ne.transform=G.transform;for(const G of Z)ne.appendChild(G.clone());ie.replace(G,[ne])}}return ne||(ne=fe>0&&Z),!se.has(0)&&ne&&ie.appendChild(new Placeholder(0)),ie}_accept(G,Z){if(void 0===G||this._token.type===G){let G=!Z||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),G}return!1}_backTo(G){return this._scanner.pos=G.pos+G.len,this._token=G,!1}_until(G){const Z=this._token;for(;this._token.type!==G;){if(14===this._token.type)return!1;if(5===this._token.type){const G=this._scanner.next();if(0!==G.type&&4!==G.type&&5!==G.type)return!1}this._token=this._scanner.next()}const ne=this._scanner.value.substring(Z.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),ne}_parse(G){return this._parseEscaped(G)||this._parseTabstopOrVariableName(G)||this._parseComplexPlaceholder(G)||this._parseComplexVariable(G)||this._parseAnything(G)}_parseEscaped(G){let Z;return!!(Z=this._accept(5,!0))&&(Z=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||Z,G.appendChild(new Text(Z)),!0)}_parseTabstopOrVariableName(G){let Z;const ne=this._token;return this._accept(0)&&(Z=this._accept(9,!0)||this._accept(8,!0))?(G.appendChild(/^\d+$/.test(Z)?new Placeholder(Number(Z)):new Variable(Z)),!0):this._backTo(ne)}_parseComplexPlaceholder(G){let Z;const ne=this._token;if(!(this._accept(0)&&this._accept(3)&&(Z=this._accept(8,!0))))return this._backTo(ne);const ie=new Placeholder(Number(Z));if(this._accept(1))for(;;){if(this._accept(4))return G.appendChild(ie),!0;if(!this._parse(ie))return G.appendChild(new Text("${"+Z+":")),ie.children.forEach(G.appendChild,G),!0}else{if(!(ie.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(ie)?(G.appendChild(ie),!0):(this._backTo(ne),!1):this._accept(4)?(G.appendChild(ie),!0):this._backTo(ne);{const Z=new Choice;for(;;){if(this._parseChoiceElement(Z)){if(this._accept(2))continue;if(this._accept(7)&&(ie.appendChild(Z),this._accept(4)))return G.appendChild(ie),!0}return this._backTo(ne),!1}}}}_parseChoiceElement(G){const Z=this._token,ne=[];for(;2!==this._token.type&&7!==this._token.type;){let G;if(G=(G=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||G:this._accept(void 0,!0),!G)return this._backTo(Z),!1;ne.push(G)}return 0===ne.length?(this._backTo(Z),!1):(G.appendChild(new Text(ne.join(""))),!0)}_parseComplexVariable(G){let Z;const ne=this._token;if(!(this._accept(0)&&this._accept(3)&&(Z=this._accept(9,!0))))return this._backTo(ne);const ie=new Variable(Z);if(!this._accept(1))return this._accept(6)?this._parseTransform(ie)?(G.appendChild(ie),!0):(this._backTo(ne),!1):this._accept(4)?(G.appendChild(ie),!0):this._backTo(ne);for(;;){if(this._accept(4))return G.appendChild(ie),!0;if(!this._parse(ie))return G.appendChild(new Text("${"+Z+":")),ie.children.forEach(G.appendChild,G),!0}}_parseTransform(G){let Z=new Transform,ne="",ie="";for(;!this._accept(6);){let G;if(G=this._accept(5,!0))G=this._accept(6,!0)||G,ne+=G;else{if(14===this._token.type)return!1;ne+=this._accept(void 0,!0)}}for(;!this._accept(6);){let G;if(G=this._accept(5,!0))G=this._accept(5,!0)||this._accept(6,!0)||G,Z.appendChild(new Text(G));else if(!this._parseFormatString(Z)&&!this._parseAnything(Z))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;ie+=this._accept(void 0,!0)}try{Z.regexp=new RegExp(ne,ie)}catch(G){return!1}return G.transform=Z,!0}_parseFormatString(G){const Z=this._token;if(!this._accept(0))return!1;let ne=!1;this._accept(3)&&(ne=!0);let ie=this._accept(8,!0);if(!ie)return this._backTo(Z),!1;if(!ne)return G.appendChild(new FormatString(Number(ie))),!0;if(this._accept(4))return G.appendChild(new FormatString(Number(ie))),!0;if(!this._accept(1))return this._backTo(Z),!1;if(this._accept(6)){let ne=this._accept(9,!0);return ne&&this._accept(4)?(G.appendChild(new FormatString(Number(ie),ne)),!0):(this._backTo(Z),!1)}if(this._accept(11)){let Z=this._until(4);if(Z)return G.appendChild(new FormatString(Number(ie),void 0,Z,void 0)),!0}else if(this._accept(12)){let Z=this._until(4);if(Z)return G.appendChild(new FormatString(Number(ie),void 0,void 0,Z)),!0}else if(this._accept(13)){let Z=this._until(1);if(Z){let ne=this._until(4);if(ne)return G.appendChild(new FormatString(Number(ie),void 0,Z,ne)),!0}}else{let Z=this._until(4);if(Z)return G.appendChild(new FormatString(Number(ie),void 0,void 0,Z)),!0}return this._backTo(Z),!1}_parseAnything(G){return 14!==this._token.type&&(G.appendChild(new Text(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},539:function(G,Z,ne){"use strict";ne.d(Z,"f",(function(){return countEOL})),ne.d(Z,"b",(function(){return MultilineTokensBuilder})),ne.d(Z,"c",(function(){return SparseEncodedTokens})),ne.d(Z,"a",(function(){return MultilineTokens2})),ne.d(Z,"e",(function(){return TokensStore2})),ne.d(Z,"d",(function(){return TokensStore}));var ie=ne(69),se=ne(397),ce=ne(34),fe=ne(12),me=ne(35);function countEOL(G){let Z=0,ne=0,ie=0,se=0;for(let ce=0,fe=G.length;ce>>0}const ge=new Uint32Array(0).buffer;class MultilineTokensBuilder{constructor(){this.tokens=[]}add(G,Z){if(this.tokens.length>0){const ne=this.tokens[this.tokens.length-1];if(ne.startLineNumber+ne.tokens.length-1+1===G)return void ne.tokens.push(Z)}this.tokens.push(new MultilineTokens(G,[Z]))}}class SparseEncodedTokens{constructor(G){this._tokens=G,this._tokenCount=G.length/4}toString(G){let Z=[];for(let ne=0;neG)){let se=ie;for(;se>Z&&this._getDeltaLine(se-1)===G;)se--;let ce=ie;for(;ceG||Se===G&&ke>=Z)&&(SeG||Me===G&&xe>=Z){if(Mese?De-=se-ne:De=ne;else if(ke===Z&&xe===ne){if(!(ke===ie&&De>se)){Ce=!0;continue}De-=se-ne}else if(kese)){Ce=!0;continue}ke===Z?(xe=ne,De=xe+(De-se)):(xe=0,De=xe+(De-se))}else if(ke>ie){if(0===me&&!Ce){ge=fe;break}ke-=me}else{if(!(ke===ie&&xe>=se))throw new Error("Not possible!");G&&0===ke&&(xe+=G,De+=G),ke-=me,xe-=se-ne,De-=se-ne}const Re=4*ge;ce[Re]=ke,ce[Re+1]=xe,ce[Re+2]=De,ce[Re+3]=Ie,ge++}this._tokenCount=ge}acceptInsertText(G,Z,ne,ie,se,ce){const fe=0===ne&&1===ie&&(ce>=48&&ce<=57||ce>=65&&ce<=90||ce>=97&&ce<=122),me=this._tokens,ge=this._tokenCount;for(let ce=0;ce0?Z.charCodeAt(0):0)}acceptEdit(G,Z,ne,ie,se){this._acceptDeleteRange(G),this._acceptInsertText(new ce.a(G.startLineNumber,G.startColumn),Z,ne,ie,se),this._updateEndLineNumber()}_acceptDeleteRange(G){if(G.startLineNumber===G.endLineNumber&&G.startColumn===G.endColumn)return;const Z=G.startLineNumber-this.startLineNumber,ne=G.endLineNumber-this.startLineNumber;if(ne<0){const G=ne-Z;return void(this.startLineNumber-=G)}const ie=this.tokens.getMaxDeltaLine();if(!(Z>=ie+1)){if(Z<0&&ne>=ie+1)return this.startLineNumber=0,void this.tokens.clear();if(Z<0){const ie=-Z;this.startLineNumber-=ie,this.tokens.acceptDeleteRange(G.startColumn-1,0,0,ne,G.endColumn-1)}else this.tokens.acceptDeleteRange(0,Z,G.startColumn-1,ne,G.endColumn-1)}}_acceptInsertText(G,Z,ne,ie,se){if(0===Z&&0===ne)return;const ce=G.lineNumber-this.startLineNumber;if(ce<0)return void(this.startLineNumber+=Z);ce>=this.tokens.getMaxDeltaLine()+1||this.tokens.acceptInsertText(ce,G.column-1,Z,ne,ie,se)}}class MultilineTokens{constructor(G,Z){this.startLineNumber=G,this.tokens=Z}}function toUint32Array(G){return G instanceof Uint32Array?G:new Uint32Array(G)}class TokensStore2{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(G,Z){this._pieces=G||[],this._isComplete=Z}setPartial(G,Z){let ne=G;if(Z.length>0){const ie=Z[0].getRange(),se=Z[Z.length-1].getRange();if(!ie||!se)return G;ne=G.plusRange(ie).plusRange(se)}let se=null;for(let G=0,Z=this._pieces.length;Gne.endLineNumber){se=se||{index:G};break}if(ie.removeTokens(ne),ie.isEmpty()){this._pieces.splice(G,1),G--,Z--;continue}if(ie.endLineNumberne.endLineNumber){se=se||{index:G};continue}const[ce,fe]=ie.split(ne);ce.isEmpty()?se=se||{index:G}:fe.isEmpty()||(this._pieces.splice(G,1,ce,fe),G++,Z++,se=se||{index:G})}return se=se||{index:this._pieces.length},Z.length>0&&(this._pieces=ie.b(this._pieces,se.index,Z)),ne}isComplete(){return this._isComplete}addSemanticTokens(G,Z){const ne=this._pieces;if(0===ne.length)return Z;const ie=ne[TokensStore2._findFirstPieceWithLine(ne,G)].getLineTokens(G);if(!ie)return Z;const ce=Z.getCount(),fe=ie.getCount();let me=0,ge=[],Ce=0,Se=0;const emitToken=(G,Z)=>{G!==Se&&(Se=G,ge[Ce++]=G,ge[Ce++]=Z)};for(let G=0;G>>0,Ce=~ge>>>0;for(;meZ)){for(;se>ne&&G[se-1].startLineNumber<=Z&&Z<=G[se-1].endLineNumber;)se--;return se}ie=se-1}}return ne}acceptEdit(G,Z,ne,ie,se){for(const ce of this._pieces)ce.acceptEdit(G,Z,ne,ie,se)}}class TokensStore{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(G,Z,ne){let ie=null;if(Z1&&(Z=me.E.getLanguageId(ie[1])!==G),!Z)return ge}if(!ie||0===ie.length){const ne=new Uint32Array(2);return ne[0]=Z,ne[1]=getDefaultMetadata(G),ne.buffer}return ie[ie.length-2]=Z,0===ie.byteOffset&&ie.byteLength===ie.buffer.byteLength?ie.buffer:ie}_ensureLine(G){for(;G>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(G,Z){0!==Z&&(G+Z>this._len&&(Z=this._len-G),this._lineTokens.splice(G,Z),this._len-=Z)}_insertLines(G,Z){if(0===Z)return;let ne=[];for(let G=0;G=this._len)return;if(G.startLineNumber===G.endLineNumber){if(G.startColumn===G.endColumn)return;return void(this._lineTokens[Z]=TokensStore._delete(this._lineTokens[Z],G.startColumn-1,G.endColumn-1))}this._lineTokens[Z]=TokensStore._deleteEnding(this._lineTokens[Z],G.startColumn-1);const ne=G.endLineNumber-1;let ie=null;ne=this._len||(0!==Z?(this._lineTokens[ie]=TokensStore._deleteEnding(this._lineTokens[ie],G.column-1),this._lineTokens[ie]=TokensStore._insert(this._lineTokens[ie],G.column-1,ne),this._insertLines(G.lineNumber,Z)):this._lineTokens[ie]=TokensStore._insert(this._lineTokens[ie],G.column-1,ne))}static _deleteBeginning(G,Z){return null===G||G===ge?G:TokensStore._delete(G,0,Z)}static _deleteEnding(G,Z){if(null===G||G===ge)return G;const ne=toUint32Array(G),ie=ne[ne.length-2];return TokensStore._delete(G,Z,ie)}static _delete(G,Z,ne){if(null===G||G===ge||Z===ne)return G;const ie=toUint32Array(G),ce=ie.length>>>1;if(0===Z&&ie[ie.length-2]===ne)return ge;const fe=se.a.findIndexInTokensArray(ie,Z),me=fe>0?ie[fe-1<<1]:0;if(neSe&&(ie[Ce++]=Z,ie[Ce++]=ie[1+(G<<1)],Se=Z)}if(Ce===ie.length)return G;let ke=new Uint32Array(Ce);return ke.set(ie.subarray(0,Ce),0),ke.buffer}static _append(G,Z){if(Z===ge)return G;if(G===ge)return Z;if(null===G)return G;if(null===Z)return null;const ne=toUint32Array(G),ie=toUint32Array(Z),se=ie.length>>>1;let ce=new Uint32Array(ne.length+ie.length);ce.set(ne,0);let fe=ne.length;const me=ne[ne.length-2];for(let G=0;G>>1;let fe=se.a.findIndexInTokensArray(ie,Z);if(fe>0){ie[fe-1<<1]===Z&&fe--}for(let G=fe;Gfunction(){const ne=Array.prototype.slice.call(arguments,0);return Z(G,ne)};let ne={};for(const Z of G)ne[Z]=createProxyMethod(Z);return ne}function withNullAsUndefined(G){return null===G?void 0:G}function assertNever(G,Z="Unreachable"){throw new Error(Z)}ne.d(Z,"f",(function(){return isArray})),ne.d(Z,"k",(function(){return isString})),ne.d(Z,"j",(function(){return isObject})),ne.d(Z,"i",(function(){return isNumber})),ne.d(Z,"g",(function(){return isBoolean})),ne.d(Z,"l",(function(){return isUndefined})),ne.d(Z,"m",(function(){return isUndefinedOrNull})),ne.d(Z,"c",(function(){return assertType})),ne.d(Z,"a",(function(){return assertIsDefined})),ne.d(Z,"h",(function(){return isFunction})),ne.d(Z,"n",(function(){return validateConstraints})),ne.d(Z,"e",(function(){return getAllMethodNames})),ne.d(Z,"d",(function(){return createProxyObject})),ne.d(Z,"o",(function(){return withNullAsUndefined})),ne.d(Z,"b",(function(){return assertNever}))},540:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se})),ne.d(Z,"b",(function(){return ResourceEditStackSnapshot})),ne.d(Z,"c",(function(){return UndoRedoGroup})),ne.d(Z,"d",(function(){return UndoRedoSource}));var ie=ne(60);const se=Object(ie.c)("undoRedoService");class ResourceEditStackSnapshot{constructor(G,Z){this.resource=G,this.elements=Z}}class UndoRedoGroup{constructor(){this.id=UndoRedoGroup._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}UndoRedoGroup._ID=0,UndoRedoGroup.None=new UndoRedoGroup;class UndoRedoSource{constructor(){this.id=UndoRedoSource._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}UndoRedoSource._ID=0,UndoRedoSource.None=new UndoRedoSource},541:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return RichEditBrackets})),ne.d(Z,"a",(function(){return BracketsUtils}));var ie=ne(27),se=ne(575),ce=ne(12);class RichEditBracket{constructor(G,Z,ne,ie,se,ce){this._richEditBracketBrand=void 0,this.languageIdentifier=G,this.index=Z,this.open=ne,this.close=ie,this.forwardRegex=se,this.reversedRegex=ce,this._openSet=RichEditBracket._toSet(this.open),this._closeSet=RichEditBracket._toSet(this.close)}isOpen(G){return this._openSet.has(G)}isClose(G){return this._closeSet.has(G)}static _toSet(G){const Z=new Set;for(const ne of G)Z.add(ne);return Z}}class RichEditBrackets{constructor(G,Z){this._richEditBracketsBrand=void 0;const ne=function groupFuzzyBrackets(G){const Z=G.length;G=G.map(G=>[G[0].toLowerCase(),G[1].toLowerCase()]);const ne=[];for(let G=0;G{const[ne,ie]=G,[se,ce]=Z;return ne===se||ne===ce||ie===se||ie===ce},mergeGroups=(G,ie)=>{const se=Math.min(G,ie),ce=Math.max(G,ie);for(let G=0;G0&&ie.push({open:ce,close:fe})}return ie}(Z);this.brackets=ne.map((Z,ie)=>new RichEditBracket(G,ie,Z.open,Z.close,function getRegexForBracketPair(G,Z,ne,ie){let se=[];se=se.concat(G),se=se.concat(Z);for(let G=0,Z=se.length;G=0&&ie.push(Z);for(const Z of ce.close)Z.indexOf(G)>=0&&ie.push(Z)}}function lengthcmp(G,Z){return G.length-Z.length}function unique(G){if(G.length<=1)return G;const Z=[],ne=new Set;for(const ie of G)ne.has(ie)||(Z.push(ie),ne.add(ie));return Z}function prepareBracketForRegExp(G){const Z=/^[\w ]+$/.test(G);return G=ie.u(G),Z?`\\b${G}\\b`:G}function createBracketOrRegExp(G){let Z=`(${G.map(prepareBracketForRegExp).join(")|(")})`;return ie.q(Z,!0)}const fe=function(){let G=null,Z=null;return function toReversedString(ne){return G!==ne&&(G=ne,Z=function reverse(G){if(se.d){const Z=new Uint16Array(G.length);let ne=0;for(let ie=G.length-1;ie>=0;ie--)Z[ne++]=G.charCodeAt(ie);return se.c().decode(Z)}{let Z=[],ne=0;for(let ie=G.length-1;ie>=0;ie--)Z[ne++]=G.charAt(ie);return Z.join("")}}(G)),Z}}();class BracketsUtils{static _findPrevBracketInText(G,Z,ne,ie){let se=ne.match(G);if(!se)return null;let fe=ne.length-(se.index||0),me=se[0].length,ge=ie+fe;return new ce.a(Z,ge-me+1,Z,ge+1)}static findPrevBracketInRange(G,Z,ne,ie,se){const ce=fe(ne).substring(ne.length-se,ne.length-ie);return this._findPrevBracketInText(G,Z,ce,ie)}static findNextBracketInText(G,Z,ne,ie){let se=ne.match(G);if(!se)return null;let fe=se.index||0,me=se[0].length;if(0===me)return null;let ge=ie+fe;return new ce.a(Z,ge+1,Z,ge+1+me)}static findNextBracketInRange(G,Z,ne,ie,se){const ce=ne.substring(ie,se);return this.findNextBracketInText(G,Z,ce,ie)}}},562:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getCustomizedTheme=Z.addThemeDefaults=void 0;var ie=_interopRequireDefault(ne(85)),se=_interopRequireDefault(ne(1095));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Z.addThemeDefaults=function addThemeDefaults(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=void 0===Z?"prisma":Z,ie=G.colorScheme,se=void 0===ie?"dark":ie,ce=G.density,fe=void 0===ce?"comfortable":ce,me=G.isPrisma,ge=void 0===me||me,Ce=G.isEnterprise,Se=void 0!==Ce&&Ce,Me=G.isComfortable,ke=void 0===Me||Me,xe=G.isCompact,De=void 0!==xe&&xe,Ie=G.isDark,Re=void 0===Ie||Ie,ze=G.isLight,$e=void 0!==ze&&ze;return{family:ne,colorScheme:se,density:fe,isPrisma:ge,isEnterprise:Se,isComfortable:ke,isCompact:De,isDark:Re,isLight:$e}};var ce=(0,ie.default)((function getCustomizedThemeUnmemo(G,Z){var ne=(0,se.default)(G);return Z?Z(ne):ne}),(function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Z=G.family,ne=G.colorScheme,ie=G.density,se=arguments.length>1?arguments[1]:void 0;return"".concat(Z,"-").concat(ne,"-").concat(ie,"-").concat(!!se)}));Z.getCustomizedTheme=ce},57:function(G,Z,ne){"use strict";ne.d(Z,"k",(function(){return isThenable})),ne.d(Z,"h",(function(){return createCancelablePromise})),ne.d(Z,"l",(function(){return raceCancellation})),ne.d(Z,"a",(function(){return Delayer})),ne.d(Z,"f",(function(){return ThrottledDelayer})),ne.d(Z,"n",(function(){return timeout})),ne.d(Z,"i",(function(){return disposableTimeout})),ne.d(Z,"j",(function(){return first})),ne.d(Z,"g",(function(){return TimeoutTimer})),ne.d(Z,"c",(function(){return IntervalTimer})),ne.d(Z,"e",(function(){return RunOnceScheduler})),ne.d(Z,"m",(function(){return fe})),ne.d(Z,"b",(function(){return IdleValue})),ne.d(Z,"d",(function(){return me}));var ie=ne(103),se=ne(51),ce=ne(10),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function isThenable(G){return!!G&&"function"==typeof G.then}function createCancelablePromise(G){const Z=new ie.b,ne=G(Z.token),ce=new Promise((G,ie)=>{const ce=Z.token.onCancellationRequested(()=>{ce.dispose(),Z.dispose(),ie(Object(se.a)())});Promise.resolve(ne).then(ne=>{ce.dispose(),Z.dispose(),G(ne)},G=>{ce.dispose(),Z.dispose(),ie(G)})});return new class{cancel(){Z.cancel()}then(G,Z){return ce.then(G,Z)}catch(G){return this.then(void 0,G)}finally(G){return ce.finally(G)}}}function raceCancellation(G,Z,ne){return Promise.race([G,new Promise(G=>Z.onCancellationRequested(()=>G(ne)))])}class Throttler{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(G){if(this.activePromise){if(this.queuedPromiseFactory=G,!this.queuedPromise){const onComplete=()=>{this.queuedPromise=null;const G=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,G};this.queuedPromise=new Promise(G=>{this.activePromise.then(onComplete,onComplete).then(G)})}return new Promise((G,Z)=>{this.queuedPromise.then(G,Z)})}return this.activePromise=G(),new Promise((G,Z)=>{this.activePromise.then(Z=>{this.activePromise=null,G(Z)},G=>{this.activePromise=null,Z(G)})})}}class Delayer{constructor(G){this.defaultDelay=G,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(G,Z=this.defaultDelay){return this.task=G,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((G,Z)=>{this.doResolve=G,this.doReject=Z}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const G=this.task;return this.task=null,G()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},Z),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(Object(se.a)()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class ThrottledDelayer{constructor(G){this.delayer=new Delayer(G),this.throttler=new Throttler}trigger(G,Z){return this.delayer.trigger(()=>this.throttler.queue(G),Z)}dispose(){this.delayer.dispose()}}function timeout(G,Z){return Z?new Promise((ne,ie)=>{const ce=setTimeout(()=>{fe.dispose(),ne()},G),fe=Z.onCancellationRequested(()=>{clearTimeout(ce),fe.dispose(),ie(Object(se.a)())})}):createCancelablePromise(Z=>timeout(G,Z))}function disposableTimeout(G,Z=0){const ne=setTimeout(G,Z);return Object(ce.i)(()=>clearTimeout(ne))}function first(G,Z=(G=>!!G),ne=null){let ie=0;const se=G.length,loop=()=>{if(ie>=se)return Promise.resolve(ne);const ce=G[ie++];return Promise.resolve(ce()).then(G=>Z(G)?Promise.resolve(G):loop())};return loop()}class TimeoutTimer{constructor(G,Z){this._token=-1,"function"==typeof G&&"number"==typeof Z&&this.setIfNotSet(G,Z)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(G,Z){this.cancel(),this._token=setTimeout(()=>{this._token=-1,G()},Z)}setIfNotSet(G,Z){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,G()},Z))}}class IntervalTimer{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(G,Z){this.cancel(),this._token=setInterval(()=>{G()},Z)}}class RunOnceScheduler{constructor(G,Z){this.timeoutToken=-1,this.runner=G,this.timeout=Z,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(G=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,G)}get delay(){return this.timeout}set delay(G){this.timeout=G}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let fe;!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const G=Object.freeze({didTimeout:!0,timeRemaining:()=>15});fe=Z=>{const ne=setTimeout(()=>Z(G));let ie=!1;return{dispose(){ie||(ie=!0,clearTimeout(ne))}}}}else fe=(G,Z)=>{const ne=requestIdleCallback(G,"number"==typeof Z?{timeout:Z}:void 0);let ie=!1;return{dispose(){ie||(ie=!0,cancelIdleCallback(ne))}}}}();class IdleValue{constructor(G){this._didRun=!1,this._executor=()=>{try{this._value=G()}catch(G){this._error=G}finally{this._didRun=!0}},this._handle=fe(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}var me;!function(G){G.settled=function settled(G){return __awaiter(this,void 0,void 0,(function*(){let Z=void 0;const ne=yield Promise.all(G.map(G=>G.then(G=>G,G=>{Z||(Z=G)})));if(void 0!==Z)throw Z;return ne}))}}(me||(me={}))},572:function(G,Z,ne){const ie=ne(2003),{MAX_LENGTH:se,MAX_SAFE_INTEGER:ce}=ne(2002),{safeRe:fe,t:me}=ne(1619),ge=ne(2857),{compareIdentifiers:Ce}=ne(4079);class SemVer{constructor(G,Z){if(Z=ge(Z),G instanceof SemVer){if(G.loose===!!Z.loose&&G.includePrerelease===!!Z.includePrerelease)return G;G=G.version}else if("string"!=typeof G)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof G}".`);if(G.length>se)throw new TypeError(`version is longer than ${se} characters`);ie("SemVer",G,Z),this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease;const ne=G.trim().match(Z.loose?fe[me.LOOSE]:fe[me.FULL]);if(!ne)throw new TypeError("Invalid Version: "+G);if(this.raw=G,this.major=+ne[1],this.minor=+ne[2],this.patch=+ne[3],this.major>ce||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ce||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ce||this.patch<0)throw new TypeError("Invalid patch version");ne[4]?this.prerelease=ne[4].split(".").map(G=>{if(/^[0-9]+$/.test(G)){const Z=+G;if(Z>=0&&Z=0;)"number"==typeof this.prerelease[ie]&&(this.prerelease[ie]++,ie=-2);if(-1===ie){if(Z===this.prerelease.join(".")&&!1===ne)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(G)}}if(Z){let ie=[Z,G];!1===ne&&(ie=[Z]),0===Ce(this.prerelease[0],Z)?isNaN(this.prerelease[1])&&(this.prerelease=ie):this.prerelease=ie}break}default:throw new Error("invalid increment argument: "+G)}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this}}G.exports=SemVer},573:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie={getSettingsFromThemedProps:!0,getTheme:!0,mixins:!0,pick:!0,pickVariant:!0,SplunkThemeProvider:!0,useSplunkTheme:!0,withSplunkTheme:!0,variables:!0};Object.defineProperty(Z,"getSettingsFromThemedProps",{enumerable:!0,get:function get(){return se.default}}),Object.defineProperty(Z,"getTheme",{enumerable:!0,get:function get(){return ce.default}}),Object.defineProperty(Z,"mixins",{enumerable:!0,get:function get(){return fe.default}}),Object.defineProperty(Z,"pick",{enumerable:!0,get:function get(){return me.default}}),Object.defineProperty(Z,"pickVariant",{enumerable:!0,get:function get(){return ge.default}}),Object.defineProperty(Z,"SplunkThemeProvider",{enumerable:!0,get:function get(){return Ce.default}}),Object.defineProperty(Z,"useSplunkTheme",{enumerable:!0,get:function get(){return Se.default}}),Object.defineProperty(Z,"withSplunkTheme",{enumerable:!0,get:function get(){return Me.default}}),Object.defineProperty(Z,"variables",{enumerable:!0,get:function get(){return ke.default}});var se=_interopRequireDefault(ne(7731)),ce=_interopRequireDefault(ne(2896)),fe=_interopRequireDefault(ne(7739)),me=_interopRequireDefault(ne(2037)),ge=_interopRequireDefault(ne(7742)),Ce=_interopRequireDefault(ne(7743)),Se=_interopRequireDefault(ne(7744)),Me=_interopRequireDefault(ne(7745)),ke=_interopRequireDefault(ne(2898)),xe=ne(7746);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}Object.keys(xe).forEach((function(G){"default"!==G&&"__esModule"!==G&&(Object.prototype.hasOwnProperty.call(ie,G)||Object.defineProperty(Z,G,{enumerable:!0,get:function get(){return xe[G]}}))}))},574:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("telemetryService")},575:function(G,Z,ne){"use strict";ne.d(Z,"c",(function(){return getPlatformTextDecoder})),ne.d(Z,"d",(function(){return Ce})),ne.d(Z,"a",(function(){return Se})),ne.d(Z,"b",(function(){return Me}));var ie=ne(27),se=ne(46),ce=ne(250);let fe,me,ge;function getUTF16LE_TextDecoder(){return fe||(fe=new TextDecoder("UTF-16LE")),fe}function getPlatformTextDecoder(){return ge||(ge=se.e()?getUTF16LE_TextDecoder():function getUTF16BE_TextDecoder(){return me||(me=new TextDecoder("UTF-16BE")),me}()),ge}const Ce="undefined"!=typeof TextDecoder;let Se,Me;function compatDecodeUTF16LE(G,Z,ne){let ie=[],se=0;for(let fe=0;fenew StringBuilder(G),Me=function standardDecodeUTF16LE(G,Z,ne){const ie=new Uint16Array(G.buffer,Z,ne);if(ne>0&&(65279===ie[0]||65534===ie[0]))return compatDecodeUTF16LE(G,Z,ne);return getUTF16LE_TextDecoder().decode(ie)}):(Se=G=>new CompatStringBuilder,Me=compatDecodeUTF16LE);class StringBuilder{constructor(G){this._capacity=0|G,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const G=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return getPlatformTextDecoder().decode(G)}_flushBuffer(){const G=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[G]:this._completedStrings[this._completedStrings.length]=G}write1(G){const Z=this._capacity-this._bufferLength;Z<=1&&(0===Z||ie.F(G))&&this._flushBuffer(),this._buffer[this._bufferLength++]=G}appendASCII(G){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=G}appendASCIIString(G){const Z=G.length;if(this._bufferLength+Z>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=G);for(let ne=0;ne=0&&G<256?this._asciiMap[G]=ne:this._map.set(G,ne)}get(G){return G>=0&&G<256?this._asciiMap[G]:this._map.get(G)||this._defaultValue}}class CharacterSet{constructor(){this._actual=new CharacterClassifier(0)}add(G){this._actual.set(G,1)}has(G){return 1===this._actual.get(G)}}},578:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie})),ne.d(Z,"c",(function(){return registerTextMime})),ne.d(Z,"b",(function(){return guessMimeTypes}));var ie,se=ne(210),ce=ne(27),fe=ne(2105),me=ne(143),ge=ne(181);!function(G){G.text="text/plain",G.binary="application/octet-stream",G.unknown="application/unknown",G.markdown="text/markdown"}(ie||(ie={}));let Ce=[],Se=[],Me=[];function registerTextMime(G,Z=!1){const ne=function toTextMimeAssociationItem(G){return{id:G.id,mime:G.mime,filename:G.filename,extension:G.extension,filepattern:G.filepattern,firstline:G.firstline,userConfigured:G.userConfigured,filenameLowercase:G.filename?G.filename.toLowerCase():void 0,extensionLowercase:G.extension?G.extension.toLowerCase():void 0,filepatternLowercase:G.filepattern?G.filepattern.toLowerCase():void 0,filepatternOnPath:!!G.filepattern&&G.filepattern.indexOf(se.e.sep)>=0}}(G);Ce.push(ne),ne.userConfigured?Me.push(ne):Se.push(ne),Z&&!ne.userConfigured&&Ce.forEach(G=>{G.mime===ne.mime||G.userConfigured||(ne.extension&&G.extension===ne.extension&&console.warn(`Overwriting extension <<${ne.extension}>> to now point to mime <<${ne.mime}>>`),ne.filename&&G.filename===ne.filename&&console.warn(`Overwriting filename <<${ne.filename}>> to now point to mime <<${ne.mime}>>`),ne.filepattern&&G.filepattern===ne.filepattern&&console.warn(`Overwriting filepattern <<${ne.filepattern}>> to now point to mime <<${ne.mime}>>`),ne.firstline&&G.firstline===ne.firstline&&console.warn(`Overwriting firstline <<${ne.firstline}>> to now point to mime <<${ne.mime}>>`))})}function guessMimeTypes(G,Z){let ne;if(G)switch(G.scheme){case me.c.file:ne=G.fsPath;break;case me.c.data:ne=ge.a.parseMetaData(G).get(ge.a.META_DATA_LABEL);break;default:ne=G.path}if(!ne)return[ie.unknown];ne=ne.toLowerCase();const fe=Object(se.a)(ne),ke=guessMimeTypeByPath(ne,fe,Me);if(ke)return[ke,ie.text];const xe=guessMimeTypeByPath(ne,fe,Se);if(xe)return[xe,ie.text];if(Z){const G=function guessMimeTypeByFirstline(G){Object(ce.T)(G)&&(G=G.substr(1));if(G.length>0)for(let Z=Ce.length-1;Z>=0;Z--){const ne=Ce[Z];if(!ne.firstline)continue;const ie=G.match(ne.firstline);if(ie&&ie.length>0)return ne.mime}return null}(Z);if(G)return[G,ie.text]}return[ie.unknown]}function guessMimeTypeByPath(G,Z,ne){let ie=null,se=null,ce=null;for(let me=ne.length-1;me>=0;me--){const ge=ne[me];if(Z===ge.filenameLowercase){ie=ge;break}if(ge.filepattern&&(!se||ge.filepattern.length>se.filepattern.length)){const ne=ge.filepatternOnPath?G:Z;Object(fe.a)(ge.filepatternLowercase,ne)&&(se=ge)}ge.extension&&(!ce||ge.extension.length>ce.extension.length)&&Z.endsWith(ge.extensionLowercase)&&(ce=ge)}return ie?ie.mime:se?se.mime:ce?ce.mime:null}},579:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Token})),ne.d(Z,"b",(function(){return TokenizationResult})),ne.d(Z,"c",(function(){return TokenizationResult2}));class Token{constructor(G,Z,ne){this._tokenBrand=void 0,this.offset=0|G,this.type=Z,this.language=ne}toString(){return"("+this.offset+", "+this.type+")"}}class TokenizationResult{constructor(G,Z){this._tokenizationResultBrand=void 0,this.tokens=G,this.endState=Z}}class TokenizationResult2{constructor(G,Z){this._tokenizationResult2Brand=void 0,this.tokens=G,this.endState=Z}}},580:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return WordOperations})),ne.d(Z,"b",(function(){return WordPartOperations}));var ie=ne(27),se=ne(71),ce=ne(1192),fe=ne(465),me=ne(34),ge=ne(12);class WordOperations{static _createWord(G,Z,ne,ie,se){return{start:ie,end:se,wordType:Z,nextCharClass:ne}}static _findPreviousWordOnLine(G,Z,ne){let ie=Z.getLineContent(ne.lineNumber);return this._doFindPreviousWordOnLine(ie,G,ne)}static _doFindPreviousWordOnLine(G,Z,ne){let ie=0;for(let se=ne.column-2;se>=0;se--){let ne=G.charCodeAt(se),ce=Z.get(ne);if(0===ce){if(2===ie)return this._createWord(G,ie,ce,se+1,this._findEndOfWord(G,Z,ie,se+1));ie=1}else if(2===ce){if(1===ie)return this._createWord(G,ie,ce,se+1,this._findEndOfWord(G,Z,ie,se+1));ie=2}else if(1===ce&&0!==ie)return this._createWord(G,ie,ce,se+1,this._findEndOfWord(G,Z,ie,se+1))}return 0!==ie?this._createWord(G,ie,1,0,this._findEndOfWord(G,Z,ie,0)):null}static _findEndOfWord(G,Z,ne,ie){let se=G.length;for(let ce=ie;ce=0;se--){let ie=G.charCodeAt(se),ce=Z.get(ie);if(1===ce)return se+1;if(1===ne&&2===ce)return se+1;if(2===ne&&0===ce)return se+1}return 0}static moveWordLeft(G,Z,ne,ie){let se=ne.lineNumber,ce=ne.column;1===ce&&se>1&&(se-=1,ce=Z.getLineMaxColumn(se));let fe=WordOperations._findPreviousWordOnLine(G,Z,new me.a(se,ce));if(0===ie)return new me.a(se,fe?fe.start+1:1);if(1===ie)return fe&&2===fe.wordType&&fe.end-fe.start==1&&0===fe.nextCharClass&&(fe=WordOperations._findPreviousWordOnLine(G,Z,new me.a(se,fe.start+1))),new me.a(se,fe?fe.start+1:1);if(3===ie){for(;fe&&2===fe.wordType;)fe=WordOperations._findPreviousWordOnLine(G,Z,new me.a(se,fe.start+1));return new me.a(se,fe?fe.start+1:1)}return fe&&ce<=fe.end+1&&(fe=WordOperations._findPreviousWordOnLine(G,Z,new me.a(se,fe.start+1))),new me.a(se,fe?fe.end+1:1)}static _moveWordPartLeft(G,Z){const ne=Z.lineNumber,se=G.getLineMaxColumn(ne);if(1===Z.column)return ne>1?new me.a(ne-1,G.getLineMaxColumn(ne-1)):Z;const ce=G.getLineContent(ne);for(let G=Z.column-1;G>1;G--){const Z=ce.charCodeAt(G-2),fe=ce.charCodeAt(G-1);if(95===Z&&95!==fe)return new me.a(ne,G);if(ie.H(Z)&&ie.I(fe))return new me.a(ne,G);if(ie.I(Z)&&ie.I(fe)&&G+1=ge.start+1&&(ge=WordOperations._findNextWordOnLine(G,Z,new me.a(se,ge.end+1))),ce=ge?ge.start+1:Z.getLineMaxColumn(se);return new me.a(se,ce)}static _moveWordPartRight(G,Z){const ne=Z.lineNumber,se=G.getLineMaxColumn(ne);if(Z.column===se)return ne1?Me=1:(Se--,Me=ie.getLineMaxColumn(Se)):(ke&&Me<=ke.end+1&&(ke=WordOperations._findPreviousWordOnLine(ne,ie,new me.a(Se,ke.start+1))),ke?Me=ke.end+1:Me>1?Me=1:(Se--,Me=ie.getLineMaxColumn(Se))),new ge.a(Se,Me,Ce.lineNumber,Ce.column)}static deleteInsideWord(G,Z,ne){if(!ne.isEmpty())return ne;const ie=new me.a(ne.positionLineNumber,ne.positionColumn);let se=this._deleteInsideWordWhitespace(Z,ie);return se||this._deleteInsideWordDetermineDeleteRange(G,Z,ie)}static _charAtIsWhitespace(G,Z){const ne=G.charCodeAt(Z);return 32===ne||9===ne}static _deleteInsideWordWhitespace(G,Z){const ne=G.getLineContent(Z.lineNumber),ie=ne.length;if(0===ie)return null;let se=Math.max(Z.column-2,0);if(!this._charAtIsWhitespace(ne,se))return null;let ce=Math.min(Z.column-1,ie-1);if(!this._charAtIsWhitespace(ne,ce))return null;for(;se>0&&this._charAtIsWhitespace(ne,se-1);)se--;for(;ce+11?new ge.a(ne.lineNumber-1,Z.getLineMaxColumn(ne.lineNumber-1),ne.lineNumber,1):ne.lineNumberG.start+1<=ne.column&&ne.column<=G.end+1,createRangeWithPosition=(G,Z)=>(G=Math.min(G,ne.column),Z=Math.max(Z,ne.column),new ge.a(ne.lineNumber,G,ne.lineNumber,Z)),deleteWordAndAdjacentWhitespace=G=>{let Z=G.start+1,ne=G.end+1,ce=!1;for(;ne-11&&this._charAtIsWhitespace(ie,Z-2);)Z--;return createRangeWithPosition(Z,ne)},ce=WordOperations._findPreviousWordOnLine(G,Z,ne);if(ce&&touchesWord(ce))return deleteWordAndAdjacentWhitespace(ce);const fe=WordOperations._findNextWordOnLine(G,Z,ne);return fe&&touchesWord(fe)?deleteWordAndAdjacentWhitespace(fe):ce&&fe?createRangeWithPosition(ce.end+1,fe.start+1):ce?createRangeWithPosition(ce.start+1,ce.end+1):fe?createRangeWithPosition(fe.start+1,fe.end+1):createRangeWithPosition(1,se+1)}static _deleteWordPartLeft(G,Z){if(!Z.isEmpty())return Z;const ne=Z.getPosition(),ie=WordOperations._moveWordPartLeft(G,ne);return new ge.a(ne.lineNumber,ne.column,ie.lineNumber,ie.column)}static _findFirstNonWhitespaceChar(G,Z){let ne=G.length;for(let ie=Z;ie=xe.start+1&&(xe=WordOperations._findNextWordOnLine(ne,ie,new me.a(Ce,xe.end+1))),xe?Se=xe.start+1:SeBoolean(G))}},581:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return ie})),ne.d(Z,"c",(function(){return se})),ne.d(Z,"a",(function(){return ce}));const ie={ctrlCmd:!1,alt:!1};var se,ce;!function(G){G[G.Blur=1]="Blur",G[G.Gesture=2]="Gesture",G[G.Other=3]="Other"}(se||(se={})),function(G){G[G.NONE=0]="NONE",G[G.FIRST=1]="FIRST",G[G.SECOND=2]="SECOND",G[G.LAST=3]="LAST"}(ce||(ce={}))},582:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie})),ne.d(Z,"b",(function(){return DragAndDropData})),ne.d(Z,"c",(function(){return se}));const ie={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:ne(578).a.text,TERMINALS:"Terminals"};class DragAndDropData{constructor(G){this.data=G}update(){}getData(){return this.data}}const se={CurrentDragAndDropData:void 0}},583:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return cursorTypeOperations_TypeOperations})),ne.d(Z,"b",(function(){return cursorTypeOperations_TypeWithAutoClosingCommand}));var ie=ne(51),se=ne(27),ce=ne(223),fe=ne(613),me=ne(12),ge=ne(80);class surroundSelectionCommand_SurroundSelectionCommand{constructor(G,Z,ne){this._range=G,this._charBeforeSelection=Z,this._charAfterSelection=ne}getEditOperations(G,Z){Z.addTrackedEditOperation(new me.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),Z.addTrackedEditOperation(new me.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(G,Z){let ne=Z.getInverseEditOperations(),ie=ne[0].range,se=ne[1].range;return new ge.a(ie.endLineNumber,ie.endColumn,se.endLineNumber,se.endColumn-this._charAfterSelection.length)}}var Ce=ne(71),Se=ne(465),Me=ne(262),ke=ne(122);class cursorTypeOperations_TypeOperations{static indent(G,Z,ne){if(null===Z||null===ne)return[];let ie=[];for(let Z=0,se=ne.length;Z1){let ie;for(ie=ne-1;ie>=1;ie--){const G=Z.getLineContent(ie);if(se.J(G)>=0)break}if(ie<1)return null;const fe=Z.getLineMaxColumn(ie),ge=ke.a.getEnterAction(G.autoIndent,Z,new me.a(ie,fe,ie,fe));ge&&(ce=ge.indentation+ge.appendText)}return ie&&(ie===Me.b.Indent&&(ce=cursorTypeOperations_TypeOperations.shiftIndent(G,ce)),ie===Me.b.Outdent&&(ce=cursorTypeOperations_TypeOperations.unshiftIndent(G,ce)),ce=G.normalizeIndentation(ce)),ce||null}static _replaceJumpToNextIndent(G,Z,ne,ie){let se="",fe=ne.getStartPosition();if(G.insertSpaces){let ne=Ce.a.visibleColumnFromColumn2(G,Z,fe),ie=G.indentSize,ce=ie-ne%ie;for(let G=0;Gthis._compositionType(ne,G,se,ce,fe,me));return new Ce.e(4,ge,{shouldPushStackElementBefore:shouldPushStackElementBetween(G,4),shouldPushStackElementAfter:!1})}static _compositionType(G,Z,ne,ie,se,fe){if(!Z.isEmpty())return null;const ge=Z.getPosition(),Ce=Math.max(1,ge.column-ie),Se=Math.min(G.getLineMaxColumn(ge.lineNumber),ge.column+se),Me=new me.a(ge.lineNumber,Ce,ge.lineNumber,Se);return G.getValueInRange(Me)===ne&&0===fe?null:new ce.d(Me,ne,0,fe)}static _typeCommand(G,Z,ne){return ne?new ce.e(G,Z,!0):new ce.a(G,Z,!0)}static _enter(G,Z,ne,ie){if(0===G.autoIndent)return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n",ne);if(!Z.isCheapToTokenize(ie.getStartPosition().lineNumber)||1===G.autoIndent){let ce=Z.getLineContent(ie.startLineNumber),fe=se.y(ce).substring(0,ie.startColumn-1);return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n"+G.normalizeIndentation(fe),ne)}const fe=ke.a.getEnterAction(G.autoIndent,Z,ie);if(fe){if(fe.indentAction===Me.b.None)return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n"+G.normalizeIndentation(fe.indentation+fe.appendText),ne);if(fe.indentAction===Me.b.Indent)return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n"+G.normalizeIndentation(fe.indentation+fe.appendText),ne);if(fe.indentAction===Me.b.IndentOutdent){const Z=G.normalizeIndentation(fe.indentation),se=G.normalizeIndentation(fe.indentation+fe.appendText),me="\n"+se+"\n"+Z;return ne?new ce.e(ie,me,!0):new ce.d(ie,me,-1,se.length-Z.length,!0)}if(fe.indentAction===Me.b.Outdent){const Z=cursorTypeOperations_TypeOperations.unshiftIndent(G,fe.indentation);return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n"+G.normalizeIndentation(Z+fe.appendText),ne)}}const me=Z.getLineContent(ie.startLineNumber),ge=se.y(me).substring(0,ie.startColumn-1);if(G.autoIndent>=4){const fe=ke.a.getIndentForEnter(G.autoIndent,Z,ie,{unshiftIndent:Z=>cursorTypeOperations_TypeOperations.unshiftIndent(G,Z),shiftIndent:Z=>cursorTypeOperations_TypeOperations.shiftIndent(G,Z),normalizeIndentation:Z=>G.normalizeIndentation(Z)});if(fe){let me=Ce.a.visibleColumnFromColumn2(G,Z,ie.getEndPosition());const ge=ie.endColumn,Se=Z.getLineContent(ie.endLineNumber),Me=se.v(Se);if(ie=Me>=0?ie.setEndPosition(ie.endLineNumber,Math.max(ie.endColumn,Me+1)):ie.setEndPosition(ie.endLineNumber,Z.getLineMaxColumn(ie.endLineNumber)),ne)return new ce.e(ie,"\n"+G.normalizeIndentation(fe.afterEnter),!0);{let Z=0;return ge<=Me+1&&(G.insertSpaces||(me=Math.ceil(me/G.indentSize)),Z=Math.min(me+1-G.normalizeIndentation(fe.afterEnter).length-1,0)),new ce.d(ie,"\n"+G.normalizeIndentation(fe.afterEnter),0,Z,!0)}}}return cursorTypeOperations_TypeOperations._typeCommand(ie,"\n"+G.normalizeIndentation(ge),ne)}static _isAutoIndentType(G,Z,ne){if(G.autoIndent<4)return!1;for(let G=0,ie=ne.length;GcursorTypeOperations_TypeOperations.shiftIndent(G,Z),unshiftIndent:Z=>cursorTypeOperations_TypeOperations.unshiftIndent(G,Z)});if(null===ce)return null;if(ce!==G.normalizeIndentation(se)){const se=Z.getLineFirstNonWhitespaceColumn(ne.startLineNumber);return 0===se?cursorTypeOperations_TypeOperations._typeCommand(new me.a(ne.startLineNumber,1,ne.endLineNumber,ne.endColumn),G.normalizeIndentation(ce)+ie,!1):cursorTypeOperations_TypeOperations._typeCommand(new me.a(ne.startLineNumber,1,ne.endLineNumber,ne.endColumn),G.normalizeIndentation(ce)+Z.getLineContent(ne.startLineNumber).substring(se-1,ne.startColumn-1)+ie,!1)}return null}static _isAutoClosingOvertype(G,Z,ne,ie,se){if("never"===G.autoClosingOvertype)return!1;if(!G.autoClosingPairs.autoClosingPairsCloseSingleChar.has(se))return!1;for(let ce=0,fe=ne.length;ce2?ge.charCodeAt(me.column-2):0)&&Se)return!1;if("auto"===G.autoClosingOvertype){let G=!1;for(let Z=0,ne=ie.length;ZZ.startsWith(G.open)),fe=se.some(G=>Z.startsWith(G.close));return!ce&&fe}static _findAutoClosingPairOpen(G,Z,ne,ie){const se=G.autoClosingPairs.autoClosingPairsOpenByEnd.get(ie);if(!se)return null;let ce=null;for(const G of se)if(null===ce||G.open.length>ce.open.length){let se=!0;for(const ce of ne){if(Z.getValueInRange(new me.a(ce.lineNumber,ce.column-G.open.length+1,ce.lineNumber,ce.column))+ie!==G.open){se=!1;break}}se&&(ce=G)}return ce}static _findSubAutoClosingPairClose(G,Z){if(Z.open.length<=1)return"";const ne=Z.close.charAt(Z.close.length-1),ie=G.autoClosingPairs.autoClosingPairsCloseByEnd.get(ne)||[];let se=null;for(const G of ie)G.open!==Z.open&&Z.open.includes(G.open)&&Z.close.endsWith(G.close)&&(!se||G.open.length>se.open.length)&&(se=G);return se?se.close:""}static _getAutoClosingPairClose(G,Z,ne,se,ce){const fe=Object(Ce.g)(se),me=fe?G.autoClosingQuotes:G.autoClosingBrackets;if("never"===me)return null;const ge=this._findAutoClosingPairOpen(G,Z,ne.map(G=>G.getPosition()),se);if(!ge)return null;const Me=this._findSubAutoClosingPairClose(G,ge);let xe=!0;const De=fe?G.shouldAutoCloseBefore.quote:G.shouldAutoCloseBefore.bracket;for(let se=0,Ce=ne.length;seIe.column-1){const Z=Re.charAt(Ie.column-1);if(!cursorTypeOperations_TypeOperations._isBeforeClosingBrace(G,ze)&&!De(Z))return null}if(!Z.isCheapToTokenize(Ie.lineNumber))return null;if(1===ge.open.length&&fe&&"always"!==me){const Z=Object(Se.a)(G.wordSeparators);if(ce&&Ie.column>1&&0===Z.get(Re.charCodeAt(Ie.column-2)))return null;if(!ce&&Ie.column>2&&0===Z.get(Re.charCodeAt(Ie.column-3)))return null}Z.forceTokenization(Ie.lineNumber);const $e=Z.getLineTokens(Ie.lineNumber);let Je=!1;try{Je=ke.a.shouldAutoClosePair(ge,$e,ce?Ie.column:Ie.column-1)}catch(G){Object(ie.e)(G)}if(!Je)return null}return xe?ge.close.substring(0,ge.close.length-Me.length):ge.close}static _runAutoClosingOpenCharType(G,Z,ne,ie,se,ce,fe){let me=[];for(let G=0,Z=ie.length;Gnew ce.a(new me.a(G.positionLineNumber,G.positionColumn,G.positionLineNumber,G.positionColumn+1),"",!1));return new Ce.e(4,G,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const Me=this._getAutoClosingPairClose(Z,ne,se,Se,!1);return null!==Me?this._runAutoClosingOpenCharType(G,Z,ne,se,Se,!1,Me):null}static typeWithInterceptors(G,Z,ne,ie,se,fe,me){if(!G&&"\n"===me){let G=[];for(let Z=0,ce=se.length;Z{let ie=ne.relatedTarget;for(;ie&&ie!==G;)ie=ie.parentNode;ie!==G&&Z(ne)})}function addDisposableNonBubblingPointerOutListener(G,Z){return addDisposableListener(G,"pointerout",ne=>{let ie=ne.relatedTarget;for(;ie&&ie!==G;)ie=ie.parentNode;ie!==G&&Z(ne)})}let Ie,Re,ze=null;class AnimationFrameQueueItem{constructor(G,Z=0){this._runner=G,this.priority=Z,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(G){Object(me.e)(G)}}static sort(G,Z){return Z.priority-G.priority}}!function(){let G=[],Z=null,ne=!1,ie=!1,animationFrameRunner=()=>{for(ne=!1,Z=G,G=[],ie=!0;Z.length>0;){Z.sort(AnimationFrameQueueItem.sort),Z.shift().execute()}ie=!1};Re=(Z,ie=0)=>{let se=new AnimationFrameQueueItem(Z,ie);return G.push(se),ne||(ne=!0,function doRequestAnimationFrame(G){if(!ze){const emulatedRequestAnimationFrame=G=>setTimeout(()=>G((new Date).getTime()),0);ze=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||emulatedRequestAnimationFrame}return ze.call(self,G)}(animationFrameRunner)),se},Ie=(G,ne)=>{if(ie){let ie=new AnimationFrameQueueItem(G,ne);return Z.push(ie),ie}return Re(G,ne)}}();const DEFAULT_EVENT_MERGER=function(G,Z){return Z};class TimeoutThrottledDomListener extends Ce.a{constructor(G,Z,ne,ie=DEFAULT_EVENT_MERGER,se=8){super();let ce=null,me=0,ge=this._register(new fe.g),invokeHandler=()=>{me=(new Date).getTime(),ne(ce),ce=null};this._register(addDisposableListener(G,Z,G=>{ce=ie(ce,G);let Z=(new Date).getTime()-me;Z>=se?(ge.cancel(),invokeHandler()):ge.setIfNotSet(invokeHandler,se-Z)}))}}function addDisposableThrottledListener(G,Z,ne,ie,se){return new TimeoutThrottledDomListener(G,Z,ne,ie,se)}function getComputedStyle(G){return document.defaultView.getComputedStyle(G,null)}function getClientArea(G){if(G!==document.body)return new Dimension(G.clientWidth,G.clientHeight);if(Se.c&&window.visualViewport)return new Dimension(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new Dimension(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Dimension(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Dimension(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class SizeUtils{static convertToPixels(G,Z){return parseFloat(Z)||0}static getDimension(G,Z,ne){let ie=getComputedStyle(G),se="0";return ie&&(se=ie.getPropertyValue?ie.getPropertyValue(Z):ie.getAttribute(ne)),SizeUtils.convertToPixels(G,se)}static getBorderLeftWidth(G){return SizeUtils.getDimension(G,"border-left-width","borderLeftWidth")}static getBorderRightWidth(G){return SizeUtils.getDimension(G,"border-right-width","borderRightWidth")}static getBorderTopWidth(G){return SizeUtils.getDimension(G,"border-top-width","borderTopWidth")}static getBorderBottomWidth(G){return SizeUtils.getDimension(G,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(G){return SizeUtils.getDimension(G,"padding-left","paddingLeft")}static getPaddingRight(G){return SizeUtils.getDimension(G,"padding-right","paddingRight")}static getPaddingTop(G){return SizeUtils.getDimension(G,"padding-top","paddingTop")}static getPaddingBottom(G){return SizeUtils.getDimension(G,"padding-bottom","paddingBottom")}static getMarginLeft(G){return SizeUtils.getDimension(G,"margin-left","marginLeft")}static getMarginTop(G){return SizeUtils.getDimension(G,"margin-top","marginTop")}static getMarginRight(G){return SizeUtils.getDimension(G,"margin-right","marginRight")}static getMarginBottom(G){return SizeUtils.getDimension(G,"margin-bottom","marginBottom")}}class Dimension{constructor(G,Z){this.width=G,this.height=Z}with(G=this.width,Z=this.height){return G!==this.width||Z!==this.height?new Dimension(G,Z):this}static is(G){return"object"==typeof G&&"number"==typeof G.height&&"number"==typeof G.width}static lift(G){return G instanceof Dimension?G:new Dimension(G.width,G.height)}static equals(G,Z){return G===Z||!(!G||!Z)&&(G.width===Z.width&&G.height===Z.height)}}function getTopLeftOffset(G){let Z=G.offsetParent,ne=G.offsetTop,ie=G.offsetLeft;for(;null!==(G=G.parentNode)&&G!==document.body&&G!==document.documentElement;){ne-=G.scrollTop;const se=isShadowRoot(G)?null:getComputedStyle(G);se&&(ie-="rtl"!==se.direction?G.scrollLeft:-G.scrollLeft),G===Z&&(ie+=SizeUtils.getBorderLeftWidth(G),ne+=SizeUtils.getBorderTopWidth(G),ne+=G.offsetTop,ie+=G.offsetLeft,Z=G.offsetParent)}return{left:ie,top:ne}}function size(G,Z,ne){"number"==typeof Z&&(G.style.width=Z+"px"),"number"==typeof ne&&(G.style.height=ne+"px")}function getDomNodePagePosition(G){let Z=G.getBoundingClientRect();return{left:Z.left+$e.scrollX,top:Z.top+$e.scrollY,width:Z.width,height:Z.height}}const $e=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function getTotalWidth(G){let Z=SizeUtils.getMarginLeft(G)+SizeUtils.getMarginRight(G);return G.offsetWidth+Z}function getContentWidth(G){let Z=SizeUtils.getBorderLeftWidth(G)+SizeUtils.getBorderRightWidth(G),ne=SizeUtils.getPaddingLeft(G)+SizeUtils.getPaddingRight(G);return G.offsetWidth-Z-ne}function getContentHeight(G){let Z=SizeUtils.getBorderTopWidth(G)+SizeUtils.getBorderBottomWidth(G),ne=SizeUtils.getPaddingTop(G)+SizeUtils.getPaddingBottom(G);return G.offsetHeight-Z-ne}function getTotalHeight(G){let Z=SizeUtils.getMarginTop(G)+SizeUtils.getMarginBottom(G);return G.offsetHeight+Z}function isAncestor(G,Z){for(;G;){if(G===Z)return!0;G=G.parentNode}return!1}function findParentWithClass(G,Z,ne){for(;G&&G.nodeType===G.ELEMENT_NODE;){if(G.classList.contains(Z))return G;if(ne)if("string"==typeof ne){if(G.classList.contains(ne))return null}else if(G===ne)return null;G=G.parentNode}return null}function hasParentWithClass(G,Z,ne){return!!findParentWithClass(G,Z,ne)}function isShadowRoot(G){return G&&!!G.host&&!!G.mode}function isInShadowDOM(G){return!!getShadowRoot(G)}function getShadowRoot(G){for(;G.parentNode;){if(G===document.body)return null;G=G.parentNode}return isShadowRoot(G)?G:null}function getActiveElement(){let G=document.activeElement;for(;null==G?void 0:G.shadowRoot;)G=G.shadowRoot.activeElement;return G}function createStyleSheet(G=document.getElementsByTagName("head")[0]){let Z=document.createElement("style");return Z.type="text/css",Z.media="screen",G.appendChild(Z),Z}let Je=null;function getSharedStyleSheet(){return Je||(Je=createStyleSheet()),Je}function createCSSRule(G,Z,ne=getSharedStyleSheet()){ne&&Z&&ne.sheet.insertRule(G+"{"+Z+"}",0)}function removeCSSRulesContainingSelector(G,Z=getSharedStyleSheet()){if(!Z)return;let ne=function getDynamicStyleSheetRules(G){var Z,ne;return(null===(Z=null==G?void 0:G.sheet)||void 0===Z?void 0:Z.rules)?G.sheet.rules:(null===(ne=null==G?void 0:G.sheet)||void 0===ne?void 0:ne.cssRules)?G.sheet.cssRules:[]}(Z),ie=[];for(let Z=0;Z=0;G--)Z.sheet.deleteRule(ie[G])}function isHTMLElement(G){return"object"==typeof HTMLElement?G instanceof HTMLElement:G&&"object"==typeof G&&1===G.nodeType&&"string"==typeof G.nodeName}const it={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:ie.j?"webkitAnimationStart":"animationstart",ANIMATION_END:ie.j?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:ie.j?"webkitAnimationIteration":"animationiteration"},ot={stop:function(G,Z){G.preventDefault?G.preventDefault():G.returnValue=!1,Z&&(G.stopPropagation?G.stopPropagation():G.cancelBubble=!0)}};function saveParentsScrollTop(G){let Z=[];for(let ne=0;G&&G.nodeType===G.ELEMENT_NODE;ne++)Z[ne]=G.scrollTop,G=G.parentNode;return Z}function restoreParentsScrollTop(G,Z){for(let ne=0;G&&G.nodeType===G.ELEMENT_NODE;ne++)G.scrollTop!==Z[ne]&&(G.scrollTop=Z[ne]),G=G.parentNode}class FocusTracker extends Ce.a{constructor(G){super(),this._onDidFocus=this._register(new ge.b),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new ge.b),this.onDidBlur=this._onDidBlur.event;let Z=isAncestor(document.activeElement,G),ne=!1;const onFocus=()=>{ne=!1,Z||(Z=!0,this._onDidFocus.fire())},onBlur=()=>{Z&&(ne=!0,window.setTimeout(()=>{ne&&(ne=!1,Z=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{isAncestor(document.activeElement,G)!==Z&&(Z?onBlur():onFocus())},this._register(addDisposableListener(G,it.FOCUS,onFocus,!0)),this._register(addDisposableListener(G,it.BLUR,onBlur,!0))}}function trackFocus(G){return new FocusTracker(G)}function append(G,...Z){if(G.append(...Z),1===Z.length&&"string"!=typeof Z[0])return Z[0]}function prepend(G,Z){return G.insertBefore(Z,G.firstChild),Z}function reset(G,...Z){G.innerText="",append(G,...Z)}const at=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var st;function _$(G,Z,ne,...ie){let se=at.exec(Z);if(!se)throw new Error("Bad use of emmet");ne=Object.assign({},ne||{});let ce,fe=se[1]||"div";return ce=G!==st.HTML?document.createElementNS(G,fe):document.createElement(fe),se[3]&&(ce.id=se[3]),se[4]&&(ce.className=se[4].replace(/\./g," ").trim()),Object.keys(ne).forEach(G=>{const Z=ne[G];void 0!==Z&&(/^on\w+$/.test(G)?ce[G]=Z:"selected"===G?Z&&ce.setAttribute(G,"true"):ce.setAttribute(G,Z))}),ce.append(...ie),ce}function $(G,Z,...ne){return _$(st.HTML,G,Z,...ne)}function show(...G){for(let Z of G)Z.style.display="",Z.removeAttribute("aria-hidden")}function hide(...G){for(let Z of G)Z.style.display="none",Z.setAttribute("aria-hidden","true")}function getElementsByTagName(G){return Array.prototype.slice.call(document.getElementsByTagName(G),0)}function computeScreenAwareSize(G){const Z=window.devicePixelRatio*G;return Math.max(1,Math.floor(Z))/window.devicePixelRatio}function windowOpenNoOpener(G){window.open(G,"_blank","noopener")}function animate(G){const step=()=>{G(),Z=Re(step)};let Z=Re(step);return Object(Ce.i)(()=>Z.dispose())}function asCSSUrl(G){return G?`url('${Me.a.asBrowserUri(G).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function asCSSPropertyValue(G){return`'${G.replace(/'/g,"%27")}'`}!function(G){G.HTML="http://www.w3.org/1999/xhtml",G.SVG="http://www.w3.org/2000/svg"}(st||(st={})),$.SVG=function(G,Z,...ne){return _$(st.SVG,G,Z,...ne)},Me.b.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class ModifierKeyEmitter extends ge.b{constructor(){super(),this._subscriptions=new Ce.b,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(addDisposableListener(window,"keydown",G=>{if(G.defaultPrevented)return;const Z=new se.a(G);if(6!==Z.keyCode||!G.repeat){if(G.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(G.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(G.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(G.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===Z.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=G.altKey,this._keyStatus.ctrlKey=G.ctrlKey,this._keyStatus.metaKey=G.metaKey,this._keyStatus.shiftKey=G.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=G,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(addDisposableListener(window,"keyup",G=>{G.defaultPrevented||(!G.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!G.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!G.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!G.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=G.altKey,this._keyStatus.ctrlKey=G.ctrlKey,this._keyStatus.metaKey=G.metaKey,this._keyStatus.shiftKey=G.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=G,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(addDisposableListener(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(addDisposableListener(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(addDisposableListener(document.body,"mousemove",G=>{G.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(addDisposableListener(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ModifierKeyEmitter.instance||(ModifierKeyEmitter.instance=new ModifierKeyEmitter),ModifierKeyEmitter.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function addMatchMediaChangeListener(G,Z){const ne=window.matchMedia(G);"function"==typeof ne.addEventListener?ne.addEventListener("change",Z):ne.addListener(Z)}},60:function(G,Z,ne){"use strict";var ie;ne.d(Z,"b",(function(){return ie})),ne.d(Z,"a",(function(){return se})),ne.d(Z,"c",(function(){return createDecorator})),ne.d(Z,"d",(function(){return optional})),function(G){G.serviceIds=new Map,G.DI_TARGET="$di$target",G.DI_DEPENDENCIES="$di$dependencies",G.getServiceDependencies=function getServiceDependencies(Z){return Z[G.DI_DEPENDENCIES]||[]}}(ie||(ie={}));const se=createDecorator("instantiationService");function storeServiceDependency(G,Z,ne,se){Z[ie.DI_TARGET]===Z?Z[ie.DI_DEPENDENCIES].push({id:G,index:ne,optional:se}):(Z[ie.DI_DEPENDENCIES]=[{id:G,index:ne,optional:se}],Z[ie.DI_TARGET]=Z)}function createDecorator(G){if(ie.serviceIds.has(G))return ie.serviceIds.get(G);const id=function(G,Z,ne){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");storeServiceDependency(id,G,ne,!1)};return id.toString=()=>G,ie.serviceIds.set(G,id),id}function optional(G){return function(Z,ne,ie){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");storeServiceDependency(G,Z,ie,!0)}}},604:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},607:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return StopWatch}));var ie=ne(46);const se=ie.b.performance&&"function"==typeof ie.b.performance.now;class StopWatch{constructor(G){this._highResolution=se&&G,this._startTime=this._now(),this._stopTime=-1}static create(G=!0){return new StopWatch(G)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?ie.b.performance.now():Date.now()}}},608:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ge})),ne.d(Z,"b",(function(){return Re})),ne.d(Z,"c",(function(){return overrideIdentifierFromKey}));var ie=ne(4),se=ne(19),ce=ne(180),fe=ne(54),me=ne(1349);const ge={Configuration:"base.contributions.configuration"},Ce={properties:{},patternProperties:{}},Se={properties:{},patternProperties:{}},Me={properties:{},patternProperties:{}},ke={properties:{},patternProperties:{}},xe={properties:{},patternProperties:{}},De={properties:{},patternProperties:{}},Ie=ce.a.as(me.a.JSONContribution);const Re=new RegExp("\\[.*\\]$");function overrideIdentifierFromKey(G){return G.substring(1,G.length-1)}const ze=new class ConfigurationRegistry{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new se.b,this._onDidUpdateConfiguration=new se.b,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:ie.a("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},Ie.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema)}registerConfiguration(G,Z=!0){this.registerConfigurations([G],Z)}registerConfigurations(G,Z=!0){const ne=[];G.forEach(G=>{ne.push(...this.validateAndRegisterProperties(G,Z,G.extensionInfo)),this.configurationContributors.push(G),this.registerJSONConfiguration(G)}),Ie.registerSchema("vscode://schemas/settings/resourceLanguage",this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(ne)}registerOverrideIdentifiers(G){for(const Z of G)this.overrideIdentifiers.add(Z);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(G,Z=!0,ne,ie=3){var se;ie=fe.m(G.scope)?ie:G.scope;let ce=[],me=G.properties;if(me)for(let G in me){if(Z&&validateProperty(G)){delete me[G];continue}const ge=me[G];this.updatePropertyDefaultValue(G,ge),Re.test(G)?ge.scope=void 0:(ge.scope=fe.m(ge.scope)?ie:ge.scope,ge.restricted=fe.m(ge.restricted)?!!(null===(se=null==ne?void 0:ne.restrictedConfigurations)||void 0===se?void 0:se.includes(G)):ge.restricted),!me[G].hasOwnProperty("included")||me[G].included?(this.configurationProperties[G]=me[G],!me[G].deprecationMessage&&me[G].markdownDeprecationMessage&&(me[G].deprecationMessage=me[G].markdownDeprecationMessage),ce.push(G)):(this.excludedConfigurationProperties[G]=me[G],delete me[G])}let ge=G.allOf;if(ge)for(let G of ge)ce.push(...this.validateAndRegisterProperties(G,Z,ne,ie));return ce}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(G){const register=G=>{let Z=G.properties;if(Z)for(const G in Z)this.updateSchema(G,Z[G]);let ne=G.allOf;ne&&ne.forEach(register)};register(G)}updateSchema(G,Z){switch(Ce.properties[G]=Z,Z.scope){case 1:Se.properties[G]=Z;break;case 2:Me.properties[G]=Z;break;case 6:ke.properties[G]=Z;break;case 3:xe.properties[G]=Z;break;case 4:De.properties[G]=Z;break;case 5:De.properties[G]=Z,this.resourceLanguageSettingsSchema.properties[G]=Z}}updateOverridePropertyPatternKey(){for(const G of this.overrideIdentifiers.values()){const Z=`[${G}]`,ne={type:"object",description:ie.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:ie.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:"vscode://schemas/settings/resourceLanguage"};this.updatePropertyDefaultValue(Z,ne),Ce.properties[Z]=ne,Se.properties[Z]=ne,Me.properties[Z]=ne,ke.properties[Z]=ne,xe.properties[Z]=ne,De.properties[Z]=ne}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(G,Z){let ne=this.defaultValues[G];fe.l(ne)&&(ne=Z.default),fe.l(ne)&&(ne=function getDefaultValue(G){switch(Array.isArray(G)?G[0]:G){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(Z.type)),Z.default=ne}};function validateProperty(G){return G.trim()?Re.test(G)?ie.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",G):void 0!==ze.getConfigurationProperties()[G]?ie.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",G):null:ie.a("config.property.empty","Cannot register an empty property")}ce.a.add(ge.Configuration,ze)},610:function(G,Z,ne){"use strict";function toUint8(G){return G<0?0:G>255?255:0|G}function toUint32(G){return G<0?0:G>4294967295?4294967295:0|G}ne.d(Z,"b",(function(){return toUint8})),ne.d(Z,"a",(function(){return toUint32}))},611:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return LineDecoration})),ne.d(Z,"b",(function(){return LineDecorationsNormalizer}));var ie=ne(27);class LineDecoration{constructor(G,Z,ne,ie){this.startColumn=G,this.endColumn=Z,this.className=ne,this.type=ie,this._lineDecorationBrand=void 0}static _equals(G,Z){return G.startColumn===Z.startColumn&&G.endColumn===Z.endColumn&&G.className===Z.className&&G.type===Z.type}static equalsArr(G,Z){const ne=G.length;if(ne!==Z.length)return!1;for(let ie=0;ie=se||(fe[me++]=new LineDecoration(Math.max(1,Z.startColumn-ie+1),Math.min(ce+1,Z.endColumn-ie+1),Z.className,Z.type));return fe}static filter(G,Z,ne,ie){if(0===G.length)return[];let se=[],ce=0;for(let fe=0,me=G.length;feZ)continue;if(ge.isEmpty()&&(0===me.type||3===me.type))continue;const Ce=ge.startLineNumber===Z?ge.startColumn:ne,Se=ge.endLineNumber===Z?ge.endColumn:ie;se[ce++]=new LineDecoration(Ce,Se,me.inlineClassName,me.type)}return se}static _typeCompare(G,Z){const ne=[2,0,1,3];return ne[G]-ne[Z]}static compare(G,Z){if(G.startColumn!==Z.startColumn)return G.startColumn-Z.startColumn;if(G.endColumn!==Z.endColumn)return G.endColumn-Z.endColumn;const ne=LineDecoration._typeCompare(G.type,Z.type);return 0!==ne?ne:G.className!==Z.className?G.className0&&this.stopOffsets[0]0&&Z=G){this.stopOffsets.splice(ie,0,G),this.classNames.splice(ie,0,Z),this.metadata.splice(ie,0,ne);break}this.count++}}class LineDecorationsNormalizer{static normalize(G,Z){if(0===Z.length)return[];let ne=[];const se=new Stack;let ce=0;for(let fe=0,me=Z.length;fe1){const Z=G.charCodeAt(ge-2);ie.F(Z)&&ge--}if(Ce>1){const Z=G.charCodeAt(Ce-2);ie.F(Z)&&Ce--}const ke=ge-1,xe=Ce-2;ce=se.consumeLowerThan(ke,ce,ne),0===se.count&&(ce=ke),se.insert(xe,Se,Me)}return se.consumeLowerThan(1073741824,ce,ne),ne}}},613:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ShiftCommand}));var ie=ne(27),se=ne(71),ce=ne(12),fe=ne(80),me=ne(122);const ge=Object.create(null);function cachedStringRepeat(G,Z){if(Z<=0)return"";ge[G]||(ge[G]=["",G]);const ne=ge[G];for(let ie=ne.length;ie<=Z;ie++)ne[ie]=ne[ie-1]+G;return ne[Z]}class ShiftCommand{constructor(G,Z){this._opts=Z,this._selection=G,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(G,Z,ne,ie,ce){const fe=se.a.visibleColumnFromColumn(G,Z,ne);if(ce){const G=cachedStringRepeat(" ",ie);return cachedStringRepeat(G,se.a.prevIndentTabStop(fe,ie)/ie)}return cachedStringRepeat("\t",se.a.prevRenderTabStop(fe,ne)/ne)}static shiftIndent(G,Z,ne,ie,ce){const fe=se.a.visibleColumnFromColumn(G,Z,ne);if(ce){const G=cachedStringRepeat(" ",ie);return cachedStringRepeat(G,se.a.nextIndentTabStop(fe,ie)/ie)}return cachedStringRepeat("\t",se.a.nextRenderTabStop(fe,ne)/ne)}_addEditOperation(G,Z,ne){this._useLastEditRangeForCursorEndPosition?G.addTrackedEditOperation(Z,ne):G.addEditOperation(Z,ne)}getEditOperations(G,Z){const ne=this._selection.startLineNumber;let fe=this._selection.endLineNumber;1===this._selection.endColumn&&ne!==fe&&(fe-=1);const{tabSize:ge,indentSize:Ce,insertSpaces:Se}=this._opts,Me=ne===fe;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(G.getLineContent(ne))&&(this._useLastEditRangeForCursorEndPosition=!0);let ke=0,xe=0;for(let De=ne;De<=fe;De++,ke=xe){xe=0;let fe,Ie=G.getLineContent(De),Re=ie.v(Ie);if((!this._opts.isUnshift||0!==Ie.length&&0!==Re)&&(Me||this._opts.isUnshift||0!==Ie.length)){if(-1===Re&&(Re=Ie.length),De>1){if(se.a.visibleColumnFromColumn(Ie,Re+1,ge)%Ce!=0&&G.isCheapToTokenize(De-1)){let Z=me.a.getEnterAction(this._opts.autoIndent,G,new ce.a(De-1,G.getLineMaxColumn(De-1),De-1,G.getLineMaxColumn(De-1)));if(Z){if(xe=ke,Z.appendText)for(let G=0,ne=Z.appendText.length;G * > &,",":active > * > &,{color:",";}"],Ie.variables.contentColorDefault,ze,ze,Ie.variables.contentColorDefault)})}})),ot=ne(56),at=ne.n(ot),st=ne(57),ct=ne.n(st),ut=function CaretSmallDown(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(ct.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(at.a,{height:ne,width:ne})},dt=ne(126),ht=ne.n(dt),ft=ne(65),_t=ne.n(ft),yt=ne(4),vt=Object(yt._)("Open externally");var wt=function External(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(_t.a,{screenReaderText:vt,size:.8,style:{verticalAlign:"baseline"}}):se.a.createElement(ht.a,{"aria-label":vt,height:ne,width:ne},se.a.createElement("title",null,vt))};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZZ.prefix.length-G.prefix.length),Object(fe.i)(()=>{this.providers.splice(this.providers.indexOf(G),1),this.defaultProvider===G&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(ce.e)([this.defaultProvider,...this.providers])}getQuickAccessProvider(G){return G&&this.providers.find(Z=>G.startsWith(Z.prefix))||void 0||this.defaultProvider}})},648:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(19);const se=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new ie.b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(G){G=Math.min(Math.max(-5,G),20),this._zoomLevel!==G&&(this._zoomLevel=G,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},649:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Et})),ne.d(Z,"b",(function(){return jt})),ne.d(Z,"e",(function(){return Rt})),ne.d(Z,"d",(function(){return Kt})),ne.d(Z,"c",(function(){return sn}));var ie=ne(6),se=(ne(4150),ne(10)),ce=ne(69),fe=ne(447),me=ne(19),ge=ne(103);class listPaging_PagedRenderer{constructor(G,Z){this.renderer=G,this.modelProvider=Z}get templateId(){return this.renderer.templateId}renderTemplate(G){return{data:this.renderer.renderTemplate(G),disposable:se.a.None}}renderElement(G,Z,ne,ie){if(ne.disposable&&ne.disposable.dispose(),!ne.data)return;const se=this.modelProvider();if(se.isResolved(G))return this.renderer.renderElement(se.get(G),G,ne.data,ie);const ce=new ge.b,fe=se.resolve(G,ce.token);ne.disposable={dispose:()=>ce.cancel()},this.renderer.renderPlaceholder(G,ne.data),fe.then(Z=>this.renderer.renderElement(Z,G,ne.data,ie))}disposeTemplate(G){G.disposable&&(G.disposable.dispose(),G.disposable=void 0),G.data&&(this.renderer.disposeTemplate(G.data),G.data=void 0)}}class PagedAccessibilityProvider{constructor(G,Z){this.modelProvider=G,this.accessibilityProvider=Z}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(G){const Z=this.modelProvider();return Z.isResolved(G)?this.accessibilityProvider.getAriaLabel(Z.get(G)):null}}var Ce,Se=ne(4),Me=ne(156),ke=ne(608),xe=ne(26),De=ne(60),Ie=ne(175),Re=ne(180),ze=ne(319),$e=ne(50),Je=ne(1196),it=ne(151),ot=(ne(7583),ne(205));!function(G){G[G.Unknown=0]="Unknown",G[G.Twistie=1]="Twistie",G[G.Element=2]="Element"}(Ce||(Ce={}));class TreeError extends Error{constructor(G,Z){super(`TreeError [${G}] ${Z}`)}}class WeakMapper{constructor(G){this.fn=G,this._map=new WeakMap}map(G){let Z=this._map.get(G);return Z||(Z=this.fn(G),this._map.set(G,Z)),Z}}var at=ne(582),st=ne(1005),ct=ne(206),ut=ne(253),dt=ne(999);function isFilterResult(G){return"object"==typeof G&&"visibility"in G&&"data"in G}function getVisibleState(G){switch(G){case!0:return 1;case!1:return 0;default:return G}}function isCollapsibleStateUpdate(G){return"boolean"==typeof G.collapsible}class indexTreeModel_IndexTreeModel{constructor(G,Z,ne,ie={}){this.user=G,this.list=Z,this.rootRef=[],this.eventBufferer=new me.d,this._onDidChangeCollapseState=new me.b,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new me.b,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new me.b,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==ie.collapseByDefault&&ie.collapseByDefault,this.filter=ie.filter,this.autoExpandSingleChildren=void 0!==ie.autoExpandSingleChildren&&ie.autoExpandSingleChildren,this.root={parent:void 0,element:ne,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(G,Z,ne=it.a.empty(),ie={}){if(0===G.length)throw new TreeError(this.user,"Invalid tree location");ie.diffIdentityProvider?this.spliceSmart(ie.diffIdentityProvider,G,Z,ne,ie):this.spliceSimple(G,Z,ne,ie)}spliceSmart(G,Z,ne,ie,se,ce){var fe;void 0===ie&&(ie=it.a.empty()),void 0===ce&&(ce=null!==(fe=se.diffDepth)&&void 0!==fe?fe:0);const{parentNode:me}=this.getParentNodeWithListIndex(Z),ge=[...ie],Ce=Z[Z.length-1],Se=new dt.a({getElements:()=>me.children.map(Z=>G.getId(Z.element).toString())},{getElements:()=>[...me.children.slice(0,Ce),...ge,...me.children.slice(Ce+ne)].map(Z=>G.getId(Z.element).toString())}).ComputeDiff(!1);if(Se.quitEarly)return this.spliceSimple(Z,ne,ge,se);const Me=Z.slice(0,-1),recurseSplice=(Z,ne,ie)=>{if(ce>0)for(let fe=0;feZ.originalStart-G.originalStart))recurseSplice(ke,xe,ke-(G.originalStart+G.originalLength)),ke=G.originalStart,xe=G.modifiedStart-Ce,this.spliceSimple([...Me,ke],G.originalLength,it.a.slice(ge,xe,xe+G.modifiedLength),se);recurseSplice(ke,xe,ke)}spliceSimple(G,Z,ne=it.a.empty(),{onDidCreateNode:ie,onDidDeleteNode:se}){const{parentNode:fe,listIndex:me,revealed:ge,visible:Ce}=this.getParentNodeWithListIndex(G),Se=[],Me=it.a.map(ne,G=>this.createTreeNode(G,fe,fe.visible?1:0,ge,Se,ie)),ke=G[G.length-1],xe=fe.children.length>0;let De=0;for(let G=ke;G>=0&&GG+(Z.visible?Z.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(fe,ze-G),this.list.splice(me,G,Se)}if($e.length>0&&se){const visit=G=>{se(G),G.children.forEach(visit)};$e.forEach(visit)}const ot=fe.children.length>0;xe!==ot&&this.setCollapsible(G.slice(0,-1),ot),this._onDidSplice.fire({insertedNodes:Ie,deletedNodes:$e});let at=fe;for(;at;){if(2===at.visibility){this.refilter();break}at=at.parent}}rerender(G){if(0===G.length)throw new TreeError(this.user,"Invalid tree location");const{node:Z,listIndex:ne,revealed:ie}=this.getTreeNodeWithListIndex(G);Z.visible&&ie&&this.list.splice(ne,1,[Z])}has(G){return this.hasTreeNode(G)}getListIndex(G){const{listIndex:Z,visible:ne,revealed:ie}=this.getTreeNodeWithListIndex(G);return ne&&ie?Z:-1}getListRenderCount(G){return this.getTreeNode(G).renderNodeCount}isCollapsible(G){return this.getTreeNode(G).collapsible}setCollapsible(G,Z){const ne=this.getTreeNode(G);void 0===Z&&(Z=!ne.collapsible);const ie={collapsible:Z};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(G,ie))}isCollapsed(G){return this.getTreeNode(G).collapsed}setCollapsed(G,Z,ne){const ie=this.getTreeNode(G);void 0===Z&&(Z=!ie.collapsed);const se={collapsed:Z,recursive:ne||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(G,se))}_setCollapseState(G,Z){const{node:ne,listIndex:ie,revealed:se}=this.getTreeNodeWithListIndex(G),ce=this._setListNodeCollapseState(ne,ie,se,Z);if(ne!==this.root&&this.autoExpandSingleChildren&&ce&&!isCollapsibleStateUpdate(Z)&&ne.collapsible&&!ne.collapsed&&!Z.recursive){let ie=-1;for(let G=0;G-1){ie=-1;break}ie=G}}ie>-1&&this._setCollapseState([...G,ie],Z)}return ce}_setListNodeCollapseState(G,Z,ne,ie){const se=this._setNodeCollapseState(G,ie,!1);if(!ne||!G.visible||!se)return se;const ce=G.renderNodeCount,fe=this.updateNodeAfterCollapseChange(G),me=ce-(-1===Z?0:1);return this.list.splice(Z+1,me,fe.slice(1)),se}_setNodeCollapseState(G,Z,ne){let ie;if(G===this.root?ie=!1:(isCollapsibleStateUpdate(Z)?(ie=G.collapsible!==Z.collapsible,G.collapsible=Z.collapsible):G.collapsible?(ie=G.collapsed!==Z.collapsed,G.collapsed=Z.collapsed):ie=!1,ie&&this._onDidChangeCollapseState.fire({node:G,deep:ne})),!isCollapsibleStateUpdate(Z)&&Z.recursive)for(const ne of G.children)ie=this._setNodeCollapseState(ne,Z,!0)||ie;return ie}expandTo(G){this.eventBufferer.bufferEvents(()=>{let Z=this.getTreeNode(G);for(;Z.parent;)Z=Z.parent,G=G.slice(0,G.length-1),Z.collapsed&&this._setCollapseState(G,{collapsed:!1,recursive:!1})})}refilter(){const G=this.root.renderNodeCount,Z=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,G,Z)}createTreeNode(G,Z,ne,ie,se,ce){const fe={parent:Z,element:G.element,children:[],depth:Z.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof G.collapsible?G.collapsible:void 0!==G.collapsed,collapsed:void 0===G.collapsed?this.collapseByDefault:G.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},me=this._filterNode(fe,ne);fe.visibility=me,ie&&se.push(fe);const ge=G.children||it.a.empty(),Ce=ie&&0!==me&&!fe.collapsed,Se=it.a.map(ge,G=>this.createTreeNode(G,fe,me,Ce,se,ce));let Me=0,ke=1;for(const G of Se)fe.children.push(G),ke+=G.renderNodeCount,G.visible&&(G.visibleChildIndex=Me++);return fe.collapsible=fe.collapsible||fe.children.length>0,fe.visibleChildrenCount=Me,fe.visible=2===me?Me>0:1===me,fe.visible?fe.collapsed||(fe.renderNodeCount=ke):(fe.renderNodeCount=0,ie&&se.pop()),ce&&ce(fe),fe}updateNodeAfterCollapseChange(G){const Z=G.renderNodeCount,ne=[];return this._updateNodeAfterCollapseChange(G,ne),this._updateAncestorsRenderNodeCount(G.parent,ne.length-Z),ne}_updateNodeAfterCollapseChange(G,Z){if(!1===G.visible)return 0;if(Z.push(G),G.renderNodeCount=1,!G.collapsed)for(const ne of G.children)G.renderNodeCount+=this._updateNodeAfterCollapseChange(ne,Z);return this._onDidChangeRenderNodeCount.fire(G),G.renderNodeCount}updateNodeAfterFilterChange(G){const Z=G.renderNodeCount,ne=[];return this._updateNodeAfterFilterChange(G,G.visible?1:0,ne),this._updateAncestorsRenderNodeCount(G.parent,ne.length-Z),ne}_updateNodeAfterFilterChange(G,Z,ne,ie=!0){let se;if(G!==this.root){if(se=this._filterNode(G,Z),0===se)return G.visible=!1,G.renderNodeCount=0,!1;ie&&ne.push(G)}const ce=ne.length;G.renderNodeCount=G===this.root?0:1;let fe=!1;if(G.collapsed&&0===se)G.visibleChildrenCount=0;else{let Z=0;for(const ce of G.children)fe=this._updateNodeAfterFilterChange(ce,se,ne,ie&&!G.collapsed)||fe,ce.visible&&(ce.visibleChildIndex=Z++);G.visibleChildrenCount=Z}return G!==this.root&&(G.visible=2===se?fe:1===se),G.visible?G.collapsed||(G.renderNodeCount+=ne.length-ce):(G.renderNodeCount=0,ie&&ne.pop()),this._onDidChangeRenderNodeCount.fire(G),G.visible}_updateAncestorsRenderNodeCount(G,Z){if(0!==Z)for(;G;)G.renderNodeCount+=Z,this._onDidChangeRenderNodeCount.fire(G),G=G.parent}_filterNode(G,Z){const ne=this.filter?this.filter.filter(G.element,Z):1;return"boolean"==typeof ne?(G.filterData=void 0,ne?1:0):isFilterResult(ne)?(G.filterData=ne.data,getVisibleState(ne.visibility)):(G.filterData=void 0,getVisibleState(ne))}hasTreeNode(G,Z=this.root){if(!G||0===G.length)return!0;const[ne,...ie]=G;return!(ne<0||ne>Z.children.length)&&this.hasTreeNode(ie,Z.children[ne])}getTreeNode(G,Z=this.root){if(!G||0===G.length)return Z;const[ne,...ie]=G;if(ne<0||ne>Z.children.length)throw new TreeError(this.user,"Invalid tree location");return this.getTreeNode(ie,Z.children[ne])}getTreeNodeWithListIndex(G){if(0===G.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:Z,listIndex:ne,revealed:ie,visible:se}=this.getParentNodeWithListIndex(G),ce=G[G.length-1];if(ce<0||ce>Z.children.length)throw new TreeError(this.user,"Invalid tree location");const fe=Z.children[ce];return{node:fe,listIndex:ne,revealed:ie,visible:se&&fe.visible}}getParentNodeWithListIndex(G,Z=this.root,ne=0,ie=!0,se=!0){const[ce,...fe]=G;if(ce<0||ce>Z.children.length)throw new TreeError(this.user,"Invalid tree location");for(let G=0;GG.element)),this.data=G}}function asTreeDragAndDropData(G){return G instanceof st.a?new abstractTree_TreeElementsDragAndDropData(G):G}class abstractTree_TreeNodeListDragAndDrop{constructor(G,Z){this.modelProvider=G,this.dnd=Z,this.autoExpandDisposable=se.a.None}getDragURI(G){return this.dnd.getDragURI(G.element)}getDragLabel(G,Z){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(G.map(G=>G.element),Z)}onDragStart(G,Z){this.dnd.onDragStart&&this.dnd.onDragStart(asTreeDragAndDropData(G),Z)}onDragOver(G,Z,ne,ie,se=!0){const fe=this.dnd.onDragOver(asTreeDragAndDropData(G),Z&&Z.element,ne,ie),me=this.autoExpandNode!==Z;if(me&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=Z),void 0===Z)return fe;if(me&&"boolean"!=typeof fe&&fe.autoExpand&&(this.autoExpandDisposable=Object(ht.i)(()=>{const G=this.modelProvider(),ne=G.getNodeLocation(Z);G.isCollapsed(ne)&&G.setCollapsed(ne,!1),this.autoExpandNode=void 0},500)),"boolean"==typeof fe||!fe.accept||void 0===fe.bubble||fe.feedback){if(!se){return{accept:"boolean"==typeof fe?fe:fe.accept,effect:"boolean"==typeof fe?void 0:fe.effect,feedback:[ne]}}return fe}if(1===fe.bubble){const ne=this.modelProvider(),se=ne.getNodeLocation(Z),ce=ne.getParentNodeLocation(se),fe=ne.getNode(ce),me=ce&&ne.getListIndex(ce);return this.onDragOver(G,fe,me,ie,!1)}const ge=this.modelProvider(),Ce=ge.getNodeLocation(Z),Se=ge.getListIndex(Ce),Me=ge.getListRenderCount(Ce);return Object.assign(Object.assign({},fe),{feedback:Object(ce.r)(Se,Se+Me)})}drop(G,Z,ne,ie){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(asTreeDragAndDropData(G),Z&&Z.element,ne,ie)}onDragEnd(G){this.dnd.onDragEnd&&this.dnd.onDragEnd(G)}}class ComposedTreeDelegate{constructor(G){this.delegate=G}getHeight(G){return this.delegate.getHeight(G.element)}getTemplateId(G){return this.delegate.getTemplateId(G.element)}hasDynamicHeight(G){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(G.element)}setDynamicHeight(G,Z){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(G.element,Z)}}var xt;!function(G){G.None="none",G.OnHover="onHover",G.Always="always"}(xt||(xt={}));class abstractTree_EventCollection{constructor(G,Z=[]){this._elements=Z,this.onDidChange=me.c.forEach(G,G=>this._elements=G)}get elements(){return this._elements}}class abstractTree_TreeRenderer{constructor(G,Z,ne,ie,ce={}){this.renderer=G,this.modelProvider=Z,this.activeNodes=ie,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=abstractTree_TreeRenderer.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new yt.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=se.a.None,this.disposables=new se.b,this.templateId=G.templateId,this.updateOptions(ce),me.c.map(ne,G=>G.node)(this.onDidChangeNodeTwistieState,this,this.disposables),G.onDidChangeTwistieState&&G.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(G={}){if(void 0!==G.indent&&(this.indent=Object(_t.b)(G.indent,0,40)),void 0!==G.renderIndentGuides){const Z=G.renderIndentGuides!==xt.None;if(Z!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=Z,this.indentGuidesDisposable.dispose(),Z)){const G=new se.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,G),this.indentGuidesDisposable=G,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==G.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=G.hideTwistiesOfChildlessElements)}renderTemplate(G){const Z=Object(ie.q)(G,Object(ie.a)(".monaco-tl-row")),ne=Object(ie.q)(Z,Object(ie.a)(".monaco-tl-indent")),ce=Object(ie.q)(Z,Object(ie.a)(".monaco-tl-twistie")),fe=Object(ie.q)(Z,Object(ie.a)(".monaco-tl-contents")),me=this.renderer.renderTemplate(fe);return{container:G,indent:ne,twistie:ce,indentGuidesDisposable:se.a.None,templateData:me}}renderElement(G,Z,ne,ie){"number"==typeof ie&&(this.renderedNodes.set(G,{templateData:ne,height:ie}),this.renderedElements.set(G.element,G));const se=abstractTree_TreeRenderer.DefaultIndent+(G.depth-1)*this.indent;ne.twistie.style.paddingLeft=se+"px",ne.indent.style.width=se+this.indent-16+"px",this.renderTwistie(G,ne),"number"==typeof ie&&this.renderIndentGuides(G,ne),this.renderer.renderElement(G,Z,ne.templateData,ie)}disposeElement(G,Z,ne,ie){ne.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(G,Z,ne.templateData,ie),"number"==typeof ie&&(this.renderedNodes.delete(G),this.renderedElements.delete(G.element))}disposeTemplate(G){this.renderer.disposeTemplate(G.templateData)}onDidChangeTwistieState(G){const Z=this.renderedElements.get(G);Z&&this.onDidChangeNodeTwistieState(Z)}onDidChangeNodeTwistieState(G){const Z=this.renderedNodes.get(G);Z&&(this.renderTwistie(G,Z.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(G,Z.templateData))}renderTwistie(G,Z){Z.twistie.classList.remove(...wt.classNamesArray);let ne=!1;this.renderer.renderTwistie&&(ne=this.renderer.renderTwistie(G.element,Z.twistie)),G.collapsible&&(!this.hideTwistiesOfChildlessElements||G.visibleChildrenCount>0)?(ne||Z.twistie.classList.add(...wt.classNamesArray),Z.twistie.classList.add("collapsible"),Z.twistie.classList.toggle("collapsed",G.collapsed)):Z.twistie.classList.remove("collapsible","collapsed"),G.collapsible?Z.container.setAttribute("aria-expanded",String(!G.collapsed)):Z.container.removeAttribute("aria-expanded")}renderIndentGuides(G,Z){if(Object(ie.t)(Z.indent),Z.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const ne=new se.b,ce=this.modelProvider();let fe=G;for(;;){const G=ce.getNodeLocation(fe),me=ce.getParentNodeLocation(G);if(!me)break;const ge=ce.getNode(me),Ce=Object(ie.a)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(ge)&&Ce.classList.add("active"),0===Z.indent.childElementCount?Z.indent.appendChild(Ce):Z.indent.insertBefore(Ce,Z.indent.firstElementChild),this.renderedIndentGuides.add(ge,Ce),ne.add(Object(se.i)(()=>this.renderedIndentGuides.delete(ge,Ce))),fe=ge}Z.indentGuidesDisposable=ne}_onDidChangeActiveNodes(G){if(!this.shouldRenderIndentGuides)return;const Z=new Set,ne=this.modelProvider();G.forEach(G=>{const ie=ne.getNodeLocation(G);try{const se=ne.getParentNodeLocation(ie);G.collapsible&&G.children.length>0&&!G.collapsed?Z.add(G):se&&Z.add(ne.getNode(se))}catch(G){}}),this.activeIndentNodes.forEach(G=>{Z.has(G)||this.renderedIndentGuides.forEach(G,G=>G.classList.remove("active"))}),Z.forEach(G=>{this.activeIndentNodes.has(G)||this.renderedIndentGuides.forEach(G,G=>G.classList.add("active"))}),this.activeIndentNodes=Z}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(se.f)(this.disposables)}}abstractTree_TreeRenderer.DefaultIndent=8;class abstractTree_TypeFilter{constructor(G,Z,ne){this.tree=G,this.keyboardNavigationLabelProvider=Z,this._filter=ne,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new se.b,G.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(G){this._pattern=G,this._lowercasePattern=G.toLowerCase()}filter(G,Z){if(this._filter){const ne=this._filter.filter(G,Z);if(this.tree.options.simpleKeyboardNavigation)return ne;let ie;if(ie="boolean"==typeof ne?ne?1:0:isFilterResult(ne)?getVisibleState(ne.visibility):ne,0===ie)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:ut.a.Default,visibility:!0};const ne=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(G),ie=Array.isArray(ne)?ne:[ne];for(const G of ie){const Z=G&&G.toString();if(void 0===Z)return{data:ut.a.Default,visibility:!0};const ne=Object(ut.d)(this._pattern,this._lowercasePattern,0,Z,Z.toLowerCase(),0,!0);if(ne)return this._matchCount++,1===ie.length?{data:ne,visibility:!0}:{data:{label:Z,score:ne},visibility:!0}}return this.tree.options.filterOnType?2:{data:ut.a.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(se.f)(this.disposables)}}class abstractTree_TypeFilterController{constructor(G,Z,ne,ce,fe){this.tree=G,this.view=ne,this.filter=ce,this.keyboardNavigationDelegate=fe,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new me.b,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new me.b,this.enabledDisposables=new se.b,this.disposables=new se.b,this.domNode=Object(ie.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,this.disposables.add(Object(ie.i)(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=Object(ie.q)(ne.getHTMLElement(),Object(ie.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(ie.q)(this.domNode,Object(ie.a)("span.label"));const ge=Object(ie.q)(this.domNode,Object(ie.a)(".controls"));this._filterOnType=!!G.options.filterOnType,this.filterOnTypeDomNode=Object(ie.q)(ge,Object(ie.a)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(Object(ie.i)(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=Object(ie.q)(ge,Object(ie.a)("button.clear"+Mt.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(Se.a)("clear","Clear"),this.keyboardNavigationEventFilter=G.options.keyboardNavigationEventFilter,Z.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(G.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(G){G.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==G.filterOnType&&(this._filterOnType=!!G.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),void 0!==G.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=G.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const G=this.enabledDisposables.add(new ct.a(this.view.getHTMLElement(),"keydown")),Z=me.c.chain(G.event).filter(G=>!Object(fe.e)(G.target)||G.target===this.filterOnTypeDomNode).filter(G=>"Dead"!==G.key&&!/^Media/.test(G.key)).map(G=>new ot.a(G)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(G=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(G)&&!(18===G.keyCode||16===G.keyCode||15===G.keyCode||17===G.keyCode)||(this.pattern.length>0||this.triggered)&&(9===G.keyCode||1===G.keyCode)&&!G.altKey&&!G.ctrlKey&&!G.metaKey||1===G.keyCode&&(ft.f?G.altKey&&!G.metaKey:G.ctrlKey)&&!G.shiftKey).forEach(G=>{G.stopPropagation(),G.preventDefault()}).event,ne=this.enabledDisposables.add(new ct.a(this.clearDomNode,"click"));me.c.chain(me.c.any(Z,ne.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(G){"string"==typeof G?this.onInput(G):G instanceof MouseEvent||9===G.keyCode||1===G.keyCode&&(ft.f?G.altKey:G.ctrlKey)?this.onInput(""):1===G.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+G.browserEvent.key)}onInput(G){const Z=this.view.getHTMLElement();G&&!this.domNode.parentElement?Z.append(this.domNode):!G&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=G,this._onDidChangePattern.fire(G),this.filter.pattern=G,this.tree.refilter(),G&&this.tree.focusNext(0,!0,void 0,G=>!ut.a.isDefault(G.filterData));const ne=this.tree.getFocus();if(ne.length>0){const G=ne[0];null===this.tree.getRelativeTop(G)&&this.tree.reveal(G,.5)}this.render(),G||(this.triggered=!1)}onDragStart(){const G=this.view.getHTMLElement(),{left:Z}=Object(ie.D)(G),ne=G.clientWidth,ce=ne/2,fe=this.domNode.clientWidth,me=new se.b;let ge=this.positionClassName;const updatePosition=()=>{switch(ge){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=ne-fe-6+"px"}},onDragEnd=()=>{this.positionClassName=ge,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Object(se.f)(me)};updatePosition(),this.domNode.classList.remove(ge),this.domNode.classList.add("dragging"),me.add(Object(se.i)(()=>this.domNode.classList.remove("dragging"))),me.add(Object(ie.i)(document,"dragover",G=>(G=>{G.preventDefault();const ne=G.clientX-Z;G.dataTransfer&&(G.dataTransfer.dropEffect="none"),ge=neonDragEnd())),at.c.CurrentDragAndDropData=new at.b("vscode-ui"),me.add(Object(se.i)(()=>at.c.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...St.classNamesArray),this.filterOnTypeDomNode.classList.add(...Ct.classNamesArray),this.filterOnTypeDomNode.title=Object(Se.a)("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...Ct.classNamesArray),this.filterOnTypeDomNode.classList.add(...St.classNamesArray),this.filterOnTypeDomNode.title=Object(Se.a)("enable filter on type","Enable Filter on Type"))}render(){const G=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&G?(this.messageDomNode.textContent=Object(Se.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",G),this.domNode.title=Object(Se.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(G){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!ut.a.isDefault(G.filterData))}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(se.f)(this.disposables)}}function asTreeMouseEvent(G){let Z=Ce.Unknown;return Object(ie.J)(G.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?Z=Ce.Twistie:Object(ie.J)(G.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(Z=Ce.Element),{browserEvent:G.browserEvent,element:G.element?G.element.element:null,target:Z}}function dfs(G,Z){Z(G),G.children.forEach(G=>dfs(G,Z))}class abstractTree_Trait{constructor(G,Z){this.getFirstViewElementWithTrait=G,this.identityProvider=Z,this.nodes=[],this._onDidChange=new me.b,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(G,Z){var ne;!(null===(ne=Z)||void 0===ne?void 0:ne.__forceEvent)&&Object(ce.h)(this.nodes,G)||this._set(G,!1,Z)}_set(G,Z,ne){if(this.nodes=[...G],this.elements=void 0,this._nodeSet=void 0,!Z){const G=this;this._onDidChange.fire({get elements(){return G.get()},browserEvent:ne})}}get(){return this.elements||(this.elements=this.nodes.map(G=>G.element)),[...this.elements]}getNodes(){return this.nodes}has(G){return this.nodeSet.has(G)}onDidModelSplice({insertedNodes:G,deletedNodes:Z}){if(!this.identityProvider){const G=this.createNodeSet(),visit=Z=>G.delete(Z);return Z.forEach(G=>dfs(G,visit)),void this.set([...G.values()])}const ne=new Set,deletedNodesVisitor=G=>ne.add(this.identityProvider.getId(G.element).toString());Z.forEach(G=>dfs(G,deletedNodesVisitor));const ie=new Map,insertedNodesVisitor=G=>ie.set(this.identityProvider.getId(G.element).toString(),G);G.forEach(G=>dfs(G,insertedNodesVisitor));const se=[];for(const G of this.nodes){const Z=this.identityProvider.getId(G.element).toString();if(ne.has(Z)){const G=ie.get(Z);G&&se.push(G)}else se.push(G)}if(this.nodes.length>0&&0===se.length){const G=this.getFirstViewElementWithTrait();G&&se.push(G)}this._set(se,!0)}createNodeSet(){const G=new Set;for(const Z of this.nodes)G.add(Z);return G}}class abstractTree_TreeNodeListMouseController extends fe.d{constructor(G,Z){super(G),this.tree=Z}onViewPointer(G){if(Object(fe.e)(G.browserEvent.target)||Object(fe.f)(G.browserEvent.target))return;const Z=G.element;if(!Z)return super.onViewPointer(G);if(this.isSelectionRangeChangeEvent(G)||this.isSelectionSingleChangeEvent(G))return super.onViewPointer(G);const ne=G.browserEvent.target,ie=ne.classList.contains("monaco-tl-twistie")||ne.classList.contains("monaco-icon-label")&&ne.classList.contains("folder-icon")&&G.browserEvent.offsetX<16;let se=!1;if(se="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(Z.element):!!this.tree.expandOnlyOnTwistieClick,se&&!ie&&2!==G.browserEvent.detail)return super.onViewPointer(G);if(!this.tree.expandOnDoubleClick&&2===G.browserEvent.detail)return super.onViewPointer(G);if(Z.collapsible){const ne=this.tree.model,ce=ne.getNodeLocation(Z),fe=G.browserEvent.altKey;if(this.tree.setFocus([ce]),ne.setCollapsed(ce,void 0,fe),se&&ie)return}super.onViewPointer(G)}onDoubleClick(G){!G.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&super.onDoubleClick(G)}}class abstractTree_TreeNodeList extends fe.c{constructor(G,Z,ne,ie,se,ce,fe,me){super(G,Z,ne,ie,me),this.focusTrait=se,this.selectionTrait=ce,this.anchorTrait=fe}createMouseController(G){return new abstractTree_TreeNodeListMouseController(this,G.tree)}splice(G,Z,ne=[]){if(super.splice(G,Z,ne),0===ne.length)return;const ie=[],se=[];let fe;ne.forEach((Z,ne)=>{this.focusTrait.has(Z)&&ie.push(G+ne),this.selectionTrait.has(Z)&&se.push(G+ne),this.anchorTrait.has(Z)&&(fe=G+ne)}),ie.length>0&&super.setFocus(Object(ce.g)([...super.getFocus(),...ie])),se.length>0&&super.setSelection(Object(ce.g)([...super.getSelection(),...se])),"number"==typeof fe&&super.setAnchor(fe)}setFocus(G,Z,ne=!1){super.setFocus(G,Z),ne||this.focusTrait.set(G.map(G=>this.element(G)),Z)}setSelection(G,Z,ne=!1){super.setSelection(G,Z),ne||this.selectionTrait.set(G.map(G=>this.element(G)),Z)}setAnchor(G,Z=!1){super.setAnchor(G),Z||(void 0===G?this.anchorTrait.set([]):this.anchorTrait.set([this.element(G)]))}}class abstractTree_AbstractTree{constructor(G,Z,ne,ce,ge={}){this._options=ge,this.eventBufferer=new me.d,this.disposables=new se.b,this._onWillRefilter=new me.b,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new me.b;const Ce=new ComposedTreeDelegate(ne),Se=new me.f,Me=new me.f,ke=new abstractTree_EventCollection(Me.event);this.renderers=ce.map(G=>new abstractTree_TreeRenderer(G,()=>this.model,Se.event,ke,ge));for(let G of this.renderers)this.disposables.add(G);let xe;ge.keyboardNavigationLabelProvider&&(xe=new abstractTree_TypeFilter(this,ge.keyboardNavigationLabelProvider,ge.filter),ge=Object.assign(Object.assign({},ge),{filter:xe}),this.disposables.add(xe)),this.focus=new abstractTree_Trait(()=>this.view.getFocusedElements()[0],ge.identityProvider),this.selection=new abstractTree_Trait(()=>this.view.getSelectedElements()[0],ge.identityProvider),this.anchor=new abstractTree_Trait(()=>this.view.getAnchorElement(),ge.identityProvider),this.view=new abstractTree_TreeNodeList(G,Z,Ce,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},function asListOptions(G,Z){return Z&&Object.assign(Object.assign({},Z),{identityProvider:Z.identityProvider&&{getId:G=>Z.identityProvider.getId(G.element)},dnd:Z.dnd&&new abstractTree_TreeNodeListDragAndDrop(G,Z.dnd),multipleSelectionController:Z.multipleSelectionController&&{isSelectionSingleChangeEvent:G=>Z.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},G),{element:G.element})),isSelectionRangeChangeEvent:G=>Z.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},G),{element:G.element}))},accessibilityProvider:Z.accessibilityProvider&&Object.assign(Object.assign({},Z.accessibilityProvider),{getSetSize(Z){const ne=G(),ie=ne.getNodeLocation(Z),se=ne.getParentNodeLocation(ie);return ne.getNode(se).visibleChildrenCount},getPosInSet:G=>G.visibleChildIndex+1,isChecked:Z.accessibilityProvider&&Z.accessibilityProvider.isChecked?G=>Z.accessibilityProvider.isChecked(G.element):void 0,getRole:Z.accessibilityProvider&&Z.accessibilityProvider.getRole?G=>Z.accessibilityProvider.getRole(G.element):()=>"treeitem",getAriaLabel:G=>Z.accessibilityProvider.getAriaLabel(G.element),getWidgetAriaLabel:()=>Z.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:Z.accessibilityProvider&&Z.accessibilityProvider.getWidgetRole?()=>Z.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:Z.accessibilityProvider&&Z.accessibilityProvider.getAriaLevel?G=>Z.accessibilityProvider.getAriaLevel(G.element):G=>G.depth,getActiveDescendantId:Z.accessibilityProvider.getActiveDescendantId&&(G=>Z.accessibilityProvider.getActiveDescendantId(G.element))}),keyboardNavigationLabelProvider:Z.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},Z.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:G=>Z.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(G.element)}),enableKeyboardNavigation:Z.simpleKeyboardNavigation})}(()=>this.model,ge)),{tree:this})),this.model=this.createModel(G,this.view,ge),Se.input=this.model.onDidChangeCollapseState;const De=me.c.forEach(this.model.onDidSplice,G=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(G),this.selection.onDidModelSplice(G)})});if(De(()=>null,null,this.disposables),Me.input=me.c.chain(me.c.any(De,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const G=new Set;for(const Z of this.focus.getNodes())G.add(Z);for(const Z of this.selection.getNodes())G.add(Z);return[...G.values()]}).event,!1!==ge.keyboardSupport){const G=me.c.chain(this.view.onKeyDown).filter(G=>!Object(fe.e)(G.target)).map(G=>new ot.a(G));G.filter(G=>15===G.keyCode).on(this.onLeftArrow,this,this.disposables),G.filter(G=>17===G.keyCode).on(this.onRightArrow,this,this.disposables),G.filter(G=>10===G.keyCode).on(this.onSpace,this,this.disposables)}if(ge.keyboardNavigationLabelProvider){const G=ge.keyboardNavigationDelegate||fe.a;this.typeFilterController=new abstractTree_TypeFilterController(this,this.model,this.view,xe,G),this.focusNavigationFilter=G=>this.typeFilterController.shouldAllowFocus(G),this.disposables.add(this.typeFilterController)}this.styleElement=Object(ie.w)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===xt.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return me.c.map(this.view.onMouseDblClick,asTreeMouseEvent)}get onPointer(){return me.c.map(this.view.onPointer,asTreeMouseEvent)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(G={}){this._options=Object.assign(Object.assign({},this._options),G);for(const Z of this.renderers)Z.updateOptions(G);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===xt.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(G){this.view.scrollTop=G}domFocus(){this.view.domFocus()}layout(G,Z){this.view.layout(G,Z)}style(G){const Z="."+this.view.domId,ne=[];G.treeIndentGuidesStroke&&(ne.push(`.monaco-list${Z}:hover .monaco-tl-indent > .indent-guide, .monaco-list${Z}.always .monaco-tl-indent > .indent-guide { border-color: ${G.treeIndentGuidesStroke.transparent(.4)}; }`),ne.push(`.monaco-list${Z} .monaco-tl-indent > .indent-guide.active { border-color: ${G.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=ne.join("\n"),this.view.style(G)}collapse(G,Z=!1){return this.model.setCollapsed(G,!0,Z)}expand(G,Z=!1){return this.model.setCollapsed(G,!1,Z)}isCollapsible(G){return this.model.isCollapsible(G)}setCollapsible(G,Z){return this.model.setCollapsible(G,Z)}isCollapsed(G){return this.model.isCollapsed(G)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(G,Z){const ne=G.map(G=>this.model.getNode(G));this.selection.set(ne,Z);const ie=G.map(G=>this.model.getListIndex(G)).filter(G=>G>-1);this.view.setSelection(ie,Z,!0)}getSelection(){return this.selection.get()}setFocus(G,Z){const ne=G.map(G=>this.model.getNode(G));this.focus.set(ne,Z);const ie=G.map(G=>this.model.getListIndex(G)).filter(G=>G>-1);this.view.setFocus(ie,Z,!0)}focusNext(G=1,Z=!1,ne,ie=this.focusNavigationFilter){this.view.focusNext(G,Z,ne,ie)}getFocus(){return this.focus.get()}reveal(G,Z){this.model.expandTo(G);const ne=this.model.getListIndex(G);-1!==ne&&this.view.reveal(ne,Z)}getRelativeTop(G){const Z=this.model.getListIndex(G);return-1===Z?null:this.view.getRelativeTop(Z)}onLeftArrow(G){G.preventDefault(),G.stopPropagation();const Z=this.view.getFocusedElements();if(0===Z.length)return;const ne=Z[0],ie=this.model.getNodeLocation(ne);if(!this.model.setCollapsed(ie,!0)){const G=this.model.getParentNodeLocation(ie);if(!G)return;const Z=this.model.getListIndex(G);this.view.reveal(Z),this.view.setFocus([Z])}}onRightArrow(G){G.preventDefault(),G.stopPropagation();const Z=this.view.getFocusedElements();if(0===Z.length)return;const ne=Z[0],ie=this.model.getNodeLocation(ne);if(!this.model.setCollapsed(ie,!1)){if(!ne.children.some(G=>G.visible))return;const[G]=this.view.getFocus(),Z=G+1;this.view.reveal(Z),this.view.setFocus([Z])}}onSpace(G){G.preventDefault(),G.stopPropagation();const Z=this.view.getFocusedElements();if(0===Z.length)return;const ne=Z[0],ie=this.model.getNodeLocation(ne),se=G.browserEvent.altKey;this.model.setCollapsed(ie,void 0,se)}dispose(){Object(se.f)(this.disposables),this.view.dispose()}}class objectTreeModel_ObjectTreeModel{constructor(G,Z,ne={}){this.user=G,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new indexTreeModel_IndexTreeModel(G,Z,null,ne),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,ne.sorter&&(this.sorter={compare:(G,Z)=>ne.sorter.compare(G.element,Z.element)}),this.identityProvider=ne.identityProvider}setChildren(G,Z=it.a.empty(),ne={}){const ie=this.getElementLocation(G);this._setChildren(ie,this.preserveCollapseState(Z),ne)}_setChildren(G,Z=it.a.empty(),ne){const ie=new Set,se=new Set;this.model.splice([...G,0],Number.MAX_VALUE,Z,Object.assign(Object.assign({},ne),{onDidCreateNode:G=>{var Z;if(null===G.element)return;const ce=G;if(ie.add(ce.element),this.nodes.set(ce.element,ce),this.identityProvider){const G=this.identityProvider.getId(ce.element).toString();se.add(G),this.nodesByIdentity.set(G,ce)}null===(Z=ne.onDidCreateNode)||void 0===Z||Z.call(ne,ce)},onDidDeleteNode:G=>{var Z;if(null===G.element)return;const ce=G;if(ie.has(ce.element)||this.nodes.delete(ce.element),this.identityProvider){const G=this.identityProvider.getId(ce.element).toString();se.has(G)||this.nodesByIdentity.delete(G)}null===(Z=ne.onDidDeleteNode)||void 0===Z||Z.call(ne,ce)}}))}preserveCollapseState(G=it.a.empty()){return this.sorter&&(G=[...G].sort(this.sorter.compare.bind(this.sorter))),it.a.map(G,G=>{let Z=this.nodes.get(G.element);if(!Z&&this.identityProvider){const ne=this.identityProvider.getId(G.element).toString();Z=this.nodesByIdentity.get(ne)}if(!Z)return Object.assign(Object.assign({},G),{children:this.preserveCollapseState(G.children)});const ne="boolean"==typeof G.collapsible?G.collapsible:Z.collapsible,ie=void 0!==G.collapsed?G.collapsed:Z.collapsed;return Object.assign(Object.assign({},G),{collapsible:ne,collapsed:ie,children:this.preserveCollapseState(G.children)})})}rerender(G){const Z=this.getElementLocation(G);this.model.rerender(Z)}has(G){return this.nodes.has(G)}getListIndex(G){const Z=this.getElementLocation(G);return this.model.getListIndex(Z)}getListRenderCount(G){const Z=this.getElementLocation(G);return this.model.getListRenderCount(Z)}isCollapsible(G){const Z=this.getElementLocation(G);return this.model.isCollapsible(Z)}setCollapsible(G,Z){const ne=this.getElementLocation(G);return this.model.setCollapsible(ne,Z)}isCollapsed(G){const Z=this.getElementLocation(G);return this.model.isCollapsed(Z)}setCollapsed(G,Z,ne){const ie=this.getElementLocation(G);return this.model.setCollapsed(ie,Z,ne)}expandTo(G){const Z=this.getElementLocation(G);this.model.expandTo(Z)}refilter(){this.model.refilter()}getNode(G=null){if(null===G)return this.model.getNode(this.model.rootRef);const Z=this.nodes.get(G);if(!Z)throw new TreeError(this.user,"Tree element not found: "+G);return Z}getNodeLocation(G){return G.element}getParentNodeLocation(G){if(null===G)throw new TreeError(this.user,"Invalid getParentNodeLocation call");const Z=this.nodes.get(G);if(!Z)throw new TreeError(this.user,"Tree element not found: "+G);const ne=this.model.getNodeLocation(Z),ie=this.model.getParentNodeLocation(ne);return this.model.getNode(ie).element}getElementLocation(G){if(null===G)return[];const Z=this.nodes.get(G);if(!Z)throw new TreeError(this.user,"Tree element not found: "+G);return this.model.getNodeLocation(Z)}}function noCompress(G){return{element:{elements:[G.element],incompressible:G.incompressible||!1},children:it.a.map(it.a.from(G.children),noCompress),collapsible:G.collapsible,collapsed:G.collapsed}}function compress(G){const Z=[G.element],ne=G.incompressible||!1;let ie,se;for(;[se,ie]=it.a.consume(it.a.from(G.children),2),1===se.length&&!se[0].incompressible;)G=se[0],Z.push(G.element);return{element:{elements:Z,incompressible:ne},children:it.a.map(it.a.concat(se,ie),compress),collapsible:G.collapsible,collapsed:G.collapsed}}function decompress(G){return function _decompress(G,Z=0){let ne;return ne=Z_decompress(G,0)),0===Z&&G.element.incompressible?{element:G.element.elements[Z],children:ne,incompressible:!0,collapsible:G.collapsible,collapsed:G.collapsed}:{element:G.element.elements[Z],children:ne,collapsible:G.collapsible,collapsed:G.collapsed}}(G,0)}class compressedObjectTreeModel_CompressedObjectTreeModel{constructor(G,Z,ne={}){this.user=G,this.rootRef=null,this.nodes=new Map,this.model=new objectTreeModel_ObjectTreeModel(G,Z,ne),this.enabled=void 0===ne.compressionEnabled||ne.compressionEnabled,this.identityProvider=ne.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(G,Z=it.a.empty(),ne){const ie=ne.diffIdentityProvider&&(se=ne.diffIdentityProvider,{getId:G=>G.elements.map(G=>se.getId(G).toString()).join("\0")});var se;if(null===G){const G=it.a.map(Z,this.enabled?compress:noCompress);return void this._setChildren(null,G,{diffIdentityProvider:ie,diffDepth:1/0})}const ce=this.nodes.get(G);if(!ce)throw new Error("Unknown compressed tree node");const fe=this.model.getNode(ce),me=this.model.getParentNodeLocation(ce),ge=this.model.getNode(me),Ce=function splice(G,Z,ne){return G.element===Z?Object.assign(Object.assign({},G),{children:ne}):Object.assign(Object.assign({},G),{children:it.a.map(it.a.from(G.children),G=>splice(G,Z,ne))})}(decompress(fe),G,Z),Se=(this.enabled?compress:noCompress)(Ce),Me=ge.children.map(G=>G===fe?Se:G);this._setChildren(ge.element,Me,{diffIdentityProvider:ie,diffDepth:fe.depth-ge.depth})}setCompressionEnabled(G){if(G===this.enabled)return;this.enabled=G;const Z=this.model.getNode().children,ne=it.a.map(Z,decompress),ie=it.a.map(ne,G?compress:noCompress);this._setChildren(null,ie,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(G,Z,ne){const ie=new Set;this.model.setChildren(G,Z,Object.assign(Object.assign({},ne),{onDidCreateNode:G=>{for(const Z of G.element.elements)ie.add(Z),this.nodes.set(Z,G.element)},onDidDeleteNode:G=>{for(const Z of G.element.elements)ie.has(Z)||this.nodes.delete(Z)}}))}has(G){return this.nodes.has(G)}getListIndex(G){const Z=this.getCompressedNode(G);return this.model.getListIndex(Z)}getListRenderCount(G){const Z=this.getCompressedNode(G);return this.model.getListRenderCount(Z)}getNode(G){if(void 0===G)return this.model.getNode();const Z=this.getCompressedNode(G);return this.model.getNode(Z)}getNodeLocation(G){const Z=this.model.getNodeLocation(G);return null===Z?null:Z.elements[Z.elements.length-1]}getParentNodeLocation(G){const Z=this.getCompressedNode(G),ne=this.model.getParentNodeLocation(Z);return null===ne?null:ne.elements[ne.elements.length-1]}isCollapsible(G){const Z=this.getCompressedNode(G);return this.model.isCollapsible(Z)}setCollapsible(G,Z){const ne=this.getCompressedNode(G);return this.model.setCollapsible(ne,Z)}isCollapsed(G){const Z=this.getCompressedNode(G);return this.model.isCollapsed(Z)}setCollapsed(G,Z,ne){const ie=this.getCompressedNode(G);return this.model.setCollapsed(ie,Z,ne)}expandTo(G){const Z=this.getCompressedNode(G);this.model.expandTo(Z)}rerender(G){const Z=this.getCompressedNode(G);this.model.rerender(Z)}refilter(){this.model.refilter()}getCompressedNode(G){if(null===G)return null;const Z=this.nodes.get(G);if(!Z)throw new TreeError(this.user,"Tree element not found: "+G);return Z}}const DefaultElementMapper=G=>G[G.length-1];class CompressedTreeNodeWrapper{constructor(G,Z){this.unwrapper=G,this.node=Z}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(G=>new CompressedTreeNodeWrapper(this.unwrapper,G))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class compressedObjectTreeModel_CompressibleObjectTreeModel{constructor(G,Z,ne={}){this.rootRef=null,this.elementMapper=ne.elementMapper||DefaultElementMapper;const compressedNodeUnwrapper=G=>this.elementMapper(G.elements);this.nodeMapper=new WeakMapper(G=>new CompressedTreeNodeWrapper(compressedNodeUnwrapper,G)),this.model=new compressedObjectTreeModel_CompressedObjectTreeModel(G,function mapList(G,Z){return{splice(ne,ie,se){Z.splice(ne,ie,se.map(Z=>G.map(Z)))},updateElementHeight(G,ne){Z.updateElementHeight(G,ne)}}}(this.nodeMapper,Z),function mapOptions(G,Z){return Object.assign(Object.assign({},Z),{identityProvider:Z.identityProvider&&{getId:ne=>Z.identityProvider.getId(G(ne))},sorter:Z.sorter&&{compare:(G,ne)=>Z.sorter.compare(G.elements[0],ne.elements[0])},filter:Z.filter&&{filter:(ne,ie)=>Z.filter.filter(G(ne),ie)}})}(compressedNodeUnwrapper,ne))}get onDidSplice(){return me.c.map(this.model.onDidSplice,({insertedNodes:G,deletedNodes:Z})=>({insertedNodes:G.map(G=>this.nodeMapper.map(G)),deletedNodes:Z.map(G=>this.nodeMapper.map(G))}))}get onDidChangeCollapseState(){return me.c.map(this.model.onDidChangeCollapseState,({node:G,deep:Z})=>({node:this.nodeMapper.map(G),deep:Z}))}get onDidChangeRenderNodeCount(){return me.c.map(this.model.onDidChangeRenderNodeCount,G=>this.nodeMapper.map(G))}setChildren(G,Z=it.a.empty(),ne={}){this.model.setChildren(G,Z,ne)}setCompressionEnabled(G){this.model.setCompressionEnabled(G)}has(G){return this.model.has(G)}getListIndex(G){return this.model.getListIndex(G)}getListRenderCount(G){return this.model.getListRenderCount(G)}getNode(G){return this.nodeMapper.map(this.model.getNode(G))}getNodeLocation(G){return G.element}getParentNodeLocation(G){return this.model.getParentNodeLocation(G)}isCollapsible(G){return this.model.isCollapsible(G)}setCollapsible(G,Z){return this.model.setCollapsible(G,Z)}isCollapsed(G){return this.model.isCollapsed(G)}setCollapsed(G,Z,ne){return this.model.setCollapsed(G,Z,ne)}expandTo(G){return this.model.expandTo(G)}rerender(G){return this.model.rerender(G)}refilter(){return this.model.refilter()}getCompressedTreeNode(G=null){return this.model.getNode(G)}}var Lt=ne(287),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe};class objectTree_ObjectTree extends abstractTree_AbstractTree{constructor(G,Z,ne,ie,se={}){super(G,Z,ne,ie,se)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(G,Z=it.a.empty(),ne){this.model.setChildren(G,Z,ne)}rerender(G){void 0!==G?this.model.rerender(G):this.view.rerender()}hasElement(G){return this.model.has(G)}createModel(G,Z,ne){return new objectTreeModel_ObjectTreeModel(G,Z,ne)}}class CompressibleRenderer{constructor(G,Z){this._compressedTreeNodeProvider=G,this.renderer=Z,this.templateId=Z.templateId,Z.onDidChangeTwistieState&&(this.onDidChangeTwistieState=Z.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(G){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(G)}}renderElement(G,Z,ne,ie){const se=this.compressedTreeNodeProvider.getCompressedTreeNode(G.element);1===se.element.elements.length?(ne.compressedTreeNode=void 0,this.renderer.renderElement(G,Z,ne.data,ie)):(ne.compressedTreeNode=se,this.renderer.renderCompressedElements(se,Z,ne.data,ie))}disposeElement(G,Z,ne,ie){ne.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(ne.compressedTreeNode,Z,ne.data,ie):this.renderer.disposeElement&&this.renderer.disposeElement(G,Z,ne.data,ie)}disposeTemplate(G){this.renderer.disposeTemplate(G.data)}renderTwistie(G,Z){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(G,Z)}}__decorate([Lt.a],CompressibleRenderer.prototype,"compressedTreeNodeProvider",null);class objectTree_CompressibleObjectTree extends objectTree_ObjectTree{constructor(G,Z,ne,ie,se={}){const compressedTreeNodeProvider=()=>this;super(G,Z,ne,ie.map(G=>new CompressibleRenderer(compressedTreeNodeProvider,G)),function asObjectTreeOptions(G,Z){return Z&&Object.assign(Object.assign({},Z),{keyboardNavigationLabelProvider:Z.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(ne){let ie;try{ie=G().getCompressedTreeNode(ne)}catch(G){return Z.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ne)}return 1===ie.element.elements.length?Z.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ne):Z.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(ie.element.elements)}}})}(compressedTreeNodeProvider,se))}setChildren(G,Z=it.a.empty(),ne){this.model.setChildren(G,Z,ne)}createModel(G,Z,ne){return new compressedObjectTreeModel_CompressibleObjectTreeModel(G,Z,ne)}updateOptions(G={}){super.updateOptions(G),void 0!==G.compressionEnabled&&this.model.setCompressionEnabled(G.compressionEnabled)}getCompressedTreeNode(G=null){return this.model.getCompressedTreeNode(G)}}var Tt=ne(51),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function createAsyncDataTreeNode(G){return Object.assign(Object.assign({},G),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function isAncestor(G,Z){return!!Z.parent&&(Z.parent===G||isAncestor(G,Z.parent))}class AsyncDataTreeNodeWrapper{constructor(G){this.node=G}get element(){return this.node.element.element}get children(){return this.node.children.map(G=>new AsyncDataTreeNodeWrapper(G))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class asyncDataTree_AsyncDataTreeRenderer{constructor(G,Z,ne){this.renderer=G,this.nodeMapper=Z,this.onDidChangeTwistieState=ne,this.renderedNodes=new Map,this.templateId=G.templateId}renderTemplate(G){return{templateData:this.renderer.renderTemplate(G)}}renderElement(G,Z,ne,ie){this.renderer.renderElement(this.nodeMapper.map(G),Z,ne.templateData,ie)}renderTwistie(G,Z){return G.slow?(Z.classList.add(...kt.classNamesArray),!0):(Z.classList.remove(...kt.classNamesArray),!1)}disposeElement(G,Z,ne,ie){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(G),Z,ne.templateData,ie)}disposeTemplate(G){this.renderer.disposeTemplate(G.templateData)}dispose(){this.renderedNodes.clear()}}function asTreeEvent(G){return{browserEvent:G.browserEvent,elements:G.elements.map(G=>G.element)}}function asyncDataTree_asTreeMouseEvent(G){return{browserEvent:G.browserEvent,element:G.element&&G.element.element,target:G.target}}class asyncDataTree_AsyncDataTreeElementsDragAndDropData extends st.a{constructor(G){super(G.elements.map(G=>G.element)),this.data=G}}function asAsyncDataTreeDragAndDropData(G){return G instanceof st.a?new asyncDataTree_AsyncDataTreeElementsDragAndDropData(G):G}class AsyncDataTreeNodeListDragAndDrop{constructor(G){this.dnd=G}getDragURI(G){return this.dnd.getDragURI(G.element)}getDragLabel(G,Z){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(G.map(G=>G.element),Z)}onDragStart(G,Z){this.dnd.onDragStart&&this.dnd.onDragStart(asAsyncDataTreeDragAndDropData(G),Z)}onDragOver(G,Z,ne,ie,se=!0){return this.dnd.onDragOver(asAsyncDataTreeDragAndDropData(G),Z&&Z.element,ne,ie)}drop(G,Z,ne,ie){this.dnd.drop(asAsyncDataTreeDragAndDropData(G),Z&&Z.element,ne,ie)}onDragEnd(G){this.dnd.onDragEnd&&this.dnd.onDragEnd(G)}}function asyncDataTree_asObjectTreeOptions(G){return G&&Object.assign(Object.assign({},G),{collapseByDefault:!0,identityProvider:G.identityProvider&&{getId:Z=>G.identityProvider.getId(Z.element)},dnd:G.dnd&&new AsyncDataTreeNodeListDragAndDrop(G.dnd),multipleSelectionController:G.multipleSelectionController&&{isSelectionSingleChangeEvent:Z=>G.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},Z),{element:Z.element})),isSelectionRangeChangeEvent:Z=>G.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},Z),{element:Z.element}))},accessibilityProvider:G.accessibilityProvider&&Object.assign(Object.assign({},G.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:G.accessibilityProvider.getRole?Z=>G.accessibilityProvider.getRole(Z.element):()=>"treeitem",isChecked:G.accessibilityProvider.isChecked?Z=>{var ne;return!!(null===(ne=G.accessibilityProvider)||void 0===ne?void 0:ne.isChecked(Z.element))}:void 0,getAriaLabel:Z=>G.accessibilityProvider.getAriaLabel(Z.element),getWidgetAriaLabel:()=>G.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:G.accessibilityProvider.getWidgetRole?()=>G.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:G.accessibilityProvider.getAriaLevel&&(Z=>G.accessibilityProvider.getAriaLevel(Z.element)),getActiveDescendantId:G.accessibilityProvider.getActiveDescendantId&&(Z=>G.accessibilityProvider.getActiveDescendantId(Z.element))}),filter:G.filter&&{filter:(Z,ne)=>G.filter.filter(Z.element,ne)},keyboardNavigationLabelProvider:G.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},G.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:Z=>G.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Z.element)}),sorter:void 0,expandOnlyOnTwistieClick:void 0===G.expandOnlyOnTwistieClick?void 0:"function"!=typeof G.expandOnlyOnTwistieClick?G.expandOnlyOnTwistieClick:Z=>G.expandOnlyOnTwistieClick(Z.element),additionalScrollHeight:G.additionalScrollHeight})}function asyncDataTree_dfs(G,Z){Z(G),G.children.forEach(G=>asyncDataTree_dfs(G,Z))}class asyncDataTree_AsyncDataTree{constructor(G,Z,ne,ie,ce,fe={}){this.user=G,this.dataSource=ce,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new me.b,this._onDidChangeNodeSlowState=new me.b,this.nodeMapper=new WeakMapper(G=>new AsyncDataTreeNodeWrapper(G)),this.disposables=new se.b,this.identityProvider=fe.identityProvider,this.autoExpandSingleChildren=void 0!==fe.autoExpandSingleChildren&&fe.autoExpandSingleChildren,this.sorter=fe.sorter,this.collapseByDefault=fe.collapseByDefault,this.tree=this.createTree(G,Z,ne,ie,fe),this.root=createAsyncDataTreeNode({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return me.c.map(this.tree.onDidChangeFocus,asTreeEvent)}get onDidChangeSelection(){return me.c.map(this.tree.onDidChangeSelection,asTreeEvent)}get onMouseDblClick(){return me.c.map(this.tree.onMouseDblClick,asyncDataTree_asTreeMouseEvent)}get onPointer(){return me.c.map(this.tree.onPointer,asyncDataTree_asTreeMouseEvent)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(G,Z,ne,ie,se){const ce=new ComposedTreeDelegate(ne),fe=ie.map(G=>new asyncDataTree_AsyncDataTreeRenderer(G,this.nodeMapper,this._onDidChangeNodeSlowState.event)),me=asyncDataTree_asObjectTreeOptions(se)||{};return new objectTree_ObjectTree(G,Z,ce,fe,me)}updateOptions(G={}){this.tree.updateOptions(G)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(G){this.tree.scrollTop=G}domFocus(){this.tree.domFocus()}layout(G,Z){this.tree.layout(G,Z)}style(G){this.tree.style(G)}getInput(){return this.root.element}setInput(G,Z){return __awaiter(this,void 0,void 0,(function*(){this.refreshPromises.forEach(G=>G.cancel()),this.refreshPromises.clear(),this.root.element=G;const ne=Z&&{viewState:Z,focus:[],selection:[]};yield this._updateChildren(G,!0,!1,ne),ne&&(this.tree.setFocus(ne.focus),this.tree.setSelection(ne.selection)),Z&&"number"==typeof Z.scrollTop&&(this.scrollTop=Z.scrollTop)}))}_updateChildren(G=this.root.element,Z=!0,ne=!1,ie,se){return __awaiter(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield me.c.toPromise(this._onDidRender.event));const ce=this.getDataNode(G);if(yield this.refreshAndRenderNode(ce,Z,ie,se),ne)try{this.tree.rerender(ce)}catch(G){}}))}rerender(G){if(void 0===G||G===this.root.element)return void this.tree.rerender();const Z=this.getDataNode(G);this.tree.rerender(Z)}collapse(G,Z=!1){const ne=this.getDataNode(G);return this.tree.collapse(ne===this.root?null:ne,Z)}expand(G,Z=!1){return __awaiter(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new TreeError(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield me.c.toPromise(this._onDidRender.event));const ne=this.getDataNode(G);if(this.tree.hasElement(ne)&&!this.tree.isCollapsible(ne))return!1;if(ne.refreshPromise&&(yield this.root.refreshPromise,yield me.c.toPromise(this._onDidRender.event)),ne!==this.root&&!ne.refreshPromise&&!this.tree.isCollapsed(ne))return!1;const ie=this.tree.expand(ne===this.root?null:ne,Z);return ne.refreshPromise&&(yield this.root.refreshPromise,yield me.c.toPromise(this._onDidRender.event)),ie}))}setSelection(G,Z){const ne=G.map(G=>this.getDataNode(G));this.tree.setSelection(ne,Z)}getSelection(){return this.tree.getSelection().map(G=>G.element)}setFocus(G,Z){const ne=G.map(G=>this.getDataNode(G));this.tree.setFocus(ne,Z)}getFocus(){return this.tree.getFocus().map(G=>G.element)}reveal(G,Z){this.tree.reveal(this.getDataNode(G),Z)}getDataNode(G){const Z=this.nodes.get(G===this.root.element?null:G);if(!Z)throw new TreeError(this.user,"Data tree node not found: "+G);return Z}refreshAndRenderNode(G,Z,ne,ie){return __awaiter(this,void 0,void 0,(function*(){yield this.refreshNode(G,Z,ne),this.render(G,ne,ie)}))}refreshNode(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){let ie;return this.subTreeRefreshPromises.forEach((se,ce)=>{!ie&&function intersects(G,Z){return G===Z||isAncestor(G,Z)||isAncestor(Z,G)}(ce,G)&&(ie=se.then(()=>this.refreshNode(G,Z,ne)))}),ie||this.doRefreshSubTree(G,Z,ne)}))}doRefreshSubTree(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){let ie;G.refreshPromise=new Promise(G=>ie=G),this.subTreeRefreshPromises.set(G,G.refreshPromise),G.refreshPromise.finally(()=>{G.refreshPromise=void 0,this.subTreeRefreshPromises.delete(G)});try{const se=yield this.doRefreshNode(G,Z,ne);G.stale=!1,yield ht.d.settled(se.map(G=>this.doRefreshSubTree(G,Z,ne)))}finally{ie()}}))}doRefreshNode(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){let ie;if(G.hasChildren=!!this.dataSource.hasChildren(G.element),G.hasChildren){const Z=Object(ht.n)(800);Z.then(()=>{G.slow=!0,this._onDidChangeNodeSlowState.fire(G)},G=>null),ie=this.doGetChildren(G).finally(()=>Z.cancel())}else ie=Promise.resolve(it.a.empty());try{const se=yield ie;return this.setChildren(G,se,Z,ne)}catch(Z){if(G!==this.root&&this.tree.hasElement(G)&&this.tree.collapse(G),Object(Tt.d)(Z))return[];throw Z}finally{G.slow&&(G.slow=!1,this._onDidChangeNodeSlowState.fire(G))}}))}doGetChildren(G){let Z=this.refreshPromises.get(G);return Z||(Z=Object(ht.h)(()=>__awaiter(this,void 0,void 0,(function*(){const Z=yield this.dataSource.getChildren(G.element);return this.processChildren(Z)}))),this.refreshPromises.set(G,Z),Z.finally(()=>{this.refreshPromises.delete(G)}))}_onDidChangeCollapseState({node:G,deep:Z}){null!==G.element&&!G.collapsed&&G.element.stale&&(Z?this.collapse(G.element.element):this.refreshAndRenderNode(G.element,!1).catch(Tt.e))}setChildren(G,Z,ne,ie){const se=[...Z];if(0===G.children.length&&0===se.length)return[];const ce=new Map,fe=new Map;for(const Z of G.children)if(ce.set(Z.element,Z),this.identityProvider){const G=this.tree.isCollapsed(Z);fe.set(Z.id,{node:Z,collapsed:G})}const me=[],ge=se.map(Z=>{const se=!!this.dataSource.hasChildren(Z);if(!this.identityProvider){const ne=createAsyncDataTreeNode({element:Z,parent:G,hasChildren:se});return se&&this.collapseByDefault&&!this.collapseByDefault(Z)&&(ne.collapsedByDefault=!1,me.push(ne)),ne}const ge=this.identityProvider.getId(Z).toString(),Ce=fe.get(ge);if(Ce){const G=Ce.node;return ce.delete(G.element),this.nodes.delete(G.element),this.nodes.set(Z,G),G.element=Z,G.hasChildren=se,ne?Ce.collapsed?(G.children.forEach(G=>asyncDataTree_dfs(G,G=>this.nodes.delete(G.element))),G.children.splice(0,G.children.length),G.stale=!0):me.push(G):se&&this.collapseByDefault&&!this.collapseByDefault(Z)&&(G.collapsedByDefault=!1,me.push(G)),G}const Se=createAsyncDataTreeNode({element:Z,parent:G,id:ge,hasChildren:se});return ie&&ie.viewState.focus&&ie.viewState.focus.indexOf(ge)>-1&&ie.focus.push(Se),ie&&ie.viewState.selection&&ie.viewState.selection.indexOf(ge)>-1&&ie.selection.push(Se),ie&&ie.viewState.expanded&&ie.viewState.expanded.indexOf(ge)>-1?me.push(Se):se&&this.collapseByDefault&&!this.collapseByDefault(Z)&&(Se.collapsedByDefault=!1,me.push(Se)),Se});for(const G of ce.values())asyncDataTree_dfs(G,G=>this.nodes.delete(G.element));for(const G of ge)this.nodes.set(G.element,G);return G.children.splice(0,G.children.length,...ge),G!==this.root&&this.autoExpandSingleChildren&&1===ge.length&&0===me.length&&(ge[0].collapsedByDefault=!1,me.push(ge[0])),me}render(G,Z,ne){const ie=G.children.map(G=>this.asTreeElement(G,Z)),se=ne&&Object.assign(Object.assign({},ne),{diffIdentityProvider:ne.diffIdentityProvider&&{getId:G=>ne.diffIdentityProvider.getId(G.element)}});this.tree.setChildren(G===this.root?null:G,ie,se),G!==this.root&&this.tree.setCollapsible(G,G.hasChildren),this._onDidRender.fire()}asTreeElement(G,Z){if(G.stale)return{element:G,collapsible:G.hasChildren,collapsed:!0};let ne;return ne=!(Z&&Z.viewState.expanded&&G.id&&Z.viewState.expanded.indexOf(G.id)>-1)&&G.collapsedByDefault,G.collapsedByDefault=void 0,{element:G,children:G.hasChildren?it.a.map(G.children,G=>this.asTreeElement(G,Z)):[],collapsible:G.hasChildren,collapsed:ne}}processChildren(G){return this.sorter&&(G=[...G].sort(this.sorter.compare.bind(this.sorter))),G}dispose(){this.disposables.dispose()}}class CompressibleAsyncDataTreeNodeWrapper{constructor(G){this.node=G}get element(){return{elements:this.node.element.elements.map(G=>G.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(G=>new CompressibleAsyncDataTreeNodeWrapper(G))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class asyncDataTree_CompressibleAsyncDataTreeRenderer{constructor(G,Z,ne,ie){this.renderer=G,this.nodeMapper=Z,this.compressibleNodeMapperProvider=ne,this.onDidChangeTwistieState=ie,this.renderedNodes=new Map,this.disposables=[],this.templateId=G.templateId}renderTemplate(G){return{templateData:this.renderer.renderTemplate(G)}}renderElement(G,Z,ne,ie){this.renderer.renderElement(this.nodeMapper.map(G),Z,ne.templateData,ie)}renderCompressedElements(G,Z,ne,ie){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(G),Z,ne.templateData,ie)}renderTwistie(G,Z){return G.slow?(Z.classList.add(...kt.classNamesArray),!0):(Z.classList.remove(...kt.classNamesArray),!1)}disposeElement(G,Z,ne,ie){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(G),Z,ne.templateData,ie)}disposeCompressedElements(G,Z,ne,ie){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(G),Z,ne.templateData,ie)}disposeTemplate(G){this.renderer.disposeTemplate(G.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(se.f)(this.disposables)}}class asyncDataTree_CompressibleAsyncDataTree extends asyncDataTree_AsyncDataTree{constructor(G,Z,ne,ie,se,ce,fe={}){super(G,Z,ne,se,ce,fe),this.compressionDelegate=ie,this.compressibleNodeMapper=new WeakMapper(G=>new CompressibleAsyncDataTreeNodeWrapper(G)),this.filter=fe.filter}createTree(G,Z,ne,ie,se){const ce=new ComposedTreeDelegate(ne),fe=ie.map(G=>new asyncDataTree_CompressibleAsyncDataTreeRenderer(G,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),me=function asCompressibleObjectTreeOptions(G){const Z=G&&asyncDataTree_asObjectTreeOptions(G);return Z&&Object.assign(Object.assign({},Z),{keyboardNavigationLabelProvider:Z.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},Z.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:Z=>G.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Z.map(G=>G.element))})})}(se)||{};return new objectTree_CompressibleObjectTree(G,Z,ce,fe,me)}asTreeElement(G,Z){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(G.element)},super.asTreeElement(G,Z))}updateOptions(G={}){this.tree.updateOptions(G)}render(G,Z){if(!this.identityProvider)return super.render(G,Z);const getId=G=>this.identityProvider.getId(G).toString(),getUncompressedIds=G=>{const Z=new Set;for(const ne of G){const G=this.tree.getCompressedTreeNode(ne===this.root?null:ne);if(G.element)for(const ne of G.element.elements)Z.add(getId(ne.element))}return Z},ne=getUncompressedIds(this.tree.getSelection()),ie=getUncompressedIds(this.tree.getFocus());super.render(G,Z);const se=this.getSelection();let ce=!1;const fe=this.getFocus();let me=!1;const visit=G=>{const Z=G.element;if(Z)for(let G=0;G{const Z=function getVisibility(G){return"boolean"==typeof G?G?1:0:isFilterResult(G)?getVisibleState(G.visibility):getVisibleState(G)}(this.filter.filter(G,1));if(2===Z)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===Z})),super.processChildren(G)}}class dataTree_DataTree extends abstractTree_AbstractTree{constructor(G,Z,ne,ie,se,ce={}){super(G,Z,ne,ie,ce),this.user=G,this.dataSource=se,this.identityProvider=ce.identityProvider}createModel(G,Z,ne){return new objectTreeModel_ObjectTreeModel(G,Z,ne)}}var At=ne(295),Dt=(ne(7585),ne(1363));class tableWidget_TableListRenderer{constructor(G,Z,ne){this.columns=G,this.getColumnSize=ne,this.templateId=tableWidget_TableListRenderer.TemplateId,this.renderedTemplates=new Set;const ie=new Map(Z.map(G=>[G.templateId,G]));this.renderers=[];for(const Z of G){const G=ie.get(Z.templateId);if(!G)throw new Error(`Table cell renderer for template id ${Z.templateId} not found.`);this.renderers.push(G)}}renderTemplate(G){const Z=Object(ie.q)(G,Object(ie.a)(".monaco-table-tr")),ne=[],se=[];for(let G=0;Gnew tableWidget_ColumnHeader(G,Z)),Se={size:Ce.reduce((G,Z)=>G+Z.column.weight,0),views:Ce.map(G=>({size:G.column.weight,view:G}))};this.splitview=new Dt.b(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:Se}),this.splitview.el.style.height=ne.headerRowHeight+"px",this.splitview.el.style.lineHeight=ne.headerRowHeight+"px";const Me=new tableWidget_TableListRenderer(se,ce,G=>this.splitview.getViewSize(G));this.list=new fe.c(G,this.domNode,function asListVirtualDelegate(G){return{getHeight:Z=>G.getHeight(Z),getTemplateId:()=>tableWidget_TableListRenderer.TemplateId}}(ne),[Me],ge),this.columnLayoutDisposable=me.c.any(...Ce.map(G=>G.onDidLayout))(([G,Z])=>Me.layoutColumn(G,Z)),this.styleElement=Object(ie.w)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(G){this.list.updateOptions(G)}splice(G,Z,ne=[]){this.list.splice(G,Z,ne)}getHTMLElement(){return this.domNode}style(G){const Z=[];Z.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=Z.join("\n"),this.list.style(G)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.splitview.dispose(),this.list.dispose(),this.columnLayoutDisposable.dispose()}}tableWidget_Table.InstanceCount=0;var listService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const Et=Object(De.c)("listService");let jt=class ListService{constructor(G){this._themeService=G,this.disposables=new se.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(G,Z){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const G=new fe.b(Object(ie.w)(),"");this.disposables.add(Object(ze.b)(G,this._themeService))}if(this.lists.some(Z=>Z.widget===G))throw new Error("Cannot register the same widget multiple times");const ne={widget:G,extraContextKeys:Z};return this.lists.push(ne),G.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=G),Object(se.e)(G.onDidFocus(()=>this._lastFocusedWidget=G),Object(se.i)(()=>this.lists.splice(this.lists.indexOf(ne),1)),G.onDidDispose(()=>{this.lists=this.lists.filter(G=>G!==ne),this._lastFocusedWidget===G&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};jt=listService_decorate([__param(0,$e.b)],jt);const It=new xe.c("listFocus",!0),Nt=new xe.c("listSupportsMultiselect",!0),Rt=xe.a.and(It,xe.a.not(Je.a)),zt=new xe.c("listHasSelectionOrFocus",!1),qt=new xe.c("listDoubleSelection",!1),Wt=new xe.c("listMultiSelection",!1),Bt=new xe.c("listSelectionNavigation",!1);function createScopedContextKeyService(G,Z){const ne=G.createScoped(Z.getHTMLElement());return It.bindTo(ne),ne}const Ft="workbench.list.horizontalScrolling",Ht="workbench.tree.indent",$t="workbench.list.smoothScrolling",Vt="workbench.list.mouseWheelScrollSensitivity",Yt="workbench.list.fastScrollSensitivity",Ut="workbench.tree.expandMode";function useAltAsMultipleSelectionModifier(G){return"alt"===G.getValue("workbench.list.multiSelectModifier")}class listService_MultipleSelectionController extends se.a{constructor(G){super(),this.configurationService=G,this.useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(G),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(G=>{G.affectsConfiguration("workbench.list.multiSelectModifier")&&(this.useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(this.configurationService))}))}isSelectionSingleChangeEvent(G){return this.useAltAsMultipleSelectionModifier?G.browserEvent.altKey:Object(fe.h)(G)}isSelectionRangeChangeEvent(G){return Object(fe.g)(G)}}function toWorkbenchListOptions(G,Z,ne){var ie;const ce=new se.b;return[Object.assign(Object.assign({},G),{keyboardNavigationDelegate:{mightProducePrintableCharacter:G=>ne.mightProducePrintableCharacter(G)},smoothScrolling:Boolean(Z.getValue($t)),mouseWheelScrollSensitivity:Z.getValue(Vt),fastScrollSensitivity:Z.getValue(Yt),multipleSelectionController:null!==(ie=G.multipleSelectionController)&&void 0!==ie?ie:ce.add(new listService_MultipleSelectionController(Z))}),ce]}let Kt=class WorkbenchList extends fe.c{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce){const Se=void 0!==se.horizontalScrolling?se.horizontalScrolling:Boolean(ge.getValue(Ft)),[Me,ke]=toWorkbenchListOptions(se,ge,Ce);super(G,Z,ne,ie,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(ze.d)(me.getColorTheme(),ze.e)),Me),{horizontalScrolling:Se})),this.disposables.add(ke),this.contextKeyService=createScopedContextKeyService(ce,this),this.themeService=me,this.listSupportsMultiSelect=Nt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==se.multipleSelectionSupport);Bt.bindTo(this.contextKeyService).set(Boolean(se.selectionNavigation)),this.listHasSelectionOrFocus=zt.bindTo(this.contextKeyService),this.listDoubleSelection=qt.bindTo(this.contextKeyService),this.listMultiSelection=Wt.bindTo(this.contextKeyService),this.horizontalScrolling=se.horizontalScrolling,this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(ge),this.disposables.add(this.contextKeyService),this.disposables.add(fe.register(this)),se.overrideStyles&&this.updateStyles(se.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const G=this.getSelection(),Z=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(G.length>0||Z.length>0),this.listMultiSelection.set(G.length>1),this.listDoubleSelection.set(2===G.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const G=this.getSelection(),Z=this.getFocus();this.listHasSelectionOrFocus.set(G.length>0||Z.length>0)})),this.disposables.add(ge.onDidChangeConfiguration(G=>{G.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(ge));let Z={};if(G.affectsConfiguration(Ft)&&void 0===this.horizontalScrolling){const G=Boolean(ge.getValue(Ft));Z=Object.assign(Object.assign({},Z),{horizontalScrolling:G})}if(G.affectsConfiguration($t)){const G=Boolean(ge.getValue($t));Z=Object.assign(Object.assign({},Z),{smoothScrolling:G})}if(G.affectsConfiguration(Vt)){const G=ge.getValue(Vt);Z=Object.assign(Object.assign({},Z),{mouseWheelScrollSensitivity:G})}if(G.affectsConfiguration(Yt)){const G=ge.getValue(Yt);Z=Object.assign(Object.assign({},Z),{fastScrollSensitivity:G})}Object.keys(Z).length>0&&this.updateOptions(Z)})),this.navigator=new ListResourceNavigator(this,Object.assign({configurationService:ge},se)),this.disposables.add(this.navigator)}updateOptions(G){super.updateOptions(G),G.overrideStyles&&this.updateStyles(G.overrideStyles),void 0!==G.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!G.multipleSelectionSupport)}updateStyles(G){var Z;null===(Z=this._styler)||void 0===Z||Z.dispose(),this._styler=Object(ze.b)(this,this.themeService,G)}dispose(){var G;null===(G=this._styler)||void 0===G||G.dispose(),super.dispose()}};Kt=listService_decorate([__param(5,xe.b),__param(6,Et),__param(7,$e.b),__param(8,Me.a),__param(9,Ie.a)],Kt);let Gt=class WorkbenchPagedList extends class listPaging_PagedList{constructor(G,Z,ne,ie,se={}){const modelProvider=()=>this.model,ce=ie.map(G=>new listPaging_PagedRenderer(G,modelProvider));this.list=new fe.c(G,Z,ne,ce,function fromPagedListOptions(G,Z){return Object.assign(Object.assign({},Z),{accessibilityProvider:Z.accessibilityProvider&&new PagedAccessibilityProvider(G,Z.accessibilityProvider)})}(modelProvider,se))}updateOptions(G){this.list.updateOptions(G)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return me.c.map(this.list.onMouseDblClick,({element:G,index:Z,browserEvent:ne})=>({element:void 0===G?void 0:this._model.get(G),index:Z,browserEvent:ne}))}get onPointer(){return me.c.map(this.list.onPointer,({element:G,index:Z,browserEvent:ne})=>({element:void 0===G?void 0:this._model.get(G),index:Z,browserEvent:ne}))}get onDidChangeSelection(){return me.c.map(this.list.onDidChangeSelection,({elements:G,indexes:Z,browserEvent:ne})=>({elements:G.map(G=>this._model.get(G)),indexes:Z,browserEvent:ne}))}get model(){return this._model}set model(G){this._model=G,this.list.splice(0,this.list.length,Object(ce.r)(G.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(G=>this.model.get(G))}style(G){this.list.style(G)}dispose(){this.list.dispose()}}{constructor(G,Z,ne,ie,ce,fe,me,ge,Ce,Se){const Me=void 0!==ce.horizontalScrolling?ce.horizontalScrolling:Boolean(Ce.getValue(Ft)),[ke,xe]=toWorkbenchListOptions(ce,Ce,Se);super(G,Z,ne,ie,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(ze.d)(ge.getColorTheme(),ze.e)),ke),{horizontalScrolling:Me})),this.disposables=new se.b,this.disposables.add(xe),this.contextKeyService=createScopedContextKeyService(fe,this),this.themeService=ge,this.horizontalScrolling=ce.horizontalScrolling,this.listSupportsMultiSelect=Nt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==ce.multipleSelectionSupport);Bt.bindTo(this.contextKeyService).set(Boolean(ce.selectionNavigation)),this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(Ce),this.disposables.add(this.contextKeyService),this.disposables.add(me.register(this)),ce.overrideStyles&&this.updateStyles(ce.overrideStyles),ce.overrideStyles&&this.disposables.add(Object(ze.b)(this,ge,ce.overrideStyles)),this.disposables.add(Ce.onDidChangeConfiguration(G=>{G.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(Ce));let Z={};if(G.affectsConfiguration(Ft)&&void 0===this.horizontalScrolling){const G=Boolean(Ce.getValue(Ft));Z=Object.assign(Object.assign({},Z),{horizontalScrolling:G})}if(G.affectsConfiguration($t)){const G=Boolean(Ce.getValue($t));Z=Object.assign(Object.assign({},Z),{smoothScrolling:G})}if(G.affectsConfiguration(Vt)){const G=Ce.getValue(Vt);Z=Object.assign(Object.assign({},Z),{mouseWheelScrollSensitivity:G})}if(G.affectsConfiguration(Yt)){const G=Ce.getValue(Yt);Z=Object.assign(Object.assign({},Z),{fastScrollSensitivity:G})}Object.keys(Z).length>0&&this.updateOptions(Z)})),this.navigator=new ListResourceNavigator(this,Object.assign({configurationService:Ce},ce)),this.disposables.add(this.navigator)}updateOptions(G){super.updateOptions(G),G.overrideStyles&&this.updateStyles(G.overrideStyles),void 0!==G.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!G.multipleSelectionSupport)}updateStyles(G){var Z;null===(Z=this._styler)||void 0===Z||Z.dispose(),this._styler=Object(ze.b)(this,this.themeService,G)}dispose(){var G;null===(G=this._styler)||void 0===G||G.dispose(),this.disposables.dispose(),super.dispose()}};Gt=listService_decorate([__param(5,xe.b),__param(6,Et),__param(7,$e.b),__param(8,Me.a),__param(9,Ie.a)],Gt);let Zt=class WorkbenchTable extends tableWidget_Table{constructor(G,Z,ne,ie,ce,fe,me,ge,Ce,Se,Me){const ke=void 0!==fe.horizontalScrolling?fe.horizontalScrolling:Boolean(Se.getValue(Ft)),[xe,De]=toWorkbenchListOptions(fe,Se,Me);super(G,Z,ne,ie,ce,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(ze.d)(Ce.getColorTheme(),ze.e)),xe),{horizontalScrolling:ke})),this.disposables=new se.b,this.disposables.add(De),this.contextKeyService=createScopedContextKeyService(me,this),this.themeService=Ce,this.listSupportsMultiSelect=Nt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==fe.multipleSelectionSupport);Bt.bindTo(this.contextKeyService).set(Boolean(fe.selectionNavigation)),this.listHasSelectionOrFocus=zt.bindTo(this.contextKeyService),this.listDoubleSelection=qt.bindTo(this.contextKeyService),this.listMultiSelection=Wt.bindTo(this.contextKeyService),this.horizontalScrolling=fe.horizontalScrolling,this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(Se),this.disposables.add(this.contextKeyService),this.disposables.add(ge.register(this)),fe.overrideStyles&&this.updateStyles(fe.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const G=this.getSelection(),Z=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(G.length>0||Z.length>0),this.listMultiSelection.set(G.length>1),this.listDoubleSelection.set(2===G.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const G=this.getSelection(),Z=this.getFocus();this.listHasSelectionOrFocus.set(G.length>0||Z.length>0)})),this.disposables.add(Se.onDidChangeConfiguration(G=>{G.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(Se));let Z={};if(G.affectsConfiguration(Ft)&&void 0===this.horizontalScrolling){const G=Boolean(Se.getValue(Ft));Z=Object.assign(Object.assign({},Z),{horizontalScrolling:G})}if(G.affectsConfiguration($t)){const G=Boolean(Se.getValue($t));Z=Object.assign(Object.assign({},Z),{smoothScrolling:G})}if(G.affectsConfiguration(Vt)){const G=Se.getValue(Vt);Z=Object.assign(Object.assign({},Z),{mouseWheelScrollSensitivity:G})}if(G.affectsConfiguration(Yt)){const G=Se.getValue(Yt);Z=Object.assign(Object.assign({},Z),{fastScrollSensitivity:G})}Object.keys(Z).length>0&&this.updateOptions(Z)})),this.navigator=new TableResourceNavigator(this,Object.assign({configurationService:Se},fe)),this.disposables.add(this.navigator)}updateOptions(G){super.updateOptions(G),G.overrideStyles&&this.updateStyles(G.overrideStyles),void 0!==G.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!G.multipleSelectionSupport)}updateStyles(G){var Z;null===(Z=this._styler)||void 0===Z||Z.dispose(),this._styler=Object(ze.b)(this,this.themeService,G)}dispose(){var G;null===(G=this._styler)||void 0===G||G.dispose(),this.disposables.dispose(),super.dispose()}};Zt=listService_decorate([__param(6,xe.b),__param(7,Et),__param(8,$e.b),__param(9,Me.a),__param(10,Ie.a)],Zt);class listService_ResourceNavigator extends se.a{constructor(G,Z){var ne;super(),this.widget=G,this._onDidOpen=this._register(new me.b),this.onDidOpen=this._onDidOpen.event,this._register(me.c.filter(this.widget.onDidChangeSelection,G=>G.browserEvent instanceof KeyboardEvent)(G=>this.onSelectionFromKeyboard(G))),this._register(this.widget.onPointer(G=>this.onPointer(G.element,G.browserEvent))),this._register(this.widget.onMouseDblClick(G=>this.onMouseDblClick(G.element,G.browserEvent))),"boolean"!=typeof(null==Z?void 0:Z.openOnSingleClick)&&(null==Z?void 0:Z.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==Z?void 0:Z.configurationService.getValue("workbench.list.openMode")),this._register(null==Z?void 0:Z.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick="doubleClick"!==(null==Z?void 0:Z.configurationService.getValue("workbench.list.openMode"))}))):this.openOnSingleClick=null===(ne=null==Z?void 0:Z.openOnSingleClick)||void 0===ne||ne}onSelectionFromKeyboard(G){if(1!==G.elements.length)return;const Z=G.browserEvent,ne="boolean"!=typeof Z.preserveFocus||Z.preserveFocus,ie="boolean"==typeof Z.pinned?Z.pinned:!ne;this._open(this.getSelectedElement(),ne,ie,!1,G.browserEvent)}onPointer(G,Z){if(!this.openOnSingleClick)return;if(2===Z.detail)return;const ne=1===Z.button,ie=Z.ctrlKey||Z.metaKey||Z.altKey;this._open(G,!0,ne,ie,Z)}onMouseDblClick(G,Z){if(!Z)return;const ne=Z.target;if(ne.classList.contains("monaco-tl-twistie")||ne.classList.contains("monaco-icon-label")&&ne.classList.contains("folder-icon")&&Z.offsetX<16)return;const ie=Z.ctrlKey||Z.metaKey||Z.altKey;this._open(G,!1,!0,ie,Z)}_open(G,Z,ne,ie,se){G&&this._onDidOpen.fire({editorOptions:{preserveFocus:Z,pinned:ne,revealIfVisible:!0},sideBySide:ie,element:G,browserEvent:se})}}class ListResourceNavigator extends listService_ResourceNavigator{constructor(G,Z){super(G,Z),this.widget=G}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class TableResourceNavigator extends listService_ResourceNavigator{constructor(G,Z){super(G,Z)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class TreeResourceNavigator extends listService_ResourceNavigator{constructor(G,Z){super(G,Z)}getSelectedElement(){var G;return null!==(G=this.widget.getSelection()[0])&&void 0!==G?G:void 0}}function createKeyboardNavigationEventFilter(G,Z){let ne=!1;return ie=>{if(ne)return ne=!1,!1;const se=Z.softDispatch(ie,G);return se&&se.enterChord?(ne=!0,!1):(ne=!1,!0)}}let Jt=class WorkbenchObjectTree extends objectTree_ObjectTree{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se){const{options:Me,getAutomaticKeyboardNavigation:ke,disposable:xe}=workbenchTreeDataPreamble(Z,se,ce,ge,Ce,Se);super(G,Z,ne,ie,Me),this.disposables.add(xe),this.internals=new dn(this,se,ke,se.overrideStyles,ce,fe,me,ge,Se),this.disposables.add(this.internals)}updateOptions(G){super.updateOptions(G),this.internals.updateOptions(G)}};Jt=listService_decorate([__param(5,xe.b),__param(6,Et),__param(7,$e.b),__param(8,Me.a),__param(9,Ie.a),__param(10,At.b)],Jt);let Qt=class WorkbenchCompressibleObjectTree extends objectTree_CompressibleObjectTree{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se){const{options:Me,getAutomaticKeyboardNavigation:ke,disposable:xe}=workbenchTreeDataPreamble(Z,se,ce,ge,Ce,Se);super(G,Z,ne,ie,Me),this.disposables.add(xe),this.internals=new dn(this,se,ke,se.overrideStyles,ce,fe,me,ge,Se),this.disposables.add(this.internals)}updateOptions(G={}){super.updateOptions(G),G.overrideStyles&&this.internals.updateStyleOverrides(G.overrideStyles),this.internals.updateOptions(G)}};Qt=listService_decorate([__param(5,xe.b),__param(6,Et),__param(7,$e.b),__param(8,Me.a),__param(9,Ie.a),__param(10,At.b)],Qt);let on=class WorkbenchDataTree extends dataTree_DataTree{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me){const{options:ke,getAutomaticKeyboardNavigation:xe,disposable:De}=workbenchTreeDataPreamble(Z,ce,fe,Ce,Se,Me);super(G,Z,ne,ie,se,ke),this.disposables.add(De),this.internals=new dn(this,ce,xe,ce.overrideStyles,fe,me,ge,Ce,Me),this.disposables.add(this.internals)}updateOptions(G={}){super.updateOptions(G),G.overrideStyles&&this.internals.updateStyleOverrides(G.overrideStyles),this.internals.updateOptions(G)}};on=listService_decorate([__param(6,xe.b),__param(7,Et),__param(8,$e.b),__param(9,Me.a),__param(10,Ie.a),__param(11,At.b)],on);let sn=class WorkbenchAsyncDataTree extends asyncDataTree_AsyncDataTree{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me){const{options:ke,getAutomaticKeyboardNavigation:xe,disposable:De}=workbenchTreeDataPreamble(Z,ce,fe,Ce,Se,Me);super(G,Z,ne,ie,se,ke),this.disposables.add(De),this.internals=new dn(this,ce,xe,ce.overrideStyles,fe,me,ge,Ce,Me),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(G={}){super.updateOptions(G),G.overrideStyles&&this.internals.updateStyleOverrides(G.overrideStyles),this.internals.updateOptions(G)}};sn=listService_decorate([__param(6,xe.b),__param(7,Et),__param(8,$e.b),__param(9,Me.a),__param(10,Ie.a),__param(11,At.b)],sn);let cn=class WorkbenchCompressibleAsyncDataTree extends asyncDataTree_CompressibleAsyncDataTree{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke){const{options:xe,getAutomaticKeyboardNavigation:De,disposable:Ie}=workbenchTreeDataPreamble(Z,fe,me,Se,Me,ke);super(G,Z,ne,ie,se,ce,xe),this.disposables.add(Ie),this.internals=new dn(this,fe,De,fe.overrideStyles,me,ge,Ce,Se,ke),this.disposables.add(this.internals)}updateOptions(G){super.updateOptions(G),this.internals.updateOptions(G)}};function workbenchTreeDataPreamble(G,Z,ne,ie,se,ce){var fe;const getAutomaticKeyboardNavigation=()=>{let G=Boolean(ne.getContextKeyValue("listAutomaticKeyboardNavigation"));return G&&(G=Boolean(ie.getValue("workbench.list.automaticKeyboardNavigation"))),G},me=ce.isScreenReaderOptimized(),ge=Z.simpleKeyboardNavigation||me?"simple":ie.getValue("workbench.list.keyboardNavigation"),Ce=void 0!==Z.horizontalScrolling?Z.horizontalScrolling:Boolean(ie.getValue(Ft)),[Se,Me]=toWorkbenchListOptions(Z,ie,se),ke=Z.additionalScrollHeight;return{getAutomaticKeyboardNavigation:getAutomaticKeyboardNavigation,disposable:Me,options:Object.assign(Object.assign({keyboardSupport:!1},Se),{indent:"number"==typeof ie.getValue(Ht)?ie.getValue(Ht):void 0,renderIndentGuides:ie.getValue("workbench.tree.renderIndentGuides"),smoothScrolling:Boolean(ie.getValue($t)),automaticKeyboardNavigation:getAutomaticKeyboardNavigation(),simpleKeyboardNavigation:"simple"===ge,filterOnType:"filter"===ge,horizontalScrolling:Ce,keyboardNavigationEventFilter:createKeyboardNavigationEventFilter(G,se),additionalScrollHeight:ke,hideTwistiesOfChildlessElements:Z.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(fe=Z.expandOnlyOnTwistieClick)&&void 0!==fe?fe:"doubleClick"===ie.getValue(Ut)})}}cn=listService_decorate([__param(7,xe.b),__param(8,Et),__param(9,$e.b),__param(10,Me.a),__param(11,Ie.a),__param(12,At.b)],cn);let dn=class WorkbenchTreeInternals{constructor(G,Z,ne,ie,se,ce,fe,me,ge){this.tree=G,this.themeService=fe,this.disposables=[],this.contextKeyService=createScopedContextKeyService(se,G),this.listSupportsMultiSelect=Nt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==Z.multipleSelectionSupport);Bt.bindTo(this.contextKeyService).set(Boolean(Z.selectionNavigation)),this.hasSelectionOrFocus=zt.bindTo(this.contextKeyService),this.hasDoubleSelection=qt.bindTo(this.contextKeyService),this.hasMultiSelection=Wt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(me);const Ce=new Set;Ce.add("listAutomaticKeyboardNavigation");const updateKeyboardNavigation=()=>{const Z=ge.isScreenReaderOptimized()?"simple":me.getValue("workbench.list.keyboardNavigation");G.updateOptions({simpleKeyboardNavigation:"simple"===Z,filterOnType:"filter"===Z})};this.updateStyleOverrides(ie),this.disposables.push(this.contextKeyService,ce.register(G),G.onDidChangeSelection(()=>{const Z=G.getSelection(),ne=G.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(Z.length>0||ne.length>0),this.hasMultiSelection.set(Z.length>1),this.hasDoubleSelection.set(2===Z.length)})}),G.onDidChangeFocus(()=>{const Z=G.getSelection(),ne=G.getFocus();this.hasSelectionOrFocus.set(Z.length>0||ne.length>0)}),me.onDidChangeConfiguration(ie=>{let se={};if(ie.affectsConfiguration("workbench.list.multiSelectModifier")&&(this._useAltAsMultipleSelectionModifier=useAltAsMultipleSelectionModifier(me)),ie.affectsConfiguration(Ht)){const G=me.getValue(Ht);se=Object.assign(Object.assign({},se),{indent:G})}if(ie.affectsConfiguration("workbench.tree.renderIndentGuides")){const G=me.getValue("workbench.tree.renderIndentGuides");se=Object.assign(Object.assign({},se),{renderIndentGuides:G})}if(ie.affectsConfiguration($t)){const G=Boolean(!!me.getValue($t));se=Object.assign(Object.assign({},se),{smoothScrolling:G})}if(ie.affectsConfiguration("workbench.list.keyboardNavigation")&&updateKeyboardNavigation(),ie.affectsConfiguration("workbench.list.automaticKeyboardNavigation")&&(se=Object.assign(Object.assign({},se),{automaticKeyboardNavigation:ne()})),ie.affectsConfiguration(Ft)&&void 0===Z.horizontalScrolling){const G=Boolean(!!me.getValue(Ft));se=Object.assign(Object.assign({},se),{horizontalScrolling:G})}if(ie.affectsConfiguration(Ut)&&void 0===Z.expandOnlyOnTwistieClick&&(se=Object.assign(Object.assign({},se),{expandOnlyOnTwistieClick:"doubleClick"===me.getValue(Ut)})),ie.affectsConfiguration(Vt)){const G=me.getValue(Vt);se=Object.assign(Object.assign({},se),{mouseWheelScrollSensitivity:G})}if(ie.affectsConfiguration(Yt)){const G=me.getValue(Yt);se=Object.assign(Object.assign({},se),{fastScrollSensitivity:G})}Object.keys(se).length>0&&G.updateOptions(se)}),this.contextKeyService.onDidChangeContext(Z=>{Z.affectsSome(Ce)&&G.updateOptions({automaticKeyboardNavigation:ne()})}),ge.onDidChangeScreenReaderOptimized(()=>updateKeyboardNavigation())),this.navigator=new TreeResourceNavigator(G,Object.assign({configurationService:me},Z)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(G){void 0!==G.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!G.multipleSelectionSupport)}updateStyleOverrides(G){Object(se.f)(this.styler),this.styler=G?Object(ze.b)(this.tree,this.themeService,G):se.a.None}dispose(){this.disposables=Object(se.f)(this.disposables),Object(se.f)(this.styler),this.styler=void 0}};dn=listService_decorate([__param(4,xe.b),__param(5,Et),__param(6,$e.b),__param(7,Me.a),__param(8,At.b)],dn);Re.a.as(ke.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(Se.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{"workbench.list.multiSelectModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(Se.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(Se.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(Se.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(Se.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Ft]:{type:"boolean",default:!1,description:Object(Se.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ht]:{type:"number",default:8,minimum:0,maximum:40,description:Object(Se.a)("tree indent setting","Controls tree indentation in pixels.")},"workbench.tree.renderIndentGuides":{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(Se.a)("render tree indent guides","Controls whether the tree should render indent guides.")},[$t]:{type:"boolean",default:!1,description:Object(Se.a)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Vt]:{type:"number",default:1,description:Object(Se.a)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events.")},[Yt]:{type:"number",default:5,description:Object(Se.a)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing Alt.")},"workbench.list.keyboardNavigation":{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(Se.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(Se.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(Se.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(Se.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},"workbench.list.automaticKeyboardNavigation":{type:"boolean",default:!0,markdownDescription:Object(Se.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},[Ut]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(Se.a)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}})},650:function(G,Z,ne){"use strict";ne.d(Z,"f",(function(){return zt})),ne.d(Z,"e",(function(){return codeActionCommands_QuickFixAction})),ne.d(Z,"b",(function(){return codeActionCommands_CodeActionCommand})),ne.d(Z,"g",(function(){return codeActionCommands_RefactorAction})),ne.d(Z,"h",(function(){return codeActionCommands_SourceAction})),ne.d(Z,"d",(function(){return codeActionCommands_OrganizeImportsAction})),ne.d(Z,"c",(function(){return codeActionCommands_FixAllAction})),ne.d(Z,"a",(function(){return codeActionCommands_AutoFixAction}));var ie=ne(103);class Lazy{constructor(G){this.executor=G,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(G){this._error=G}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var se=ne(10),ce=ne(27),fe=ne(14),me=ne(826),ge=ne(23),Ce=ne(448),Se=ne(51),Me=ne(827),ke=ne(60),xe=ne(6),De=ne(196),Ie=ne(34),Re=ne(35),ze=ne(241),$e=ne(341),Je=ne(175),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class codeActionMenu_CodeActionAction extends De.a{constructor(G,Z){super(G.command?G.command.id:G.title,function stripNewlines(G){return G.replace(/\r\n|\r|\n/g," ")}(G.title),void 0,!G.disabled,Z),this.action=G}}let it=class CodeActionMenu extends se.a{constructor(G,Z,ne,ie){super(),this._editor=G,this._delegate=Z,this._contextMenuService=ne,this._visible=!1,this._showingActions=this._register(new se.d),this._keybindingResolver=new codeActionMenu_CodeActionKeybindingResolver({getKeybindings:()=>ie.getKeybindings()})}get isVisible(){return this._visible}show(G,Z,ne,ie){return __awaiter(this,void 0,void 0,(function*(){const se=ie.includeDisabledActions?Z.allActions:Z.validActions;if(!se.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(Se.a)();this._visible=!0,this._showingActions.value=Z;const ce=this.getMenuActions(G,se,Z.documentation),fe=Ie.a.isIPosition(ne)?this._toCoords(ne):ne||{x:0,y:0},me=this._keybindingResolver.getResolver(),ge=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:ge?this._editor.getDomNode():void 0,getAnchor:()=>fe,getActions:()=>ce,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:G=>G instanceof codeActionMenu_CodeActionAction?me(G.action):void 0})}))}getMenuActions(G,Z,ne){var ie,se;const toCodeActionAction=G=>new codeActionMenu_CodeActionAction(G.action,()=>this._delegate.onSelectCodeAction(G)),ce=Z.map(toCodeActionAction),fe=[...ne],me=this._editor.getModel();if(me&&ce.length)for(const ne of Re.a.all(me))ne._getAdditionalMenuItems&&fe.push(...ne._getAdditionalMenuItems({trigger:G.type,only:null===(se=null===(ie=G.filter)||void 0===ie?void 0:ie.include)||void 0===se?void 0:se.value},Z.map(G=>G.action)));return fe.length&&ce.push(new De.d,...fe.map(G=>toCodeActionAction(new Ce.a({title:G.title,command:G},void 0)))),ce}_toCoords(G){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(G,1),this._editor.render();const Z=this._editor.getScrolledVisiblePosition(G),ne=Object(xe.D)(this._editor.getDomNode());return{x:ne.left+Z.left,y:ne.top+Z.top+Z.height}}};it=__decorate([__param(2,$e.a),__param(3,Je.a)],it);class codeActionMenu_CodeActionKeybindingResolver{constructor(G){this._keybindingProvider=G}getResolver(){const G=new Lazy(()=>this._keybindingProvider.getKeybindings().filter(G=>codeActionMenu_CodeActionKeybindingResolver.codeActionCommands.indexOf(G.command)>=0).filter(G=>G.resolvedKeybinding).map(G=>{let Z=G.commandArgs;return G.command===Ce.e?Z={kind:ze.b.SourceOrganizeImports.value}:G.command===Ce.c&&(Z={kind:ze.b.SourceFixAll.value}),Object.assign({resolvedKeybinding:G.resolvedKeybinding},ze.a.fromUser(Z,{kind:ze.b.None,apply:"never"}))}));return Z=>{if(Z.kind){const ne=this.bestKeybindingForCodeAction(Z,G.getValue());return null==ne?void 0:ne.resolvedKeybinding}}}bestKeybindingForCodeAction(G,Z){if(!G.kind)return;const ne=new ze.b(G.kind);return Z.filter(G=>G.kind.contains(ne)).filter(Z=>!Z.preferred||G.isPreferred).reduceRight((G,Z)=>G?G.kind.contains(Z.kind)?Z:G:Z,void 0)}}codeActionMenu_CodeActionKeybindingResolver.codeActionCommands=[Ce.f,Ce.b,Ce.g,Ce.e,Ce.c];var ot,at=ne(446),st=ne(19),ct=(ne(7505),ne(117)),ut=ne(4),dt=ne(50),ht=ne(13),ft=ne(209),_t=ne(67),lightBulbWidget_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},lightBulbWidget_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};!function(G){G.Hidden={type:0};G.Showing=class Showing{constructor(G,Z,ne,ie){this.actions=G,this.trigger=Z,this.editorPosition=ne,this.widgetPosition=ie,this.type=1}}}(ot||(ot={}));let yt=class LightBulbWidget extends se.a{constructor(G,Z,ne,ie){super(),this._editor=G,this._quickFixActionId=Z,this._preferredFixActionId=ne,this._keybindingService=ie,this._onClick=this._register(new st.b),this.onClick=this._onClick.event,this._state=ot.Hidden,this._domNode=document.createElement("div"),this._domNode.className=_t.b.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(G=>{const Z=this._editor.getModel();(1!==this.state.type||!Z||this.state.editorPosition.lineNumber>=Z.getLineCount())&&this.hide()})),ft.b.ignoreTarget(this._domNode),this._register(xe.n(this._domNode,G=>{if(1!==this.state.type)return;this._editor.focus(),G.preventDefault();const{top:Z,height:ne}=xe.D(this._domNode),ie=this._editor.getOption(57);let se=Math.floor(ie/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{if(1!=(1&G.buttons))return;this.hide();const Z=new at.a;Z.startMonitoring(G.target,G.buttons,at.b,()=>{},()=>{Z.dispose()})})),this._register(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(55)&&!this._editor.getOption(55).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(G,Z,ne){if(G.validActions.length<=0)return this.hide();const ie=this._editor.getOptions();if(!ie.get(55).enabled)return this.hide();const se=this._editor.getModel();if(!se)return this.hide();const{lineNumber:ce,column:fe}=se.validatePosition(ne),me=se.getOptions().tabSize,ge=ie.get(41),Ce=se.getLineContent(ce),Se=ct.b.computeIndentLevel(Ce,me),isFolded=G=>G>2&&this._editor.getTopForLineNumber(G)===this._editor.getTopForLineNumber(G-1);let Me=ce;if(!(ge.spaceWidth*Se>22))if(ce>1&&!isFolded(ce-1))Me-=1;else if(isFolded(ce+1)){if(fe*ge.spaceWidth<22)return this.hide()}else Me+=1;this.state=new ot.Showing(G,Z,ne,{position:{lineNumber:Me,column:1},preference:LightBulbWidget._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=ot.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(G){this._state=G,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(..._t.b.lightBulb.classNamesArray),this._domNode.classList.add(..._t.b.lightbulbAutofix.classNamesArray);const G=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(G)return void(this.title=ut.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",G.getLabel()))}this._domNode.classList.remove(..._t.b.lightbulbAutofix.classNamesArray),this._domNode.classList.add(..._t.b.lightBulb.classNamesArray);const G=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=G?ut.a("quickFixWithKb","Show Fixes ({0})",G.getLabel()):ut.a("quickFix","Show Fixes")}set title(G){this._domNode.title=G}};yt._posPref=[0],yt=lightBulbWidget_decorate([lightBulbWidget_param(3,Je.a)],yt),Object(dt.f)((G,Z)=>{var ne;const ie=null===(ne=G.getColor(ht.r))||void 0===ne?void 0:ne.transparent(.7),se=G.getColor(ht.Q);se&&Z.addRule(`\n\t\t.monaco-editor .contentWidgets ${_t.b.lightBulb.cssSelector} {\n\t\t\tcolor: ${se};\n\t\t\tbackground-color: ${ie};\n\t\t}`);const ce=G.getColor(ht.P);ce&&Z.addRule(`\n\t\t.monaco-editor .contentWidgets ${_t.b.lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${ce};\n\t\t\tbackground-color: ${ie};\n\t\t}`)});var vt,codeActionUi_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},codeActionUi_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},codeActionUi_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))},__classPrivateFieldSet=function(G,Z,ne,ie,se){if("m"===ie)throw new TypeError("Private method is not writable");if("a"===ie&&!se)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Z?G!==Z||!se:!Z.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ie?se.call(G,ne):se?se.value=ne:Z.set(G,ne),ne},__classPrivateFieldGet=function(G,Z,ne,ie){if("a"===ne&&!ie)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Z?G!==Z||!ie:!Z.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===ne?ie:"a"===ne?ie.call(G):ie?ie.value:Z.get(G)};let wt=class CodeActionUi extends se.a{constructor(G,Z,ne,ie,ce){super(),this._editor=G,this.delegate=ie,this._activeCodeActions=this._register(new se.d),vt.set(this,!1),this._codeActionWidget=new Lazy(()=>this._register(ce.createInstance(it,this._editor,{onSelectCodeAction:G=>codeActionUi_awaiter(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(G,!0)}))}))),this._lightBulbWidget=new Lazy(()=>{const G=this._register(ce.createInstance(yt,this._editor,Z,ne));return this._register(G.onClick(G=>this.showCodeActionList(G.trigger,G.actions,G,{includeDisabledActions:!1}))),G})}dispose(){__classPrivateFieldSet(this,vt,!0,"f"),super.dispose()}update(G){var Z,ne,ie;return codeActionUi_awaiter(this,void 0,void 0,(function*(){if(1!==G.type)return void(null===(Z=this._lightBulbWidget.rawValue)||void 0===Z||Z.hide());let se;try{se=yield G.actions}catch(G){return void Object(Se.e)(G)}if(!__classPrivateFieldGet(this,vt,"f"))if(this._lightBulbWidget.getValue().update(se,G.trigger,G.position),1===G.trigger.type){if(null===(ne=G.trigger.filter)||void 0===ne?void 0:ne.include){const Z=this.tryGetValidActionToApply(G.trigger,se);if(Z){try{yield this.delegate.applyCodeAction(Z,!1)}finally{se.dispose()}return}if(G.trigger.context){const Z=this.getInvalidActionThatWouldHaveBeenApplied(G.trigger,se);if(Z&&Z.action.disabled)return Me.a.get(this._editor).showMessage(Z.action.disabled,G.trigger.context.position),void se.dispose()}}const Z=!!(null===(ie=G.trigger.filter)||void 0===ie?void 0:ie.include);if(G.trigger.context&&(!se.allActions.length||!Z&&!se.validActions.length))return Me.a.get(this._editor).showMessage(G.trigger.context.notAvailableMessage,G.trigger.context.position),this._activeCodeActions.value=se,void se.dispose();this._activeCodeActions.value=se,this._codeActionWidget.getValue().show(G.trigger,se,G.position,{includeDisabledActions:Z})}else this._codeActionWidget.getValue().isVisible?se.dispose():this._activeCodeActions.value=se}))}getInvalidActionThatWouldHaveBeenApplied(G,Z){if(Z.allActions.length)return"first"===G.autoApply&&0===Z.validActions.length||"ifSingle"===G.autoApply&&1===Z.allActions.length?Z.allActions.find(({action:G})=>G.disabled):void 0}tryGetValidActionToApply(G,Z){if(Z.validActions.length)return"first"===G.autoApply&&Z.validActions.length>0||"ifSingle"===G.autoApply&&1===Z.validActions.length?Z.validActions[0]:void 0}showCodeActionList(G,Z,ne,ie){return codeActionUi_awaiter(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(G,Z,ne,ie)}))}};vt=new WeakMap,wt=codeActionUi_decorate([codeActionUi_param(4,ke.a)],wt);var Ct,St=ne(98),Mt=ne(26),kt=ne(222),xt=ne(193),Lt=ne(331),Tt=ne(574),At=ne(57),Dt=ne(181),Et=ne(12),codeActionModel_classPrivateFieldGet=function(G,Z,ne,ie){if("a"===ne&&!ie)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Z?G!==Z||!ie:!Z.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===ne?ie:"a"===ne?ie.call(G):ie?ie.value:Z.get(G)},codeActionModel_classPrivateFieldSet=function(G,Z,ne,ie,se){if("m"===ie)throw new TypeError("Private method is not writable");if("a"===ie&&!se)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Z?G!==Z||!se:!Z.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ie?se.call(G,ne):se?se.value=ne:Z.set(G,ne),ne};const jt=new Mt.c("supportedCodeAction","");class codeActionModel_CodeActionOracle extends se.a{constructor(G,Z,ne,ie=250){super(),this._editor=G,this._markerService=Z,this._signalChange=ne,this._delay=ie,this._autoTriggerTimer=this._register(new At.g),this._register(this._markerService.onMarkerChanged(G=>this._onMarkerChanges(G))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(G){const Z=this._getRangeOfSelectionUnlessWhitespaceEnclosed(G);return this._createEventAndSignalChange(G,Z)}_onMarkerChanges(G){const Z=this._editor.getModel();Z&&G.some(G=>Object(Dt.f)(G,Z.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_getRangeOfMarker(G){const Z=this._editor.getModel();if(Z)for(const ne of this._markerService.read({resource:Z.uri})){const ie=Z.validateRange(ne);if(Et.a.intersectRanges(ie,G))return Et.a.lift(ie)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(G){if(!this._editor.hasModel())return;const Z=this._editor.getModel(),ne=this._editor.getSelection();if(ne.isEmpty()&&2===G.type){const{lineNumber:G,column:ie}=ne.getPosition(),se=Z.getLineContent(G);if(0===se.length)return;if(1===ie){if(/\s/.test(se[0]))return}else if(ie===Z.getLineMaxColumn(G)){if(/\s/.test(se[se.length-1]))return}else if(/\s/.test(se[ie-2])&&/\s/.test(se[ie-1]))return}return ne}_createEventAndSignalChange(G,Z){const ne=this._editor.getModel();if(!Z||!ne)return void this._signalChange(void 0);const ie=this._getRangeOfMarker(Z),se=ie?ie.getStartPosition():Z.getStartPosition(),ce={trigger:G,selection:Z,position:se};return this._signalChange(ce),ce}}var It;!function(G){G.Empty={type:0};G.Triggered=class Triggered{constructor(G,Z,ne,ie){this.trigger=G,this.rangeOrSelection=Z,this.position=ne,this._cancellablePromise=ie,this.type=1,this.actions=ie.catch(G=>{if(Object(Se.d)(G))return Nt;throw G})}cancel(){this._cancellablePromise.cancel()}}}(It||(It={}));const Nt={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class codeActionModel_CodeActionModel extends se.a{constructor(G,Z,ne,ie){super(),this._editor=G,this._markerService=Z,this._progressService=ie,this._codeActionOracle=this._register(new se.d),this._state=It.Empty,this._onDidChangeState=this._register(new st.b),this.onDidChangeState=this._onDidChangeState.event,Ct.set(this,!1),this._supportedCodeActions=jt.bindTo(ne),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(Re.a.onDidChange(()=>this._update())),this._update()}dispose(){codeActionModel_classPrivateFieldGet(this,Ct,"f")||(codeActionModel_classPrivateFieldSet(this,Ct,!0,"f"),super.dispose(),this.setState(It.Empty,!0))}_update(){if(codeActionModel_classPrivateFieldGet(this,Ct,"f"))return;this._codeActionOracle.value=void 0,this.setState(It.Empty);const G=this._editor.getModel();if(G&&Re.a.has(G)&&!this._editor.getOption(79)){const Z=[];for(const ne of Re.a.all(G))Array.isArray(ne.providedCodeActionKinds)&&Z.push(...ne.providedCodeActionKinds);this._supportedCodeActions.set(Z.join(" ")),this._codeActionOracle.value=new codeActionModel_CodeActionOracle(this._editor,this._markerService,Z=>{var ne;if(!Z)return void this.setState(It.Empty);const ie=Object(At.h)(ne=>Object(Ce.d)(G,Z.selection,Z.trigger,Lt.b.None,ne));1===Z.trigger.type&&(null===(ne=this._progressService)||void 0===ne||ne.showWhile(ie,250)),this.setState(new It.Triggered(Z.trigger,Z.selection,Z.position,ie))},void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}trigger(G){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(G)}setState(G,Z){G!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=G,Z||codeActionModel_classPrivateFieldGet(this,Ct,"f")||this._onDidChangeState.fire(G))}}Ct=new WeakMap;var codeActionCommands_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},codeActionCommands_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},codeActionCommands_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function contextKeyForSupportedActions(G){return Mt.a.regex(jt.keys()[0],new RegExp("(\\s|^)"+Object(ce.u)(G.value)+"\\b"))}const Rt={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:ut.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:ut.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[ut.a("args.schema.apply.first","Always apply the first returned code action."),ut.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),ut.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:ut.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let zt=class QuickFixController extends se.a{constructor(G,Z,ne,ie,se){super(),this._instantiationService=se,this._editor=G,this._model=this._register(new codeActionModel_CodeActionModel(this._editor,Z,ne,ie)),this._register(this._model.onDidChangeState(G=>this.update(G))),this._ui=new Lazy(()=>this._register(new wt(G,codeActionCommands_QuickFixAction.Id,codeActionCommands_AutoFixAction.Id,{applyCodeAction:(G,Z)=>codeActionCommands_awaiter(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(G)}finally{Z&&this._trigger({type:2,filter:{}})}}))},this._instantiationService)))}static get(G){return G.getContribution(QuickFixController.ID)}update(G){this._ui.getValue().update(G)}showCodeActions(G,Z,ne){return this._ui.getValue().showCodeActionList(G,Z,ne,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(G,Z,ne){if(!this._editor.hasModel())return;Me.a.get(this._editor).closeMessage();const ie=this._editor.getPosition();this._trigger({type:1,filter:Z,autoApply:ne,context:{notAvailableMessage:G,position:ie}})}_trigger(G){return this._model.trigger(G)}_applyCodeAction(G){return this._instantiationService.invokeFunction(applyCodeAction,G,this._editor)}};function applyCodeAction(G,Z,ne){return codeActionCommands_awaiter(this,void 0,void 0,(function*(){const se=G.get(me.a),ce=G.get(St.b),fe=G.get(Tt.a),ge=G.get(xt.a);if(fe.publicLog2("codeAction.applyCodeAction",{codeActionTitle:Z.action.title,codeActionKind:Z.action.kind,codeActionIsPreferred:!!Z.action.isPreferred}),yield Z.resolve(ie.a.None),Z.action.edit&&(yield se.apply(me.b.convert(Z.action.edit),{editor:ne,label:Z.action.title})),Z.action.command)try{yield ce.executeCommand(Z.action.command.id,...Z.action.command.arguments||[])}catch(G){const Z=function asMessage(G){return"string"==typeof G?G:G instanceof Error&&"string"==typeof G.message?G.message:void 0}(G);ge.error("string"==typeof Z?Z:ut.a("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function triggerCodeActionsForEditorSelection(G,Z,ne,ie){if(G.hasModel()){const se=zt.get(G);se&&se.manualTriggerAtCurrentPosition(Z,ne,ie)}}zt.ID="editor.contrib.quickFixController",zt=codeActionCommands_decorate([codeActionCommands_param(1,kt.b),codeActionCommands_param(2,Mt.b),codeActionCommands_param(3,Lt.a),codeActionCommands_param(4,ke.a)],zt);class codeActionCommands_QuickFixAction extends fe.b{constructor(){super({id:codeActionCommands_QuickFixAction.Id,label:ut.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Mt.a.and(ge.a.writable,ge.a.hasCodeActionsProvider),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:2132,weight:100}})}run(G,Z){return triggerCodeActionsForEditorSelection(Z,ut.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}codeActionCommands_QuickFixAction.Id="editor.action.quickFix";class codeActionCommands_CodeActionCommand extends fe.c{constructor(){super({id:Ce.b,precondition:Mt.a.and(ge.a.writable,ge.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Rt}]}})}runEditorCommand(G,Z,ne){const ie=ze.a.fromUser(ne,{kind:ze.b.Empty,apply:"ifSingle"});return triggerCodeActionsForEditorSelection(Z,"string"==typeof(null==ne?void 0:ne.kind)?ie.preferred?ut.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",ne.kind):ut.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",ne.kind):ie.preferred?ut.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):ut.a("editor.action.codeAction.noneMessage","No code actions available"),{include:ie.kind,includeSourceActions:!0,onlyIncludePreferredActions:ie.preferred},ie.apply)}}class codeActionCommands_RefactorAction extends fe.b{constructor(){super({id:Ce.f,label:ut.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:Mt.a.and(ge.a.writable,ge.a.hasCodeActionsProvider),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Mt.a.and(ge.a.writable,contextKeyForSupportedActions(ze.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Rt}]}})}run(G,Z,ne){const ie=ze.a.fromUser(ne,{kind:ze.b.Refactor,apply:"never"});return triggerCodeActionsForEditorSelection(Z,"string"==typeof(null==ne?void 0:ne.kind)?ie.preferred?ut.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",ne.kind):ut.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",ne.kind):ie.preferred?ut.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):ut.a("editor.action.refactor.noneMessage","No refactorings available"),{include:ze.b.Refactor.contains(ie.kind)?ie.kind:ze.b.None,onlyIncludePreferredActions:ie.preferred},ie.apply)}}class codeActionCommands_SourceAction extends fe.b{constructor(){super({id:Ce.g,label:ut.a("source.label","Source Action..."),alias:"Source Action...",precondition:Mt.a.and(ge.a.writable,ge.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Mt.a.and(ge.a.writable,contextKeyForSupportedActions(ze.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Rt}]}})}run(G,Z,ne){const ie=ze.a.fromUser(ne,{kind:ze.b.Source,apply:"never"});return triggerCodeActionsForEditorSelection(Z,"string"==typeof(null==ne?void 0:ne.kind)?ie.preferred?ut.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",ne.kind):ut.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",ne.kind):ie.preferred?ut.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):ut.a("editor.action.source.noneMessage","No source actions available"),{include:ze.b.Source.contains(ie.kind)?ie.kind:ze.b.None,includeSourceActions:!0,onlyIncludePreferredActions:ie.preferred},ie.apply)}}class codeActionCommands_OrganizeImportsAction extends fe.b{constructor(){super({id:Ce.e,label:ut.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Mt.a.and(ge.a.writable,contextKeyForSupportedActions(ze.b.SourceOrganizeImports)),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:1581,weight:100}})}run(G,Z){return triggerCodeActionsForEditorSelection(Z,ut.a("editor.action.organize.noneMessage","No organize imports action available"),{include:ze.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class codeActionCommands_FixAllAction extends fe.b{constructor(){super({id:Ce.c,label:ut.a("fixAll.label","Fix All"),alias:"Fix All",precondition:Mt.a.and(ge.a.writable,contextKeyForSupportedActions(ze.b.SourceFixAll))})}run(G,Z){return triggerCodeActionsForEditorSelection(Z,ut.a("fixAll.noneMessage","No fix all action available"),{include:ze.b.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class codeActionCommands_AutoFixAction extends fe.b{constructor(){super({id:codeActionCommands_AutoFixAction.Id,label:ut.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Mt.a.and(ge.a.writable,contextKeyForSupportedActions(ze.b.QuickFix)),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(G,Z){return triggerCodeActionsForEditorSelection(Z,ut.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:ze.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}codeActionCommands_AutoFixAction.Id="editor.action.autoFix"},67:function(G,Z,ne){"use strict";ne.d(Z,"d",(function(){return ce})),ne.d(Z,"e",(function(){return registerCodicon})),ne.d(Z,"c",(function(){return getCodiconAriaLabel})),ne.d(Z,"b",(function(){return Codicon})),ne.d(Z,"a",(function(){return fe}));var ie=ne(19);const se=new class Registry{constructor(){this._icons=new Map,this._onDidRegister=new ie.b}add(G){const Z=this._icons.get(G.id);Z?G.description?Z.description=G.description:console.error("Duplicate registration of codicon "+G.id):(this._icons.set(G.id,G),this._onDidRegister.fire(G))}get(G){return this._icons.get(G)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},ce=se;function registerCodicon(G,Z){return new Codicon(G,Z)}function getCodiconAriaLabel(G){return G?G.replace(/\$\((.*?)\)/g,(G,Z)=>` ${Z} `).trim():""}class Codicon{constructor(G,Z,ne){this.id=G,this.definition=Z,this.description=ne,se.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var fe;!function(G){G.iconNameSegment="[A-Za-z0-9]+",G.iconNameExpression="[A-Za-z0-9\\-]+",G.iconModifierExpression="~[A-Za-z]+";const Z=new RegExp(`^(${G.iconNameExpression})(${G.iconModifierExpression})?$`);function asClassNameArray(G){if(G instanceof Codicon)return["codicon","codicon-"+G.id];const ne=Z.exec(G.id);if(!ne)return asClassNameArray(Codicon.error);let[,ie,se]=ne;const ce=["codicon","codicon-"+ie];return se&&ce.push("codicon-modifier-"+se.substr(1)),ce}G.asClassNameArray=asClassNameArray,G.asClassName=function asClassName(G){return asClassNameArray(G).join(" ")},G.asCSSSelector=function asCSSSelector(G){return"."+asClassNameArray(G).join(".")}}(fe||(fe={})),function(G){G.add=new G("add",{fontCharacter:"\\ea60"}),G.plus=new G("plus",{fontCharacter:"\\ea60"}),G.gistNew=new G("gist-new",{fontCharacter:"\\ea60"}),G.repoCreate=new G("repo-create",{fontCharacter:"\\ea60"}),G.lightbulb=new G("lightbulb",{fontCharacter:"\\ea61"}),G.lightBulb=new G("light-bulb",{fontCharacter:"\\ea61"}),G.repo=new G("repo",{fontCharacter:"\\ea62"}),G.repoDelete=new G("repo-delete",{fontCharacter:"\\ea62"}),G.gistFork=new G("gist-fork",{fontCharacter:"\\ea63"}),G.repoForked=new G("repo-forked",{fontCharacter:"\\ea63"}),G.gitPullRequest=new G("git-pull-request",{fontCharacter:"\\ea64"}),G.gitPullRequestAbandoned=new G("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),G.recordKeys=new G("record-keys",{fontCharacter:"\\ea65"}),G.keyboard=new G("keyboard",{fontCharacter:"\\ea65"}),G.tag=new G("tag",{fontCharacter:"\\ea66"}),G.tagAdd=new G("tag-add",{fontCharacter:"\\ea66"}),G.tagRemove=new G("tag-remove",{fontCharacter:"\\ea66"}),G.person=new G("person",{fontCharacter:"\\ea67"}),G.personFollow=new G("person-follow",{fontCharacter:"\\ea67"}),G.personOutline=new G("person-outline",{fontCharacter:"\\ea67"}),G.personFilled=new G("person-filled",{fontCharacter:"\\ea67"}),G.gitBranch=new G("git-branch",{fontCharacter:"\\ea68"}),G.gitBranchCreate=new G("git-branch-create",{fontCharacter:"\\ea68"}),G.gitBranchDelete=new G("git-branch-delete",{fontCharacter:"\\ea68"}),G.sourceControl=new G("source-control",{fontCharacter:"\\ea68"}),G.mirror=new G("mirror",{fontCharacter:"\\ea69"}),G.mirrorPublic=new G("mirror-public",{fontCharacter:"\\ea69"}),G.star=new G("star",{fontCharacter:"\\ea6a"}),G.starAdd=new G("star-add",{fontCharacter:"\\ea6a"}),G.starDelete=new G("star-delete",{fontCharacter:"\\ea6a"}),G.starEmpty=new G("star-empty",{fontCharacter:"\\ea6a"}),G.comment=new G("comment",{fontCharacter:"\\ea6b"}),G.commentAdd=new G("comment-add",{fontCharacter:"\\ea6b"}),G.alert=new G("alert",{fontCharacter:"\\ea6c"}),G.warning=new G("warning",{fontCharacter:"\\ea6c"}),G.search=new G("search",{fontCharacter:"\\ea6d"}),G.searchSave=new G("search-save",{fontCharacter:"\\ea6d"}),G.logOut=new G("log-out",{fontCharacter:"\\ea6e"}),G.signOut=new G("sign-out",{fontCharacter:"\\ea6e"}),G.logIn=new G("log-in",{fontCharacter:"\\ea6f"}),G.signIn=new G("sign-in",{fontCharacter:"\\ea6f"}),G.eye=new G("eye",{fontCharacter:"\\ea70"}),G.eyeUnwatch=new G("eye-unwatch",{fontCharacter:"\\ea70"}),G.eyeWatch=new G("eye-watch",{fontCharacter:"\\ea70"}),G.circleFilled=new G("circle-filled",{fontCharacter:"\\ea71"}),G.primitiveDot=new G("primitive-dot",{fontCharacter:"\\ea71"}),G.closeDirty=new G("close-dirty",{fontCharacter:"\\ea71"}),G.debugBreakpoint=new G("debug-breakpoint",{fontCharacter:"\\ea71"}),G.debugBreakpointDisabled=new G("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),G.debugHint=new G("debug-hint",{fontCharacter:"\\ea71"}),G.primitiveSquare=new G("primitive-square",{fontCharacter:"\\ea72"}),G.edit=new G("edit",{fontCharacter:"\\ea73"}),G.pencil=new G("pencil",{fontCharacter:"\\ea73"}),G.info=new G("info",{fontCharacter:"\\ea74"}),G.issueOpened=new G("issue-opened",{fontCharacter:"\\ea74"}),G.gistPrivate=new G("gist-private",{fontCharacter:"\\ea75"}),G.gitForkPrivate=new G("git-fork-private",{fontCharacter:"\\ea75"}),G.lock=new G("lock",{fontCharacter:"\\ea75"}),G.mirrorPrivate=new G("mirror-private",{fontCharacter:"\\ea75"}),G.close=new G("close",{fontCharacter:"\\ea76"}),G.removeClose=new G("remove-close",{fontCharacter:"\\ea76"}),G.x=new G("x",{fontCharacter:"\\ea76"}),G.repoSync=new G("repo-sync",{fontCharacter:"\\ea77"}),G.sync=new G("sync",{fontCharacter:"\\ea77"}),G.clone=new G("clone",{fontCharacter:"\\ea78"}),G.desktopDownload=new G("desktop-download",{fontCharacter:"\\ea78"}),G.beaker=new G("beaker",{fontCharacter:"\\ea79"}),G.microscope=new G("microscope",{fontCharacter:"\\ea79"}),G.vm=new G("vm",{fontCharacter:"\\ea7a"}),G.deviceDesktop=new G("device-desktop",{fontCharacter:"\\ea7a"}),G.file=new G("file",{fontCharacter:"\\ea7b"}),G.fileText=new G("file-text",{fontCharacter:"\\ea7b"}),G.more=new G("more",{fontCharacter:"\\ea7c"}),G.ellipsis=new G("ellipsis",{fontCharacter:"\\ea7c"}),G.kebabHorizontal=new G("kebab-horizontal",{fontCharacter:"\\ea7c"}),G.mailReply=new G("mail-reply",{fontCharacter:"\\ea7d"}),G.reply=new G("reply",{fontCharacter:"\\ea7d"}),G.organization=new G("organization",{fontCharacter:"\\ea7e"}),G.organizationFilled=new G("organization-filled",{fontCharacter:"\\ea7e"}),G.organizationOutline=new G("organization-outline",{fontCharacter:"\\ea7e"}),G.newFile=new G("new-file",{fontCharacter:"\\ea7f"}),G.fileAdd=new G("file-add",{fontCharacter:"\\ea7f"}),G.newFolder=new G("new-folder",{fontCharacter:"\\ea80"}),G.fileDirectoryCreate=new G("file-directory-create",{fontCharacter:"\\ea80"}),G.trash=new G("trash",{fontCharacter:"\\ea81"}),G.trashcan=new G("trashcan",{fontCharacter:"\\ea81"}),G.history=new G("history",{fontCharacter:"\\ea82"}),G.clock=new G("clock",{fontCharacter:"\\ea82"}),G.folder=new G("folder",{fontCharacter:"\\ea83"}),G.fileDirectory=new G("file-directory",{fontCharacter:"\\ea83"}),G.symbolFolder=new G("symbol-folder",{fontCharacter:"\\ea83"}),G.logoGithub=new G("logo-github",{fontCharacter:"\\ea84"}),G.markGithub=new G("mark-github",{fontCharacter:"\\ea84"}),G.github=new G("github",{fontCharacter:"\\ea84"}),G.terminal=new G("terminal",{fontCharacter:"\\ea85"}),G.console=new G("console",{fontCharacter:"\\ea85"}),G.repl=new G("repl",{fontCharacter:"\\ea85"}),G.zap=new G("zap",{fontCharacter:"\\ea86"}),G.symbolEvent=new G("symbol-event",{fontCharacter:"\\ea86"}),G.error=new G("error",{fontCharacter:"\\ea87"}),G.stop=new G("stop",{fontCharacter:"\\ea87"}),G.variable=new G("variable",{fontCharacter:"\\ea88"}),G.symbolVariable=new G("symbol-variable",{fontCharacter:"\\ea88"}),G.array=new G("array",{fontCharacter:"\\ea8a"}),G.symbolArray=new G("symbol-array",{fontCharacter:"\\ea8a"}),G.symbolModule=new G("symbol-module",{fontCharacter:"\\ea8b"}),G.symbolPackage=new G("symbol-package",{fontCharacter:"\\ea8b"}),G.symbolNamespace=new G("symbol-namespace",{fontCharacter:"\\ea8b"}),G.symbolObject=new G("symbol-object",{fontCharacter:"\\ea8b"}),G.symbolMethod=new G("symbol-method",{fontCharacter:"\\ea8c"}),G.symbolFunction=new G("symbol-function",{fontCharacter:"\\ea8c"}),G.symbolConstructor=new G("symbol-constructor",{fontCharacter:"\\ea8c"}),G.symbolBoolean=new G("symbol-boolean",{fontCharacter:"\\ea8f"}),G.symbolNull=new G("symbol-null",{fontCharacter:"\\ea8f"}),G.symbolNumeric=new G("symbol-numeric",{fontCharacter:"\\ea90"}),G.symbolNumber=new G("symbol-number",{fontCharacter:"\\ea90"}),G.symbolStructure=new G("symbol-structure",{fontCharacter:"\\ea91"}),G.symbolStruct=new G("symbol-struct",{fontCharacter:"\\ea91"}),G.symbolParameter=new G("symbol-parameter",{fontCharacter:"\\ea92"}),G.symbolTypeParameter=new G("symbol-type-parameter",{fontCharacter:"\\ea92"}),G.symbolKey=new G("symbol-key",{fontCharacter:"\\ea93"}),G.symbolText=new G("symbol-text",{fontCharacter:"\\ea93"}),G.symbolReference=new G("symbol-reference",{fontCharacter:"\\ea94"}),G.goToFile=new G("go-to-file",{fontCharacter:"\\ea94"}),G.symbolEnum=new G("symbol-enum",{fontCharacter:"\\ea95"}),G.symbolValue=new G("symbol-value",{fontCharacter:"\\ea95"}),G.symbolRuler=new G("symbol-ruler",{fontCharacter:"\\ea96"}),G.symbolUnit=new G("symbol-unit",{fontCharacter:"\\ea96"}),G.activateBreakpoints=new G("activate-breakpoints",{fontCharacter:"\\ea97"}),G.archive=new G("archive",{fontCharacter:"\\ea98"}),G.arrowBoth=new G("arrow-both",{fontCharacter:"\\ea99"}),G.arrowDown=new G("arrow-down",{fontCharacter:"\\ea9a"}),G.arrowLeft=new G("arrow-left",{fontCharacter:"\\ea9b"}),G.arrowRight=new G("arrow-right",{fontCharacter:"\\ea9c"}),G.arrowSmallDown=new G("arrow-small-down",{fontCharacter:"\\ea9d"}),G.arrowSmallLeft=new G("arrow-small-left",{fontCharacter:"\\ea9e"}),G.arrowSmallRight=new G("arrow-small-right",{fontCharacter:"\\ea9f"}),G.arrowSmallUp=new G("arrow-small-up",{fontCharacter:"\\eaa0"}),G.arrowUp=new G("arrow-up",{fontCharacter:"\\eaa1"}),G.bell=new G("bell",{fontCharacter:"\\eaa2"}),G.bold=new G("bold",{fontCharacter:"\\eaa3"}),G.book=new G("book",{fontCharacter:"\\eaa4"}),G.bookmark=new G("bookmark",{fontCharacter:"\\eaa5"}),G.debugBreakpointConditionalUnverified=new G("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),G.debugBreakpointConditional=new G("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),G.debugBreakpointConditionalDisabled=new G("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),G.debugBreakpointDataUnverified=new G("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),G.debugBreakpointData=new G("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),G.debugBreakpointDataDisabled=new G("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),G.debugBreakpointLogUnverified=new G("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),G.debugBreakpointLog=new G("debug-breakpoint-log",{fontCharacter:"\\eaab"}),G.debugBreakpointLogDisabled=new G("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),G.briefcase=new G("briefcase",{fontCharacter:"\\eaac"}),G.broadcast=new G("broadcast",{fontCharacter:"\\eaad"}),G.browser=new G("browser",{fontCharacter:"\\eaae"}),G.bug=new G("bug",{fontCharacter:"\\eaaf"}),G.calendar=new G("calendar",{fontCharacter:"\\eab0"}),G.caseSensitive=new G("case-sensitive",{fontCharacter:"\\eab1"}),G.check=new G("check",{fontCharacter:"\\eab2"}),G.checklist=new G("checklist",{fontCharacter:"\\eab3"}),G.chevronDown=new G("chevron-down",{fontCharacter:"\\eab4"}),G.chevronLeft=new G("chevron-left",{fontCharacter:"\\eab5"}),G.chevronRight=new G("chevron-right",{fontCharacter:"\\eab6"}),G.chevronUp=new G("chevron-up",{fontCharacter:"\\eab7"}),G.chromeClose=new G("chrome-close",{fontCharacter:"\\eab8"}),G.chromeMaximize=new G("chrome-maximize",{fontCharacter:"\\eab9"}),G.chromeMinimize=new G("chrome-minimize",{fontCharacter:"\\eaba"}),G.chromeRestore=new G("chrome-restore",{fontCharacter:"\\eabb"}),G.circleOutline=new G("circle-outline",{fontCharacter:"\\eabc"}),G.debugBreakpointUnverified=new G("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),G.circleSlash=new G("circle-slash",{fontCharacter:"\\eabd"}),G.circuitBoard=new G("circuit-board",{fontCharacter:"\\eabe"}),G.clearAll=new G("clear-all",{fontCharacter:"\\eabf"}),G.clippy=new G("clippy",{fontCharacter:"\\eac0"}),G.closeAll=new G("close-all",{fontCharacter:"\\eac1"}),G.cloudDownload=new G("cloud-download",{fontCharacter:"\\eac2"}),G.cloudUpload=new G("cloud-upload",{fontCharacter:"\\eac3"}),G.code=new G("code",{fontCharacter:"\\eac4"}),G.collapseAll=new G("collapse-all",{fontCharacter:"\\eac5"}),G.colorMode=new G("color-mode",{fontCharacter:"\\eac6"}),G.commentDiscussion=new G("comment-discussion",{fontCharacter:"\\eac7"}),G.compareChanges=new G("compare-changes",{fontCharacter:"\\eafd"}),G.creditCard=new G("credit-card",{fontCharacter:"\\eac9"}),G.dash=new G("dash",{fontCharacter:"\\eacc"}),G.dashboard=new G("dashboard",{fontCharacter:"\\eacd"}),G.database=new G("database",{fontCharacter:"\\eace"}),G.debugContinue=new G("debug-continue",{fontCharacter:"\\eacf"}),G.debugDisconnect=new G("debug-disconnect",{fontCharacter:"\\ead0"}),G.debugPause=new G("debug-pause",{fontCharacter:"\\ead1"}),G.debugRestart=new G("debug-restart",{fontCharacter:"\\ead2"}),G.debugStart=new G("debug-start",{fontCharacter:"\\ead3"}),G.debugStepInto=new G("debug-step-into",{fontCharacter:"\\ead4"}),G.debugStepOut=new G("debug-step-out",{fontCharacter:"\\ead5"}),G.debugStepOver=new G("debug-step-over",{fontCharacter:"\\ead6"}),G.debugStop=new G("debug-stop",{fontCharacter:"\\ead7"}),G.debug=new G("debug",{fontCharacter:"\\ead8"}),G.deviceCameraVideo=new G("device-camera-video",{fontCharacter:"\\ead9"}),G.deviceCamera=new G("device-camera",{fontCharacter:"\\eada"}),G.deviceMobile=new G("device-mobile",{fontCharacter:"\\eadb"}),G.diffAdded=new G("diff-added",{fontCharacter:"\\eadc"}),G.diffIgnored=new G("diff-ignored",{fontCharacter:"\\eadd"}),G.diffModified=new G("diff-modified",{fontCharacter:"\\eade"}),G.diffRemoved=new G("diff-removed",{fontCharacter:"\\eadf"}),G.diffRenamed=new G("diff-renamed",{fontCharacter:"\\eae0"}),G.diff=new G("diff",{fontCharacter:"\\eae1"}),G.discard=new G("discard",{fontCharacter:"\\eae2"}),G.editorLayout=new G("editor-layout",{fontCharacter:"\\eae3"}),G.emptyWindow=new G("empty-window",{fontCharacter:"\\eae4"}),G.exclude=new G("exclude",{fontCharacter:"\\eae5"}),G.extensions=new G("extensions",{fontCharacter:"\\eae6"}),G.eyeClosed=new G("eye-closed",{fontCharacter:"\\eae7"}),G.fileBinary=new G("file-binary",{fontCharacter:"\\eae8"}),G.fileCode=new G("file-code",{fontCharacter:"\\eae9"}),G.fileMedia=new G("file-media",{fontCharacter:"\\eaea"}),G.filePdf=new G("file-pdf",{fontCharacter:"\\eaeb"}),G.fileSubmodule=new G("file-submodule",{fontCharacter:"\\eaec"}),G.fileSymlinkDirectory=new G("file-symlink-directory",{fontCharacter:"\\eaed"}),G.fileSymlinkFile=new G("file-symlink-file",{fontCharacter:"\\eaee"}),G.fileZip=new G("file-zip",{fontCharacter:"\\eaef"}),G.files=new G("files",{fontCharacter:"\\eaf0"}),G.filter=new G("filter",{fontCharacter:"\\eaf1"}),G.flame=new G("flame",{fontCharacter:"\\eaf2"}),G.foldDown=new G("fold-down",{fontCharacter:"\\eaf3"}),G.foldUp=new G("fold-up",{fontCharacter:"\\eaf4"}),G.fold=new G("fold",{fontCharacter:"\\eaf5"}),G.folderActive=new G("folder-active",{fontCharacter:"\\eaf6"}),G.folderOpened=new G("folder-opened",{fontCharacter:"\\eaf7"}),G.gear=new G("gear",{fontCharacter:"\\eaf8"}),G.gift=new G("gift",{fontCharacter:"\\eaf9"}),G.gistSecret=new G("gist-secret",{fontCharacter:"\\eafa"}),G.gist=new G("gist",{fontCharacter:"\\eafb"}),G.gitCommit=new G("git-commit",{fontCharacter:"\\eafc"}),G.gitCompare=new G("git-compare",{fontCharacter:"\\eafd"}),G.gitMerge=new G("git-merge",{fontCharacter:"\\eafe"}),G.githubAction=new G("github-action",{fontCharacter:"\\eaff"}),G.githubAlt=new G("github-alt",{fontCharacter:"\\eb00"}),G.globe=new G("globe",{fontCharacter:"\\eb01"}),G.grabber=new G("grabber",{fontCharacter:"\\eb02"}),G.graph=new G("graph",{fontCharacter:"\\eb03"}),G.gripper=new G("gripper",{fontCharacter:"\\eb04"}),G.heart=new G("heart",{fontCharacter:"\\eb05"}),G.home=new G("home",{fontCharacter:"\\eb06"}),G.horizontalRule=new G("horizontal-rule",{fontCharacter:"\\eb07"}),G.hubot=new G("hubot",{fontCharacter:"\\eb08"}),G.inbox=new G("inbox",{fontCharacter:"\\eb09"}),G.issueClosed=new G("issue-closed",{fontCharacter:"\\eba4"}),G.issueReopened=new G("issue-reopened",{fontCharacter:"\\eb0b"}),G.issues=new G("issues",{fontCharacter:"\\eb0c"}),G.italic=new G("italic",{fontCharacter:"\\eb0d"}),G.jersey=new G("jersey",{fontCharacter:"\\eb0e"}),G.json=new G("json",{fontCharacter:"\\eb0f"}),G.kebabVertical=new G("kebab-vertical",{fontCharacter:"\\eb10"}),G.key=new G("key",{fontCharacter:"\\eb11"}),G.law=new G("law",{fontCharacter:"\\eb12"}),G.lightbulbAutofix=new G("lightbulb-autofix",{fontCharacter:"\\eb13"}),G.linkExternal=new G("link-external",{fontCharacter:"\\eb14"}),G.link=new G("link",{fontCharacter:"\\eb15"}),G.listOrdered=new G("list-ordered",{fontCharacter:"\\eb16"}),G.listUnordered=new G("list-unordered",{fontCharacter:"\\eb17"}),G.liveShare=new G("live-share",{fontCharacter:"\\eb18"}),G.loading=new G("loading",{fontCharacter:"\\eb19"}),G.location=new G("location",{fontCharacter:"\\eb1a"}),G.mailRead=new G("mail-read",{fontCharacter:"\\eb1b"}),G.mail=new G("mail",{fontCharacter:"\\eb1c"}),G.markdown=new G("markdown",{fontCharacter:"\\eb1d"}),G.megaphone=new G("megaphone",{fontCharacter:"\\eb1e"}),G.mention=new G("mention",{fontCharacter:"\\eb1f"}),G.milestone=new G("milestone",{fontCharacter:"\\eb20"}),G.mortarBoard=new G("mortar-board",{fontCharacter:"\\eb21"}),G.move=new G("move",{fontCharacter:"\\eb22"}),G.multipleWindows=new G("multiple-windows",{fontCharacter:"\\eb23"}),G.mute=new G("mute",{fontCharacter:"\\eb24"}),G.noNewline=new G("no-newline",{fontCharacter:"\\eb25"}),G.note=new G("note",{fontCharacter:"\\eb26"}),G.octoface=new G("octoface",{fontCharacter:"\\eb27"}),G.openPreview=new G("open-preview",{fontCharacter:"\\eb28"}),G.package_=new G("package",{fontCharacter:"\\eb29"}),G.paintcan=new G("paintcan",{fontCharacter:"\\eb2a"}),G.pin=new G("pin",{fontCharacter:"\\eb2b"}),G.play=new G("play",{fontCharacter:"\\eb2c"}),G.run=new G("run",{fontCharacter:"\\eb2c"}),G.plug=new G("plug",{fontCharacter:"\\eb2d"}),G.preserveCase=new G("preserve-case",{fontCharacter:"\\eb2e"}),G.preview=new G("preview",{fontCharacter:"\\eb2f"}),G.project=new G("project",{fontCharacter:"\\eb30"}),G.pulse=new G("pulse",{fontCharacter:"\\eb31"}),G.question=new G("question",{fontCharacter:"\\eb32"}),G.quote=new G("quote",{fontCharacter:"\\eb33"}),G.radioTower=new G("radio-tower",{fontCharacter:"\\eb34"}),G.reactions=new G("reactions",{fontCharacter:"\\eb35"}),G.references=new G("references",{fontCharacter:"\\eb36"}),G.refresh=new G("refresh",{fontCharacter:"\\eb37"}),G.regex=new G("regex",{fontCharacter:"\\eb38"}),G.remoteExplorer=new G("remote-explorer",{fontCharacter:"\\eb39"}),G.remote=new G("remote",{fontCharacter:"\\eb3a"}),G.remove=new G("remove",{fontCharacter:"\\eb3b"}),G.replaceAll=new G("replace-all",{fontCharacter:"\\eb3c"}),G.replace=new G("replace",{fontCharacter:"\\eb3d"}),G.repoClone=new G("repo-clone",{fontCharacter:"\\eb3e"}),G.repoForcePush=new G("repo-force-push",{fontCharacter:"\\eb3f"}),G.repoPull=new G("repo-pull",{fontCharacter:"\\eb40"}),G.repoPush=new G("repo-push",{fontCharacter:"\\eb41"}),G.report=new G("report",{fontCharacter:"\\eb42"}),G.requestChanges=new G("request-changes",{fontCharacter:"\\eb43"}),G.rocket=new G("rocket",{fontCharacter:"\\eb44"}),G.rootFolderOpened=new G("root-folder-opened",{fontCharacter:"\\eb45"}),G.rootFolder=new G("root-folder",{fontCharacter:"\\eb46"}),G.rss=new G("rss",{fontCharacter:"\\eb47"}),G.ruby=new G("ruby",{fontCharacter:"\\eb48"}),G.saveAll=new G("save-all",{fontCharacter:"\\eb49"}),G.saveAs=new G("save-as",{fontCharacter:"\\eb4a"}),G.save=new G("save",{fontCharacter:"\\eb4b"}),G.screenFull=new G("screen-full",{fontCharacter:"\\eb4c"}),G.screenNormal=new G("screen-normal",{fontCharacter:"\\eb4d"}),G.searchStop=new G("search-stop",{fontCharacter:"\\eb4e"}),G.server=new G("server",{fontCharacter:"\\eb50"}),G.settingsGear=new G("settings-gear",{fontCharacter:"\\eb51"}),G.settings=new G("settings",{fontCharacter:"\\eb52"}),G.shield=new G("shield",{fontCharacter:"\\eb53"}),G.smiley=new G("smiley",{fontCharacter:"\\eb54"}),G.sortPrecedence=new G("sort-precedence",{fontCharacter:"\\eb55"}),G.splitHorizontal=new G("split-horizontal",{fontCharacter:"\\eb56"}),G.splitVertical=new G("split-vertical",{fontCharacter:"\\eb57"}),G.squirrel=new G("squirrel",{fontCharacter:"\\eb58"}),G.starFull=new G("star-full",{fontCharacter:"\\eb59"}),G.starHalf=new G("star-half",{fontCharacter:"\\eb5a"}),G.symbolClass=new G("symbol-class",{fontCharacter:"\\eb5b"}),G.symbolColor=new G("symbol-color",{fontCharacter:"\\eb5c"}),G.symbolConstant=new G("symbol-constant",{fontCharacter:"\\eb5d"}),G.symbolEnumMember=new G("symbol-enum-member",{fontCharacter:"\\eb5e"}),G.symbolField=new G("symbol-field",{fontCharacter:"\\eb5f"}),G.symbolFile=new G("symbol-file",{fontCharacter:"\\eb60"}),G.symbolInterface=new G("symbol-interface",{fontCharacter:"\\eb61"}),G.symbolKeyword=new G("symbol-keyword",{fontCharacter:"\\eb62"}),G.symbolMisc=new G("symbol-misc",{fontCharacter:"\\eb63"}),G.symbolOperator=new G("symbol-operator",{fontCharacter:"\\eb64"}),G.symbolProperty=new G("symbol-property",{fontCharacter:"\\eb65"}),G.wrench=new G("wrench",{fontCharacter:"\\eb65"}),G.wrenchSubaction=new G("wrench-subaction",{fontCharacter:"\\eb65"}),G.symbolSnippet=new G("symbol-snippet",{fontCharacter:"\\eb66"}),G.tasklist=new G("tasklist",{fontCharacter:"\\eb67"}),G.telescope=new G("telescope",{fontCharacter:"\\eb68"}),G.textSize=new G("text-size",{fontCharacter:"\\eb69"}),G.threeBars=new G("three-bars",{fontCharacter:"\\eb6a"}),G.thumbsdown=new G("thumbsdown",{fontCharacter:"\\eb6b"}),G.thumbsup=new G("thumbsup",{fontCharacter:"\\eb6c"}),G.tools=new G("tools",{fontCharacter:"\\eb6d"}),G.triangleDown=new G("triangle-down",{fontCharacter:"\\eb6e"}),G.triangleLeft=new G("triangle-left",{fontCharacter:"\\eb6f"}),G.triangleRight=new G("triangle-right",{fontCharacter:"\\eb70"}),G.triangleUp=new G("triangle-up",{fontCharacter:"\\eb71"}),G.twitter=new G("twitter",{fontCharacter:"\\eb72"}),G.unfold=new G("unfold",{fontCharacter:"\\eb73"}),G.unlock=new G("unlock",{fontCharacter:"\\eb74"}),G.unmute=new G("unmute",{fontCharacter:"\\eb75"}),G.unverified=new G("unverified",{fontCharacter:"\\eb76"}),G.verified=new G("verified",{fontCharacter:"\\eb77"}),G.versions=new G("versions",{fontCharacter:"\\eb78"}),G.vmActive=new G("vm-active",{fontCharacter:"\\eb79"}),G.vmOutline=new G("vm-outline",{fontCharacter:"\\eb7a"}),G.vmRunning=new G("vm-running",{fontCharacter:"\\eb7b"}),G.watch=new G("watch",{fontCharacter:"\\eb7c"}),G.whitespace=new G("whitespace",{fontCharacter:"\\eb7d"}),G.wholeWord=new G("whole-word",{fontCharacter:"\\eb7e"}),G.window=new G("window",{fontCharacter:"\\eb7f"}),G.wordWrap=new G("word-wrap",{fontCharacter:"\\eb80"}),G.zoomIn=new G("zoom-in",{fontCharacter:"\\eb81"}),G.zoomOut=new G("zoom-out",{fontCharacter:"\\eb82"}),G.listFilter=new G("list-filter",{fontCharacter:"\\eb83"}),G.listFlat=new G("list-flat",{fontCharacter:"\\eb84"}),G.listSelection=new G("list-selection",{fontCharacter:"\\eb85"}),G.selection=new G("selection",{fontCharacter:"\\eb85"}),G.listTree=new G("list-tree",{fontCharacter:"\\eb86"}),G.debugBreakpointFunctionUnverified=new G("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),G.debugBreakpointFunction=new G("debug-breakpoint-function",{fontCharacter:"\\eb88"}),G.debugBreakpointFunctionDisabled=new G("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),G.debugStackframeActive=new G("debug-stackframe-active",{fontCharacter:"\\eb89"}),G.debugStackframeDot=new G("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),G.debugStackframe=new G("debug-stackframe",{fontCharacter:"\\eb8b"}),G.debugStackframeFocused=new G("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),G.debugBreakpointUnsupported=new G("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),G.symbolString=new G("symbol-string",{fontCharacter:"\\eb8d"}),G.debugReverseContinue=new G("debug-reverse-continue",{fontCharacter:"\\eb8e"}),G.debugStepBack=new G("debug-step-back",{fontCharacter:"\\eb8f"}),G.debugRestartFrame=new G("debug-restart-frame",{fontCharacter:"\\eb90"}),G.callIncoming=new G("call-incoming",{fontCharacter:"\\eb92"}),G.callOutgoing=new G("call-outgoing",{fontCharacter:"\\eb93"}),G.menu=new G("menu",{fontCharacter:"\\eb94"}),G.expandAll=new G("expand-all",{fontCharacter:"\\eb95"}),G.feedback=new G("feedback",{fontCharacter:"\\eb96"}),G.groupByRefType=new G("group-by-ref-type",{fontCharacter:"\\eb97"}),G.ungroupByRefType=new G("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),G.account=new G("account",{fontCharacter:"\\eb99"}),G.bellDot=new G("bell-dot",{fontCharacter:"\\eb9a"}),G.debugConsole=new G("debug-console",{fontCharacter:"\\eb9b"}),G.library=new G("library",{fontCharacter:"\\eb9c"}),G.output=new G("output",{fontCharacter:"\\eb9d"}),G.runAll=new G("run-all",{fontCharacter:"\\eb9e"}),G.syncIgnored=new G("sync-ignored",{fontCharacter:"\\eb9f"}),G.pinned=new G("pinned",{fontCharacter:"\\eba0"}),G.githubInverted=new G("github-inverted",{fontCharacter:"\\eba1"}),G.debugAlt=new G("debug-alt",{fontCharacter:"\\eb91"}),G.serverProcess=new G("server-process",{fontCharacter:"\\eba2"}),G.serverEnvironment=new G("server-environment",{fontCharacter:"\\eba3"}),G.pass=new G("pass",{fontCharacter:"\\eba4"}),G.stopCircle=new G("stop-circle",{fontCharacter:"\\eba5"}),G.playCircle=new G("play-circle",{fontCharacter:"\\eba6"}),G.record=new G("record",{fontCharacter:"\\eba7"}),G.debugAltSmall=new G("debug-alt-small",{fontCharacter:"\\eba8"}),G.vmConnect=new G("vm-connect",{fontCharacter:"\\eba9"}),G.cloud=new G("cloud",{fontCharacter:"\\ebaa"}),G.merge=new G("merge",{fontCharacter:"\\ebab"}),G.exportIcon=new G("export",{fontCharacter:"\\ebac"}),G.graphLeft=new G("graph-left",{fontCharacter:"\\ebad"}),G.magnet=new G("magnet",{fontCharacter:"\\ebae"}),G.notebook=new G("notebook",{fontCharacter:"\\ebaf"}),G.redo=new G("redo",{fontCharacter:"\\ebb0"}),G.checkAll=new G("check-all",{fontCharacter:"\\ebb1"}),G.pinnedDirty=new G("pinned-dirty",{fontCharacter:"\\ebb2"}),G.passFilled=new G("pass-filled",{fontCharacter:"\\ebb3"}),G.circleLargeFilled=new G("circle-large-filled",{fontCharacter:"\\ebb4"}),G.circleLargeOutline=new G("circle-large-outline",{fontCharacter:"\\ebb5"}),G.combine=new G("combine",{fontCharacter:"\\ebb6"}),G.gather=new G("gather",{fontCharacter:"\\ebb6"}),G.table=new G("table",{fontCharacter:"\\ebb7"}),G.variableGroup=new G("variable-group",{fontCharacter:"\\ebb8"}),G.typeHierarchy=new G("type-hierarchy",{fontCharacter:"\\ebb9"}),G.typeHierarchySub=new G("type-hierarchy-sub",{fontCharacter:"\\ebba"}),G.typeHierarchySuper=new G("type-hierarchy-super",{fontCharacter:"\\ebbb"}),G.gitPullRequestCreate=new G("git-pull-request-create",{fontCharacter:"\\ebbc"}),G.runAbove=new G("run-above",{fontCharacter:"\\ebbd"}),G.runBelow=new G("run-below",{fontCharacter:"\\ebbe"}),G.notebookTemplate=new G("notebook-template",{fontCharacter:"\\ebbf"}),G.debugRerun=new G("debug-rerun",{fontCharacter:"\\ebc0"}),G.workspaceTrusted=new G("workspace-trusted",{fontCharacter:"\\ebc1"}),G.workspaceUntrusted=new G("workspace-untrusted",{fontCharacter:"\\ebc2"}),G.workspaceUnspecified=new G("workspace-unspecified",{fontCharacter:"\\ebc3"}),G.terminalCmd=new G("terminal-cmd",{fontCharacter:"\\ebc4"}),G.terminalDebian=new G("terminal-debian",{fontCharacter:"\\ebc5"}),G.terminalLinux=new G("terminal-linux",{fontCharacter:"\\ebc6"}),G.terminalPowershell=new G("terminal-powershell",{fontCharacter:"\\ebc7"}),G.terminalTmux=new G("terminal-tmux",{fontCharacter:"\\ebc8"}),G.terminalUbuntu=new G("terminal-ubuntu",{fontCharacter:"\\ebc9"}),G.terminalBash=new G("terminal-bash",{fontCharacter:"\\ebca"}),G.arrowSwap=new G("arrow-swap",{fontCharacter:"\\ebcb"}),G.copy=new G("copy",{fontCharacter:"\\ebcc"}),G.personAdd=new G("person-add",{fontCharacter:"\\ebcd"}),G.filterFilled=new G("filter-filled",{fontCharacter:"\\ebce"}),G.wand=new G("wand",{fontCharacter:"\\ebcf"}),G.debugLineByLine=new G("debug-line-by-line",{fontCharacter:"\\ebd0"}),G.inspect=new G("inspect",{fontCharacter:"\\ebd1"}),G.layers=new G("layers",{fontCharacter:"\\ebd2"}),G.layersDot=new G("layers-dot",{fontCharacter:"\\ebd3"}),G.layersActive=new G("layers-active",{fontCharacter:"\\ebd4"}),G.compass=new G("compass",{fontCharacter:"\\ebd5"}),G.compassDot=new G("compass-dot",{fontCharacter:"\\ebd6"}),G.compassActive=new G("compass-active",{fontCharacter:"\\ebd7"}),G.azure=new G("azure",{fontCharacter:"\\ebd8"}),G.issueDraft=new G("issue-draft",{fontCharacter:"\\ebd9"}),G.gitPullRequestClosed=new G("git-pull-request-closed",{fontCharacter:"\\ebda"}),G.gitPullRequestDraft=new G("git-pull-request-draft",{fontCharacter:"\\ebdb"}),G.debugAll=new G("debug-all",{fontCharacter:"\\ebdc"}),G.debugCoverage=new G("debug-coverage",{fontCharacter:"\\ebdd"}),G.dropDownButton=new G("drop-down-button",G.chevronDown.definition)}(Codicon||(Codicon={}))},69:function(G,Z,ne){"use strict";function tail(G,Z=0){return G[G.length-(1+Z)]}function tail2(G){if(0===G.length)throw new Error("Invalid tail call");return[G.slice(0,G.length-1),G[G.length-1]]}function equals(G,Z,ne=((G,Z)=>G===Z)){if(G===Z)return!0;if(!G||!Z)return!1;if(G.length!==Z.length)return!1;for(let ie=0,se=G.length;ie0))return ce;se=ce-1}}return-(ie+1)}function findFirstInSorted(G,Z){let ne=0,ie=G.length;if(0===ie)return 0;for(;ne=Z.length)throw new TypeError("invalid index");let ie=Z[Math.floor(Z.length*Math.random())],se=[],ce=[],fe=[];for(let G of Z){const Z=ne(G,ie);Z<0?se.push(G):Z>0?ce.push(G):fe.push(G)}return G!!G)}function isFalsyOrEmpty(G){return!Array.isArray(G)||0===G.length}function isNonEmptyArray(G){return Array.isArray(G)&&G.length>0}function distinct(G,Z){if(!Z)return G.filter((Z,ne)=>G.indexOf(Z)===ne);const ne=Object.create(null);return G.filter(G=>{const ie=Z(G);return!ne[ie]&&(ne[ie]=!0,!0)})}function distinctES6(G){const Z=new Set;return G.filter(G=>!Z.has(G)&&(Z.add(G),!0))}function firstOrDefault(G,Z){return G.length>0?G[0]:Z}function flatten(G){return[].concat(...G)}function range(G,Z){let ne="number"==typeof Z?G:0;"number"==typeof Z?ne=G:(ne=0,Z=G);const ie=[];if(ne<=Z)for(let G=ne;GZ;G--)ie.push(G);return ie}function arrayInsert(G,Z,ne){const ie=G.slice(0,Z),se=G.slice(Z);return ie.concat(ne,se)}function pushToStart(G,Z){const ne=G.indexOf(Z);ne>-1&&(G.splice(ne,1),G.unshift(Z))}function pushToEnd(G,Z){const ne=G.indexOf(Z);ne>-1&&(G.splice(ne,1),G.push(Z))}function asArray(G){return Array.isArray(G)?G:[G]}function splice(G,Z,ne,ie){const se=getActualStartIndex(G,Z),ce=G.splice(se,ne);return function insertInto(G,Z,ne){const ie=getActualStartIndex(G,Z),se=G.length,ce=ne.length;G.length=se+ce;for(let Z=se-1;Z>=ie;Z--)G[Z+ce]=G[Z];for(let Z=0;Z=0&&G(this.items[Z]);)Z--;const ne=Z===this.lastIdx?null:this.items.slice(Z+1,this.lastIdx+1);return this.lastIdx=Z,ne}}},695:function(G,Z,ne){"use strict";(function(G){Object.defineProperty(Z,"__esModule",{value:!0}),Z.extractAppName=extractAppName,Z.versionLabel=Z.username=Z.splunkdPath=Z.serverTimezoneInfo=Z.rootPath=Z.portNumber=Z.locale=Z.config=Z.buildPushNumber=Z.buildNumber=Z.appBuild=Z.app=Z.isAvailable=Z.CSRFToken=void 0;var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(112)),se=ne(7332);var ce="undefined"==typeof window?G:window;function get$CEntry(G){return(0,ie.default)(ce,["$C",G])}var fe=(0,se.getEntry)("splunkweb_csrf_token_".concat(get$CEntry("MRSPARKLE_PORT_NUMBER")));Z.CSRFToken=fe;var me=!!get$CEntry("SPLUNKD_PATH");function extractAppName(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,ie.default)(ce,["document","location","pathname"],""),Z=G.match(/\w\w.\w\w\/(app|manager)\/([^/]+)/);return Z?Z[2]:void 0}Z.isAvailable=me;var ge=extractAppName();Z.app=ge;var Ce=get$CEntry("APP_BUILD");Z.appBuild=Ce;var Se=get$CEntry("BUILD_NUMBER");Z.buildNumber=Se;var Me=get$CEntry("BUILD_PUSH_NUMBER");Z.buildPushNumber=Me;var ke=(0,ie.default)(ce,"$C");Z.config=ke;var xe=get$CEntry("LOCALE");Z.locale=xe;var De=get$CEntry("MRSPARKLE_PORT_NUMBER");Z.portNumber=De;var Ie=get$CEntry("MRSPARKLE_ROOT_PATH");Z.rootPath=Ie;var Re=get$CEntry("SERVER_ZONEINFO");Z.serverTimezoneInfo=Re;var ze=get$CEntry("SPLUNKD_PATH");Z.splunkdPath=ze;var $e=get$CEntry("USERNAME");Z.username=$e;var Je=get$CEntry("VERSION_LABEL");Z.versionLabel=Je}).call(this,ne(123))},696:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=8)}([function(G,Z){G.exports=ne(0)},,,,,function(G,Z){G.exports=ne(2)},function(G,Z){G.exports=ne(3)},,function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},697:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=21)}({0:function(G,Z){G.exports=ne(0)},21:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IconContext",(function(){return Se})),ne.d(Z,"IconProvider",(function(){return Me}));var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(8);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},698:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},700:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return hash})),ne.d(Z,"c",(function(){return stringHash})),ne.d(Z,"a",(function(){return StringSHA1}));var ie=ne(27);function hash(G){return doHash(G,0)}function doHash(G,Z){switch(typeof G){case"object":return null===G?numberHash(349,Z):Array.isArray(G)?function arrayHash(G,Z){return Z=numberHash(104579,Z),G.reduce((G,Z)=>doHash(Z,G),Z)}(G,Z):function objectHash(G,Z){return Z=numberHash(181387,Z),Object.keys(G).sort().reduce((Z,ne)=>(Z=stringHash(ne,Z),doHash(G[ne],Z)),Z)}(G,Z);case"string":return stringHash(G,Z);case"boolean":return function booleanHash(G,Z){return numberHash(G?433:863,Z)}(G,Z);case"number":return numberHash(G,Z);case"undefined":return numberHash(937,Z);default:return numberHash(617,Z)}}function numberHash(G,Z){return(Z<<5)-Z+G|0}function stringHash(G,Z){Z=numberHash(149417,Z);for(let ne=0,ie=G.length;ne>>ie)>>>0}function fill(G,Z=0,ne=G.byteLength,ie=0){for(let se=0;seG.toString(16).padStart(2,"0")).join(""):function leftPad(G,Z,ne="0"){for(;G.length>>0).toString(16),Z/4)}class StringSHA1{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(G){const Z=G.length;if(0===Z)return;const ne=this._buff;let se,ce,fe=this._buffLen,me=this._leftoverHighSurrogate;for(0!==me?(se=me,ce=-1,me=0):(se=G.charCodeAt(0),ce=0);;){let ge=se;if(ie.F(se)){if(!(ce+1>>6,G[Z++]=128|(63&ne)>>>0):ne<65536?(G[Z++]=224|(61440&ne)>>>12,G[Z++]=128|(4032&ne)>>>6,G[Z++]=128|(63&ne)>>>0):(G[Z++]=240|(1835008&ne)>>>18,G[Z++]=128|(258048&ne)>>>12,G[Z++]=128|(4032&ne)>>>6,G[Z++]=128|(63&ne)>>>0),Z>=64&&(this._step(),Z-=64,this._totalLen+=64,G[0]=G[64],G[1]=G[65],G[2]=G[66]),Z}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),toHexString(this._h0)+toHexString(this._h1)+toHexString(this._h2)+toHexString(this._h3)+toHexString(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,fill(this._buff,this._buffLen),this._buffLen>56&&(this._step(),fill(this._buff));const G=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(G/4294967296),!1),this._buffDV.setUint32(60,G%4294967296,!1),this._step()}_step(){const G=StringSHA1._bigBlock32,Z=this._buffDV;for(let ne=0;ne<64;ne+=4)G.setUint32(ne,Z.getUint32(ne,!1),!1);for(let Z=64;Z<320;Z+=4)G.setUint32(Z,leftRotate(G.getUint32(Z-12,!1)^G.getUint32(Z-32,!1)^G.getUint32(Z-56,!1)^G.getUint32(Z-64,!1),1),!1);let ne,ie,se,ce=this._h0,fe=this._h1,me=this._h2,ge=this._h3,Ce=this._h4;for(let Z=0;Z<80;Z++)Z<20?(ne=fe&me|~fe&ge,ie=1518500249):Z<40?(ne=fe^me^ge,ie=1859775393):Z<60?(ne=fe&me|fe&ge|me&ge,ie=2400959708):(ne=fe^me^ge,ie=3395469782),se=leftRotate(ce,5)+ne+Ce+ie+G.getUint32(4*Z,!1)&4294967295,Ce=ge,ge=me,me=leftRotate(fe,30),fe=ce,ce=se;this._h0=this._h0+ce&4294967295,this._h1=this._h1+fe&4294967295,this._h2=this._h2+me&4294967295,this._h3=this._h3+ge&4294967295,this._h4=this._h4+Ce&4294967295}}StringSHA1._bigBlock32=new DataView(new ArrayBuffer(320))},703:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return renderLabelWithIcons}));var ie=ne(6),se=ne(67);const ce=new RegExp(`(\\\\)?\\$\\((${se.a.iconNameExpression}(?:${se.a.iconModifierExpression})?)\\)`,"g");function renderLabelWithIcons(G){const Z=new Array;let ne,ie=0,se=0;for(;null!==(ne=ce.exec(G));){se=ne.index||0,Z.push(G.substring(ie,se)),ie=(ne.index||0)+ne[0].length;const[,ce,fe]=ne;Z.push(ce?`$(${fe})`:renderIcon({id:fe}))}return ie/?";const se=function createWordRegExp(G=""){let Z="(-?\\d*\\.\\d\\w*)|([^";for(const ne of ie)G.indexOf(ne)>=0||(Z+="\\"+ne);return Z+="\\s]+)",new RegExp(Z,"g")}();function ensureValidWordDefinition(G){let Z=se;if(G&&G instanceof RegExp)if(G.global)Z=G;else{let ne="g";G.ignoreCase&&(ne+="i"),G.multiline&&(ne+="m"),G.unicode&&(ne+="u"),Z=new RegExp(G.source,ne)}return Z.lastIndex=0,Z}const ce={maxLen:1e3,windowSize:15,timeBudget:150};function getWordAtText(G,Z,ne,ie,se=ce){if(ne.length>se.maxLen){let ce=G-se.maxLen/2;return ce<0?ce=0:ie+=ce,getWordAtText(G,Z,ne=ne.substring(ce,G+se.maxLen/2),ie,se)}const fe=Date.now(),me=G-1-ie;let ge=-1,Ce=null;for(let G=1;!(Date.now()-fe>=se.timeBudget);G++){const ie=me-se.windowSize*G;Z.lastIndex=Math.max(0,ie);const ce=_findRegexMatchEnclosingPosition(Z,ne,me,ge);if(!ce&&Ce)break;if(Ce=ce,ie<=0)break;ge=ie}if(Ce){let G={word:Ce[0],startColumn:ie+1+Ce.index,endColumn:ie+1+Ce.index+Ce[0].length};return Z.lastIndex=0,G}return null}function _findRegexMatchEnclosingPosition(G,Z,ne,ie){let se;for(;se=G.exec(Z);){const Z=se.index||0;if(Z<=ne&&G.lastIndex>=ne)return se;if(ie>0&&Z>ie)return null}return null}},707:function(G,Z,ne){"use strict";(function(G){ne.d(Z,"a",(function(){return ce})),ne.d(Z,"b",(function(){return fe})),ne.d(Z,"c",(function(){return me}));var ie=ne(46);let se;if(void 0!==ie.b.vscode&&void 0!==ie.b.vscode.process){const G=ie.b.vscode.process;se={get platform(){return G.platform},get env(){return G.env},cwd:()=>G.cwd(),nextTick:G=>Object(ie.k)(G)}}else se=void 0!==G?{get platform(){return G.platform},get env(){return G.env},cwd:()=>G.env.VSCODE_CWD||G.cwd(),nextTick:Z=>G.nextTick(Z)}:{get platform(){return ie.j?"win32":ie.f?"darwin":"linux"},nextTick:G=>Object(ie.k)(G),get env(){return{}},cwd:()=>"/"};const ce=se.cwd,fe=se.env,me=se.platform}).call(this,ne(399))},71:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return CursorConfiguration})),ne.d(Z,"f",(function(){return SingleCursorState})),ne.d(Z,"c",(function(){return CursorContext})),ne.d(Z,"d",(function(){return CursorState})),ne.d(Z,"e",(function(){return EditOperationResult})),ne.d(Z,"a",(function(){return CursorColumns})),ne.d(Z,"g",(function(){return isQuote}));var ie=ne(51),se=ne(27),ce=ne(34),fe=ne(12),me=ne(80),ge=ne(117),Ce=ne(122);const autoCloseAlways=()=>!0,autoCloseNever=()=>!1,autoCloseBeforeWhitespace=G=>" "===G||"\t"===G;class CursorConfiguration{constructor(G,Z,ne){this._cursorMoveConfigurationBrand=void 0,this._languageIdentifier=G;const ie=ne.options,se=ie.get(129);this.readOnly=ie.get(79),this.tabSize=Z.tabSize,this.indentSize=Z.indentSize,this.insertSpaces=Z.insertSpaces,this.stickyTabStops=ie.get(103),this.lineHeight=ie.get(57),this.pageSize=Math.max(1,Math.floor(se.height/this.lineHeight)-2),this.useTabStops=ie.get(114),this.wordSeparators=ie.get(115),this.emptySelectionClipboard=ie.get(30),this.copyWithSyntaxHighlighting=ie.get(19),this.multiCursorMergeOverlapping=ie.get(67),this.multiCursorPaste=ie.get(69),this.autoClosingBrackets=ie.get(5),this.autoClosingQuotes=ie.get(8),this.autoClosingDelete=ie.get(6),this.autoClosingOvertype=ie.get(7),this.autoSurround=ie.get(11),this.autoIndent=ie.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:CursorConfiguration._getShouldAutoClose(G,this.autoClosingQuotes),bracket:CursorConfiguration._getShouldAutoClose(G,this.autoClosingBrackets)},this.autoClosingPairs=Ce.a.getAutoClosingPairs(G.id);let ce=CursorConfiguration._getSurroundingPairs(G);if(ce)for(const G of ce)this.surroundingPairs[G.open]=G.close}static shouldRecreate(G){return G.hasChanged(129)||G.hasChanged(115)||G.hasChanged(30)||G.hasChanged(67)||G.hasChanged(69)||G.hasChanged(5)||G.hasChanged(8)||G.hasChanged(6)||G.hasChanged(7)||G.hasChanged(11)||G.hasChanged(114)||G.hasChanged(57)||G.hasChanged(79)}get electricChars(){if(!this._electricChars){this._electricChars={};let G=CursorConfiguration._getElectricCharacters(this._languageIdentifier);if(G)for(const Z of G)this._electricChars[Z]=!0}return this._electricChars}normalizeIndentation(G){return ge.b.normalizeIndentation(G,this.indentSize,this.insertSpaces)}static _getElectricCharacters(G){try{return Ce.a.getElectricCharacters(G.id)}catch(G){return Object(ie.e)(G),null}}static _getShouldAutoClose(G,Z){switch(Z){case"beforeWhitespace":return autoCloseBeforeWhitespace;case"languageDefined":return CursorConfiguration._getLanguageDefinedShouldAutoClose(G);case"always":return autoCloseAlways;case"never":return autoCloseNever}}static _getLanguageDefinedShouldAutoClose(G){try{const Z=Ce.a.getAutoCloseBeforeSet(G.id);return G=>-1!==Z.indexOf(G)}catch(G){return Object(ie.e)(G),autoCloseNever}}static _getSurroundingPairs(G){try{return Ce.a.getSurroundingPairs(G.id)}catch(G){return Object(ie.e)(G),null}}}class SingleCursorState{constructor(G,Z,ne,ie){this._singleCursorStateBrand=void 0,this.selectionStart=G,this.selectionStartLeftoverVisibleColumns=Z,this.position=ne,this.leftoverVisibleColumns=ie,this.selection=SingleCursorState._computeSelection(this.selectionStart,this.position)}equals(G){return this.selectionStartLeftoverVisibleColumns===G.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===G.leftoverVisibleColumns&&this.position.equals(G.position)&&this.selectionStart.equalsRange(G.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(G,Z,ne,ie){return G?new SingleCursorState(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new ce.a(Z,ne),ie):new SingleCursorState(new fe.a(Z,ne,Z,ne),ie,new ce.a(Z,ne),ie)}static _computeSelection(G,Z){let ne,ie,se,ce;return G.isEmpty()?(ne=G.startLineNumber,ie=G.startColumn,se=Z.lineNumber,ce=Z.column):Z.isBeforeOrEqual(G.getStartPosition())?(ne=G.endLineNumber,ie=G.endColumn,se=Z.lineNumber,ce=Z.column):(ne=G.startLineNumber,ie=G.startColumn,se=Z.lineNumber,ce=Z.column),new me.a(ne,ie,se,ce)}}class CursorContext{constructor(G,Z,ne,ie){this._cursorContextBrand=void 0,this.model=G,this.viewModel=Z,this.coordinatesConverter=ne,this.cursorConfig=ie}}class PartialModelCursorState{constructor(G){this.modelState=G,this.viewState=null}}class PartialViewCursorState{constructor(G){this.modelState=null,this.viewState=G}}class CursorState{constructor(G,Z){this._cursorStateBrand=void 0,this.modelState=G,this.viewState=Z}static fromModelState(G){return new PartialModelCursorState(G)}static fromViewState(G){return new PartialViewCursorState(G)}static fromModelSelection(G){const Z=G.selectionStartLineNumber,ne=G.selectionStartColumn,ie=G.positionLineNumber,se=G.positionColumn,me=new SingleCursorState(new fe.a(Z,ne,Z,ne),0,new ce.a(ie,se),0);return CursorState.fromModelState(me)}static fromModelSelections(G){let Z=[];for(let ne=0,ie=G.length;ne=65536?2:1,9===Z)fe=CursorColumns.nextRenderTabStop(fe,ne);else{let ne=se.x(Z);for(;me=65536?2:1,ne=ie}se.E(Z)||se.C(Z)?fe+=2:fe+=1}}return fe}static visibleColumnsByColumns(G,Z){const ne=G.length;let ie=new Array;ie.push(-1);let ce=0,fe=0;for(;fe=65536?2:1,ie.push(ce),me>=65536&&ie.push(ce),9===me)ce=CursorColumns.nextRenderTabStop(ce,Z);else{let Z=se.x(me);for(;fe=65536?2:1,ie.push(ce),me>=65536&&ie.push(ce),Z=Ce}se.E(me)||se.C(me)?ce+=2:ce+=1}}return ie.push(ce),ie}static visibleColumnFromColumn2(G,Z,ne){return this.visibleColumnFromColumn(Z.getLineContent(ne.lineNumber),ne.column,G.tabSize)}static columnFromVisibleColumn(G,Z,ne){if(Z<=0)return 1;const ie=G.length;let ce=0,fe=1,me=0;for(;me=65536?2:1,9===ge)Ce=CursorColumns.nextRenderTabStop(ce,ne);else{let Z=se.x(ge);for(;me=65536?2:1,Z=ce}Ce=se.E(ge)||se.C(ge)?ce+2:ce+1}const Se=me+1;if(Ce>=Z){return Ce-Zfe?fe:se}static nextRenderTabStop(G,Z){return G+Z-G%Z}static nextIndentTabStop(G,Z){return G+Z-G%Z}static prevRenderTabStop(G,Z){return Math.max(0,G-1-(G-1)%Z)}static prevIndentTabStop(G,Z){return Math.max(0,G-1-(G-1)%Z)}}function isQuote(G){return"'"===G||'"'===G||"`"===G}},7309:function(G,Z,ne){ne.p=function getPath(){function getConfigValue(G,Z){if(window.$C&&window.$C.hasOwnProperty(G))return window.$C[G];if(void 0!==Z)return Z;throw new Error("getConfigValue - "+G+" not set, no default provided")}return function make_url(){for(var G,Z,ne="",ie=0,se=arguments.length;ie1&&"/"==G.charAt(Z-1)&&(G=G.substring(0,Z-1)),"/"!=G.charAt(0)?ne+="/"+G:ne+=G;if("/"!=ne){var ce=ne.split("/"),fe=ce[1];if("static"==fe||"modules"==fe){var me=ne.substring(fe.length+2,ne.length);ne="/"+fe,window.$C.BUILD_NUMBER&&(ne+="/@"+window.$C.BUILD_NUMBER),window.$C.BUILD_PUSH_NUMBER&&(ne+="."+window.$C.BUILD_PUSH_NUMBER),"app"==ce[2]&&(ne+=":"+getConfigValue("APP_BUILD",0)),ne+="/"+me}}var ge=getConfigValue("MRSPARKLE_ROOT_PATH","/"),Ce=getConfigValue("LOCALE","en-US"),Se="/"+Ce+ne;return""==ge||"/"==ge?Se:ge+Se}("/static/app/itsi/build/pages")+"/"}();var ie=ne(1),se=ie(ne(324)),ce=ie(ne(17)),fe=ie(ne(18)),me=ie(ne(30)),ge=ie(ne(21)),Ce=ie(ne(22)),Se=ie(ne(20)),Me=ie(ne(11)),ke=_interopRequireWildcard(ne(0)),xe=ie(ne(101)),De=ie(ne(42)),Ie=ie(ne(7310)),Re=ie(ne(112)),ze=ie(ne(63)),$e=ie(ne(45)),Je=ie(ne(131)),it=ie(ne(7311)),ot=ie(ne(41)),at=ie(ne(155)),st=ie(ne(2441)),ct=ne(125),ut=ne(16),dt=ne(5),ht=_interopRequireWildcard(ne(550)),ft=ne(509),_t=ie(ne(256)),yt=ne(390),vt=ne(358),wt=ne(58),Ct=ne(408),St=ne(199),Mt=ne(387),kt=ne(1291),xt=ne(142),Lt=ne(267),Tt=ne(327),At=ne(514),Dt=ie(ne(7312)),Et=ie(ne(2885)),jt=ie(ne(7698)),It=ie(ne(7816)),Nt=ie(ne(7817)),Rt=ie(ne(7818)),zt=ne(2047),qt=ne(1161);ne(260);var Wt=ie(ne(52)),Bt=ne(129),Ft=ie(ne(638)),Ht=ie(ne(2915));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}return ie.default=G,ne&&ne.set(G,ie),ie}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z["edit","view"].includes($t.action)?$t.action:"view",Jt=function(G){(0,ge.default)(GlassTableEditorBeta,G);var Z,ne,ie,Ce,Se,_t=_createSuper(GlassTableEditorBeta);function GlassTableEditorBeta(G,Z){var ne;return(0,ce.default)(this,GlassTableEditorBeta),ne=_t.call(this,G,Z),(0,Me.default)((0,me.default)(ne),"removeUrlParams",()=>{var G=(0,ot.default)($t,["earliest","latest"]);(0,wt.updateURL)((0,kt.uiEditURL)(G))}),(0,Me.default)((0,me.default)(ne),"gtAccessValidation",()=>{var G=ne.fetchUserCapabilities().then(G=>G.data),Z=ne.fetchGT().then(G=>G.data);return new Promise((ie,se)=>{Promise.all([G,Z]).then(G=>{var[Z,ce]=G;ne.gtResponseData=ce,ne.canViewGT(Z,ce)||se({responseText:(0,ut.sprintf)((0,dt.gettext)("%(username)s does not have the capability %(capabilityName)s."),{username:ct.username,capabilityName:Lt.CAPABILITIES.READ_GT})});var fe=ne.canEditGT(Z,ce);"edit"!==getModeFromUrl()||fe||ne.updateUrlMode("view"),ne.setState({isEditableGt:fe}),ie()}).catch(G=>{se(G)})})}),(0,Me.default)((0,me.default)(ne),"fetchGT",()=>Zt?(0,kt.transformGlassTable)(Vt):(0,kt.retrieveGlassTable)(Vt,ct.username)),(0,Me.default)((0,me.default)(ne),"fetchFeatureFlags",()=>(0,Ct.retrieveStanza)(St.confFile,St.featureFlagsStanzas.GLASS_TABLE_AGGREGATE_SEARCHES)),(0,Me.default)((0,me.default)(ne),"parseFeatureFlagsData",G=>{if(G&&G.entry&&G.entry.length){var Z=G.entry.filter(G=>G.name===St.featureFlagsStanzas.GLASS_TABLE_AGGREGATE_SEARCHES);if(Z&&Z.length&&Z[0].content)return!Z[0].content.disabled}return!0}),(0,Me.default)((0,me.default)(ne),"fetchUserCapabilities",()=>(0,At.retrieveIsUserCapableAllOps)(Mt.OBJECT_TYPE)),(0,Me.default)((0,me.default)(ne),"canViewGT",(G,Z)=>{var ne;return(null==G||null===(ne=G.permissions)||void 0===ne?void 0:ne.read)||Z&&Z.acl&&Z.acl.sharing&&Z.acl.sharing===Tt.PERMISSIONS.USER}),(0,Me.default)((0,me.default)(ne),"canEditGT",(G,Z)=>{var ne;return(null==G||null===(ne=G.permissions)||void 0===ne?void 0:ne.write)||Z&&Z.acl&&Z.acl.sharing&&Z.acl.sharing===Tt.PERMISSIONS.USER}),(0,Me.default)((0,me.default)(ne),"saveGT",G=>{var{gtData:Z,selectedServiceID:ie,selectedServicesIDs:se}=ne.state;if(Z.definition=G,Z.title=G.title,Z.description=G.description,Z.selected_swap_service_id=ie,Z.swap_service_ids=se,!Z.title)return ne.setState({error:(0,dt.gettext)("Title cannot be an empty string.")}),Promise.reject();ne.setState({gtData:Z,definition:G});var ce=ne.formattedGtData(Z,"POST");return(0,kt.updateGlassTable)(Vt,ct.username,ce).then(G=>G.data).catch(G=>{(0,Bt.handleError)(G).then(G=>{ne.setState({error:"".concat((0,dt.gettext)("Cannot save glass table.")," ").concat((0,dt.gettext)("Details"),": ").concat(G)})})})}),(0,Me.default)((0,me.default)(ne),"formattedGtData",(G,Z)=>{var ie=G;return Z&&G&&G.definition&&G.definition.visualizations&&!(0,$e.default)(G.definition.visualizations)&&((ie=(0,xe.default)(G)).definition.visualizations=ne.formatVisualizationOptionsKeys(ie.definition.visualizations,Z)),ie}),(0,Me.default)((0,me.default)(ne),"handleServicesChange",G=>{var{selectedServiceID:Z,selectedServicesIDs:ie}=ne.state;if(!Z&&G.length>0){var se=G[0];ne.setState({selectedServicesIDs:G,selectedServiceID:se}),ne.enableServiceSwapping(se)}else if(0===G.length)ne.setState({selectedServicesIDs:G,selectedServiceID:null});else if(-1===ie.indexOf(Z)){var ce=ie[0];ne.setState({selectedServicesIDs:G,selectedServiceID:ce})}else ne.setState({selectedServicesIDs:G});ne.handleSelectedServices(G)}),(0,Me.default)((0,me.default)(ne),"handleServiceChange",(G,Z,ie)=>{ie&&(Z.dashboard.handleDefinitionChange=function(G){Z.dashboard.props.dispatch((0,yt.resetStore)({definition:G}))}),ne.applyServiceSwapping(ne.state.selectedServiceID,G,Z),ne.setState({selectedServiceID:G})}),(0,Me.default)((0,me.default)(ne),"handleDefinitionChange",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ie=(0,xe.default)(G),se=ne.filterOrphanedKPIDatasources(ie);ne.aggregateSearches(se),!(0,Je.default)(G,se)&&Z&&Z.updateDefinition(se),ne.setState({definition:se})})),(0,Me.default)((0,me.default)(ne),"filterOrphanedKPIDatasources",G=>{var Z=Object.values(G.visualizations).map(G=>(0,Re.default)(G,"dataSources.primary")),ne=Object.fromEntries(Object.entries(G.dataSources).filter(G=>{var[ne,ie]=G;return!(0,Re.default)(ie,"meta.kpiID")||Z.includes(ne)}));return G.dataSources=ne,G}),(0,Me.default)((0,me.default)(ne),"userMessageHandler",G=>{var Z,{message:ie,level:se}=G;switch(se){case"warning":Z=ft.TOAST_TYPES.WARNING;break;case"error":Z=ft.TOAST_TYPES.ERROR;break;case"info":default:Z=ft.TOAST_TYPES.INFO}ne.createToast({message:ie,type:Z,autoDismiss:!1,dismissOnActionClick:!0})}),(0,Me.default)((0,me.default)(ne),"handleMessageBannerOpen",()=>{ne.setState({showMessageBanner:!0})}),(0,Me.default)((0,me.default)(ne),"handleMessageBannerClose",()=>{ne.setState({showMessageBanner:!1})}),(0,Me.default)((0,me.default)(ne),"checkKpiInMaintenance",()=>{var{definition:G}=ne.state,Z=!1,{dataSources:ie={}}=G;return Object.values(ie).forEach(G=>{G.meta&&G.meta.kpiID&&ne.maintenanceWindow.isKpiInMaintenance(G.meta.kpiID)&&(Z=!0)}),Z}),(0,Me.default)((0,me.default)(ne),"showMaintenanceWindowBanner",()=>{var{showMessageBanner:G}=ne.state;return ke.default.createElement("div",null,G&&ne.checkKpiInMaintenance()&&ke.default.createElement(Ht.default,{type:"info",style:Gt,open:G,onBannerClose:ne.handleMessageBannerClose,isBannerCloseFlag:!0},(0,dt.gettext)("There is an active maintenance window that impacts one or more of the KPI visualizations on the glass table.")))}),(0,Me.default)((0,me.default)(ne),"aggregateSearches",G=>{var Z=G.dataSources;if(ne.state.canRunGlassTableAggregateSearches&&!(0,$e.default)(Z)){if(!ne.timeRange)return;ne.searchAggregatorInstance.registerDatasources(Z,ne.timeRange,ne.refreshRate)}else ne.searchAggregatorInstance.registerDatasources(null)}),(0,Me.default)((0,me.default)(ne),"formatVisualizationOptionsKeys",(G,Z)=>{var[ne,ie]=["",""];return"GET"===Z?(ne="__",ie="."):"POST"===Z&&(ne=".",ie="__"),ne&&ie&&(0,Ie.default)(G,G=>{G.options&&(G.options=(0,it.default)(G.options,(G,Z)=>Z.split(ne).join(ie)))}),G}),(0,Me.default)((0,me.default)(ne),"handleModeChange",G=>{ne.updateUrlMode(G),ne.updateSaveNeededState()}),(0,Me.default)((0,me.default)(ne),"handleErrorClose",()=>{ne.setState({error:null})}),(0,Me.default)((0,me.default)(ne),"getGlobalTimeRangePickerTokenName",G=>{var Z=(0,Re.default)(G,["inputs","input_global_trp","options","token"]);return Z===zt.GLOBAL_TRP_TOKEN_NAME?zt.GLOBAL_TRP_TOKEN_NAME:Z}),(0,Me.default)((0,me.default)(ne),"getGlobalRefreshRateTokenName",G=>{var Z=(0,Re.default)(G,["inputs","input_global_refresh_rate","options","token"]);return Z===zt.GLOBAL_REFRESH_TOKEN_NAME?zt.GLOBAL_REFRESH_TOKEN_NAME:Z}),(0,Me.default)((0,me.default)(ne),"handleTokenChange",G=>{var{definition:Z}=ne.state,ie=ne.getGlobalTimeRangePickerTokenName(Z),se=ne.getGlobalRefreshRateTokenName(Z),ce=(0,qt.addTimeZone)({earliest:(0,Re.default)(G,["default","".concat(ie,".earliest")]),latest:(0,Re.default)(G,["default","".concat(ie,".latest")])}),fe=(0,qt.parseExprToSeconds)((0,Re.default)(G,["default",se],"60s"));ne.currentInputsConfigs={default:(0,at.default)(G.default,["".concat(ie,".earliest"),"".concat(ie,".latest"),se])};var me=ce.earliest&&ce.latest&&!(0,Je.default)(ne.timeRange,ce),ge=fe&&!(0,Je.default)(ne.refreshRate,fe);me&&(ne.timeRange=ce),ge&&(ne.refreshRate=fe),(me||ge)&&ne.aggregateSearches(Z),ne.updateSaveNeededState()}),(0,Me.default)((0,me.default)(ne),"inputsConfigsChanged",()=>{var{oldInputsConfigs:G,currentInputsConfigs:Z}=(0,me.default)(ne);return!(0,Je.default)(G,Z)}),(0,Me.default)((0,me.default)(ne),"updateSaveNeededState",()=>{var{mode:G}=ne.state;"edit"===G&&(ne.inputsConfigsChanged()?ne.setState({saveNeeded:!0}):ne.setState({saveNeeded:!1}))}),(0,Me.default)((0,me.default)(ne),"getCurrentInputsConfigs",G=>{var Z={default:{}},ie=(0,Re.default)(G,["inputs","input_global_trp","options"]),se=(0,Re.default)(G,["inputs","input_global_refresh_rate","options"]),ce=ne.getGlobalTimeRangePickerTokenName(G),fe=ne.getGlobalRefreshRateTokenName(G);if(ie&&(0,ze.default)(ie,"defaultValue")){var[me,ge]=ie.defaultValue.split(",").map(G=>G.trim());Z.default["".concat(ce,".earliest")]=me,Z.default["".concat(ce,".latest")]=ge}return $t.earliest&&$t.latest&&(Z.default=Object.assign({},Z.default,_objectSpread(_objectSpread({},Yt&&{["".concat(ce,".earliest")]:Yt}),Ut&&{["".concat(ce,".latest")]:Ut}))),se&&(0,ze.default)(se,"defaultValue")&&(Z.default[fe]=se.defaultValue),Z}),(0,Me.default)((0,me.default)(ne),"definitionWithUpdatedInputsConfigs",()=>{var{currentInputsConfigs:G}=(0,me.default)(ne),{definition:Z}=ne.state,ie=(0,xe.default)(Z),se=(0,Re.default)(ie,["inputs","input_global_trp","options"]),ce=(0,Re.default)(ie,["inputs","input_global_refresh_rate","options"]),fe=ne.getGlobalTimeRangePickerTokenName(Z),ge=ne.getGlobalRefreshRateTokenName(Z),Ce=(0,Re.default)(G,["default","".concat(fe,".earliest")]),Se=(0,Re.default)(G,["default","".concat(fe,".latest")]),Me=(0,Re.default)(G,["default",ge]);se&&(ie.inputs.input_global_trp.options.defaultValue="".concat(Ce,", ").concat(Se)),ce&&(ie.inputs.input_global_refresh_rate.options.defaultValue=Me);var ke={default:{}};return ke.default["".concat(fe,".earliest")]=Ce,ke.default["".concat(fe,".latest")]=Se,ke.default[ge]=Me,ne.currentInputsConfigs=ne.oldInputsConfigs=ke,ie}),(0,Me.default)((0,me.default)(ne),"updateUrlMode",G=>{ne.setState({mode:G}),$t.action=G,(0,wt.updateURL)((0,kt.uiEditURL)($t))}),(0,Me.default)((0,me.default)(ne),"propagateTitleToDefinition",G=>{G.definition&&G.title!==G.definition.title&&(G.definition.title=G.title)}),(0,Me.default)((0,me.default)(ne),"updateTitle",G=>{(0,wt.setPageTitle)("".concat((0,dt.gettext)("Glass Table")," - ").concat(G))}),(0,Me.default)((0,me.default)(ne),"getUDFFeatureFlags",()=>({enableImageFileUpload:!0,showLastUpdated:!1,showNewDataForViz:!1,enableZoomCenter:!0,enableSmartSourceDS:!0})),(0,Me.default)((0,me.default)(ne),"openDataSourceInSearch",G=>{var{type:Z,options:{ref:ne,query:ie,queryParameters:{earliest:se="",latest:ce=""}={}}}=G;if("ds.search"===Z){var fe={earliest:se,latest:ce};ie&&(fe.q=ie),window.open((0,xt.uiEditURL)(fe),"_blank")}else"ds.savedSearch"===Z&&ne&&window.open((0,xt.uiEditURL)({s:ne}),"_blank")}),(0,Me.default)((0,me.default)(ne),"handleSaveClick",()=>{var{definition:G}=ne.state;ne.inputsConfigsChanged()&&(G=ne.definitionWithUpdatedInputsConfigs()),ne.isDirty()&&ne.saveGT(G).then(()=>{ne.setState({committedDefinition:(0,xe.default)(G),committedSelectedServiceID:ne.state.selectedServiceID,committedSelectedServicesIDs:ne.state.selectedServicesIDs,saveFailed:!1,saveNeeded:!1})}).catch(()=>{ne.setState({saveFailed:!0})})}),(0,Me.default)((0,me.default)(ne),"isDirty",()=>{var{committedDefinition:G,committedSelectedServiceID:Z,committedSelectedServicesIDs:ie,definition:se,saveFailed:ce,saveNeeded:fe,selectedServiceID:me,selectedServicesIDs:ge}=ne.state;return ce||!(0,Je.default)(se,G)||0!==(0,st.default)(ie,ge).length||Z!==me||fe}),ne.dataProviderInstance=Et.default.getInstance(),ne.state={gtData:null,committedDefinition:null,definition:null,error:null,canRunGlassTableAggregateSearches:{},saveNeeded:!1,saveFailed:!1,selectedServiceID:null,selectedServicesIDs:[],committedSelectedServiceID:null,committedSelectedServicesIDs:[],showMessageBanner:!1,isEditableGt:!0,mode:getModeFromUrl(),selectedServices:{}},ne.ackKpiList=[],ne.timeRange=null,ne.refreshRate=60,ne.currentInputsConfigs={},ne.oldInputsConfigs={},ne.gtResponseData=null,ne.gtAccessValidationPromise=ne.gtAccessValidation(),ne.ddEditors=null,ne.dataProviderInstance.getTotalCountOfServices(),ne.maintenanceWindow=new Rt.default(ne.handleMessageBannerOpen),ne.searchAggregatorInstance=Nt.default.getInstance(ne.maintenanceWindow.resultsCallback),ne.createToast=(0,ht.makeCreateToast)(ht.default),ne}return(0,fe.default)(GlassTableEditorBeta,[{key:"componentDidMount",value:function componentDidMount(){var G=this,Z=this.fetchFeatureFlags().then(G=>G.data);Promise.all([Z,this.gtAccessValidationPromise]).then(function(){var Z=(0,se.default)((function*(Z){var[ne]=Z;yield G.dataProviderInstance.registerAvailableServices();var ie=G.formattedGtData(G.gtResponseData,"GET");Zt&&(ie={committedDefinition:(0,xe.default)(ie),definition:ie,title:ie.title,description:ie.description}),G.propagateTitleToDefinition(ie);var se=(0,xe.default)(ie.definition),ce=ie.selected_swap_service_id;Kt&&ie.selected_swap_service_id!==Kt&&(ce=Kt,se=yield G.updateDefinitionForServiceSwapping(ie.selected_swap_service_id,Kt,se)),G.currentInputsConfigs=G.oldInputsConfigs=G.getCurrentInputsConfigs(se),G.removeUrlParams(),G.ddEditors=new Dt.default,G.setState({gtData:ie,definition:se,selectedServiceID:ce,committedDefinition:ie.definition,committedSelectedServiceID:ie.selected_swap_service_id||null,selectedServicesIDs:ie.swap_service_ids||[],committedSelectedServicesIDs:ie.swap_service_ids||[],canRunGlassTableAggregateSearches:G.parseFeatureFlagsData(ne)},()=>{G.aggregateSearches(se)}),G.handleSelectedServices(ie.swap_service_ids)}));return function(G){return Z.apply(this,arguments)}}()).catch(G=>{(0,Bt.handleError)(G).then(G=>{this.setState({error:"".concat((0,dt.gettext)("Cannot view glass table.")," ").concat((0,dt.gettext)("Details"),": ").concat(G)})})})}},{key:"handleSelectedServices",value:(Se=(0,se.default)((function*(G){var Z=this,ne={};(0,De.default)(G,function(){var G=(0,se.default)((function*(G){var ie=yield Z.dataProviderInstance.getService(G);ie&&(ne[ie.svc_id]=ie)}));return function(Z){return G.apply(this,arguments)}}()),this.setState({selectedServices:ne})})),function handleSelectedServices(G){return Se.apply(this,arguments)})},{key:"applyServiceSwapping",value:(Ce=(0,se.default)((function*(G,Z,ne){if(G!==Z){var ie=(0,xe.default)(this.state.definition),se=yield this.updateDefinitionForServiceSwapping(Z,ie,ne);this.aggregateSearches(se),this.setState({definition:se})}})),function applyServiceSwapping(G,Z,ne){return Ce.apply(this,arguments)})},{key:"updateDefinitionForServiceSwapping",value:(ie=(0,se.default)((function*(G,Z,ne){var ie=yield this.dataProviderInstance.getService(G),se=(0,xe.default)(Z.dataSources),ce=Object.keys(se),fe=0;return(0,De.default)(se,Z=>{if(Z.meta&&Z.meta.kpiID){var se,me=Z.meta.kpiID,ge=this.state.selectedServices[Z.meta.serviceID];ge&&ie&&(se=It.default.findMatchingKPI(me,ge.kpis,ie.kpis)),se&&(Z.options.query=Z.options.query.replace(me,se),Z.name=Z.name.replace(ge.svc_title,ie.svc_title),Z.meta.kpiID=se,Z.meta.serviceID=G,ne.editDataSource(ce[fe],Z))}fe+=1}),Z.dataSources=se,Z})),function updateDefinitionForServiceSwapping(G,Z,ne){return ie.apply(this,arguments)})},{key:"enableServiceSwapping",value:(ne=(0,se.default)((function*(G){var Z=this,ne=this.state.definition,ie=yield this.dataProviderInstance.getService(G);yield this.asyncForEach(ne.dataSources,function(){var ne=(0,se.default)((function*(ne){var se=ne.meta.kpiID;if(ne.meta&&se){var ce=ne.meta.serviceID;if(ce!==G){var fe=yield Z.dataProviderInstance.getService(ce),me=It.default.findMatchingKPI(se,fe.kpis,ie.kpis);me&&(ne.options.query.replace(se,me),ne.name.replace(fe.svc_title,ie.svc_title),ne.meta.kpiID=me,ne.meta.serviceID=G)}}}));return function(G){return ne.apply(this,arguments)}}()),this.aggregateSearches(ne),this.setState({definition:ne})})),function enableServiceSwapping(G){return ne.apply(this,arguments)})},{key:"asyncForEach",value:(Z=(0,se.default)((function*(G,Z){for(var ne=0;nefunction _objectSpread(G){for(var Z=1;Z2&&void 0!==arguments[2]?arguments[2]:{};return _objectSpread({base:Object(ie.getTheme)({family:G,colorScheme:Z})},ne)},me={enterprise:{dark:fe("enterprise","dark",se),light:fe("enterprise","light",ce)},prisma:{dark:fe("prisma","dark",se),light:fe("prisma","light",ce)}},ge=function getTheme(G){var Z=Object(ie.getSettingsFromThemedProps)(G),ne=Z.family,se=Z.colorScheme;return me[ne][se]},Ce=function variable(){for(var G=arguments.length,Z=new Array(G),ne=0;ne0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},7324:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(2855)),fe=_interopRequireDefault(ne(2001));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},7328:function(G,Z,ne){},7329:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},7330:function(G,Z,ne){(function(Z){ /*! * Copyright © 2021 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or in part * without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=34)}([,function(G,Z){G.exports=ne(24)},,function(G,Z){G.exports=ne(4077)},,function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"insertMatchForCommand",(function(){return insertMatchForCommand})),ne.d(Z,"insertMatchForHistory",(function(){return insertMatchForHistory})),ne.d(Z,"insertMatchForArg",(function(){return insertMatchForArg})),ne.d(Z,"insertMatchForArgValue",(function(){return insertMatchForArgValue})),ne.d(Z,"insertMatchForTerm",(function(){return insertMatchForTerm})),ne.d(Z,"insertMatchForSearch",(function(){return insertMatchForSearch}));var ie=ne(6),se=ne.n(ie);function insertMatchForCommand(G,Z){var ne=G.selection.getRange(),ie=G.find("|",{backwards:!0,start:ne}),se=G.session.getTokenAt(ne.start.row,ne.start.column);if(ne.setStart(ie.end.row,ie.end.column),se){var ce=se.value.substring(ne.end.column-se.start).match(/\s/);ce?ne.setEnd(ne.end.row,ne.end.column+ce.index):ne.setEnd(ne.end.row,se.start+se.value.length)}G.session.replace(ne,Z.replacement),G.clearSelection()}function insertMatchForHistory(G,Z){for(var ne,ie,ce,fe=se.a.acerequire("ace/token_iterator").TokenIterator,me=G.getCursorPosition(),ge=new fe(G.session,me.row,me.column),Ce=0;ge.stepForward();){if(ne=ge.getCurrentToken(),ie=ge.getCurrentTokenPosition(),"subsearch"===ne.type&&"["===ne.value&&(Ce+=1),"subsearch"===ne.type&&"]"===ne.value[0]){if(ne.value.length>Ce){(ce=ie).column+=Ce;break}Ce-=ne.value.length}if("pipe"===ne.type&&0===Ce){ce=ie;break}}ce?G.selection.moveCursorToPosition(ce):G.selection.moveCursorFileEnd(),G.selection.selectFileStart(),G.insert(Z.replacement)}function insertMatchForArg(G,Z){var ne=G.getCursorPosition(),ie=G.session.getTokenAt(ne.row,ne.column),se=G.session.doc.getLine(ne.row),ce=Z.replacement,fe=ie?ie.start:ne.column,me=ie?ie.start+ie.value.length:ne.column;if(ie&&"quoted"!==ie.type)if(fe=ne.column-Z.relatedArg.length,ne.column!==se.length){var ge=se.substring(fe),Ce=new RegExp("^".concat(Z.relatedArg,"[^=(\\s]*(?:=(\\w*)|(\\(\\w*\\)?))?")),Se=ge.match(Ce);(Se[1]||Se[2])&&(ce+=Se[1]||Se[2]),me=fe+Se[0].length}else me=ne.column;G.selection.moveCursorToPosition({row:ne.row,column:fe}),G.selection.selectToPosition({row:ne.row,column:me}),G.insert(ce)}function insertMatchForArgValue(G,Z){var ne=G.selection.getRange(),ie=G.getCursorPosition(),se=G.session.doc.getLine(ie.row),ce=se.substring(ie.column),fe=G.find(Z.relatedArg,{backwards:!0,wholeWord:!0,start:ne});ne.setStart(fe.start.row,fe.start.column);var me=/\s/.exec(ce),ge=se.length;if(me){var Ce=ie.column+me.index,Se=G.session.getTokenAt(ie.row,Ce+1);Se&&(ge="invalid"!==Se.type?Ce+1:Se.start+Se.value.length)}ne.setEnd(ie.row,ge),G.session.replace(ne,Z.replacement)}function insertMatchForTerm(G,Z){var ne=G.selection.getRange(),ie=G.getCursorPosition(),se=G.session.getTokenAt(ie.row,ie.column),ce=G.session.doc.getLine(ie.row),fe=ce.substring(0,ie.column),me=ce.substring(ie.column),ge=/\s/;if(se){var Ce,Se;if("quoted"===se.type)Ce=(Se=fe.substring(0,se.start).match(/(\w) ?= ?$/))?Se.index:se.start-1;else Ce=(Se=fe.match(/(\w) ?= ?$/))?Se.index:fe.length-1;for(;Ce>0&&!ge.test(fe[Ce]);)Ce-=1;ne.start.column=Ce>0?Ce+1:0;var Me=se.value.length-1;"quoted"===se.type&&'"'===se.value[Me]?ne.end.column=se.start+se.value.length:ie.column!==ce.length&&((Se=me.match(ge))?ne.end.column+=Se.index:ne.end.column=ce.length),G.session.replace(ne,Z.replacement)}else G.session.replace(ne,Z.replacement)}function insertMatchForSearch(G,Z){G.setValue(Z.replacement),G.clearSelection(),G.execCommand("autoFormat")}},function(G,Z){G.exports=ne(4078)},function(G,Z){G.exports=ne(1618)},function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"addNextCommands",(function(){return addNextCommands})),ne.d(Z,"addCommandArgs",(function(){return addCommandArgs})),ne.d(Z,"addCommandHistory",(function(){return addCommandHistory})),ne.d(Z,"addMatchingTerms",(function(){return addMatchingTerms})),ne.d(Z,"addMatchingSearches",(function(){return addMatchingSearches}));var ie=ne(1),se=ne(3),ce=ne(5);function removeNewlines(G){return G.replace(/[\t ]*(\r\n|\r|\n)\s*/g," ")}function addNextCommands(G,Z){var ne=G.commonNextCommands,fe=G.commandErrors,me=fe.length>0?fe[0].unknown:"",ge=Object(ie.escapeRegExp)(me),Ce=new RegExp(ge);ne.forEach((function(G){"test"===G.nextCommand||me&&!Ce.test(G.nextCommand)||Z.push({value:G.nextCommand,replacement:" ".concat(G.nextCommand," "),meta:Object(se._)("Command"),type:"next",command:{name:G.nextCommand,shortDesc:G.description},completer:{insertMatch:ce.insertMatchForCommand},hideDocTooltip:!0})}))}function addCommandArgs(G,Z){var ne=G.commandArgs,fe=G.command.name||"",me=G.command.shortdesc||"",ge=G.command.examples,Ce=ge&&ge.length>0&&ge[0][0];ne.forEach((function(ne){if(ne.valueChoice&&ne.valueChoice.length>0)ne.valueChoice.forEach((function(G){Z.push({value:G,replacement:"".concat(ne.replacement).concat(G," "),relatedArg:ne.arg,meta:Object(se._)("Command Args"),type:"commandArgs",command:{name:fe,shortDesc:me,example:Ce},completer:{insertMatch:ce.insertMatchForArgValue}})}));else if(ne.valueType)Z.push({value:ne.valueType,meta:Object(se._)("Command Args"),type:"commandArgs",command:{name:fe,shortDesc:me,example:Ce},completer:{insertMatch:function insertMatch(){}}});else{var ge=G.matchingSearch,Se=Object(ie.escapeRegExp)(ne.replacement);new RegExp("".concat(Se,"$")).test(ge)||Z.push({relatedArg:ne.arg,value:ne.replacement,replacement:ne.replacement,meta:Object(se._)("Command Args"),type:"commandArgs",command:{name:fe,shortDesc:me,example:Ce},completer:{insertMatch:ce.insertMatchForArg,keepPopupAfterInsert:!0}})}}))}function addCommandHistory(G,Z){var ne=G.commandHistory,ie=G.command.name||"",fe=G.command.shortdesc||"",me=G.command.examples,ge=me&&me.length>0&&me[0][0];ne.forEach((function(G){var ne=G.arg.trim();ne=removeNewlines(ne),Z.push({value:"".concat(ie," ").concat(ne),replacement:"".concat(G.replacement.trim()," "),command:{name:ie,shortDesc:fe,example:ge},meta:Object(se._)("Command History"),type:"command",completer:{insertMatch:ce.insertMatchForHistory}})}))}function addMatchingTerms(G,Z){var ne=G.matchingTerms,ie=G.matchingSearch.trim();ne.forEach((function(G){var ne=G.term.trim();ne!==ie&&Z.push({value:ne,replacement:"".concat(ne," "),meta:Object(se._)("Matching Term"),type:"term",completer:{insertMatch:ce.insertMatchForTerm},hideDocTooltip:!0})}))}function addMatchingSearches(G,Z){var ne=G.matchingSearches,fe=G.matchingSearch.trim(),me=Object(ie.escapeRegExp)(fe),ge=new RegExp("^".concat(me));ne.forEach((function(G){var ne=G.trim();(ne=removeNewlines(ne))!==fe&&ge.test(ne)&&Z.push({value:G,replacement:"".concat(ne," "),meta:Object(se._)("Matching Search"),type:"search",completer:{insertMatch:ce.insertMatchForSearch},hideDocTooltip:!0})}))}},function(G,Z){G.exports=ne(255)},function(G,Z){G.exports=ne(1153)},,function(G,Z){G.exports=ne(7333)},function(G,Z){G.exports=ne(695)},function(G,ne,ie){"use strict";ie.r(ne),ie.d(ne,"maxNextCommands",(function(){return ke})),ie.d(ne,"maxMatchingSearches",(function(){return xe})),ie.d(ne,"maxMatchingTerms",(function(){return De})),ie.d(ne,"maxSearchLength",(function(){return Ie})),ie.d(ne,"maxKeywordLength",(function(){return Re})),ie.d(ne,"maxCommandHistory",(function(){return ze})),ie.d(ne,"maxCommandArgs",(function(){return $e}));var se=ie(1),ce=ie(9),fe=ie.n(ce),me=ie(10),ge=ie(7),Ce=ie(12),Se=ie(13),Me=Object(me.createRESTURL)("search/shelper"),ke=10,xe=5,De=10,Ie=60,Re=40,ze=5,$e=10;function processData(G){return{command:G.command||{},commonNextCommands:G.commonNextCommands||[],commandErrors:G.commandErrors||[],commandArgs:G.commandArgs||[],commandHistory:Object(se.slice)(G.commandHistory||[],0,ze),matchingTerms:Object(se.slice)(G.matchingTerms||[],0,De),matchingSearches:Object(se.slice)(G.matchingSearches||[],0,xe),matchingSearch:G.matchingSearch||""}}ne.default=function fetchSearchHelper(G){var ne=Object(Ce.addLeadingSearchCommand)(G||"*"),ie=fe.a.stringify({namespace:Se.app,search:ne,useTypeahead:!0,showCommandHelp:!0,showCommandHistory:!0,showFieldInfo:!0});return Z("".concat(Me,"?").concat(ie),ge.defaultFetchInit).then(Object(ge.handleResponse)(200)).then(processData)}},,,,,,,,,,,,,,,,,,,,function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return createCompleter}));var ie=ne(6),se=ne.n(ie),ce=ne(8),fe=ne(14);function getCompletions(G,Z,ne,ie,me){var ge=se.a.acerequire("ace/range").Range,Ce=G.selection.getCursor(),Se=new ge(0,0,Ce.row,Ce.column),Me=Z.getTextRange(Se),ke=Object(fe.default)(Me),xe=G.session.getTokenAt(Ce.row,Ce.column);ke.then((function(G){var ne=[];xe&&"quoted"===xe.type||(Object(ce.addNextCommands)(G,ne),Object(ce.addCommandArgs)(G,ne),Object(ce.addCommandHistory)(G,ne)),Se.setStart(Ce.row,0);var ie=Z.getTextRange(Se);if(xe&&"quoted"===xe.type){if('"'===xe.value[0]&&/\S$/.test(ie)){var se=ie.substring(0,xe.start);/=\s*$/.test(se)?/\w ?= ?$/.test(se)&&Object(ce.addMatchingTerms)(G,ne):/[^\\]"$/.test(ie)||Object(ce.addMatchingTerms)(G,ne)}}else xe&&(/[^\s=]$/.test(ie)||/\w ?= ?$/.test(ie))&&Object(ce.addMatchingTerms)(G,ne);Object(ce.addMatchingSearches)(G,ne),me(null,ne)}))}function createCompleter(){return{getCompletions:getCompletions}}}])}).call(this,ne(189))},7331:function(G,Z,ne){(function(G){(function(){var G=function(){return this}();!G&&"undefined"!=typeof window&&(G=window);var t=function(G,Z,ne){"string"==typeof G?(2==arguments.length&&(ne=Z),t.modules[G]||(t.payloads[G]=ne,t.modules[G]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n=function(G,Z,ne){if("string"==typeof Z){var ie=s(G,Z);if(null!=ie)return ne&&ne(),ie}else if("[object Array]"===Object.prototype.toString.call(Z)){for(var se=[],ce=0,fe=Z.length;cene.length)&&(Z=ne.length),Z-=G.length;var ie=ne.indexOf(G,Z);return-1!==ie&&ie===Z})),String.prototype.repeat||r(String.prototype,"repeat",(function(G){for(var Z="",ne=this;G>0;)1&G&&(Z+=ne),(G>>=1)&&(ne+=ne);return Z})),String.prototype.includes||r(String.prototype,"includes",(function(G,Z){return-1!=this.indexOf(G,Z)})),Object.assign||(Object.assign=function(G){if(null==G)throw new TypeError("Cannot convert undefined or null to object");for(var Z=Object(G),ne=1;ne>>0,ie=arguments[1],se=ie>>0,ce=se<0?Math.max(ne+se,0):Math.min(se,ne),fe=arguments[2],me=void 0===fe?ne:fe>>0,ge=me<0?Math.max(ne+me,0):Math.min(me,ne);ce0;)1&Z&&(ne+=G),(Z>>=1)&&(G+=G);return ne};var ie=/^\s\s*/,se=/\s\s*$/;Z.stringTrimLeft=function(G){return G.replace(ie,"")},Z.stringTrimRight=function(G){return G.replace(se,"")},Z.copyObject=function(G){var Z={};for(var ne in G)Z[ne]=G[ne];return Z},Z.copyArray=function(G){for(var Z=[],ne=0,ie=G.length;ne=0?parseFloat((ce.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((ce.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),Z.isOldIE=Z.isIE&&Z.isIE<9,Z.isGecko=Z.isMozilla=ce.match(/ Gecko\/\d+/),Z.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),Z.isWebKit=parseFloat(ce.split("WebKit/")[1])||void 0,Z.isChrome=parseFloat(ce.split(" Chrome/")[1])||void 0,Z.isEdge=parseFloat(ce.split(" Edge/")[1])||void 0,Z.isAIR=ce.indexOf("AdobeAIR")>=0,Z.isAndroid=ce.indexOf("Android")>=0,Z.isChromeOS=ce.indexOf(" CrOS ")>=0,Z.isIOS=/iPad|iPhone|iPod/.test(ce)&&!window.MSStream,Z.isIOS&&(Z.isMac=!0),Z.isMobile=Z.isIOS||Z.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(G,Z,ne){"use strict";function u(){var G=ce;ce=null,G&&G.forEach((function(G){a(G[0],G[1])}))}function a(G,ne,ie){if("undefined"!=typeof document){if(ce)if(ie)u();else if(!1===ie)return ce.push([G,ne]);if(!se){var fe=ie;ie&&ie.getRootNode&&(fe=ie.getRootNode())&&fe!=ie||(fe=document);var me=fe.ownerDocument||fe;if(ne&&Z.hasCssString(ne,fe))return null;ne&&(G+="\n/*# sourceURL=ace/css/"+ne+" */");var ge=Z.createElement("style");ge.appendChild(me.createTextNode(G)),ne&&(ge.id=ne),fe==me&&(fe=Z.getDocumentHead(me)),fe.insertBefore(ge,fe.firstChild)}}}var ie=G("./useragent");Z.buildDom=function l(G,Z,ne){if("string"==typeof G&&G){var ie=document.createTextNode(G);return Z&&Z.appendChild(ie),ie}if(!Array.isArray(G))return G&&G.appendChild&&Z&&Z.appendChild(G),G;if("string"!=typeof G[0]||!G[0]){for(var se=[],ce=0;ce=1.5,ie.isChromeOS&&(Z.HI_DPI=!1),"undefined"!=typeof document){var fe=document.createElement("div");Z.HI_DPI&&void 0!==fe.style.transform&&(Z.HAS_CSS_TRANSFORMS=!0),!ie.isEdge&&void 0!==fe.style.animationName&&(Z.HAS_CSS_ANIMATION=!0),fe=null}Z.HAS_CSS_TRANSFORMS?Z.translate=function(G,Z,ne){G.style.transform="translate("+Math.round(Z)+"px, "+Math.round(ne)+"px)"}:Z.translate=function(G,Z,ne){G.style.top=Math.round(ne)+"px",G.style.left=Math.round(Z)+"px"}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(G,Z,ne){"use strict";var ie=G("./dom");Z.get=function(G,Z){var ne=new XMLHttpRequest;ne.open("GET",G,!0),ne.onreadystatechange=function(){4===ne.readyState&&Z(ne.responseText)},ne.send(null)},Z.loadScript=function(G,Z){var ne=ie.getDocumentHead(),se=document.createElement("script");se.src=G,ne.appendChild(se),se.onload=se.onreadystatechange=function(G,ne){!ne&&se.readyState&&"loaded"!=se.readyState&&"complete"!=se.readyState||(se=se.onload=se.onreadystatechange=null,ne||Z())}},Z.qualifyURL=function(G){var Z=document.createElement("a");return Z.href=G,Z.href}})),ace.define("ace/lib/oop",["require","exports","module"],(function(G,Z,ne){"use strict";Z.inherits=function(G,Z){G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})},Z.mixin=function(G,Z){for(var ne in Z)G[ne]=Z[ne];return G},Z.implement=function(G,ne){Z.mixin(G,ne)}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(G,Z,ne){"use strict";var ie={},i=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};ie._emit=ie._dispatchEvent=function(G,Z){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var ne=this._eventRegistry[G]||[],ie=this._defaultHandlers[G];if(ne.length||ie){"object"==typeof Z&&Z||(Z={}),Z.type||(Z.type=G),Z.stopPropagation||(Z.stopPropagation=i),Z.preventDefault||(Z.preventDefault=s),ne=ne.slice();for(var se=0;se1&&(se=ne[ne.length-2]);var fe=me[Z+"Path"];return null==fe?fe=me.basePath:"/"==ie&&(Z=ie=""),fe&&"/"!=fe.slice(-1)&&(fe+="/"),fe+Z+ie+se+this.get("suffix")},Z.setModuleUrl=function(G,Z){return me.$moduleUrls[G]=Z};var ge,a=function(Z,ne){return"ace/theme/textmate"===Z||"./theme/textmate"===Z?ne(null,G("./theme/textmate")):ge?ge(Z,ne):void console.error("loader is not configured")};Z.setLoader=function(G){ge=G},Z.dynamicModules=Object.create(null),Z.$loading={},Z.$loaded={},Z.loadModule=function(G,ne){var ie,ce;Array.isArray(G)&&(ce=G[0],G=G[1]);var o=function(ie){if(ie&&!Z.$loading[G])return ne&&ne(ie);if(Z.$loading[G]||(Z.$loading[G]=[]),Z.$loading[G].push(ne),!(Z.$loading[G].length>1)){var o=function(){a(G,(function(ne,ie){ie&&(Z.$loaded[G]=ie),Z._emit("load.module",{name:G,module:ie});var se=Z.$loading[G];Z.$loading[G]=null,se.forEach((function(G){G&&G(ie)}))}))};if(!Z.get("packaged"))return o();se.loadScript(Z.moduleUrl(G,ce),o),l()}};if(Z.dynamicModules[G])Z.dynamicModules[G]().then((function(G){G.default?o(G.default):o(G)}));else{try{ie=this.$require(G)}catch(G){}o(ie||Z.$loaded[G])}},Z.$require=function(G){if("function"==typeof ne.require){return ne.require(G)}},Z.setModuleLoader=function(G,ne){Z.dynamicModules[G]=ne};var l=function(){!me.basePath&&!me.workerPath&&!me.modePath&&!me.themePath&&!Object.keys(me.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),l=function(){})};Z.version="1.30.0"})),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],(function(G,Z,ie){"use strict";function s(Z){if(ce&&ce.document){se.set("packaged",Z||G.packaged||ie.packaged||ce.define&&ne(1804).packaged);var fe={},me="",ge=document.currentScript||document._currentScript,Ce=ge&&ge.ownerDocument||document;ge&&ge.src&&(me=ge.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var Se=Ce.getElementsByTagName("script"),Me=0;Me ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(G,Z){return 0==this.compare(G,Z)},e.prototype.compareRange=function(G){var Z,ne=G.end,ie=G.start;return 1==(Z=this.compare(ne.row,ne.column))?1==(Z=this.compare(ie.row,ie.column))?2:0==Z?1:0:-1==Z?-2:-1==(Z=this.compare(ie.row,ie.column))?-1:1==Z?42:0},e.prototype.comparePoint=function(G){return this.compare(G.row,G.column)},e.prototype.containsRange=function(G){return 0==this.comparePoint(G.start)&&0==this.comparePoint(G.end)},e.prototype.intersects=function(G){var Z=this.compareRange(G);return-1==Z||0==Z||1==Z},e.prototype.isEnd=function(G,Z){return this.end.row==G&&this.end.column==Z},e.prototype.isStart=function(G,Z){return this.start.row==G&&this.start.column==Z},e.prototype.setStart=function(G,Z){"object"==typeof G?(this.start.column=G.column,this.start.row=G.row):(this.start.row=G,this.start.column=Z)},e.prototype.setEnd=function(G,Z){"object"==typeof G?(this.end.column=G.column,this.end.row=G.row):(this.end.row=G,this.end.column=Z)},e.prototype.inside=function(G,Z){return 0==this.compare(G,Z)&&(!this.isEnd(G,Z)&&!this.isStart(G,Z))},e.prototype.insideStart=function(G,Z){return 0==this.compare(G,Z)&&!this.isEnd(G,Z)},e.prototype.insideEnd=function(G,Z){return 0==this.compare(G,Z)&&!this.isStart(G,Z)},e.prototype.compare=function(G,Z){return this.isMultiLine()||G!==this.start.row?Gthis.end.row?1:this.start.row===G?Z>=this.start.column?0:-1:this.end.row===G?Z<=this.end.column?0:1:0:Zthis.end.column?1:0},e.prototype.compareStart=function(G,Z){return this.start.row==G&&this.start.column==Z?-1:this.compare(G,Z)},e.prototype.compareEnd=function(G,Z){return this.end.row==G&&this.end.column==Z?1:this.compare(G,Z)},e.prototype.compareInside=function(G,Z){return this.end.row==G&&this.end.column==Z?1:this.start.row==G&&this.start.column==Z?-1:this.compare(G,Z)},e.prototype.clipRows=function(G,Z){if(this.end.row>Z)var ne={row:Z+1,column:0};else if(this.end.rowZ)var ie={row:Z+1,column:0};else if(this.start.row1?++Me>4&&(Me=1):Me=1,ce.isIE){var fe=Math.abs(G.clientX-me)>5||Math.abs(G.clientY-Ce)>5;Se&&!fe||(Me=1),Se&&clearTimeout(Se),Se=setTimeout((function(){Se=null}),ne[Me-1]||600),1==Me&&(me=G.clientX,Ce=G.clientY)}if(G._clicks=Me,ie[se]("mousedown",G),Me>4)Me=0;else if(Me>1)return ie[se](ke[Me],G)}var me,Ce,Se,Me=0,ke={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(G)||(G=[G]),G.forEach((function(G){ge(G,"mousedown",p,fe)}))};var p=function(G){return 0|(G.ctrlKey?1:0)|(G.altKey?2:0)|(G.shiftKey?4:0)|(G.metaKey?8:0)};if(Z.getModifierString=function(G){return se.KEY_MODS[p(G)]},Z.addCommandKeyListener=function(G,ne,ie){if(ce.isOldGecko||ce.isOpera&&!("KeyboardEvent"in window)){var se=null;ge(G,"keydown",(function(G){se=G.keyCode}),ie),ge(G,"keypress",(function(G){return d(ne,G,se)}),ie)}else{var me=null;ge(G,"keydown",(function(G){fe[G.keyCode]=(fe[G.keyCode]||0)+1;var Z=d(ne,G,G.keyCode);return me=G.defaultPrevented,Z}),ie),ge(G,"keypress",(function(G){me&&(G.ctrlKey||G.altKey||G.shiftKey||G.metaKey)&&(Z.stopEvent(G),me=null)}),ie),ge(G,"keyup",(function(G){fe[G.keyCode]=null}),ie),fe||(v(),ge(window,"focus",v))}},"object"==typeof window&&window.postMessage&&!ce.isOldIE){var Se=1;Z.nextTick=function(G,ne){ne=ne||window;var ie="zero-timeout-message-"+Se++,i=function(se){se.data==ie&&(Z.stopPropagation(se),Ce(ne,"message",i),G())};ge(ne,"message",i),ne.postMessage(ie,"*")}}Z.$idleBlocked=!1,Z.onIdle=function(G,ne){return setTimeout((function r(){Z.$idleBlocked?setTimeout(r,100):G()}),ne)},Z.$idleBlockId=null,Z.blockIdle=function(G){Z.$idleBlockId&&clearTimeout(Z.$idleBlockId),Z.$idleBlocked=!0,Z.$idleBlockId=setTimeout((function(){Z.$idleBlocked=!1}),G||100)},Z.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),Z.nextFrame?Z.nextFrame=Z.nextFrame.bind(window):Z.nextFrame=function(G){setTimeout(G,17)}})),ace.define("ace/clipboard",["require","exports","module"],(function(G,Z,ne){"use strict";var ie;ne.exports={lineMode:!1,pasteCancelled:function(){return!!(ie&&ie>Date.now()-50)||(ie=!1)},cancel:function(){ie=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(G,Z,ne){"use strict";var ie=G("../lib/event"),se=G("../config").nls,ce=G("../lib/useragent"),fe=G("../lib/dom"),me=G("../lib/lang"),ge=G("../clipboard"),Ce=ce.isChrome<18,Se=ce.isIE,Me=ce.isChrome>63,ke=400,xe=G("../lib/keys"),De=xe.KEY_MODS,Ie=ce.isIOS,Re=Ie?/\s/:/\n/,ze=ce.isMobile;Z.TextInput=function(G,Z){function Q(){ct=!0,ne.blur(),ne.focus(),ct=!1}function et(){clearTimeout(xt),xt=setTimeout((function(){at&&(ne.style.cssText=at,at=""),Z.renderer.$isMousePressed=!1,Z.renderer.$keepTextAreaAtCursor&&Z.renderer.$moveTextAreaToCursor()}),0)}var ne=fe.createElement("textarea");ne.className="ace_text-input",ne.setAttribute("wrap","off"),ne.setAttribute("autocorrect","off"),ne.setAttribute("autocapitalize","off"),ne.setAttribute("spellcheck",!1),ne.style.opacity="0",G.insertBefore(ne,G.firstChild);var $e=!1,Je=!1,it=!1,ot=!1,at="";ze||(ne.style.fontSize="1px");var st=!1,ct=!1,ut="",dt=0,ht=0,ft=0,_t=Number.MAX_SAFE_INTEGER,yt=Number.MIN_SAFE_INTEGER,vt=0;try{var wt=document.activeElement===ne}catch(G){}this.setNumberOfExtraLines=function(G){_t=Number.MAX_SAFE_INTEGER,yt=Number.MIN_SAFE_INTEGER,vt=G<0?0:G},this.setAriaOptions=function(G){if(G.activeDescendant?(ne.setAttribute("aria-haspopup","true"),ne.setAttribute("aria-autocomplete",G.inline?"both":"list"),ne.setAttribute("aria-activedescendant",G.activeDescendant)):(ne.setAttribute("aria-haspopup","false"),ne.setAttribute("aria-autocomplete","both"),ne.removeAttribute("aria-activedescendant")),G.role&&ne.setAttribute("role",G.role),G.setLabel&&(ne.setAttribute("aria-roledescription",se("editor")),Z.session)){var ie=Z.session.selection.cursor.row;ne.setAttribute("aria-label",se("Cursor at row $0",[ie+1]))}},this.setAriaOptions({role:"textbox"}),ie.addListener(ne,"blur",(function(G){ct||(Z.onBlur(G),wt=!1)}),Z),ie.addListener(ne,"focus",(function(G){if(!ct){if(wt=!0,ce.isEdge)try{if(!document.hasFocus())return}catch(G){}Z.onFocus(G),ce.isEdge?setTimeout(Ct):Ct()}}),Z),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:Z.renderer.enableKeyboardAccessibility}),at||Me||"browser"==this.$focusScroll)return ne.focus({preventScroll:!0});var G=ne.style.top;ne.style.position="fixed",ne.style.top="0px";try{var ie=0!=ne.getBoundingClientRect().top}catch(G){return}var se=[];if(ie)for(var ce=ne.parentElement;ce&&1==ce.nodeType;)se.push(ce),ce.setAttribute("ace_nocontext",!0),ce=!ce.parentElement&&ce.getRootNode?ce.getRootNode().host:ce.parentElement;ne.focus({preventScroll:!0}),ie&&se.forEach((function(G){G.removeAttribute("ace_nocontext")})),setTimeout((function(){ne.style.position="","0px"==ne.style.top&&(ne.style.top=G)}),0)},this.blur=function(){ne.blur()},this.isFocused=function(){return wt},Z.on("beforeEndOperation",(function(){var G=Z.curOp,ie=G&&G.command&&G.command.name;if("insertstring"!=ie){var se=ie&&(G.docChanged||G.selectionChanged);it&&se&&(ut=ne.value="",K()),Ct()}}));var P=function(G,ne){for(var ie=ne,se=1;se<=G-_t&&se<2*vt+1;se++)ie+=Z.session.getLine(G-se).length+1;return ie},Ct=Ie?function(G){if(wt&&(!$e||G)&&!ot){G||(G="");var ie="\n ab"+G+"cde fg\n";ie!=ne.value&&(ne.value=ut=ie);var se=4+(G.length||(Z.selection.isEmpty()?0:1));(4!=dt||ht!=se)&&ne.setSelectionRange(4,se),dt=4,ht=se}}:function(){if(!it&&!ot&&(wt||Mt)){it=!0;var G=0,ie=0,se="";if(Z.session){var ce=Z.selection,fe=ce.getRange(),me=ce.cursor.row;me===yt+1?yt=(_t=yt+1)+2*vt:me===_t-1?_t=(yt=_t-1)-2*vt:(me<_t-1||me>yt+1)&&(_t=me>vt?me-vt:0,yt=me>vt?me+vt:2*vt);for(var ge=[],Ce=_t;Ce<=yt;Ce++)ge.push(Z.session.getLine(Ce));if(se=ge.join("\n"),G=P(fe.start.row,fe.start.column),ie=P(fe.end.row,fe.end.column),fe.start.row<_t){var Se=Z.session.getLine(_t-1);G=fe.start.row<_t-1?0:G,ie+=Se.length+1,se=Se+"\n"+se}else if(fe.end.row>yt){var Me=Z.session.getLine(yt+1);ie=fe.end.row>yt+1?Me.length:fe.end.column,ie+=se.length+1,se=se+"\n"+Me}else ze&&me>0&&(se="\n"+se,ie+=1,G+=1);se.length>ke&&(G0&&ut[ke]==G[ke];)ke++,me--;for(Ce=Ce.slice(ke),ke=1;ge>0&&ut.length-ke>dt-1&&ut[ut.length-ke]==G[G.length-ke];)ke++,ge--;Se-=ke-1,Me-=ke-1;var xe=Ce.length-ke+1;if(xe<0&&(me=-xe,xe=0),Ce=Ce.slice(0,xe),!(ie||Ce||Se||me||ge||Me))return"";ot=!0;var De=!1;return ce.isAndroid&&". "==Ce&&(Ce=" ",De=!0),Ce&&!me&&!ge&&!Se&&!Me||st?Z.onTextInput(Ce):Z.onTextInput(Ce,{extendLeft:me,extendRight:ge,restoreStart:Se,restoreEnd:Me}),ot=!1,ut=G,dt=se,ht=fe,ft=Me,De?"\n":Ce},R=function(G){if(it)return J();if(G&&G.inputType){if("historyUndo"==G.inputType)return Z.execCommand("undo");if("historyRedo"==G.inputType)return Z.execCommand("redo")}var ie=ne.value,se=q(ie,!0);(ie.length>500||Re.test(se)||ze&&dt<1&&dt==ht)&&Ct()},U=function(G,Z,ne){var ie=G.clipboardData||window.clipboardData;if(ie&&!Ce){var se=Se||ne?"Text":"text/plain";try{return Z?!1!==ie.setData(se,Z):ie.getData(se)}catch(G){if(!ne)return U(G,Z,!0)}}},z=function(G,se){var ce=Z.getCopyText();if(!ce)return ie.preventDefault(G);U(G,ce)?(Ie&&(Ct(ce),$e=ce,setTimeout((function(){$e=!1}),10)),se?Z.onCut():Z.onCopy(),ie.preventDefault(G)):($e=!0,ne.value=ce,ne.select(),setTimeout((function(){$e=!1,Ct(),se?Z.onCut():Z.onCopy()})))},W=function(G){z(G,!0)},X=function(G){z(G,!1)},V=function(G){var se=U(G);ge.pasteCancelled()||("string"==typeof se?(se&&Z.onPaste(se,G),ce.isIE&&setTimeout(Ct),ie.preventDefault(G)):(ne.value="",Je=!0))};ie.addCommandKeyListener(ne,Z.onCommandKey.bind(Z),Z),ie.addListener(ne,"select",(function(G){it||($e?$e=!1:function(G){return 0===G.selectionStart&&G.selectionEnd>=ut.length&&G.value===ut&&ut&&G.selectionEnd!==ht}(ne)?(Z.selectAll(),Ct()):ze&&ne.selectionStart!=dt&&Ct())}),Z),ie.addListener(ne,"input",R,Z),ie.addListener(ne,"cut",W,Z),ie.addListener(ne,"copy",X,Z),ie.addListener(ne,"paste",V,Z),(!("oncut"in ne)||!("oncopy"in ne)||!("onpaste"in ne))&&ie.addListener(G,"keydown",(function(G){if((!ce.isMac||G.metaKey)&&G.ctrlKey)switch(G.keyCode){case 67:X(G);break;case 86:V(G);break;case 88:W(G)}}),Z);var J=function(){if(it&&Z.onCompositionUpdate&&!Z.$readOnly){if(st)return Q();if(it.useTextareaForIME)Z.onCompositionUpdate(ne.value);else{var G=ne.value;q(G),it.markerRange&&(it.context&&(it.markerRange.start.column=it.selectionStart=it.context.compositionStartOffset),it.markerRange.end.column=it.markerRange.start.column+ht-it.selectionStart+ft)}}},K=function(G){Z.onCompositionEnd&&!Z.$readOnly&&(it=!1,Z.onCompositionEnd(),Z.off("mousedown",Q),G&&R())},kt=me.delayedCall(J,50).schedule.bind(null,null);ie.addListener(ne,"compositionstart",(function(G){if(!it&&Z.onCompositionStart&&!Z.$readOnly&&(it={},!st)){G.data&&(it.useTextareaForIME=!1),setTimeout(J,0),Z._signal("compositionStart"),Z.on("mousedown",Q);var ie=Z.getSelectionRange();ie.end.row=ie.start.row,ie.end.column=ie.start.column,it.markerRange=ie,it.selectionStart=dt,Z.onCompositionStart(it),it.useTextareaForIME?(ut=ne.value="",dt=0,ht=0):(ne.msGetInputContext&&(it.context=ne.msGetInputContext()),ne.getInputContext&&(it.context=ne.getInputContext()))}}),Z),ie.addListener(ne,"compositionupdate",J,Z),ie.addListener(ne,"keyup",(function Y(G){27==G.keyCode&&ne.value.lengthht&&"\n"==ut[ce]?fe=xe.end:ieht&&ut.slice(0,ce).split("\n").length>2?fe=xe.down:ce>ht&&" "==ut[ce-1]?(fe=xe.right,me=De.option):(ce>ht||ce==ht&&ht!=dt&&ie==ce)&&(fe=xe.right),ie!==ce&&(me|=De.shift),fe){if(!Z.onCommandKey({},me,fe)&&Z.commands){fe=xe.keyCodeToString(fe);var ge=Z.commands.findKeyCommand(me,fe);ge&&Z.execCommand(ge)}dt=ie,ht=ce,Ct("")}}};document.addEventListener("selectionchange",s),Z.on("destroy",(function(){document.removeEventListener("selectionchange",s)}))}(0,Z,ne),this.destroy=function(){ne.parentElement&&ne.parentElement.removeChild(ne)}},Z.$setUserAgentForTests=function(G,Z){ze=G,Ie=Z}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(G,Z,ne){"use strict";function a(G,Z){if(G.start.row==G.end.row)var ne=2*Z.column-G.start.column-G.end.column;else if(G.start.row!=G.end.row-1||G.start.column||G.end.column)ne=2*Z.row-G.start.row-G.end.row;else var ne=Z.column-4;return ne<0?{cursor:G.start,anchor:G.end}:{cursor:G.end,anchor:G.start}}var ie=G("../lib/useragent"),se=function(){function e(G){G.$clickSelection=null;var Z=G.editor;Z.setDefaultHandler("mousedown",this.onMouseDown.bind(G)),Z.setDefaultHandler("dblclick",this.onDoubleClick.bind(G)),Z.setDefaultHandler("tripleclick",this.onTripleClick.bind(G)),Z.setDefaultHandler("quadclick",this.onQuadClick.bind(G)),Z.setDefaultHandler("mousewheel",this.onMouseWheel.bind(G));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(Z){G[Z]=this[Z]}),this),G.selectByLines=this.extendSelectionBy.bind(G,"getLineRange"),G.selectByWords=this.extendSelectionBy.bind(G,"getWordRange")}return e.prototype.onMouseDown=function(G){var Z=G.inSelection(),ne=G.getDocumentPosition();this.mousedownEvent=G;var se=this.editor,ce=G.getButton();return 0!==ce?((se.getSelectionRange().isEmpty()||1==ce)&&se.selection.moveToPosition(ne),void(2==ce&&(se.textInput.onContextMenu(G.domEvent),ie.isMozilla||G.preventDefault()))):(this.mousedownEvent.time=Date.now(),!Z||se.isFocused()||(se.focus(),!this.$focusTimeout||this.$clickSelection||se.inMultiSelectMode)?(this.captureMouse(G),this.startSelect(ne,G.domEvent._clicks>1),G.preventDefault()):(this.setState("focusWait"),void this.captureMouse(G)))},e.prototype.startSelect=function(G,Z){G=G||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var ne=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?ne.selection.selectToPosition(G):Z||ne.selection.moveToPosition(G),Z||this.select(),ne.setStyle("ace_selecting"),this.setState("select"))},e.prototype.select=function(){var G,Z=this.editor,ne=Z.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var ie=this.$clickSelection.comparePoint(ne);if(-1==ie)G=this.$clickSelection.end;else if(1==ie)G=this.$clickSelection.start;else{var se=a(this.$clickSelection,ne);ne=se.cursor,G=se.anchor}Z.selection.setSelectionAnchor(G.row,G.column)}Z.selection.selectToPosition(ne),Z.renderer.scrollCursorIntoView()},e.prototype.extendSelectionBy=function(G){var Z,ne=this.editor,ie=ne.renderer.screenToTextCoordinates(this.x,this.y),se=ne.selection[G](ie.row,ie.column);if(this.$clickSelection){var ce=this.$clickSelection.comparePoint(se.start),fe=this.$clickSelection.comparePoint(se.end);if(-1==ce&&fe<=0)Z=this.$clickSelection.end,se.end.row==ie.row&&se.end.column==ie.column||(ie=se.start);else if(1==fe&&ce>=0)Z=this.$clickSelection.start,se.start.row==ie.row&&se.start.column==ie.column||(ie=se.end);else if(-1==ce&&1==fe)ie=se.end,Z=se.start;else{var me=a(this.$clickSelection,ie);ie=me.cursor,Z=me.anchor}ne.selection.setSelectionAnchor(Z.row,Z.column)}ne.selection.selectToPosition(ie),ne.renderer.scrollCursorIntoView()},e.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},e.prototype.focusWait=function(){var G=function u(G,Z,ne,ie){return Math.sqrt(Math.pow(ne-G,2)+Math.pow(ie-Z,2))}(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),Z=Date.now();(G>0||Z-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},e.prototype.onDoubleClick=function(G){var Z=G.getDocumentPosition(),ne=this.editor,ie=ne.session.getBracketRange(Z);ie?(ie.isEmpty()&&(ie.start.column--,ie.end.column++),this.setState("select")):(ie=ne.selection.getWordRange(Z.row,Z.column),this.setState("selectByWords")),this.$clickSelection=ie,this.select()},e.prototype.onTripleClick=function(G){var Z=G.getDocumentPosition(),ne=this.editor;this.setState("selectByLines");var ie=ne.getSelectionRange();ie.isMultiLine()&&ie.contains(Z.row,Z.column)?(this.$clickSelection=ne.selection.getLineRange(ie.start.row),this.$clickSelection.end=ne.selection.getLineRange(ie.end.row).end):this.$clickSelection=ne.selection.getLineRange(Z.row),this.select()},e.prototype.onQuadClick=function(G){var Z=this.editor;Z.selectAll(),this.$clickSelection=Z.getSelectionRange(),this.setState("selectAll")},e.prototype.onMouseWheel=function(G){if(!G.getAccelKey()){G.getShiftKey()&&G.wheelY&&!G.wheelX&&(G.wheelX=G.wheelY,G.wheelY=0);var Z=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var ne=this.$lastScroll,ie=G.domEvent.timeStamp,se=ie-ne.t,ce=se?G.wheelX/se:ne.vx,fe=se?G.wheelY/se:ne.vy;se<550&&(ce=(ce+ne.vx)/2,fe=(fe+ne.vy)/2);var me=Math.abs(ce/fe),ge=!1;if(me>=1&&Z.renderer.isScrollableBy(G.wheelX*G.speed,0)&&(ge=!0),me<=1&&Z.renderer.isScrollableBy(0,G.wheelY*G.speed)&&(ge=!0),ge)ne.allowed=ie;else if(ie-ne.allowed<550){Math.abs(ce)<=1.5*Math.abs(ne.vx)&&Math.abs(fe)<=1.5*Math.abs(ne.vy)?(ge=!0,ne.allowed=ie):ne.allowed=0}return ne.t=ie,ne.vx=ce,ne.vy=fe,ge?(Z.renderer.scrollBy(G.wheelX*G.speed,G.wheelY*G.speed),G.stop()):void 0}},e}();se.prototype.selectEnd=se.prototype.selectByLinesEnd,se.prototype.selectAllEnd=se.prototype.selectByLinesEnd,se.prototype.selectByWordsEnd=se.prototype.selectByLinesEnd,Z.DefaultHandlers=se})),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],(function(G,Z,ne){"use strict";var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=this&&this.__values||function(G){var Z="function"==typeof Symbol&&Symbol.iterator,ne=Z&&G[Z],ie=0;if(ne)return ne.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ie>=G.length&&(G=void 0),{value:G&&G[ie++],done:!G}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")},ce=G("./lib/dom"),fe=G("./range").Range,me="ace_tooltip",ge=function(){function e(G){this.isOpen=!1,this.$element=null,this.$parentNode=G}return e.prototype.$init=function(){return this.$element=ce.createElement("div"),this.$element.className=me,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},e.prototype.getElement=function(){return this.$element||this.$init()},e.prototype.setText=function(G){this.getElement().textContent=G},e.prototype.setHtml=function(G){this.getElement().innerHTML=G},e.prototype.setPosition=function(G,Z){this.getElement().style.left=G+"px",this.getElement().style.top=Z+"px"},e.prototype.setClassName=function(G){ce.addCssClass(this.getElement(),G)},e.prototype.setTheme=function(G){this.$element.className=me+" "+(G.isDark?"ace_dark ":"")+(G.cssClass||"")},e.prototype.show=function(G,Z,ne){null!=G&&this.setText(G),null!=Z&&null!=ne&&this.setPosition(Z,ne),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},e.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=me,this.isOpen=!1)},e.prototype.getHeight=function(){return this.getElement().offsetHeight},e.prototype.getWidth=function(){return this.getElement().offsetWidth},e.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e}(),Ce=new(function(){function e(){this.popups=[]}return e.prototype.addPopup=function(G){this.popups.push(G),this.updatePopups()},e.prototype.removePopup=function(G){var Z=this.popups.indexOf(G);-1!==Z&&(this.popups.splice(Z,1),this.updatePopups())},e.prototype.updatePopups=function(){var G,Z,ne,ie;this.popups.sort((function(G,Z){return Z.priority-G.priority}));var ce=[];try{for(var fe=se(this.popups),me=fe.next();!me.done;me=fe.next()){var ge=me.value,Ce=!0;try{for(var Se=(ne=void 0,se(ce)),Me=Se.next();!Me.done;Me=Se.next()){var ke=Me.value;if(this.doPopupsOverlap(ke,ge)){Ce=!1;break}}}catch(G){ne={error:G}}finally{try{Me&&!Me.done&&(ie=Se.return)&&ie.call(Se)}finally{if(ne)throw ne.error}}Ce?ce.push(ge):ge.hide()}}catch(Z){G={error:Z}}finally{try{me&&!me.done&&(Z=fe.return)&&Z.call(fe)}finally{if(G)throw G.error}}},e.prototype.doPopupsOverlap=function(G,Z){var ne=G.getElement().getBoundingClientRect(),ie=Z.getElement().getBoundingClientRect();return ne.leftie.left&&ne.topie.top},e}());Z.popupManager=Ce,Z.Tooltip=ge;var Se=function(G){function t(Z){void 0===Z&&(Z=document.body);var ne=G.call(this,Z)||this;ne.timeout=void 0,ne.lastT=0,ne.idleTime=350,ne.lastEvent=void 0,ne.onMouseOut=ne.onMouseOut.bind(ne),ne.onMouseMove=ne.onMouseMove.bind(ne),ne.waitForHover=ne.waitForHover.bind(ne),ne.hide=ne.hide.bind(ne);var ie=ne.getElement();return ie.style.whiteSpace="pre-wrap",ie.style.pointerEvents="auto",ie.addEventListener("mouseout",ne.onMouseOut),ie.tabIndex=-1,ie.addEventListener("blur",function(){ie.contains(document.activeElement)||this.hide()}.bind(ne)),ne}return ie(t,G),t.prototype.addToEditor=function(G){G.on("mousemove",this.onMouseMove),G.on("mousedown",this.hide),G.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},t.prototype.removeFromEditor=function(G){G.off("mousemove",this.onMouseMove),G.off("mousedown",this.hide),G.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(G,Z){this.lastEvent=G,this.lastT=Date.now();var ne=Z.$mouseHandler.isMousePressed;if(this.isOpen){var ie=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(ie.row,ie.column)||ne||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||ne||(this.lastEvent=G,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var G=Date.now()-this.lastT;this.idleTime-G>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-G):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},t.prototype.isOutsideOfText=function(G){var Z=G.editor,ne=G.getDocumentPosition(),ie=Z.session.getLine(ne.row);if(ne.column==ie.length){var se=Z.renderer.pixelToScreenCoordinates(G.clientX,G.clientY),ce=Z.session.documentToScreenPosition(ne.row,ne.column);if(ce.column!=se.column||ce.row!=se.row)return!0}return!1},t.prototype.setDataProvider=function(G){this.$gatherData=G},t.prototype.showForRange=function(G,Z,ne,ie){if(!(ie&&ie!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var se=G.renderer;this.isOpen||(Ce.addPopup(this),this.$registerCloseEvents(),this.setTheme(se.theme)),this.isOpen=!0,this.addMarker(Z,G.session),this.range=fe.fromPoints(Z.start,Z.end);var ce=this.getElement();ce.innerHTML="",ce.appendChild(ne),ce.style.display="block";var me=se.textToScreenCoordinates(Z.start.row,Z.start.column),ge=ce.clientHeight,Se=se.scroller.getBoundingClientRect(),Me=!0;me.pageY-ge<0&&(Me=!1),Me?me.pageY-=ge:me.pageY+=se.lineHeight,ce.style.maxWidth=Se.width-(me.pageX-Se.left)+"px",this.setPosition(me.pageX,me.pageY)}},t.prototype.addMarker=function(G,Z){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=Z,this.marker=Z&&Z.addMarker(G,"ace_highlight-marker","text")},t.prototype.hide=function(G){(G||document.activeElement!=this.getElement())&&(G&&G.target&&("keydown"!=G.type||G.ctrlKey||G.metaKey)&&this.$element.contains(G.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,Ce.removePopup(this))))},t.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},t.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},t.prototype.onMouseOut=function(G){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&G.relatedTarget&&G.relatedTarget!=this.getElement()&&(G&&G.currentTarget.contains(G.relatedTarget)||G.relatedTarget.classList.contains("ace_content")||this.hide())},t}(ge);Z.HoverTooltip=Se})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],(function(G,Z,ne){"use strict";var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=this&&this.__values||function(G){var Z="function"==typeof Symbol&&Symbol.iterator,ne=Z&&G[Z],ie=0;if(ne)return ne.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ie>=G.length&&(G=void 0),{value:G&&G[ie++],done:!G}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")},ce=G("../lib/dom"),fe=G("../lib/event"),me=G("../tooltip").Tooltip,ge=G("../config").nls;Z.GutterHandler=function f(G){function a(){var Z=ne.getDocumentPosition().row;if(Z==ie.session.getLength()){var ce=ie.renderer.pixelToScreenCoordinates(0,ne.y).row,fe=ne.$pos;if(ce>ie.session.documentToScreenRow(fe.row,fe.column))return f()}if(me.showTooltip(Z),me.isOpen)if(ie.on("mousewheel",f),G.$tooltipFollowsMouse)c(ne);else{var ge=ne.getGutterRow(),Ce=se.$lines.get(ge);if(Ce){var Se=Ce.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),Me=me.getElement().style;Me.left=Se.right+"px",Me.top=Se.bottom+"px"}else c(ne)}}function f(){Z&&(Z=clearTimeout(Z)),me.isOpen&&(me.hideTooltip(),ie.off("mousewheel",f))}function c(G){me.setPosition(G.x,G.y)}var Z,ne,ie=G.editor,se=ie.renderer.$gutterLayer,me=new Ce(ie);G.editor.setDefaultHandler("guttermousedown",(function(Z){if(ie.isFocused()&&0==Z.getButton()&&"foldWidgets"!=se.getRegion(Z)){var ne=Z.getDocumentPosition().row,ce=ie.session.selection;if(Z.getShiftKey())ce.selectTo(ne,0);else{if(2==Z.domEvent.detail)return ie.selectAll(),Z.preventDefault();G.$clickSelection=ie.selection.getLineRange(ne)}return G.setState("selectByLines"),G.captureMouse(Z),Z.preventDefault()}})),G.editor.setDefaultHandler("guttermousemove",(function(ie){var se=ie.domEvent.target||ie.domEvent.srcElement;if(ce.hasCssClass(se,"ace_fold-widget"))return f();me.isOpen&&G.$tooltipFollowsMouse&&c(ie),ne=ie,Z||(Z=setTimeout((function(){Z=null,ne&&!G.isMousePressed?a():f()}),50))})),fe.addListener(ie.renderer.$gutter,"mouseout",(function(G){ne=null,me.isOpen&&!Z&&(Z=setTimeout((function(){Z=null,f()}),50))}),ie),ie.on("changeSession",f),ie.on("input",f)};var Ce=function(G){function t(Z){var ne=G.call(this,Z.container)||this;return ne.editor=Z,ne}return ie(t,G),t.prototype.setPosition=function(G,Z){var ne=window.innerWidth||document.documentElement.clientWidth,ie=window.innerHeight||document.documentElement.clientHeight,se=this.getWidth(),ce=this.getHeight();(G+=15)+se>ne&&(G-=G+se-ne),(Z+=15)+ce>ie&&(Z-=20+ce),me.prototype.setPosition.call(this,G,Z)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:ge("error"),plural:ge("errors")},warning:{singular:ge("warning"),plural:ge("warnings")},info:{singular:ge("information message"),plural:ge("information messages")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(G){var Z,ne=this.editor.renderer.$gutterLayer,ie=ne.$annotations[G];Z=ie?{text:Array.from(ie.text),type:Array.from(ie.type)}:{text:[],type:[]};var se=ne.session.getFoldLine(G);if(se&&ne.$showFoldedAnnotations){for(var ce,fe={error:[],warning:[],info:[]},me=G+1;me<=se.end.row;me++)if(ne.$annotations[me])for(var ge=0;ge ").concat(Z.text[me]);Me[Z.type[me].replace("_fold","")].push(xe)}var De=[].concat(Me.error,Me.warning,Me.info).join("
    ");this.setHtml(De),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},t.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},t.annotationsToSummaryString=function(G){var Z,ne,ie=[];try{for(var ce=se(["error","warning","info"]),fe=ce.next();!fe.done;fe=ce.next()){var me=fe.value;if(G[me].length){var ge=1===G[me].length?t.annotationLabels[me].singular:t.annotationLabels[me].plural;ie.push("".concat(G[me].length," ").concat(ge))}}}catch(G){Z={error:G}}finally{try{fe&&!fe.done&&(ne=ce.return)&&ne.call(ce)}finally{if(Z)throw Z.error}}return ie.join(", ")},t}(me);Z.GutterTooltip=Ce})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(G,Z,ne){"use strict";var ie=G("../lib/event"),se=G("../lib/useragent"),ce=function(){function e(G,Z){this.domEvent=G,this.editor=Z,this.x=this.clientX=G.clientX,this.y=this.clientY=G.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return e.prototype.stopPropagation=function(){ie.stopPropagation(this.domEvent),this.propagationStopped=!0},e.prototype.preventDefault=function(){ie.preventDefault(this.domEvent),this.defaultPrevented=!0},e.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},e.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},e.prototype.getGutterRow=function(){var G=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(G,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},e.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var G=this.editor.getSelectionRange();if(G.isEmpty())this.$inSelection=!1;else{var Z=this.getDocumentPosition();this.$inSelection=G.contains(Z.row,Z.column)}return this.$inSelection},e.prototype.getButton=function(){return ie.getButton(this.domEvent)},e.prototype.getShiftKey=function(){return this.domEvent.shiftKey},e.prototype.getAccelKey=function(){return se.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},e}();Z.MouseEvent=ce})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(G,Z,ne){"use strict";function f(G){function C(){var G=De;(function T(G,ne){var ie=Date.now(),se=!ne||G.row!=ne.row,ce=!ne||G.column!=ne.column;!$e||se||ce?(Z.moveCursorToPosition(G),$e=ie,Je={x:Se,y:Me}):l(Je.x,Je.y,Se,Me)>ge?$e=null:ie-$e>=me&&(Z.renderer.scrollCursorIntoView(),$e=null)})(De=Z.renderer.screenToTextCoordinates(Se,Me),G),function N(G,ne){var ie=Date.now(),se=Z.renderer.layerConfig.lineHeight,ce=Z.renderer.layerConfig.characterWidth,me=Z.renderer.scroller.getBoundingClientRect(),ge={x:{left:Se-me.left,right:me.right-Se},y:{top:Me-me.top,bottom:me.bottom-Me}},Ce=Math.min(ge.x.left,ge.x.right),ke=Math.min(ge.y.top,ge.y.bottom),xe={row:G.row,column:G.column};Ce/ce<=2&&(xe.column+=ge.x.left=fe&&Z.renderer.scrollCursorIntoView(xe):ze=ie:ze=null}(De,G)}function k(){xe=Z.selection.toOrientedRange(),Ce=Z.session.addMarker(xe,"ace_selection",Z.getSelectionStyle()),Z.clearSelection(),Z.isFocused()&&Z.renderer.$cursorLayer.setBlinking(!1),clearInterval(ke),C(),ke=setInterval(C,20),ot=0,se.addListener(document,"mousemove",O)}function L(){clearInterval(ke),Z.session.removeMarker(Ce),Ce=null,Z.selection.fromOrientedRange(xe),Z.isFocused()&&!Re&&Z.$resetCursorStyle(),xe=null,De=null,ot=0,ze=null,$e=null,se.removeListener(document,"mousemove",O)}function O(){null==at&&(at=setTimeout((function(){null!=at&&Ce&&L()}),20))}function M(G){var Z=G.types;return!Z||Array.prototype.some.call(Z,(function(G){return"text/plain"==G||"Text"==G}))}function _(G){var Z=["copy","copymove","all","uninitialized"],ne=ce.isMac?G.altKey:G.ctrlKey,ie="uninitialized";try{ie=G.dataTransfer.effectAllowed.toLowerCase()}catch(G){}var se="none";return ne&&Z.indexOf(ie)>=0?se="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(ie)>=0?se="move":Z.indexOf(ie)>=0&&(se="copy"),se}var Z=G.editor,ne=ie.createElement("div");ne.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",ne.textContent=" ";["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(Z){G[Z]=this[Z]}),this),Z.on("mousedown",this.onMouseDown.bind(G));var Ce,Se,Me,ke,xe,De,Ie,Re,ze,$e,Je,it=Z.container,ot=0;this.onDragStart=function(G){if(this.cancelDrag||!it.draggable){var ie=this;return setTimeout((function(){ie.startSelect(),ie.captureMouse(G)}),0),G.preventDefault()}xe=Z.getSelectionRange();var se=G.dataTransfer;se.effectAllowed=Z.getReadOnly()?"copy":"copyMove",Z.container.appendChild(ne),se.setDragImage&&se.setDragImage(ne,0,0),setTimeout((function(){Z.container.removeChild(ne)})),se.clearData(),se.setData("Text",Z.session.getTextRange()),Re=!0,this.setState("drag")},this.onDragEnd=function(G){if(it.draggable=!1,Re=!1,this.setState(null),!Z.getReadOnly()){var ne=G.dataTransfer.dropEffect;!Ie&&"move"==ne&&Z.session.remove(Z.getSelectionRange()),Z.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(G){if(!Z.getReadOnly()&&M(G.dataTransfer))return Se=G.clientX,Me=G.clientY,Ce||k(),ot++,G.dataTransfer.dropEffect=Ie=_(G),se.preventDefault(G)},this.onDragOver=function(G){if(!Z.getReadOnly()&&M(G.dataTransfer))return Se=G.clientX,Me=G.clientY,Ce||(k(),ot++),null!==at&&(at=null),G.dataTransfer.dropEffect=Ie=_(G),se.preventDefault(G)},this.onDragLeave=function(G){if(--ot<=0&&Ce)return L(),Ie=null,se.preventDefault(G)},this.onDrop=function(G){if(De){var ne=G.dataTransfer;if(Re)switch(Ie){case"move":xe=xe.contains(De.row,De.column)?{start:De,end:De}:Z.moveText(xe,De);break;case"copy":xe=Z.moveText(xe,De,!0)}else{var ie=ne.getData("Text");xe={start:De,end:Z.session.insert(De,ie)},Z.focus(),Ie=null}return L(),se.preventDefault(G)}},se.addListener(it,"dragstart",this.onDragStart.bind(G),Z),se.addListener(it,"dragend",this.onDragEnd.bind(G),Z),se.addListener(it,"dragenter",this.onDragEnter.bind(G),Z),se.addListener(it,"dragover",this.onDragOver.bind(G),Z),se.addListener(it,"dragleave",this.onDragLeave.bind(G),Z),se.addListener(it,"drop",this.onDrop.bind(G),Z);var at=null}function l(G,Z,ne,ie){return Math.sqrt(Math.pow(ne-G,2)+Math.pow(ie-Z,2))}var ie=G("../lib/dom"),se=G("../lib/event"),ce=G("../lib/useragent"),fe=200,me=200,ge=5;(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(G){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var G=this.editor;G.container.draggable=!0,G.renderer.$cursorLayer.setBlinking(!1),G.setStyle("ace_dragging");var Z=ce.isWin?"default":"move";G.renderer.setCursorStyle(Z),this.setState("dragReady")},this.onMouseDrag=function(G){var Z=this.editor.container;ce.isIE&&"dragReady"==this.state&&(l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&Z.dragDrop());"dragWait"===this.state&&(l(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(Z.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(G){if(this.$dragEnabled){this.mousedownEvent=G;var Z=this.editor,ne=G.inSelection(),ie=G.getButton();if(1===(G.domEvent.detail||1)&&0===ie&&ne){if(G.editor.inMultiSelectMode&&(G.getAccelKey()||G.getShiftKey()))return;this.mousedownEvent.time=Date.now();var se=G.domEvent.target||G.domEvent.srcElement;if("unselectable"in se&&(se.unselectable="on"),Z.getDragDelay()){if(ce.isWebKit)this.cancelDrag=!0,Z.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(G,this.onMouseDrag.bind(this)),G.defaultPrevented=!0}}}}).call(f.prototype),Z.DragdropHandler=f})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(G,Z,ne){"use strict";var ie=G("./mouse_event").MouseEvent,se=G("../lib/event"),ce=G("../lib/dom");Z.addTouchListeners=function(G,Z){function b(){var G=window.navigator&&window.navigator.clipboard,ne=!1,i=function(){var ie=Z.getCopyText(),se=Z.session.getUndoManager().hasUndo();xe.replaceChild(ce.buildDom(ne?["span",!ie&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],ie&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],ie&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],G&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],se&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),xe.firstChild)},o=function(ie){var se=ie.target.getAttribute("action");if("more"==se||!ne)return ne=!ne,i();"paste"==se?G.readText().then((function(G){Z.execCommand(se,G)})):se&&("cut"!=se&&"copy"!=se||(G?G.writeText(Z.getCopyText()):document.execCommand("copy")),Z.execCommand(se)),xe.firstChild.style.display="none",ne=!1,"openCommandPallete"!=se&&Z.focus()};xe=ce.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(G){De="menu",G.stopPropagation(),G.preventDefault(),Z.textInput.focus()},ontouchend:function(G){G.stopPropagation(),G.preventDefault(),o(G)},onclick:o},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],Z.container)}function w(){xe||b();var G=Z.selection.cursor,ne=Z.renderer.textToScreenCoordinates(G.row,G.column),ie=Z.renderer.textToScreenCoordinates(0,0).pageX,se=Z.renderer.scrollLeft,ce=Z.container.getBoundingClientRect();xe.style.top=ne.pageY-ce.top-3+"px",ne.pageX-ce.left1)return clearTimeout(Ce),Ce=null,me=-1,void(De="zoom");ke=Z.$mouseHandler.isMousePressed=!0;var ce=Z.renderer.layerConfig.lineHeight,Se=Z.renderer.layerConfig.lineHeight,xe=G.timeStamp;ge=xe;var Je=se[0],it=Je.clientX,ot=Je.clientY;Math.abs(ne-it)+Math.abs(fe-ot)>ce&&(me=-1),ne=G.clientX=it,fe=G.clientY=ot,ze=$e=0;var at=new ie(G,Z);if(Me=at.getDocumentPosition(),xe-me<500&&1==se.length&&!Ie)Re++,G.preventDefault(),G.button=0,function x(){Ce=null,clearTimeout(Ce),Z.selection.moveToPosition(Me);var G=Re>=2?Z.selection.getLineRange(Me.row):Z.session.getBracketRange(Me);G&&!G.isEmpty()?Z.selection.setRange(G):Z.selection.selectWord(),De="wait"}();else{Re=0;var st=Z.selection.cursor,ct=Z.selection.isEmpty()?st:Z.selection.anchor,ut=Z.renderer.$cursorLayer.getPixelPosition(st,!0),dt=Z.renderer.$cursorLayer.getPixelPosition(ct,!0),ht=Z.renderer.scroller.getBoundingClientRect(),ft=Z.renderer.layerConfig.offset,_t=Z.renderer.scrollLeft,_=function(G,Z){return(G/=Se)*G+(Z=Z/ce-.75)*Z};if(G.clientXvt?"cursor":"anchor"),De=vt<3.5?"anchor":yt<3.5?"cursor":"scroll",Ce=setTimeout(S,450)}me=xe}),Z),se.addListener(G,"touchend",(function(G){ke=Z.$mouseHandler.isMousePressed=!1,Se&&clearInterval(Se),"zoom"==De?(De="",Ie=0):Ce?(Z.selection.moveToPosition(Me),Ie=0,w()):"scroll"==De?(function T(){Ie+=60,Se=setInterval((function(){Ie--<=0&&(clearInterval(Se),Se=null),Math.abs(ze)<.01&&(ze=0),Math.abs($e)<.01&&($e=0),Ie<20&&(ze*=.9),Ie<20&&($e*=.9);var G=Z.session.getScrollTop();Z.renderer.scrollBy(10*ze,10*$e),G==Z.session.getScrollTop()&&(Ie=0)}),10)}(),E()):w(),clearTimeout(Ce),Ce=null}),Z),se.addListener(G,"touchmove",(function(G){Ce&&(clearTimeout(Ce),Ce=null);var se=G.touches;if(!(se.length>1||"zoom"==De)){var ce=se[0],me=ne-ce.clientX,Se=fe-ce.clientY;if("wait"==De){if(!(me*me+Se*Se>4))return G.preventDefault();De="cursor"}ne=ce.clientX,fe=ce.clientY,G.clientX=ce.clientX,G.clientY=ce.clientY;var Me=G.timeStamp,ke=Me-ge;if(ge=Me,"scroll"==De){var xe=new ie(G,Z);xe.speed=1,xe.wheelX=me,xe.wheelY=Se,10*Math.abs(me)0)if(16==$e){for(ot=it;ot-1){for(ot=it;ot=0&&Se[ct]==Je;ct--)Z[ct]=ie}}function I(G,Z,ne){if(!(se=G){for(ce=ke+1;ce=G;)ce++;for(me=ke,ge=ce-1;me=Z.length||(ge=ne[se-1])!=xe&&ge!=De||(Ce=Z[se+1])!=xe&&Ce!=De?Ie:(ce&&(Ce=De),Ce==ge?Ce:Ie);case ot:return(ge=se>0?ne[se-1]:Re)==xe&&se+10&&ne[se-1]==xe)return xe;if(ce)return Ie;for(yt=se+1,Se=Z.length;yt=1425&&wt<=2303||64286==wt;if(ge=Z[yt],Ct&&(ge==ke||ge==$e))return ke}return se<1||(ge=Z[se-1])==Re?Ie:ne[se-1];case Re:return ce=!1,fe=!0,ie;case ze:return me=!0,Ie;case ct:case ut:case ht:case ft:case dt:ce=!1;case _t:return Ie}}function R(G){var Z=G.charCodeAt(0),ne=Z>>8;return 0==ne?Z>191?Me:yt[Z]:5==ne?/[\u0591-\u05f4]/.test(G)?ke:Me:6==ne?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(G)?st:/[\u0660-\u0669\u066b-\u066c]/.test(G)?De:1642==Z?at:/[\u06f0-\u06f9]/.test(G)?xe:$e:32==ne&&Z<=8287?vt[255&Z]:254==ne&&Z>=65136?$e:Ie}var ie=0,se=0,ce=!1,fe=!1,me=!1,ge=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Ce=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Se=1,Me=0,ke=1,xe=2,De=3,Ie=4,Re=5,ze=6,$e=7,Je=8,it=9,ot=10,at=11,st=12,ct=13,ut=14,dt=15,ht=16,ft=17,_t=18,yt=[_t,_t,_t,_t,_t,_t,_t,_t,_t,ze,Re,ze,Je,Re,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,Re,Re,Re,ze,Je,Ie,Ie,at,at,at,Ie,Ie,Ie,Ie,Ie,ot,it,ot,it,it,xe,xe,xe,xe,xe,xe,xe,xe,xe,xe,it,Ie,Ie,Ie,Ie,Ie,Ie,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Ie,Ie,Ie,Ie,Ie,Ie,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Me,Ie,Ie,Ie,Ie,_t,_t,_t,_t,_t,_t,Re,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,_t,it,Ie,at,at,at,at,Ie,Ie,Ie,Ie,Me,Ie,Ie,_t,Ie,Ie,at,at,xe,xe,Ie,Me,Ie,Ie,Ie,xe,Me,Ie,Ie,Ie,Ie,Ie],vt=[Je,Je,Je,Je,Je,Je,Je,Je,Je,Je,Je,_t,_t,_t,Me,ke,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Je,Re,ct,ut,dt,ht,ft,it,at,at,at,at,at,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,it,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Je];Z.L=Me,Z.R=ke,Z.EN=xe,Z.ON_R=3,Z.AN=4,Z.R_H=5,Z.B=6,Z.RLE=7,Z.DOT="·",Z.doBidiReorder=function(G,ne,se){if(G.length<2)return{};var ce=G.split(""),fe=new Array(ce.length),me=new Array(ce.length),ge=[];ie=se?Se:0,F(ce,ge,ce.length,ne);for(var Ce=0;Ce$e&&ne[Ce]0&&"ل"===ce[Ce-1]&&/\u0622|\u0623|\u0625|\u0627/.test(ce[Ce])&&(ge[Ce-1]=ge[Ce]=Z.R_H,Ce++);ce[ce.length-1]===Z.DOT&&(ge[ce.length-1]=Z.B),"‫"===ce[0]&&(ge[0]=Z.RLE);for(Ce=0;Ce=0&&(G=this.session.$docRowCache[ne])}return G},e.prototype.getSplitIndex=function(){var G=0,Z=this.session.$screenRowCache;if(Z.length)for(var ne,ie=this.session.$getRowCacheIndex(Z,this.currentRow);this.currentRow-G>0&&(ne=this.session.$getRowCacheIndex(Z,this.currentRow-G-1))===ie;)ie=ne,G++;else G=this.currentRow;return G},e.prototype.updateRowLine=function(G,Z){void 0===G&&(G=this.getDocumentRow());var ne=G===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(G),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var ce=this.session.$wrapData[G];ce&&(void 0===Z&&(Z=this.getSplitIndex()),Z>0&&ce.length?(this.wrapIndent=ce.indent,this.wrapOffset=this.wrapIndent*this.charWidths[ie.L],this.line=ZZ?this.session.getOverwrite()?G:G-1:Z,se=ie.getVisualFromLogicalIdx(ne,this.bidiMap),ce=this.bidiMap.bidiLevels,fe=0;!this.session.getOverwrite()&&G<=Z&&ce[se]%2!=0&&se++;for(var me=0;meZ&&ce[se]%2==0&&(fe+=this.charWidths[ce[se]]),this.wrapIndent&&(fe+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(fe+=this.rtlLineOffset),fe},e.prototype.getSelections=function(G,Z){var ne,ie=this.bidiMap,se=ie.bidiLevels,ce=[],fe=0,me=Math.min(G,Z)-this.wrapIndent,ge=Math.max(G,Z)-this.wrapIndent,Ce=!1,Se=!1,Me=0;this.wrapIndent&&(fe+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var ke,xe=0;xe=me&&kene+ce/2;){if(ne+=ce,ie===se.length-1){ce=0;break}ce=this.charWidths[se[++ie]]}return ie>0&&se[ie-1]%2!=0&&se[ie]%2==0?(G0&&se[ie-1]%2==0&&se[ie]%2!=0?Z=1+(G>ne?this.bidiMap.logicalFromVisual[ie]:this.bidiMap.logicalFromVisual[ie-1]):this.isRtlDir&&ie===se.length-1&&0===ce&&se[ie-1]%2==0||!this.isRtlDir&&0===ie&&se[ie]%2!=0?Z=1+this.bidiMap.logicalFromVisual[ie]:(ie>0&&se[ie-1]%2!=0&&0!==ce&&ie--,Z=this.bidiMap.logicalFromVisual[ie]),0===Z&&this.isRtlDir&&Z++,Z+this.wrapIndent},e}();Z.BidiHandler=fe})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(G,Z,ne){"use strict";var ie=G("./lib/oop"),se=G("./lib/lang"),ce=G("./lib/event_emitter").EventEmitter,fe=G("./range").Range,me=function(){function e(G){this.session=G,this.doc=G.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var Z=this;this.cursor.on("change",(function(G){Z.$cursorChanged=!0,Z.$silent||Z._emit("changeCursor"),!Z.$isEmpty&&!Z.$silent&&Z._emit("changeSelection"),!Z.$keepDesiredColumnOnChange&&G.old.column!=G.value.column&&(Z.$desiredColumn=null)})),this.anchor.on("change",(function(){Z.$anchorChanged=!0,!Z.$isEmpty&&!Z.$silent&&Z._emit("changeSelection")}))}return e.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},e.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},e.prototype.getCursor=function(){return this.lead.getPosition()},e.prototype.setAnchor=function(G,Z){this.$isEmpty=!1,this.anchor.setPosition(G,Z)},e.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},e.prototype.getSelectionLead=function(){return this.lead.getPosition()},e.prototype.isBackwards=function(){var G=this.anchor,Z=this.lead;return G.row>Z.row||G.row==Z.row&&G.column>Z.column},e.prototype.getRange=function(){var G=this.anchor,Z=this.lead;return this.$isEmpty?fe.fromPoints(Z,Z):this.isBackwards()?fe.fromPoints(Z,G):fe.fromPoints(G,Z)},e.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},e.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},e.prototype.setRange=function(G,Z){var ne=Z?G.end:G.start,ie=Z?G.start:G.end;this.$setSelection(ne.row,ne.column,ie.row,ie.column)},e.prototype.$setSelection=function(G,Z,ne,ie){if(!this.$silent){var se=this.$isEmpty,ce=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(G,Z),this.cursor.setPosition(ne,ie),this.$isEmpty=!fe.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||se!=this.$isEmpty||ce)&&this._emit("changeSelection")}},e.prototype.$moveSelection=function(G){var Z=this.lead;this.$isEmpty&&this.setSelectionAnchor(Z.row,Z.column),G.call(this)},e.prototype.selectTo=function(G,Z){this.$moveSelection((function(){this.moveCursorTo(G,Z)}))},e.prototype.selectToPosition=function(G){this.$moveSelection((function(){this.moveCursorToPosition(G)}))},e.prototype.moveTo=function(G,Z){this.clearSelection(),this.moveCursorTo(G,Z)},e.prototype.moveToPosition=function(G){this.clearSelection(),this.moveCursorToPosition(G)},e.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},e.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},e.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},e.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},e.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},e.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},e.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},e.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},e.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},e.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},e.prototype.getWordRange=function(G,Z){if(void 0===Z){var ne=G||this.lead;G=ne.row,Z=ne.column}return this.session.getWordRange(G,Z)},e.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},e.prototype.selectAWord=function(){var G=this.getCursor(),Z=this.session.getAWordRange(G.row,G.column);this.setSelectionRange(Z)},e.prototype.getLineRange=function(G,Z){var ne,ie="number"==typeof G?G:this.lead.row,se=this.session.getFoldLine(ie);return se?(ie=se.start.row,ne=se.end.row):ne=ie,!0===Z?new fe(ie,0,ne,this.session.getLine(ne).length):new fe(ie,0,ne+1,0)},e.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},e.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},e.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},e.prototype.wouldMoveIntoSoftTab=function(G,Z,ne){var ie=G.column,se=G.column+Z;return ne<0&&(ie=G.column-Z,se=G.column),this.session.isTabStop(G)&&this.doc.getLine(G.row).slice(ie,se).split(" ").length-1==Z},e.prototype.moveCursorLeft=function(){var G,Z=this.lead.getPosition();if(G=this.session.getFoldAt(Z.row,Z.column,-1))this.moveCursorTo(G.start.row,G.start.column);else if(0===Z.column)Z.row>0&&this.moveCursorTo(Z.row-1,this.doc.getLine(Z.row-1).length);else{var ne=this.session.getTabSize();this.wouldMoveIntoSoftTab(Z,ne,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-ne):this.moveCursorBy(0,-1)}},e.prototype.moveCursorRight=function(){var G,Z=this.lead.getPosition();if(G=this.session.getFoldAt(Z.row,Z.column,1))this.moveCursorTo(G.end.row,G.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(Z.column=ie)}}this.moveCursorTo(Z.row,Z.column)},e.prototype.moveCursorFileEnd=function(){var G=this.doc.getLength()-1,Z=this.doc.getLine(G).length;this.moveCursorTo(G,Z)},e.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},e.prototype.moveCursorLongWordRight=function(){var G=this.lead.row,Z=this.lead.column,ne=this.doc.getLine(G),ie=ne.substring(Z);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var se=this.session.getFoldAt(G,Z,1);if(se)this.moveCursorTo(se.end.row,se.end.column);else{if(this.session.nonTokenRe.exec(ie)&&(Z+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,ie=ne.substring(Z)),Z>=ne.length)return this.moveCursorTo(G,ne.length),this.moveCursorRight(),void(G0&&this.moveCursorWordLeft());this.session.tokenRe.exec(ce)&&(ne-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(Z,ne)}},e.prototype.$shortWordEndIndex=function(G){var Z,ne=0,ie=/\s/,se=this.session.tokenRe;if(se.lastIndex=0,this.session.tokenRe.exec(G))ne=this.session.tokenRe.lastIndex;else{for(;(Z=G[ne])&&ie.test(Z);)ne++;if(ne<1)for(se.lastIndex=0;(Z=G[ne])&&!se.test(Z);)if(se.lastIndex=0,ne++,ie.test(Z)){if(ne>2){ne--;break}for(;(Z=G[ne])&&ie.test(Z);)ne++;if(ne>2)break}}return se.lastIndex=0,ne},e.prototype.moveCursorShortWordRight=function(){var G=this.lead.row,Z=this.lead.column,ne=this.doc.getLine(G),ie=ne.substring(Z),se=this.session.getFoldAt(G,Z,1);if(se)return this.moveCursorTo(se.end.row,se.end.column);if(Z==ne.length){var ce=this.doc.getLength();do{G++,ie=this.doc.getLine(G)}while(G0&&/^\s*$/.test(ie));ne=ie.length,/\s+$/.test(ie)||(ie="")}var ce=se.stringReverse(ie),fe=this.$shortWordEndIndex(ce);return this.moveCursorTo(Z,ne-fe)},e.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},e.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},e.prototype.moveCursorBy=function(G,Z){var ne,ie=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===Z&&(0!==G&&(this.session.$bidiHandler.isBidiRow(ie.row,this.lead.row)?(ne=this.session.$bidiHandler.getPosLeft(ie.column),ie.column=Math.round(ne/this.session.$bidiHandler.charWidths[0])):ne=ie.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?ie.column=this.$desiredColumn:this.$desiredColumn=ie.column),0!=G&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var se=this.session.lineWidgets[this.lead.row];G<0?G-=se.rowsAbove||0:G>0&&(G+=se.rowCount-(se.rowsAbove||0))}var ce=this.session.screenToDocumentPosition(ie.row+G,ie.column,ne);0!==G&&0===Z&&ce.row===this.lead.row&&(ce.column,this.lead.column),this.moveCursorTo(ce.row,ce.column+Z,0===Z)},e.prototype.moveCursorToPosition=function(G){this.moveCursorTo(G.row,G.column)},e.prototype.moveCursorTo=function(G,Z,ne){var ie=this.session.getFoldAt(G,Z,1);ie&&(G=ie.start.row,Z=ie.start.column),this.$keepDesiredColumnOnChange=!0;var se=this.session.getLine(G);/[\uDC00-\uDFFF]/.test(se.charAt(Z))&&se.charAt(Z-1)&&(this.lead.row==G&&this.lead.column==Z+1?Z-=1:Z+=1),this.lead.setPosition(G,Z),this.$keepDesiredColumnOnChange=!1,ne||(this.$desiredColumn=null)},e.prototype.moveCursorToScreen=function(G,Z,ne){var ie=this.session.screenToDocumentPosition(G,Z);this.moveCursorTo(ie.row,ie.column,ne)},e.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},e.prototype.fromOrientedRange=function(G){this.setSelectionRange(G,G.cursor==G.start),this.$desiredColumn=G.desiredColumn||this.$desiredColumn},e.prototype.toOrientedRange=function(G){var Z=this.getRange();return G?(G.start.column=Z.start.column,G.start.row=Z.start.row,G.end.column=Z.end.column,G.end.row=Z.end.row):G=Z,G.cursor=this.isBackwards()?G.start:G.end,G.desiredColumn=this.$desiredColumn,G},e.prototype.getRangeOfMovements=function(G){var Z=this.getCursor();try{G(this);var ne=this.getCursor();return fe.fromPoints(Z,ne)}catch(G){return fe.fromPoints(Z,Z)}finally{this.moveCursorToPosition(Z)}},e.prototype.toJSON=function(){if(this.rangeCount)var G=this.ranges.map((function(G){var Z=G.clone();return Z.isBackwards=G.cursor==G.start,Z}));else(G=this.getRange()).isBackwards=this.isBackwards();return G},e.prototype.fromJSON=function(G){if(null==G.start){if(this.rangeList&&G.length>1){this.toSingleRange(G[0]);for(var Z=G.length;Z--;){var ne=fe.fromPoints(G[Z].start,G[Z].end);G[Z].isBackwards&&(ne.cursor=ne.start),this.addRange(ne,!0)}return}G=G[0]}this.rangeList&&this.toSingleRange(G),this.setSelectionRange(G,G.isBackwards)},e.prototype.isEqual=function(G){if((G.length||this.rangeCount)&&G.length!=this.rangeCount)return!1;if(!G.length||!this.ranges)return this.getRange().isEqual(G);for(var Z=this.ranges.length;Z--;)if(!this.ranges[Z].isEqual(G[Z]))return!1;return!0},e}();me.prototype.setSelectionAnchor=me.prototype.setAnchor,me.prototype.getSelectionAnchor=me.prototype.getAnchor,me.prototype.setSelectionRange=me.prototype.setRange,ie.implement(me.prototype,ce),Z.Selection=me})),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],(function(G,Z,ne){"use strict";var ie=G("./lib/report_error").reportError,se=2e3,ce=function(){function e(G){for(var Z in this.states=G,this.regExps={},this.matchMappings={},this.states){for(var ne=this.states[Z],ie=[],se=0,ce=this.matchMappings[Z]={defaultToken:"text"},fe="g",me=[],ge=0;ge1?this.$applyToken:Ce.token),Me>1&&(/\\\d/.test(Ce.regex)?Se=Ce.regex.replace(/\\([0-9]+)/g,(function(G,Z){return"\\"+(parseInt(Z,10)+se+1)})):(Me=1,Se=this.removeCapturingGroups(Ce.regex)),!Ce.splitRegex&&"string"!=typeof Ce.token&&me.push(Ce)),ce[se]=ge,se+=Me,ie.push(Se),Ce.onMatch||(Ce.onMatch=null)}}ie.length||(ce[0]=0,ie.push("$")),me.forEach((function(G){G.splitRegex=this.createSplitterRegexp(G.regex,fe)}),this),this.regExps[Z]=new RegExp("("+ie.join(")|(")+")|($)",fe)}}return e.prototype.$setMaxTokenCount=function(G){se=0|G},e.prototype.$applyToken=function(G){var Z=this.splitRegex.exec(G).slice(1),ne=this.token.apply(this,Z);if("string"==typeof ne)return[{type:ne,value:G}];for(var ie=[],se=0,ce=ne.length;seSe){var ze=G.substring(Se,Re-Ie.length);ke.type==xe?ke.value+=ze:(ke.type&&Ce.push(ke),ke={type:xe,value:ze})}for(var $e=0;$ese){for(Me>2*G.length&&this.reportError("infinite loop with in ace tokenizer",{startState:Z,line:G});Se1&&ne[0]!==ie&&ne.unshift("#tmp",ie),{tokens:Ce,state:ne.length?ne:ie}},e}();ce.prototype.reportError=ie,Z.Tokenizer=ce})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],(function(G,Z,ne){"use strict";var ie=G("../lib/deep_copy").deepCopy,i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(G,Z){if(Z)for(var ne in G){for(var ie=G[ne],se=0;se=this.$rowTokens.length;){if(this.$row+=1,G||(G=this.$session.getLength()),this.$row>=G)return this.$row=G-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentTokenRow=function(){return this.$row},e.prototype.getCurrentTokenColumn=function(){var G=this.$rowTokens,Z=this.$tokenIndex,ne=G[Z].start;if(void 0!==ne)return ne;for(ne=0;Z>0;)ne+=G[Z-=1].value.length;return ne},e.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},e.prototype.getCurrentTokenRange=function(){var G=this.$rowTokens[this.$tokenIndex],Z=this.getCurrentTokenColumn();return new ie(this.$row,Z,this.$row,Z+G.value.length)},e}();Z.TokenIterator=se})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(G,Z,ne){"use strict";var ie,se=G("../../lib/oop"),ce=G("../behaviour").Behaviour,fe=G("../../token_iterator").TokenIterator,me=G("../../lib/lang"),ge=["text","paren.rparen","rparen","paren","punctuation.operator"],Ce=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],Se={},Me={'"':'"',"'":"'"},h=function(G){var Z=-1;if(G.multiSelect&&(Z=G.selection.index,Se.rangeCount!=G.multiSelect.rangeCount&&(Se={rangeCount:G.multiSelect.rangeCount})),Se[Z])return ie=Se[Z];ie=Se[Z]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},p=function(G,Z,ne,ie){var se=G.end.row-G.start.row;return{text:ne+Z+ie,selection:[0,G.start.column+1,se,G.end.column+(se?0:1)]}},d=function(G){G=G||{},this.add("braces","insertion",(function(Z,ne,se,ce,fe){var ge=se.getCursorPosition(),Ce=ce.doc.getLine(ge.row);if("{"==fe){h(se);var Se=se.getSelectionRange(),Me=ce.doc.getTextRange(Se);if(""!==Me&&"{"!==Me&&se.getWrapBehavioursEnabled())return p(Se,Me,"{","}");if(d.isSaneInsertion(se,ce))return/[\]\}\)]/.test(Ce[ge.column])||se.inMultiSelectMode||G.braces?(d.recordAutoInsert(se,ce,"}"),{text:"{}",selection:[1,1]}):(d.recordMaybeInsert(se,ce,"{"),{text:"{",selection:[1,1]})}else if("}"==fe){if(h(se),"}"==Ce.substring(ge.column,ge.column+1))if(null!==ce.$findOpeningBracket("}",{column:ge.column+1,row:ge.row})&&d.isAutoInsertedClosing(ge,Ce,fe))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==fe||"\r\n"==fe){h(se);var ke="";if(d.isMaybeInsertedClosing(ge,Ce)&&(ke=me.stringRepeat("}",ie.maybeInsertedBrackets),d.clearMaybeInsertedClosing()),"}"===Ce.substring(ge.column,ge.column+1)){var xe=ce.findMatchingBracket({row:ge.row,column:ge.column+1},"}");if(!xe)return null;var De=this.$getIndent(ce.getLine(xe.row))}else{if(!ke)return void d.clearMaybeInsertedClosing();De=this.$getIndent(Ce)}var Ie=De+ce.getTabString();return{text:"\n"+Ie+"\n"+De+ke,selection:[1,Ie.length,1,Ie.length]}}d.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(G,Z,ne,se,ce){var fe=se.doc.getTextRange(ce);if(!ce.isMultiLine()&&"{"==fe){if(h(ne),"}"==se.doc.getLine(ce.start.row).substring(ce.end.column,ce.end.column+1))return ce.end.column++,ce;ie.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(G,Z,ne,ie,se){if("("==se){h(ne);var ce=ne.getSelectionRange(),fe=ie.doc.getTextRange(ce);if(""!==fe&&ne.getWrapBehavioursEnabled())return p(ce,fe,"(",")");if(d.isSaneInsertion(ne,ie))return d.recordAutoInsert(ne,ie,")"),{text:"()",selection:[1,1]}}else if(")"==se){h(ne);var me=ne.getCursorPosition(),ge=ie.doc.getLine(me.row);if(")"==ge.substring(me.column,me.column+1))if(null!==ie.$findOpeningBracket(")",{column:me.column+1,row:me.row})&&d.isAutoInsertedClosing(me,ge,se))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(G,Z,ne,ie,se){var ce=ie.doc.getTextRange(se);if(!se.isMultiLine()&&"("==ce&&(h(ne),")"==ie.doc.getLine(se.start.row).substring(se.start.column+1,se.start.column+2)))return se.end.column++,se})),this.add("brackets","insertion",(function(G,Z,ne,ie,se){if("["==se){h(ne);var ce=ne.getSelectionRange(),fe=ie.doc.getTextRange(ce);if(""!==fe&&ne.getWrapBehavioursEnabled())return p(ce,fe,"[","]");if(d.isSaneInsertion(ne,ie))return d.recordAutoInsert(ne,ie,"]"),{text:"[]",selection:[1,1]}}else if("]"==se){h(ne);var me=ne.getCursorPosition(),ge=ie.doc.getLine(me.row);if("]"==ge.substring(me.column,me.column+1))if(null!==ie.$findOpeningBracket("]",{column:me.column+1,row:me.row})&&d.isAutoInsertedClosing(me,ge,se))return d.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(G,Z,ne,ie,se){var ce=ie.doc.getTextRange(se);if(!se.isMultiLine()&&"["==ce&&(h(ne),"]"==ie.doc.getLine(se.start.row).substring(se.start.column+1,se.start.column+2)))return se.end.column++,se})),this.add("string_dquotes","insertion",(function(G,Z,ne,ie,se){var ce=ie.$mode.$quotes||Me;if(1==se.length&&ce[se]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(se))return;h(ne);var fe=se,me=ne.getSelectionRange(),ge=ie.doc.getTextRange(me);if(""!==ge&&(1!=ge.length||!ce[ge])&&ne.getWrapBehavioursEnabled())return p(me,ge,fe,fe);if(!ge){var Ce=ne.getCursorPosition(),Se=ie.doc.getLine(Ce.row),ke=Se.substring(Ce.column-1,Ce.column),xe=Se.substring(Ce.column,Ce.column+1),De=ie.getTokenAt(Ce.row,Ce.column),Ie=ie.getTokenAt(Ce.row,Ce.column+1);if("\\"==ke&&De&&/escape/.test(De.type))return null;var Re,ze=De&&/string|escape/.test(De.type),$e=!Ie||/string|escape/.test(Ie.type);if(xe==fe)(Re=ze!==$e)&&/string\.end/.test(Ie.type)&&(Re=!1);else{if(ze&&!$e)return null;if(ze&&$e)return null;var Je=ie.$mode.tokenRe;Je.lastIndex=0;var it=Je.test(ke);Je.lastIndex=0;var ot=Je.test(xe),at=ie.$mode.$pairQuotesAfter;if(!(at&&at[fe]&&at[fe].test(ke))&&it||ot)return null;if(xe&&!/[\s;,.})\]\\]/.test(xe))return null;var st=Se[Ce.column-2];if(ke==fe&&(st==fe||Je.test(st)))return null;Re=!0}return{text:Re?fe+fe:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(G,Z,ne,ie,se){var ce=ie.$mode.$quotes||Me,fe=ie.doc.getTextRange(se);if(!se.isMultiLine()&&ce.hasOwnProperty(fe)&&(h(ne),ie.doc.getLine(se.start.row).substring(se.start.column+1,se.start.column+2)==fe))return se.end.column++,se})),!1!==G.closeDocComment&&this.add("doc comment end","insertion",(function(G,Z,ne,ie,se){if("doc-start"===G&&("\n"===se||"\r\n"===se)&&ne.selection.isEmpty()){var ce=ne.getCursorPosition(),fe=ie.doc.getLine(ce.row),me=ie.doc.getLine(ce.row+1),ge=this.$getIndent(fe);if(/\s*\*/.test(me))return/^\s*\*/.test(fe)?{text:se+ge+"* ",selection:[1,3+ge.length,1,3+ge.length]}:{text:se+ge+" * ",selection:[1,3+ge.length,1,3+ge.length]};if(/\/\*\*/.test(fe.substring(0,ce.column)))return{text:se+ge+" * "+se+" "+ge+"*/",selection:[1,4+ge.length,1,4+ge.length]}}}))};d.isSaneInsertion=function(G,Z){var ne=G.getCursorPosition(),ie=new fe(Z,ne.row,ne.column);if(!this.$matchTokenType(ie.getCurrentToken()||"text",ge)){if(/[)}\]]/.test(G.session.getLine(ne.row)[ne.column]))return!0;var se=new fe(Z,ne.row,ne.column+1);if(!this.$matchTokenType(se.getCurrentToken()||"text",ge))return!1}return ie.stepForward(),ie.getCurrentTokenRow()!==ne.row||this.$matchTokenType(ie.getCurrentToken()||"text",Ce)},d.$matchTokenType=function(G,Z){return Z.indexOf(G.type||G)>-1},d.recordAutoInsert=function(G,Z,ne){var se=G.getCursorPosition(),ce=Z.doc.getLine(se.row);this.isAutoInsertedClosing(se,ce,ie.autoInsertedLineEnd[0])||(ie.autoInsertedBrackets=0),ie.autoInsertedRow=se.row,ie.autoInsertedLineEnd=ne+ce.substr(se.column),ie.autoInsertedBrackets++},d.recordMaybeInsert=function(G,Z,ne){var se=G.getCursorPosition(),ce=Z.doc.getLine(se.row);this.isMaybeInsertedClosing(se,ce)||(ie.maybeInsertedBrackets=0),ie.maybeInsertedRow=se.row,ie.maybeInsertedLineStart=ce.substr(0,se.column)+ne,ie.maybeInsertedLineEnd=ce.substr(se.column),ie.maybeInsertedBrackets++},d.isAutoInsertedClosing=function(G,Z,ne){return ie.autoInsertedBrackets>0&&G.row===ie.autoInsertedRow&&ne===ie.autoInsertedLineEnd[0]&&Z.substr(G.column)===ie.autoInsertedLineEnd},d.isMaybeInsertedClosing=function(G,Z){return ie.maybeInsertedBrackets>0&&G.row===ie.maybeInsertedRow&&Z.substr(G.column)===ie.maybeInsertedLineEnd&&Z.substr(0,G.column)==ie.maybeInsertedLineStart},d.popAutoInsertedClosing=function(){ie.autoInsertedLineEnd=ie.autoInsertedLineEnd.substr(1),ie.autoInsertedBrackets--},d.clearMaybeInsertedClosing=function(){ie&&(ie.maybeInsertedBrackets=0,ie.maybeInsertedRow=-1)},se.inherits(d,ce),Z.CstyleBehaviour=d})),ace.define("ace/unicode",["require","exports","module"],(function(G,Z,ne){"use strict";for(var ie=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],se=0,ce=[],fe=0;fe2?ie%Ce!=Ce-1:ie%Ce==0})}else{if(!this.blockComment)return!1;var xe=this.blockComment.start,De=this.blockComment.end,Ie=new RegExp("^(\\s*)(?:"+ge.escapeRegExp(xe)+")"),Re=new RegExp("(?:"+ge.escapeRegExp(De)+")\\s*$"),v=function(G,Z){g(G,Z)||ce&&!/\S/.test(G)||(se.insertInLine({row:Z,column:G.length},De),se.insertInLine({row:Z,column:me},xe))},m=function(G,Z){var ne;(ne=G.match(Re))&&se.removeInLine(Z,G.length-ne[0].length,G.length),(ne=G.match(Ie))&&se.removeInLine(Z,ne[1].length,ne[0].length)},g=function(G,ne){if(Ie.test(G))return!0;for(var ie=Z.getTokens(ne),se=0;seG.length&&(ze=G.length)})),me==1/0&&(me=ze,ce=!1,fe=!1),Se&&me%Ce!=0&&(me=Math.floor(me/Ce)*Ce),w(fe?m:v)},this.toggleBlockComment=function(G,Z,ne,ie){var se=this.blockComment;if(se){!se.start&&se[0]&&(se=se[0]);var ce,fe,me=(Ie=new Ce(Z,ie.row,ie.column)).getCurrentToken(),ge=(Z.selection,Z.selection.toOrientedRange());if(me&&/comment/.test(me.type)){for(var Me,ke;me&&/comment/.test(me.type);){if(-1!=(Re=me.value.indexOf(se.start))){var xe=Ie.getCurrentTokenRow(),De=Ie.getCurrentTokenColumn()+Re;Me=new Se(xe,De,xe,De+se.start.length);break}me=Ie.stepBackward()}var Ie;for(me=(Ie=new Ce(Z,ie.row,ie.column)).getCurrentToken();me&&/comment/.test(me.type);){var Re;if(-1!=(Re=me.value.indexOf(se.end))){xe=Ie.getCurrentTokenRow(),De=Ie.getCurrentTokenColumn()+Re;ke=new Se(xe,De,xe,De+se.end.length);break}me=Ie.stepForward()}ke&&Z.remove(ke),Me&&(Z.remove(Me),ce=Me.start.row,fe=-se.start.length)}else fe=se.start.length,ce=ne.start.row,Z.insert(ne.end,se.end),Z.insert(ne.start,se.start);ge.start.row==ce&&(ge.start.column+=fe),ge.end.row==ce&&(ge.end.column+=fe),Z.selection.fromOrientedRange(ge)}},this.getNextLineIndent=function(G,Z,ne){return this.$getIndent(Z)},this.checkOutdent=function(G,Z,ne){return!1},this.autoOutdent=function(G,Z,ne){},this.$getIndent=function(G){return G.match(/^\s*/)[0]},this.createWorker=function(G){return null},this.createModeDelegates=function(G){for(var Z in this.$embeds=[],this.$modes={},G)if(G[Z]){var ne=G[Z],se=ne.prototype.$id,ce=ie.$modes[se];ce||(ie.$modes[se]=ce=new ne),ie.$modes[Z]||(ie.$modes[Z]=ce),this.$embeds.push(Z),this.$modes[Z]=ce}var fe=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(Z=0;Zthis.row)){var Z=function u(G,Z,ne){var ie="insert"==G.action,se=(ie?1:-1)*(G.end.row-G.start.row),ce=(ie?1:-1)*(G.end.column-G.start.column),fe=G.start,me=ie?fe:G.end;return o(Z,fe,ne)?{row:Z.row,column:Z.column}:o(me,Z,!ne)?{row:Z.row+se,column:Z.column+(Z.row==me.row?ce:0)}:{row:fe.row,column:fe.column}}(G,{row:this.row,column:this.column},this.$insertRight);this.setPosition(Z.row,Z.column,!0)}},e.prototype.setPosition=function(G,Z,ne){var ie;if(ie=ne?{row:G,column:Z}:this.$clipPositionToDocument(G,Z),this.row!=ie.row||this.column!=ie.column){var se={row:this.row,column:this.column};this.row=ie.row,this.column=ie.column,this._signal("change",{old:se,value:ie})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(G){this.document=G||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(G,Z){var ne={};return G>=this.document.getLength()?(ne.row=Math.max(0,this.document.getLength()-1),ne.column=this.document.getLine(ne.row).length):G<0?(ne.row=0,ne.column=0):(ne.row=G,ne.column=Math.min(this.document.getLine(ne.row).length,Math.max(0,Z))),Z<0&&(ne.column=0),ne},e}();ce.prototype.$insertRight=!1,ie.implement(ce.prototype,se),Z.Anchor=ce})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(G,Z,ne){"use strict";var ie=G("./lib/oop"),se=G("./apply_delta").applyDelta,ce=G("./lib/event_emitter").EventEmitter,fe=G("./range").Range,me=G("./anchor").Anchor,ge=function(){function e(G){this.$lines=[""],0===G.length?this.$lines=[""]:Array.isArray(G)?this.insertMergedLines({row:0,column:0},G):this.insert({row:0,column:0},G)}return e.prototype.setValue=function(G){var Z=this.getLength()-1;this.remove(new fe(0,0,Z,this.getLine(Z).length)),this.insert({row:0,column:0},G||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(G,Z){return new me(this,G,Z)},e.prototype.$detectNewLine=function(G){var Z=G.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=Z?Z[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(G){this.$newLineMode!==G&&(this.$newLineMode=G,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(G){return"\r\n"==G||"\r"==G||"\n"==G},e.prototype.getLine=function(G){return this.$lines[G]||""},e.prototype.getLines=function(G,Z){return this.$lines.slice(G,Z+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(G){return this.getLinesForRange(G).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(G){var Z;if(G.start.row===G.end.row)Z=[this.getLine(G.start.row).substring(G.start.column,G.end.column)];else{(Z=this.getLines(G.start.row,G.end.row))[0]=(Z[0]||"").substring(G.start.column);var ne=Z.length-1;G.end.row-G.start.row==ne&&(Z[ne]=Z[ne].substring(0,G.end.column))}return Z},e.prototype.insertLines=function(G,Z){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(G,Z)},e.prototype.removeLines=function(G,Z){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(G,Z)},e.prototype.insertNewLine=function(G){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(G,["",""])},e.prototype.insert=function(G,Z){return this.getLength()<=1&&this.$detectNewLine(Z),this.insertMergedLines(G,this.$split(Z))},e.prototype.insertInLine=function(G,Z){var ne=this.clippedPos(G.row,G.column),ie=this.pos(G.row,G.column+Z.length);return this.applyDelta({start:ne,end:ie,action:"insert",lines:[Z]},!0),this.clonePos(ie)},e.prototype.clippedPos=function(G,Z){var ne=this.getLength();void 0===G?G=ne:G<0?G=0:G>=ne&&(G=ne-1,Z=void 0);var ie=this.getLine(G);return null==Z&&(Z=ie.length),{row:G,column:Z=Math.min(Math.max(Z,0),ie.length)}},e.prototype.clonePos=function(G){return{row:G.row,column:G.column}},e.prototype.pos=function(G,Z){return{row:G,column:Z}},e.prototype.$clipPosition=function(G){var Z=this.getLength();return G.row>=Z?(G.row=Math.max(0,Z-1),G.column=this.getLine(Z-1).length):(G.row=Math.max(0,G.row),G.column=Math.min(Math.max(G.column,0),this.getLine(G.row).length)),G},e.prototype.insertFullLines=function(G,Z){var ne=0;(G=Math.min(Math.max(G,0),this.getLength()))0,ie=Z=0&&this.applyDelta({start:this.pos(G,this.getLine(G).length),end:this.pos(G+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(G,Z){return G instanceof fe||(G=fe.fromPoints(G.start,G.end)),0===Z.length&&G.isEmpty()?G.start:Z==this.getTextRange(G)?G.end:(this.remove(G),Z?this.insert(G.start,Z):G.start)},e.prototype.applyDeltas=function(G){for(var Z=0;Z=0;Z--)this.revertDelta(G[Z])},e.prototype.applyDelta=function(G,Z){var ne="insert"==G.action;(ne?G.lines.length<=1&&!G.lines[0]:!fe.comparePoints(G.start,G.end))||(ne&&G.lines.length>2e4?this.$splitAndapplyLargeDelta(G,2e4):(se(this.$lines,G,Z),this._signal("change",G)))},e.prototype.$safeApplyDelta=function(G){var Z=this.$lines.length;("remove"==G.action&&G.start.row20){ne.running=setTimeout(ne.$worker,20);break}}ne.currentLine=Z,-1==ie&&(ie=Z),ce<=ie&&ne.fireUpdateEvent(ce,ie)}}}return e.prototype.setTokenizer=function(G){this.tokenizer=G,this.lines=[],this.states=[],this.start(0)},e.prototype.setDocument=function(G){this.doc=G,this.lines=[],this.states=[],this.stop()},e.prototype.fireUpdateEvent=function(G,Z){var ne={first:G,last:Z};this._signal("update",{data:ne})},e.prototype.start=function(G){this.currentLine=Math.min(G||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},e.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},e.prototype.$updateOnChange=function(G){var Z=G.start.row,ne=G.end.row-Z;if(0===ne)this.lines[Z]=null;else if("remove"==G.action)this.lines.splice(Z,ne+1,null),this.states.splice(Z,ne+1,null);else{var ie=Array(ne+1);ie.unshift(Z,1),this.lines.splice.apply(this.lines,ie),this.states.splice.apply(this.states,ie)}this.currentLine=Math.min(Z,this.currentLine,this.doc.getLength()),this.stop()},e.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},e.prototype.getTokens=function(G){return this.lines[G]||this.$tokenizeRow(G)},e.prototype.getState=function(G){return this.currentLine==G&&this.$tokenizeRow(G),this.states[G]||"start"},e.prototype.$tokenizeRow=function(G){var Z=this.doc.getLine(G),ne=this.states[G-1],ie=this.tokenizer.getLineTokens(Z,ne,G);return this.states[G]+""!=ie.state+""?(this.states[G]=ie.state,this.lines[G+1]=null,this.currentLine>G+1&&(this.currentLine=G+1)):this.currentLine==G&&(this.currentLine=G+1),this.lines[G]=ie.tokens},e.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},e}();ie.implement(ce.prototype,se),Z.BackgroundTokenizer=ce})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],(function(G,Z,ne){"use strict";var ie=G("./lib/lang"),se=G("./range").Range,ce=function(){function e(G,Z,ne){void 0===ne&&(ne="text"),this.setRegexp(G),this.clazz=Z,this.type=ne}return e.prototype.setRegexp=function(G){this.regExp+""!=G+""&&(this.regExp=G,this.cache=[])},e.prototype.update=function(G,Z,ne,ce){if(this.regExp)for(var fe=ce.firstRow,me=ce.lastRow,ge={},Ce=fe;Ce<=me;Ce++){var Se=this.cache[Ce];null==Se&&((Se=ie.getMatchOffsets(ne.getLine(Ce),this.regExp)).length>this.MAX_RANGES&&(Se=Se.slice(0,this.MAX_RANGES)),Se=Se.map((function(G){return new se(Ce,G.offset,Ce,G.offset+G.length)})),this.cache[Ce]=Se.length?Se:"");for(var Me=Se.length;Me--;){var ke=Se[Me].toScreenRange(ne),xe=ke.toString();ge[xe]||(ge[xe]=!0,Z.drawSingleLineMarker(G,ke,this.clazz,ce))}}},e}();ce.prototype.MAX_RANGES=500,Z.SearchHighlight=ce})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(G,Z,ne){"use strict";function f(G){return{row:G.row,column:G.column}}function c(G){if(G=G||this,Array.isArray(G))return G.map(c).join("\n");var Z="";return G.action?(Z="insert"==G.action?"+":"-",Z+="["+G.lines+"]"):G.value&&(Z=Array.isArray(G.value)?G.value.map(h).join("\n"):h(G.value)),G.start&&(Z+=h(G)),(G.id||G.rev)&&(Z+="\t("+(G.id||G.rev)+")"),Z}function h(G){return G.start.row+":"+G.start.column+"=>"+G.end.row+":"+G.end.column}function p(G,Z){var ne="insert"==G.action,ie="insert"==Z.action;if(ne&&ie)if(ce(Z.start,G.end)>=0)m(Z,G,-1);else{if(!(ce(Z.start,G.start)<=0))return null;m(G,Z,1)}else if(ne&&!ie)if(ce(Z.start,G.end)>=0)m(Z,G,-1);else{if(!(ce(Z.end,G.start)<=0))return null;m(G,Z,-1)}else if(!ne&&ie)if(ce(Z.start,G.start)>=0)m(Z,G,1);else{if(!(ce(Z.start,G.start)<=0))return null;m(G,Z,1)}else if(!ne&&!ie)if(ce(Z.start,G.start)>=0)m(Z,G,1);else{if(!(ce(Z.end,G.start)<=0))return null;m(G,Z,-1)}return[Z,G]}function d(G,Z){for(var ne=G.length;ne--;)for(var ie=0;ie=0?m(G,Z,-1):(ce(G.start,Z.start)<=0||m(G,se.fromPoints(Z.start,G.start),-1),m(Z,G,1));else if(!ne&&ie)ce(Z.start,G.end)>=0?m(Z,G,-1):(ce(Z.start,G.start)<=0||m(Z,se.fromPoints(G.start,Z.start),-1),m(G,Z,1));else if(!ne&&!ie)if(ce(Z.start,G.end)>=0)m(Z,G,-1);else{var fe,me;if(!(ce(Z.end,G.start)<=0))return ce(G.start,Z.start)<0&&(fe=G,G=y(G,Z.start)),ce(G.end,Z.end)>0&&(me=y(G,Z.end)),g(Z.end,G.start,G.end,-1),me&&!fe&&(G.lines=me.lines,G.start=me.start,G.end=me.end,me=G),[Z,fe,me].filter(Boolean);m(G,Z,-1)}return[Z,G]}function m(G,Z,ne){g(G.start,Z.start,Z.end,ne),g(G.end,Z.start,Z.end,ne)}function g(G,Z,ne,ie){G.row==(1==ie?Z:ne).row&&(G.column+=ie*(ne.column-Z.column)),G.row+=ie*(ne.row-Z.row)}function y(G,Z){var ne=G.lines,ie=G.end;G.end=f(Z);var se=G.end.row-G.start.row,ce=ne.splice(se,ne.length),fe=se?Z.column:Z.column-G.start.column;return ne.push(ce[0].substring(0,fe)),ce[0]=ce[0].substr(fe),{start:f(Z),end:ie,lines:ce,action:G.action}}function b(G,Z){Z=function l(G){return{start:f(G.start),end:f(G.end),action:G.action,lines:G.lines.slice()}}(Z);for(var ne=G.length;ne--;){for(var ie=G[ne],se=0;sethis.$undoDepth-1&&this.$undoStack.splice(0,ie-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),G.id=this.$rev=++this.$maxRev}"remove"!=G.action&&"insert"!=G.action||(this.$lastDelta=G),this.lastDeltas.push(G)}},e.prototype.addSelection=function(G,Z){this.selections.push({value:G,rev:Z||this.$rev})},e.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},e.prototype.markIgnored=function(G,Z){null==Z&&(Z=this.$rev+1);for(var ne=this.$undoStack,ie=ne.length;ie--;){var se=ne[ie][0];if(se.id<=G)break;se.id0},e.prototype.canRedo=function(){return this.$redoStack.length>0},e.prototype.bookmark=function(G){null==G&&(G=this.$rev),this.mark=G},e.prototype.isAtBookmark=function(){return this.$rev===this.mark},e.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},e.prototype.fromJSON=function(G){this.reset(),this.$undoStack=G.$undoStack,this.$redoStack=G.$redoStack},e.prototype.$prettyPrint=function(G){return G?c(G):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)},e}();ie.prototype.hasUndo=ie.prototype.canUndo,ie.prototype.hasRedo=ie.prototype.canRedo,ie.prototype.isClean=ie.prototype.isAtBookmark,ie.prototype.markClean=ie.prototype.bookmark;var se=G("./range").Range,ce=se.comparePoints;se.comparePoints;Z.UndoManager=ie})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(G,Z,ne){"use strict";var ie=G("../range").Range,se=function(){function e(G,Z){this.foldData=G,Array.isArray(Z)?this.folds=Z:Z=this.folds=[Z];var ne=Z[Z.length-1];this.range=new ie(Z[0].start.row,Z[0].start.column,ne.end.row,ne.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(G){G.setFoldLine(this)}),this)}return e.prototype.shiftRow=function(G){this.start.row+=G,this.end.row+=G,this.folds.forEach((function(Z){Z.start.row+=G,Z.end.row+=G}))},e.prototype.addFold=function(G){if(G.sameRow){if(G.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(G),this.folds.sort((function(G,Z){return-G.range.compareEnd(Z.start.row,Z.start.column)})),this.range.compareEnd(G.start.row,G.start.column)>0?(this.end.row=G.end.row,this.end.column=G.end.column):this.range.compareStart(G.end.row,G.end.column)<0&&(this.start.row=G.start.row,this.start.column=G.start.column)}else if(G.start.row==this.end.row)this.folds.push(G),this.end.row=G.end.row,this.end.column=G.end.column;else{if(G.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(G),this.start.row=G.start.row,this.start.column=G.start.column}G.foldLine=this},e.prototype.containsRow=function(G){return G>=this.start.row&&G<=this.end.row},e.prototype.walk=function(G,Z,ne){var ie,se,ce=0,fe=this.folds,me=!0;null==Z&&(Z=this.end.row,ne=this.end.column);for(var ge=0;ge0)){var ge=ie(G,fe.start);return 0===me?Z&&0!==ge?-ce-2:ce:ge>0||0===ge&&!Z?ce:-ce-1}}return-ce-1},e.prototype.add=function(G){var Z=!G.isEmpty(),ne=this.pointIndex(G.start,Z);ne<0&&(ne=-ne-1);var ie=this.pointIndex(G.end,Z,ne);return ie<0?ie=-ie-1:ie++,this.ranges.splice(ne,ie-ne,G)},e.prototype.addList=function(G){for(var Z=[],ne=G.length;ne--;)Z.push.apply(Z,this.add(G[ne]));return Z},e.prototype.substractPoint=function(G){var Z=this.pointIndex(G);if(Z>=0)return this.ranges.splice(Z,1)},e.prototype.merge=function(){for(var G,Z=[],ne=this.ranges,se=(ne=ne.sort((function(G,Z){return ie(G.start,Z.start)})))[0],ce=1;ce=0},e.prototype.containsPoint=function(G){return this.pointIndex(G)>=0},e.prototype.rangeAtPoint=function(G){var Z=this.pointIndex(G);if(Z>=0)return this.ranges[Z]},e.prototype.clipRows=function(G,Z){var ne=this.ranges;if(ne[0].start.row>Z||ne[ne.length-1].start.row=ie)break}if("insert"==G.action)for(var ge=se-ie,Ce=-Z.column+ne.column;feie)break;if(Se.start.row==ie&&Se.start.column>=Z.column&&(Se.start.column==Z.column&&this.$bias<=0||(Se.start.column+=Ce,Se.start.row+=ge)),Se.end.row==ie&&Se.end.column>=Z.column){if(Se.end.column==Z.column&&this.$bias<0)continue;Se.end.column==Z.column&&Ce>0&&feSe.start.column&&Se.end.column==ce[fe+1].start.column&&(Se.end.column-=Ce),Se.end.column+=Ce,Se.end.row+=ge}}else for(ge=ie-se,Ce=Z.column-ne.column;fese)break;Se.end.rowZ.column)&&(Se.end.column=Z.column,Se.end.row=Z.row):(Se.end.column+=Ce,Se.end.row+=ge):Se.end.row>se&&(Se.end.row+=ge),Se.start.rowZ.column)&&(Se.start.column=Z.column,Se.start.row=Z.row):(Se.start.column+=Ce,Se.start.row+=ge):Se.start.row>se&&(Se.start.row+=ge)}if(0!=ge&&fe=G)return se;if(se.end.row>G)return null}return null},this.getNextFoldLine=function(G,Z){var ne=this.$foldData,ie=0;for(Z&&(ie=ne.indexOf(Z)),-1==ie&&(ie=0);ie=G)return se}return null},this.getFoldedRowCount=function(G,Z){for(var ne=this.$foldData,ie=Z-G+1,se=0;se=Z){me=G?ie-=Z-me:ie=0);break}fe>=G&&(ie-=me>=G?fe-me:fe-G+1)}return ie},this.$addFoldLine=function(G){return this.$foldData.push(G),this.$foldData.sort((function(G,Z){return G.start.row-Z.start.row})),G},this.addFold=function(G,Z){var ne,ie=this.$foldData,fe=!1;G instanceof ce?ne=G:(ne=new ce(Z,G)).collapseChildren=Z.collapseChildren,this.$clipRangeToDocument(ne.range);var me=ne.start.row,ge=ne.start.column,Ce=ne.end.row,Se=ne.end.column,Me=this.getFoldAt(me,ge,1),ke=this.getFoldAt(Ce,Se,-1);if(Me&&ke==Me)return Me.addSubFold(ne);Me&&!Me.range.isStart(me,ge)&&this.removeFold(Me),ke&&!ke.range.isEnd(Ce,Se)&&this.removeFold(ke);var xe=this.getFoldsInRange(ne.range);xe.length>0&&(this.removeFolds(xe),ne.collapseChildren||xe.forEach((function(G){ne.addSubFold(G)})));for(var De=0;De0&&this.foldAll(G.start.row+1,G.end.row,G.collapseChildren-1),G.subFolds=[]},this.expandFolds=function(G){G.forEach((function(G){this.expandFold(G)}),this)},this.unfold=function(G,Z){var ne,se;if(null==G)ne=new ie(0,0,this.getLength(),0),null==Z&&(Z=!0);else if("number"==typeof G)ne=new ie(G,0,G,this.getLine(G).length);else if("row"in G)ne=ie.fromPoints(G,G);else{if(Array.isArray(G))return se=[],G.forEach((function(G){se=se.concat(this.unfold(G))}),this),se;ne=G}for(var ce=se=this.getFoldsInRangeList(ne);1==se.length&&ie.comparePoints(se[0].start,ne.start)<0&&ie.comparePoints(se[0].end,ne.end)>0;)this.expandFolds(se),se=this.getFoldsInRangeList(ne);if(0!=Z?this.removeFolds(se):this.expandFolds(se),ce.length)return ce},this.isRowFolded=function(G,Z){return!!this.getFoldLine(G,Z)},this.getRowFoldEnd=function(G,Z){var ne=this.getFoldLine(G,Z);return ne?ne.end.row:G},this.getRowFoldStart=function(G,Z){var ne=this.getFoldLine(G,Z);return ne?ne.start.row:G},this.getFoldDisplayLine=function(G,Z,ne,ie,se){null==ie&&(ie=G.start.row),null==se&&(se=0),null==Z&&(Z=G.end.row),null==ne&&(ne=this.getLine(Z).length);var ce=this.doc,fe="";return G.walk((function(G,Z,ne,me){if(!(ZSe)break}while(ce&&ge.test(ce.type)&&!/^comment.start/.test(ce.type));ce=se.stepBackward()}else ce=se.getCurrentToken();return Ce.end.row=se.getCurrentTokenRow(),Ce.end.column=se.getCurrentTokenColumn(),/^comment.end/.test(ce.type)||(Ce.end.column+=ce.value.length-2),Ce}},this.foldAll=function(G,Z,ne,ie){null==ne&&(ne=1e5);var se=this.foldWidgets;if(se){Z=Z||this.getLength();for(var ce=G=G||0;ce=G&&(ce=fe.end.row,fe.collapseChildren=ne,this.addFold("...",fe))}}},this.foldToLevel=function(G){for(this.foldAll();G-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var G=this;this.foldAll(null,null,null,(function(Z){for(var ne=G.getTokens(Z),ie=0;ie=0;){var ce=ne[se];if(null==ce&&(ce=ne[se]=this.getFoldWidget(se)),"start"==ce){var fe=this.getFoldWidgetRange(se);if(ie||(ie=fe),fe&&fe.end.row>=G)break}se--}return{range:-1!==se&&fe,firstRange:ie}},this.onFoldWidgetClick=function(G,Z){Z instanceof me&&(Z=Z.domEvent);var ne={children:Z.shiftKey,all:Z.ctrlKey||Z.metaKey,siblings:Z.altKey};if(!this.$toggleFoldWidget(G,ne)){var ie=Z.target||Z.srcElement;ie&&/ace_fold-widget/.test(ie.className)&&(ie.className+=" ace_invalid")}},this.$toggleFoldWidget=function(G,Z){if(this.getFoldWidget){var ne=this.getFoldWidget(G),ie=this.getLine(G),se="end"===ne?-1:1,ce=this.getFoldAt(G,-1===se?0:ie.length,se);if(ce)return Z.children||Z.all?this.removeFold(ce):this.expandFold(ce),ce;var fe=this.getFoldWidgetRange(G,!0);if(fe&&!fe.isMultiLine()&&(ce=this.getFoldAt(fe.start.row,fe.start.column,1))&&fe.isEqual(ce.range))return this.removeFold(ce),ce;if(Z.siblings){var me=this.getParentFoldRangeData(G);if(me.range)var ge=me.range.start.row+1,Ce=me.range.end.row;this.foldAll(ge,Ce,Z.all?1e4:0)}else Z.children?(Ce=fe?fe.end.row:this.getLength(),this.foldAll(G+1,Ce,Z.all?1e4:0)):fe&&(Z.all&&(fe.collapseChildren=1e4),this.addFold("...",fe));return fe}},this.toggleFoldWidget=function(G){var Z=this.selection.getCursor().row;Z=this.getRowFoldStart(Z);var ne=this.$toggleFoldWidget(Z,{});if(!ne){var ie=this.getParentFoldRangeData(Z,!0);if(ne=ie.range||ie.firstRange){Z=ne.start.row;var se=this.getFoldAt(Z,this.getLine(Z).length,1);se?this.removeFold(se):this.addFold("...",ne)}}},this.updateFoldWidgets=function(G){var Z=G.start.row,ne=G.end.row-Z;if(0===ne)this.foldWidgets[Z]=null;else if("remove"==G.action)this.foldWidgets.splice(Z,ne+1,null);else{var ie=Array(ne+1);ie.unshift(Z,1),this.foldWidgets.splice.apply(this.foldWidgets,ie)}},this.tokenizerUpdateFoldWidgets=function(G){var Z=G.data;Z.first!=Z.last&&this.foldWidgets.length>Z.first&&this.foldWidgets.splice(Z.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(G,Z,ne){"use strict";var ie=G("../token_iterator").TokenIterator,se=G("../range").Range;Z.BracketMatch=function s(){this.findMatchingBracket=function(G,Z){if(0==G.column)return null;var ne=Z||this.getLine(G.row).charAt(G.column-1);if(""==ne)return null;var ie=ne.match(/([\(\[\{])|([\)\]\}])/);return ie?ie[1]?this.$findClosingBracket(ie[1],G):this.$findOpeningBracket(ie[2],G):null},this.getBracketRange=function(G){var Z,ne=this.getLine(G.row),ie=!0,ce=ne.charAt(G.column-1),fe=ce&&ce.match(/([\(\[\{])|([\)\]\}])/);if(fe||(ce=ne.charAt(G.column),G={row:G.row,column:G.column+1},fe=ce&&ce.match(/([\(\[\{])|([\)\]\}])/),ie=!1),!fe)return null;if(fe[1]){if(!(me=this.$findClosingBracket(fe[1],G)))return null;Z=se.fromPoints(G,me),ie||(Z.end.column++,Z.start.column--),Z.cursor=Z.end}else{var me;if(!(me=this.$findOpeningBracket(fe[2],G)))return null;Z=se.fromPoints(me,G),ie||(Z.start.column++,Z.end.column--),Z.cursor=Z.start}return Z},this.getMatchingBracketRanges=function(G,Z){var ne=this.getLine(G.row),ie=/([\(\[\{])|([\)\]\}])/,ce=!Z&&ne.charAt(G.column-1),fe=ce&&ce.match(ie);if(fe||(ce=(void 0===Z||Z)&&ne.charAt(G.column),G={row:G.row,column:G.column+1},fe=ce&&ce.match(ie)),!fe)return null;var me=new se(G.row,G.column-1,G.row,G.column),ge=fe[1]?this.$findClosingBracket(fe[1],G):this.$findOpeningBracket(fe[2],G);return ge?[me,new se(ge.row,ge.column,ge.row,ge.column+1)]:[me]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(G,Z,ne){var se=this.$brackets[G],ce=1,fe=new ie(this,Z.row,Z.column),me=fe.getCurrentToken();if(me||(me=fe.stepForward()),me){ne||(ne=new RegExp("(\\.?"+me.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var ge=Z.column-fe.getCurrentTokenColumn()-2,Ce=me.value;;){for(;ge>=0;){var Se=Ce.charAt(ge);if(Se==se){if(0==(ce-=1))return{row:fe.getCurrentTokenRow(),column:ge+fe.getCurrentTokenColumn()}}else Se==G&&(ce+=1);ge-=1}do{me=fe.stepBackward()}while(me&&!ne.test(me.type));if(null==me)break;ge=(Ce=me.value).length-1}return null}},this.$findClosingBracket=function(G,Z,ne){var se=this.$brackets[G],ce=1,fe=new ie(this,Z.row,Z.column),me=fe.getCurrentToken();if(me||(me=fe.stepForward()),me){ne||(ne=new RegExp("(\\.?"+me.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var ge=Z.column-fe.getCurrentTokenColumn();;){for(var Ce=me.value,Se=Ce.length;ge"===Z.value?ie=!0:-1!==Z.type.indexOf("tag-name")&&(ne=!0))}while(Z&&!ne);return Z},this.$findClosingTag=function(G,Z){var ne,ie=Z.value,ce=Z.value,fe=0,me=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1);Z=G.stepForward();var ge=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+Z.value.length),Ce=!1;do{if(ne=Z,Z=G.stepForward()){if(">"===Z.value&&!Ce){var Se=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1);Ce=!0}if(-1!==Z.type.indexOf("tag-name")){if(ce===(ie=Z.value))if("<"===ne.value)fe++;else if(""!==Z.value)return;var xe=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1)}}else if(ce===ie&&"/>"===Z.value&&--fe<0)xe=ke=Me=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+2),Se=new se(ge.end.row,ge.end.column,ge.end.row,ge.end.column+1)}}while(Z&&fe>=0);if(me&&Se&&Me&&xe&&ge&&ke)return{openTag:new se(me.start.row,me.start.column,Se.end.row,Se.end.column),closeTag:new se(Me.start.row,Me.start.column,xe.end.row,xe.end.column),openTagName:ge,closeTagName:ke}},this.$findOpeningTag=function(G,Z){var ne=G.getCurrentToken(),ie=Z.value,ce=0,fe=G.getCurrentTokenRow(),me=G.getCurrentTokenColumn(),ge=me+2,Ce=new se(fe,me,fe,ge);G.stepForward();var Se=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+Z.value.length);if((Z=G.stepForward())&&">"===Z.value){var Me=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1);G.stepBackward(),G.stepBackward();do{if(Z=ne,fe=G.getCurrentTokenRow(),ge=(me=G.getCurrentTokenColumn())+Z.value.length,ne=G.stepBackward(),Z)if(-1!==Z.type.indexOf("tag-name")){if(ie===Z.value)if("<"===ne.value){if(++ce>0){var ke=new se(fe,me,fe,ge),xe=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1);do{Z=G.stepForward()}while(Z&&">"!==Z.value);var De=new se(G.getCurrentTokenRow(),G.getCurrentTokenColumn(),G.getCurrentTokenRow(),G.getCurrentTokenColumn()+1)}}else""===Z.value){for(var Ie=0,Re=ne;Re;){if(-1!==Re.type.indexOf("tag-name")&&Re.value===ie){ce--;break}if("<"===Re.value)break;Re=G.stepBackward(),Ie++}for(var ze=0;ze=4352&&G<=4447||G>=4515&&G<=4519||G>=4602&&G<=4607||G>=9001&&G<=9002||G>=11904&&G<=11929||G>=11931&&G<=12019||G>=12032&&G<=12245||G>=12272&&G<=12283||G>=12288&&G<=12350||G>=12353&&G<=12438||G>=12441&&G<=12543||G>=12549&&G<=12589||G>=12593&&G<=12686||G>=12688&&G<=12730||G>=12736&&G<=12771||G>=12784&&G<=12830||G>=12832&&G<=12871||G>=12880&&G<=13054||G>=13056&&G<=19903||G>=19968&&G<=42124||G>=42128&&G<=42182||G>=43360&&G<=43388||G>=44032&&G<=55203||G>=55216&&G<=55238||G>=55243&&G<=55291||G>=63744&&G<=64255||G>=65040&&G<=65049||G>=65072&&G<=65106||G>=65108&&G<=65126||G>=65128&&G<=65131||G>=65281&&G<=65376||G>=65504&&G<=65510)}var ie=G("./lib/oop"),se=G("./lib/lang"),ce=G("./bidihandler").BidiHandler,fe=G("./config"),me=G("./lib/event_emitter").EventEmitter,ge=G("./selection").Selection,Ce=G("./mode/text").Mode,Se=G("./range").Range,Me=G("./document").Document,ke=G("./background_tokenizer").BackgroundTokenizer,xe=G("./search_highlight").SearchHighlight,De=G("./undomanager").UndoManager,Ie=function(){function e(G,Z){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++e.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new ke((new Ce).getTokenizer(),this);var ne=this;this.bgTokenizer.on("update",(function(G){ne._signal("tokenizerUpdate",G)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof G&&G.getLine||(G=new Me(G)),this.setDocument(G),this.selection=new ge(this),this.$bidiHandler=new ce(this),fe.resetOptions(this),this.setMode(Z),fe._signal("session",this),this.destroyed=!1}return e.prototype.setDocument=function(G){this.doc&&this.doc.off("change",this.$onChange),this.doc=G,G.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},e.prototype.getDocument=function(){return this.doc},e.prototype.$resetRowCache=function(G){if(!G)return this.$docRowCache=[],void(this.$screenRowCache=[]);var Z=this.$docRowCache.length,ne=this.$getRowCacheIndex(this.$docRowCache,G)+1;Z>ne&&(this.$docRowCache.splice(ne,Z),this.$screenRowCache.splice(ne,Z))},e.prototype.$getRowCacheIndex=function(G,Z){for(var ne=0,ie=G.length-1;ne<=ie;){var se=ne+ie>>1,ce=G[se];if(Z>ce)ne=se+1;else{if(!(Z=Z);ce++);return(ne=ie[ce])?(ne.index=ce,ne.start=se-ne.value.length,ne):null},e.prototype.setUndoManager=function(G){if(this.$undoManager=G,this.$informUndoManager&&this.$informUndoManager.cancel(),G){var Z=this;G.addSession(this),this.$syncInformUndoManager=function(){Z.$informUndoManager.cancel(),Z.mergeUndoDeltas=!1},this.$informUndoManager=se.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},e.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},e.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},e.prototype.getTabString=function(){return this.getUseSoftTabs()?se.stringRepeat(" ",this.getTabSize()):"\t"},e.prototype.setUseSoftTabs=function(G){this.setOption("useSoftTabs",G)},e.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},e.prototype.setTabSize=function(G){this.setOption("tabSize",G)},e.prototype.getTabSize=function(){return this.$tabSize},e.prototype.isTabStop=function(G){return this.$useSoftTabs&&G.column%this.$tabSize==0},e.prototype.setNavigateWithinSoftTabs=function(G){this.setOption("navigateWithinSoftTabs",G)},e.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},e.prototype.setOverwrite=function(G){this.setOption("overwrite",G)},e.prototype.getOverwrite=function(){return this.$overwrite},e.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},e.prototype.addGutterDecoration=function(G,Z){this.$decorations[G]||(this.$decorations[G]=""),this.$decorations[G]+=" "+Z,this._signal("changeBreakpoint",{})},e.prototype.removeGutterDecoration=function(G,Z){this.$decorations[G]=(this.$decorations[G]||"").replace(" "+Z,""),this._signal("changeBreakpoint",{})},e.prototype.getBreakpoints=function(){return this.$breakpoints},e.prototype.setBreakpoints=function(G){this.$breakpoints=[];for(var Z=0;Z0&&(ie=!!ne.charAt(Z-1).match(this.tokenRe)),ie||(ie=!!ne.charAt(Z).match(this.tokenRe)),ie)var se=this.tokenRe;else if(/^\s+$/.test(ne.slice(Z-1,Z+1)))se=/\s/;else se=this.nonTokenRe;var ce=Z;if(ce>0){do{ce--}while(ce>=0&&ne.charAt(ce).match(se));ce++}for(var fe=Z;feG&&(G=Z.screenWidth)})),this.lineWidgetWidth=G},e.prototype.$computeWidth=function(G){if(this.$modified||G){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var Z=this.doc.getAllLines(),ne=this.$rowLengthCache,ie=0,se=0,ce=this.$foldData[se],fe=ce?ce.start.row:1/0,me=Z.length,ge=0;gefe){if((ge=ce.end.row+1)>=me)break;fe=(ce=this.$foldData[se++])?ce.start.row:1/0}null==ne[ge]&&(ne[ge]=this.$getStringScreenWidth(Z[ge])[0]),ne[ge]>ie&&(ie=ne[ge])}this.screenWidth=ie}},e.prototype.getLine=function(G){return this.doc.getLine(G)},e.prototype.getLines=function(G,Z){return this.doc.getLines(G,Z)},e.prototype.getLength=function(){return this.doc.getLength()},e.prototype.getTextRange=function(G){return this.doc.getTextRange(G||this.selection.getRange())},e.prototype.insert=function(G,Z){return this.doc.insert(G,Z)},e.prototype.remove=function(G){return this.doc.remove(G)},e.prototype.removeFullLines=function(G,Z){return this.doc.removeFullLines(G,Z)},e.prototype.undoChanges=function(G,Z){if(G.length){this.$fromUndo=!0;for(var ne=G.length-1;-1!=ne;ne--){var ie=G[ne];"insert"==ie.action||"remove"==ie.action?this.doc.revertDelta(ie):ie.folds&&this.addFolds(ie.folds)}!Z&&this.$undoSelect&&(G.selectionBefore?this.selection.fromJSON(G.selectionBefore):this.selection.setRange(this.$getUndoSelection(G,!0))),this.$fromUndo=!1}},e.prototype.redoChanges=function(G,Z){if(G.length){this.$fromUndo=!0;for(var ne=0;neG.end.column&&(ce.start.column+=Ce),ce.end.row==G.end.row&&ce.end.column>G.end.column&&(ce.end.column+=Ce)),fe&&ce.start.row>=G.end.row&&(ce.start.row+=fe,ce.end.row+=fe)}if(ce.end=this.insert(ce.start,ie),se.length){var me=G.start,ge=ce.start,Ce=(fe=ge.row-me.row,ge.column-me.column);this.addFolds(se.map((function(G){return(G=G.clone()).start.row==me.row&&(G.start.column+=Ce),G.end.row==me.row&&(G.end.column+=Ce),G.start.row+=fe,G.end.row+=fe,G})))}return ce},e.prototype.indentRows=function(G,Z,ne){ne=ne.replace(/\t/g,this.getTabString());for(var ie=G;ie<=Z;ie++)this.doc.insertInLine({row:ie,column:0},ne)},e.prototype.outdentRows=function(G){for(var Z=G.collapseRows(),ne=new Se(0,0,0,0),ie=this.getTabSize(),se=Z.start.row;se<=Z.end.row;++se){var ce=this.getLine(se);ne.start.row=se,ne.end.row=se;for(var fe=0;fe0){var se;if((se=this.getRowFoldEnd(Z+ne))>this.doc.getLength()-1)return 0;ie=se-Z}else{G=this.$clipRowToDocument(G);ie=(Z=this.$clipRowToDocument(Z))-G+1}var ce=new Se(G,0,Z,Number.MAX_VALUE),fe=this.getFoldsInRange(ce).map((function(G){return(G=G.clone()).start.row+=ie,G.end.row+=ie,G})),me=0==ne?this.doc.getLines(G,Z):this.doc.removeFullLines(G,Z);return this.doc.insertFullLines(G+ie,me),fe.length&&this.addFolds(fe),ie},e.prototype.moveLinesUp=function(G,Z){return this.$moveLines(G,Z,-1)},e.prototype.moveLinesDown=function(G,Z){return this.$moveLines(G,Z,1)},e.prototype.duplicateLines=function(G,Z){return this.$moveLines(G,Z,0)},e.prototype.$clipRowToDocument=function(G){return Math.max(0,Math.min(G,this.doc.getLength()-1))},e.prototype.$clipColumnToRow=function(G,Z){return Z<0?0:Math.min(this.doc.getLine(G).length,Z)},e.prototype.$clipPositionToDocument=function(G,Z){if(Z=Math.max(0,Z),G<0)G=0,Z=0;else{var ne=this.doc.getLength();G>=ne?(G=ne-1,Z=this.doc.getLine(ne-1).length):Z=Math.min(this.doc.getLine(G).length,Z)}return{row:G,column:Z}},e.prototype.$clipRangeToDocument=function(G){G.start.row<0?(G.start.row=0,G.start.column=0):G.start.column=this.$clipColumnToRow(G.start.row,G.start.column);var Z=this.doc.getLength()-1;return G.end.row>Z?(G.end.row=Z,G.end.column=this.doc.getLine(Z).length):G.end.column=this.$clipColumnToRow(G.end.row,G.end.column),G},e.prototype.setUseWrapMode=function(G){if(G!=this.$useWrapMode){if(this.$useWrapMode=G,this.$modified=!0,this.$resetRowCache(0),G){var Z=this.getLength();this.$wrapData=Array(Z),this.$updateWrapData(0,Z-1)}this._signal("changeWrapMode")}},e.prototype.getUseWrapMode=function(){return this.$useWrapMode},e.prototype.setWrapLimitRange=function(G,Z){this.$wrapLimitRange.min===G&&this.$wrapLimitRange.max===Z||(this.$wrapLimitRange={min:G,max:Z},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},e.prototype.adjustWrapLimit=function(G,Z){var ne=this.$wrapLimitRange;ne.max<0&&(ne={min:Z,max:Z});var ie=this.$constrainWrapLimit(G,ne.min,ne.max);return ie!=this.$wrapLimit&&ie>1&&(this.$wrapLimit=ie,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},e.prototype.$constrainWrapLimit=function(G,Z,ne){return Z&&(G=Math.max(Z,G)),ne&&(G=Math.min(ne,G)),G},e.prototype.getWrapLimit=function(){return this.$wrapLimit},e.prototype.setWrapLimit=function(G){this.setWrapLimitRange(G,G)},e.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},e.prototype.$updateInternalDataOnChange=function(G){var Z=this.$useWrapMode,ne=G.action,ie=G.start,se=G.end,ce=ie.row,fe=se.row,me=fe-ce,ge=null;if(this.$updating=!0,0!=me)if("remove"===ne){this[Z?"$wrapData":"$rowLengthCache"].splice(ce,me);var Ce=this.$foldData;ge=this.getFoldsInRange(G),this.removeFolds(ge);var Se=0;if(Ie=this.getFoldLine(se.row)){Ie.addRemoveChars(se.row,se.column,ie.column-se.column),Ie.shiftRow(-me);var Me=this.getFoldLine(ce);Me&&Me!==Ie&&(Me.merge(Ie),Ie=Me),Se=Ce.indexOf(Ie)+1}for(;Se=se.row&&Ie.shiftRow(-me)}fe=ce}else{var ke=Array(me);ke.unshift(ce,0);var xe=Z?this.$wrapData:this.$rowLengthCache;xe.splice.apply(xe,ke);Ce=this.$foldData,Se=0;if(Ie=this.getFoldLine(ce)){var De=Ie.range.compareInside(ie.row,ie.column);0==De?(Ie=Ie.split(ie.row,ie.column))&&(Ie.shiftRow(me),Ie.addRemoveChars(fe,0,se.column-ie.column)):-1==De&&(Ie.addRemoveChars(ce,0,se.column-ie.column),Ie.shiftRow(me)),Se=Ce.indexOf(Ie)+1}for(;Se=ce&&Ie.shiftRow(me)}}else me=Math.abs(G.start.column-G.end.column),"remove"===ne&&(ge=this.getFoldsInRange(G),this.removeFolds(ge),me=-me),(Ie=this.getFoldLine(ce))&&Ie.addRemoveChars(ce,ie.column,me);return Z&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,Z?this.$updateWrapData(ce,fe):this.$updateRowLengthCache(ce,fe),ge},e.prototype.$updateRowLengthCache=function(G,Z,ne){this.$rowLengthCache[G]=null,this.$rowLengthCache[Z]=null},e.prototype.$updateWrapData=function(G,Z){var ne,ie,se=this.doc.getAllLines(),ce=this.getTabSize(),fe=this.$wrapData,me=this.$wrapLimit,ge=G;for(Z=Math.min(Z,se.length-1);ge<=Z;)(ie=this.getFoldLine(ge,ie))?(ne=[],ie.walk(function(G,Z,ie,ce){var fe;if(null!=G){(fe=this.$getDisplayTokens(G,ne.length))[0]=$e;for(var me=1;meZ-Se;){var Me=ce+Z-Se;if(G[Me-1]>=ot&&G[Me]>=ot)c(Me);else if(G[Me]!=$e&&G[Me]!=Je){for(var ke=Math.max(Me-(Z-(Z>>2)),ce-1);Me>ke&&G[Me]<$e;)Me--;if(me){for(;Me>ke&&G[Me]<$e;)Me--;for(;Me>ke&&G[Me]==it;)Me--}else for(;Me>ke&&G[Me]ke?c(++Me):(G[Me=ce+Z]==ze&&Me--,c(Me-Se))}else{for(;Me!=ce-1&&G[Me]!=$e;Me--);if(Me>ce){c(Me);continue}for(Me=ce+Z;Me39&&ce<48||ce>57&&ce<64?ie.push(it):ce>=4352&&T(ce)?ie.push(Re,ze):ie.push(Re)}return ie},e.prototype.$getStringScreenWidth=function(G,Z,ne){if(0==Z)return[0,0];var ie,se;for(null==Z&&(Z=1/0),ne=ne||0,se=0;se=4352&&T(ie)?ne+=2:ne+=1,!(ne>Z));se++);return[ne,se]},e.prototype.getRowLength=function(G){var Z=1;return this.lineWidgets&&(Z+=this.lineWidgets[G]&&this.lineWidgets[G].rowCount||0),this.$useWrapMode&&this.$wrapData[G]?this.$wrapData[G].length+Z:Z},e.prototype.getRowLineCount=function(G){return this.$useWrapMode&&this.$wrapData[G]?this.$wrapData[G].length+1:1},e.prototype.getRowWrapIndent=function(G){if(this.$useWrapMode){var Z=this.screenToDocumentPosition(G,Number.MAX_VALUE),ne=this.$wrapData[Z.row];return ne.length&&ne[0]=0){me=Ce[Se],ce=this.$docRowCache[Se];var ke=G>Ce[Me-1]}else ke=!Me;for(var xe=this.getLength()-1,De=this.getNextFoldLine(ce),Ie=De?De.start.row:1/0;me<=G&&!(me+(ge=this.getRowLength(ce))>G||ce>=xe);)me+=ge,++ce>Ie&&(ce=De.end.row+1,Ie=(De=this.getNextFoldLine(ce,De))?De.start.row:1/0),ke&&(this.$docRowCache.push(ce),this.$screenRowCache.push(me));if(De&&De.start.row<=ce)ie=this.getFoldDisplayLine(De),ce=De.start.row;else{if(me+ge<=G||ce>xe)return{row:xe,column:this.getLine(xe).length};ie=this.getLine(ce),De=null}var Re=0,ze=Math.floor(G-me);if(this.$useWrapMode){var $e=this.$wrapData[ce];$e&&(se=$e[ze],ze>0&&$e.length&&(Re=$e.indent,fe=$e[ze-1]||$e[$e.length-1],ie=ie.substring(fe)))}return void 0!==ne&&this.$bidiHandler.isBidiRow(me+ze,ce,ze)&&(Z=this.$bidiHandler.offsetToCol(ne)),fe+=this.$getStringScreenWidth(ie,Z-Re)[1],this.$useWrapMode&&fe>=se&&(fe=se-1),De?De.idxToPosition(fe):{row:ce,column:fe}},e.prototype.documentToScreenPosition=function(G,Z){if(void 0===Z)var ne=this.$clipPositionToDocument(G.row,G.column);else ne=this.$clipPositionToDocument(G,Z);G=ne.row,Z=ne.column;var ie,se=0,ce=null;(ie=this.getFoldAt(G,Z,1))&&(G=ie.start.row,Z=ie.start.column);var fe,me=0,ge=this.$docRowCache,Ce=this.$getRowCacheIndex(ge,G),Se=ge.length;if(Se&&Ce>=0){me=ge[Ce],se=this.$screenRowCache[Ce];var Me=G>ge[Se-1]}else Me=!Se;for(var ke=this.getNextFoldLine(me),xe=ke?ke.start.row:1/0;me=xe){if((fe=ke.end.row+1)>G)break;xe=(ke=this.getNextFoldLine(fe,ke))?ke.start.row:1/0}else fe=me+1;se+=this.getRowLength(me),me=fe,Me&&(this.$docRowCache.push(me),this.$screenRowCache.push(se))}var De="";ke&&me>=xe?(De=this.getFoldDisplayLine(ke,G,Z),ce=ke.start.row):(De=this.getLine(G).substring(0,Z),ce=G);var Ie=0;if(this.$useWrapMode){var Re=this.$wrapData[ce];if(Re){for(var ze=0;De.length>=Re[ze];)se++,ze++;De=De.substring(Re[ze-1]||0,De.length),Ie=ze>0?Re.indent:0}}return this.lineWidgets&&this.lineWidgets[me]&&this.lineWidgets[me].rowsAbove&&(se+=this.lineWidgets[me].rowsAbove),{row:se,column:Ie+this.$getStringScreenWidth(De)[0]}},e.prototype.documentToScreenColumn=function(G,Z){return this.documentToScreenPosition(G,Z).column},e.prototype.documentToScreenRow=function(G,Z){return this.documentToScreenPosition(G,Z).row},e.prototype.getScreenLength=function(){var G=0,Z=null;if(this.$useWrapMode)for(var ne=this.$wrapData.length,ie=0,se=(me=0,(Z=this.$foldData[me++])?Z.start.row:1/0);iese&&(ie=Z.end.row+1,se=(Z=this.$foldData[me++])?Z.start.row:1/0)}else{G=this.getLength();for(var fe=this.$foldData,me=0;mene);ce++);return[ie,ce]})},e.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},e}();Ie.$uid=0,Ie.prototype.$modes=fe.$modes,Ie.prototype.getValue=Ie.prototype.toString,Ie.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},Ie.prototype.$overwrite=!1,Ie.prototype.$mode=null,Ie.prototype.$modeId=null,Ie.prototype.$scrollTop=0,Ie.prototype.$scrollLeft=0,Ie.prototype.$wrapLimit=80,Ie.prototype.$useWrapMode=!1,Ie.prototype.$wrapLimitRange={min:null,max:null},Ie.prototype.lineWidgets=null,Ie.prototype.isFullWidth=T,ie.implement(Ie.prototype,me);var Re=1,ze=2,$e=3,Je=4,it=9,ot=10,at=11,st=12;G("./edit_session/folding").Folding.call(Ie.prototype),G("./edit_session/bracket_match").BracketMatch.call(Ie.prototype),fe.defineOptions(Ie.prototype,"session",{wrap:{set:function(G){if(G&&"off"!=G?"free"==G?G=!0:"printMargin"==G?G=-1:"string"==typeof G&&(G=parseInt(G,10)||!1):G=!1,this.$wrap!=G)if(this.$wrap=G,G){var Z="number"==typeof G?G:null;this.setWrapLimitRange(Z,Z),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(G){(G="auto"==G?"text"!=this.$mode.type:"text"!=G)!=this.$wrapAsCode&&(this.$wrapAsCode=G,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(G){this.$useWorker=G,this.$stopWorker(),G&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(G){(G=parseInt(G))>0&&this.$tabSize!==G&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=G,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(G){this.setFoldStyle(G)},handlesSet:!0},overwrite:{set:function(G){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(G){this.doc.setNewLineMode(G)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(G){this.setMode(G)},get:function(){return this.$modeId},handlesSet:!0}}),Z.EditSession=Ie})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(G,Z,ne){"use strict";var ie=G("./lib/lang"),se=G("./lib/oop"),ce=G("./range").Range,fe=function(){function e(){this.$options={}}return e.prototype.set=function(G){return se.mixin(this.$options,G),this},e.prototype.getOptions=function(){return ie.copyObject(this.$options)},e.prototype.setOptions=function(G){this.$options=G},e.prototype.find=function(G){var Z=this.$options,ne=this.$matchIterator(G,Z);if(!ne)return!1;var ie=null;return ne.forEach((function(G,ne,se,fe){return ie=new ce(G,ne,se,fe),!(ne==fe&&Z.start&&Z.start.start&&0!=Z.skipCurrent&&ie.isEqual(Z.start))||(ie=null,!1)})),ie},e.prototype.findAll=function(G){var Z=this.$options;if(!Z.needle)return[];this.$assembleRegExp(Z);var ne=Z.range,se=ne?G.getLines(ne.start.row,ne.end.row):G.doc.getAllLines(),fe=[],me=Z.re;if(Z.$isMultiLine){var ge,Ce=me.length,Se=se.length-Ce;e:for(var Me=me.offset||0;Me<=Se;Me++){for(var ke=0;keIe||(fe.push(ge=new ce(Me,Ie,Me+Ce-1,Re)),Ce>2&&(Me=Me+Ce-2))}}else for(var ze=0;zeot&&fe[ke].end.row==at;)ke--;for(fe=fe.slice(ze,ke+1),ze=0,ke=fe.length;ze=me;ne--)if(c(ne,Number.MAX_VALUE,G))return;if(0!=Z.wrap)for(ne=ge,me=fe.row;ne>=me;ne--)if(c(ne,Number.MAX_VALUE,G))return}};else f=function(G){var ne=fe.row;if(!c(ne,fe.column,G)){for(ne+=1;ne<=ge;ne++)if(c(ne,0,G))return;if(0!=Z.wrap)for(ne=me,ge=fe.row;ne<=ge;ne++)if(c(ne,0,G))return}};if(Z.$isMultiLine)var Ce=ne.length,c=function(Z,se,ce){var fe=ie?Z-Ce+1:Z;if(!(fe<0||fe+Ce>G.getLength())){var me=G.getLine(fe),ge=me.search(ne[0]);if(!(!ie&&gese))return!!ce(fe,ge,fe+Ce-1,Me)||void 0}}};else if(ie)c=function(Z,ie,se){var ce,fe=G.getLine(Z),me=[],ge=0;for(ne.lastIndex=0;ce=ne.exec(fe);){var Ce=ce[0].length;if(ge=ce.index,!Ce){if(ge>=fe.length)break;ne.lastIndex=ge+=1}if(ce.index+Ce>ie)break;me.push(ce.index,Ce)}for(var Se=me.length-1;Se>=0;Se-=2){var Me=me[Se-1];if(se(Z,Me,Z,Me+(Ce=me[Se])))return!0}};else c=function(Z,ie,se){var ce,fe,me=G.getLine(Z);for(ne.lastIndex=ie;fe=ne.exec(me);){var ge=fe[0].length;if(se(Z,ce=fe.index,Z,ce+ge))return!0;if(!ge&&(ne.lastIndex=ce+=1,ce>=me.length))return!1}};return{forEach:f}},e}();Z.Search=fe})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(G,Z,ne){"use strict";function a(G){return"object"==typeof G&&G.bindKey&&G.bindKey.position||(G.isDefault?-100:0)}var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=G("../lib/keys"),ce=G("../lib/useragent"),fe=se.KEY_MODS,me=function(){function e(G,Z){this.$init(G,Z,!1)}return e.prototype.$init=function(G,Z,ne){this.platform=Z||(ce.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(G),this.$singleCommand=ne},e.prototype.addCommand=function(G){this.commands[G.name]&&this.removeCommand(G),this.commands[G.name]=G,G.bindKey&&this._buildKeyHash(G)},e.prototype.removeCommand=function(G,Z){var ne=G&&("string"==typeof G?G:G.name);G=this.commands[ne],Z||delete this.commands[ne];var ie=this.commandKeyBinding;for(var se in ie){var ce=ie[se];if(ce==G)delete ie[se];else if(Array.isArray(ce)){var fe=ce.indexOf(G);-1!=fe&&(ce.splice(fe,1),1==ce.length&&(ie[se]=ce[0]))}}},e.prototype.bindKey=function(G,Z,ne){if("object"==typeof G&&G&&(null==ne&&(ne=G.position),G=G[this.platform]),G)return"function"==typeof Z?this.addCommand({exec:Z,bindKey:G,name:Z.name||G}):void G.split("|").forEach((function(G){var ie="";if(-1!=G.indexOf(" ")){var se=G.split(/\s+/);G=se.pop(),se.forEach((function(G){var Z=this.parseKeys(G),ne=fe[Z.hashId]+Z.key;ie+=(ie?" ":"")+ne,this._addCommandToBinding(ie,"chainKeys")}),this),ie+=" "}var ce=this.parseKeys(G),me=fe[ce.hashId]+ce.key;this._addCommandToBinding(ie+me,Z,ne)}),this)},e.prototype._addCommandToBinding=function(G,Z,ne){var ie,se=this.commandKeyBinding;if(Z)if(!se[G]||this.$singleCommand)se[G]=Z;else{Array.isArray(se[G])?-1!=(ie=se[G].indexOf(Z))&&se[G].splice(ie,1):se[G]=[se[G]],"number"!=typeof ne&&(ne=a(Z));var ce=se[G];for(ie=0;iene)break}ce.splice(ie,0,Z)}else delete se[G]},e.prototype.addCommands=function(G){G&&Object.keys(G).forEach((function(Z){var ne=G[Z];if(ne){if("string"==typeof ne)return this.bindKey(ne,Z);"function"==typeof ne&&(ne={exec:ne}),"object"==typeof ne&&(ne.name||(ne.name=Z),this.addCommand(ne))}}),this)},e.prototype.removeCommands=function(G){Object.keys(G).forEach((function(Z){this.removeCommand(G[Z])}),this)},e.prototype.bindKeys=function(G){Object.keys(G).forEach((function(Z){this.bindKey(Z,G[Z])}),this)},e.prototype._buildKeyHash=function(G){this.bindKey(G.bindKey,G)},e.prototype.parseKeys=function(G){var Z=G.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(G){return G})),ne=Z.pop(),ie=se[ne];if(se.FUNCTION_KEYS[ie])ne=se.FUNCTION_KEYS[ie].toLowerCase();else{if(!Z.length)return{key:ne,hashId:-1};if(1==Z.length&&"shift"==Z[0])return{key:ne.toUpperCase(),hashId:-1}}for(var ce=0,fe=Z.length;fe--;){var me=se.KEY_MODS[Z[fe]];if(null==me)return"undefined"!=typeof console&&console.error("invalid modifier "+Z[fe]+" in "+G),!1;ce|=me}return{key:ne,hashId:ce}},e.prototype.findKeyCommand=function(G,Z){var ne=fe[G]+Z;return this.commandKeyBinding[ne]},e.prototype.handleKeyboard=function(G,Z,ne,ie){if(!(ie<0)){var se=fe[Z]+ne,ce=this.commandKeyBinding[se];return G.$keyChain&&(G.$keyChain+=" "+se,ce=this.commandKeyBinding[G.$keyChain]||ce),!ce||"chainKeys"!=ce&&"chainKeys"!=ce[ce.length-1]?(G.$keyChain&&(Z&&4!=Z||1!=ne.length?(-1==Z||ie>0)&&(G.$keyChain=""):G.$keyChain=G.$keyChain.slice(0,-se.length-1)),{command:ce}):(G.$keyChain=G.$keyChain||se,{command:"null"})}},e.prototype.getStatusText=function(G,Z){return Z.$keyChain||""},e}(),ge=function(G){function t(Z,ne){var ie=G.call(this,Z,ne)||this;return ie.$singleCommand=!0,ie}return ie(t,G),t}(me);ge.call=function(G,Z,ne){me.prototype.$init.call(G,Z,ne,!0)},me.call=function(G,Z,ne){me.prototype.$init.call(G,Z,ne,!1)},Z.HashHandler=ge,Z.MultiHashHandler=me})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(G,Z,ne){"use strict";var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=G("../lib/oop"),ce=G("../keyboard/hash_handler").MultiHashHandler,fe=G("../lib/event_emitter").EventEmitter,me=function(G){function t(Z,ne){var ie=G.call(this,ne,Z)||this;return ie.byName=ie.commands,ie.setDefaultHandler("exec",(function(G){return G.args?G.command.exec(G.editor,G.args,G.event,!1):G.command.exec(G.editor,{},G.event,!0)})),ie}return ie(t,G),t.prototype.exec=function(G,Z,ne){if(Array.isArray(G)){for(var ie=G.length;ie--;)if(this.exec(G[ie],Z,ne))return!0;return!1}if("string"==typeof G&&(G=this.commands[G]),!G)return!1;if(Z&&Z.$readOnly&&!G.readOnly)return!1;if(0!=this.$checkCommandState&&G.isAvailable&&!G.isAvailable(Z))return!1;var se={editor:Z,command:G,args:ne};return se.returnValue=this._emit("exec",se),this._signal("afterExec",se),!1!==se.returnValue},t.prototype.toggleRecording=function(G){if(!this.$inReplay)return G&&G._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(G){this.macro.push([G.command,G.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(G){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(G);try{this.$inReplay=!0,this.macro.forEach((function(Z){"string"==typeof Z?this.exec(Z,G):this.exec(Z[0],G,Z[1])}),this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(G){return G.map((function(G){return"string"!=typeof G[0]&&(G[0]=G[0].name),G[1]||(G=G[0]),G}))},t}(ce);se.implement(me.prototype,fe),Z.CommandManager=me})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(G,Z,ne){"use strict";function o(G,Z){return{win:G,mac:Z}}var ie=G("../lib/lang"),se=G("../config"),ce=G("../range").Range;Z.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:o("Ctrl-,","Command-,"),exec:function(G){se.loadModule("ace/ext/settings_menu",(function(Z){Z.init(G),G.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:o("Alt-E","F4"),exec:function(G){se.loadModule("ace/ext/error_marker",(function(Z){Z.showErrorMarker(G,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:o("Alt-Shift-E","Shift-F4"),exec:function(G){se.loadModule("ace/ext/error_marker",(function(Z){Z.showErrorMarker(G,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:o("Ctrl-A","Command-A"),exec:function(G){G.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:o(null,"Ctrl-L"),exec:function(G){G.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:o("Ctrl-L","Command-L"),exec:function(G,Z){"number"==typeof Z&&!isNaN(Z)&&G.gotoLine(Z),G.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:o("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(G){G.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:o("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(G){G.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:o("F2","F2"),exec:function(G){G.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:o("Alt-F2","Alt-F2"),exec:function(G){G.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(G){G.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:o(null,"Ctrl-Command-Option-0"),exec:function(G){G.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:o("Alt-0","Command-Option-0"),exec:function(G){G.session.foldAll(),G.session.unfold(G.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:o("Alt-Shift-0","Command-Option-Shift-0"),exec:function(G){G.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:o("Ctrl-K","Command-G"),exec:function(G){G.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:o("Ctrl-Shift-K","Command-Shift-G"),exec:function(G){G.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:o("Alt-K","Ctrl-G"),exec:function(G){G.selection.isEmpty()?G.selection.selectWord():G.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:o("Alt-Shift-K","Ctrl-Shift-G"),exec:function(G){G.selection.isEmpty()?G.selection.selectWord():G.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:o("Ctrl-F","Command-F"),exec:function(G){se.loadModule("ace/ext/searchbox",(function(Z){Z.Search(G)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(G){G.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:o("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(G){G.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:o("Ctrl-Home","Command-Home|Command-Up"),exec:function(G){G.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:o("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(G){G.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:o("Up","Up|Ctrl-P"),exec:function(G,Z){G.navigateUp(Z.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:o("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(G){G.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:o("Ctrl-End","Command-End|Command-Down"),exec:function(G){G.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:o("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(G){G.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:o("Down","Down|Ctrl-N"),exec:function(G,Z){G.navigateDown(Z.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:o("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(G){G.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:o("Ctrl-Left","Option-Left"),exec:function(G){G.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:o("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(G){G.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:o("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(G){G.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:o("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(G){G.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:o("Left","Left|Ctrl-B"),exec:function(G,Z){G.navigateLeft(Z.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:o("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(G){G.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:o("Ctrl-Right","Option-Right"),exec:function(G){G.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:o("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(G){G.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:o("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(G){G.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:o("Shift-Right","Shift-Right"),exec:function(G){G.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:o("Right","Right|Ctrl-F"),exec:function(G,Z){G.navigateRight(Z.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(G){G.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:o(null,"Option-PageDown"),exec:function(G){G.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:o("PageDown","PageDown|Ctrl-V"),exec:function(G){G.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(G){G.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:o(null,"Option-PageUp"),exec:function(G){G.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(G){G.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:o("Ctrl-Up",null),exec:function(G){G.renderer.scrollBy(0,-2*G.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:o("Ctrl-Down",null),exec:function(G){G.renderer.scrollBy(0,2*G.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(G){G.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(G){G.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:o("Ctrl-Alt-E","Command-Option-E"),exec:function(G){G.commands.toggleRecording(G)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:o("Ctrl-Shift-E","Command-Shift-E"),exec:function(G){G.commands.replay(G)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:o("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(G){G.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:o("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(G){G.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:o("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(G){G.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:o(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(G){},readOnly:!0},{name:"cut",description:"Cut",exec:function(G){var Z=G.$copyWithEmptySelection&&G.selection.isEmpty()?G.selection.getLineRange():G.selection.getRange();G._emit("cut",Z),Z.isEmpty()||G.session.remove(Z),G.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(G,Z){G.$handlePaste(Z)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:o("Ctrl-D","Command-D"),exec:function(G){G.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:o("Ctrl-Shift-D","Command-Shift-D"),exec:function(G){G.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:o("Ctrl-Alt-S","Command-Alt-S"),exec:function(G){G.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:o("Ctrl-/","Command-/"),exec:function(G){G.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:o("Ctrl-Shift-/","Command-Shift-/"),exec:function(G){G.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:o("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(G){G.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:o("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(G){G.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:o("Ctrl-H","Command-Option-F"),exec:function(G){se.loadModule("ace/ext/searchbox",(function(Z){Z.Search(G,!0)}))}},{name:"undo",description:"Undo",bindKey:o("Ctrl-Z","Command-Z"),exec:function(G){G.undo()}},{name:"redo",description:"Redo",bindKey:o("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(G){G.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:o("Alt-Shift-Up","Command-Option-Up"),exec:function(G){G.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:o("Alt-Up","Option-Up"),exec:function(G){G.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:o("Alt-Shift-Down","Command-Option-Down"),exec:function(G){G.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:o("Alt-Down","Option-Down"),exec:function(G){G.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:o("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(G){G.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:o("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(G){G.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:o("Shift-Delete",null),exec:function(G){if(!G.selection.isEmpty())return!1;G.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:o("Alt-Backspace","Command-Backspace"),exec:function(G){G.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:o("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(G){G.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:o("Ctrl-Shift-Backspace",null),exec:function(G){var Z=G.selection.getRange();Z.start.column=0,G.session.remove(Z)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:o("Ctrl-Shift-Delete",null),exec:function(G){var Z=G.selection.getRange();Z.end.column=Number.MAX_VALUE,G.session.remove(Z)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:o("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(G){G.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:o("Ctrl-Delete","Alt-Delete"),exec:function(G){G.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:o("Shift-Tab","Shift-Tab"),exec:function(G){G.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:o("Tab","Tab"),exec:function(G){G.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:o("Ctrl-[","Ctrl-["),exec:function(G){G.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:o("Ctrl-]","Ctrl-]"),exec:function(G){G.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(G,Z){G.insert(Z)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(G,Z){G.insert(ie.stringRepeat(Z.text||"",Z.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:o(null,"Ctrl-O"),exec:function(G){G.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:o("Alt-Shift-X","Ctrl-T"),exec:function(G){G.transposeLetters()},multiSelectAction:function(G){G.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:o("Ctrl-U","Ctrl-U"),exec:function(G){G.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:o("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(G){G.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:o(null,null),exec:function(G){G.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:o("Ctrl-Shift-L","Command-Shift-L"),exec:function(G){var Z=G.selection.getRange();Z.start.column=Z.end.column=0,Z.end.row++,G.selection.setRange(Z,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:o("Ctrl+F3","F3"),exec:function(G){G.openLink()}},{name:"joinlines",description:"Join lines",bindKey:o(null,null),exec:function(G){for(var Z=G.selection.isBackwards(),ne=Z?G.selection.getSelectionLead():G.selection.getSelectionAnchor(),se=Z?G.selection.getSelectionAnchor():G.selection.getSelectionLead(),fe=G.session.doc.getLine(ne.row).length,me=G.session.doc.getTextRange(G.selection.getRange()).replace(/\n\s*/," ").length,ge=G.session.doc.getLine(ne.row),Ce=ne.row+1;Ce<=se.row+1;Ce++){var Se=ie.stringTrimLeft(ie.stringTrimRight(G.session.doc.getLine(Ce)));0!==Se.length&&(Se=" "+Se),ge+=Se}se.row+10?(G.selection.moveCursorTo(ne.row,ne.column),G.selection.selectTo(ne.row,ne.column+me)):(fe=G.session.doc.getLine(ne.row).length>fe?fe+1:fe,G.selection.moveCursorTo(ne.row,fe))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:o(null,null),exec:function(G){var Z=G.session.doc.getLength()-1,ne=G.session.doc.getLine(Z).length,ie=G.selection.rangeList.ranges,se=[];ie.length<1&&(ie=[G.selection.getRange()]);for(var fe=0;feZ[ne].column&&ne++,ce.unshift(ne,0),Z.splice.apply(Z,ce),this.$updateRows()}}},e.prototype.$updateRows=function(){var G=this.session.lineWidgets;if(G){var Z=!0;G.forEach((function(G,ne){if(G)for(Z=!1,G.row=ne;G.$oldWidget;)G.$oldWidget.row=ne,G=G.$oldWidget})),Z&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(G){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var Z=this.session.lineWidgets[G.row];return Z&&(G.$oldWidget=Z,Z.el&&Z.el.parentNode&&(Z.el.parentNode.removeChild(Z.el),Z._inDocument=!1)),this.session.lineWidgets[G.row]=G,G},e.prototype.addLineWidget=function(G){if(this.$registerLineWidget(G),G.session=this.session,!this.editor)return G;var Z=this.editor.renderer;G.html&&!G.el&&(G.el=ie.createElement("div"),G.el.innerHTML=G.html),G.text&&!G.el&&(G.el=ie.createElement("div"),G.el.textContent=G.text),G.el&&(ie.addCssClass(G.el,"ace_lineWidgetContainer"),G.className&&ie.addCssClass(G.el,G.className),G.el.style.position="absolute",G.el.style.zIndex=5,Z.container.appendChild(G.el),G._inDocument=!0,G.coverGutter||(G.el.style.zIndex=3),null==G.pixelHeight&&(G.pixelHeight=G.el.offsetHeight)),null==G.rowCount&&(G.rowCount=G.pixelHeight/Z.layerConfig.lineHeight);var ne=this.session.getFoldAt(G.row,0);if(G.$fold=ne,ne){var se=this.session.lineWidgets;G.row!=ne.end.row||se[ne.start.row]?G.hidden=!0:se[ne.start.row]=G}return this.session._emit("changeFold",{data:{start:{row:G.row}}}),this.$updateRows(),this.renderWidgets(null,Z),this.onWidgetChanged(G),G},e.prototype.removeLineWidget=function(G){if(G._inDocument=!1,G.session=null,G.el&&G.el.parentNode&&G.el.parentNode.removeChild(G.el),G.editor&&G.editor.destroy)try{G.editor.destroy()}catch(G){}if(this.session.lineWidgets){var Z=this.session.lineWidgets[G.row];if(Z==G)this.session.lineWidgets[G.row]=G.$oldWidget,G.$oldWidget&&this.onWidgetChanged(G.$oldWidget);else for(;Z;){if(Z.$oldWidget==G){Z.$oldWidget=G.$oldWidget;break}Z=Z.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:G.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(G){for(var Z=this.session.lineWidgets,ne=Z&&Z[G],ie=[];ne;)ie.push(ne),ne=ne.$oldWidget;return ie},e.prototype.onWidgetChanged=function(G){this.session._changedWidgets.push(G),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(G,Z){var ne=this.session._changedWidgets,ie=Z.layerConfig;if(ne&&ne.length){for(var se=1/0,ce=0;ce0&&!ie[se];)se--;this.firstRow=ne.firstRow,this.lastRow=ne.lastRow,Z.$cursorLayer.config=ne;for(var fe=se;fe<=ce;fe++){var me=ie[fe];if(me&&me.el)if(me.hidden)me.el.style.top=-100-(me.pixelHeight||0)+"px";else{me._inDocument||(me._inDocument=!0,Z.container.appendChild(me.el));var ge=Z.$cursorLayer.getPixelPosition({row:fe,column:0},!0).top;me.coverLine||(ge+=ne.lineHeight*this.session.getRowLineCount(me.row)),me.el.style.top=ge-ne.offset+"px";var Ce=me.coverGutter?0:Z.gutterWidth;me.fixedWidth||(Ce-=Z.scrollLeft),me.el.style.left=Ce+"px",me.fullWidth&&me.screenWidth&&(me.el.style.minWidth=ne.width+2*ne.padding+"px"),me.fixedWidth?me.el.style.right=Z.scrollBar.getWidth()+"px":me.el.style.right=""}}}},e}();Z.LineWidgets=se})),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],(function(G,Z,ne){"use strict";var ie=G("../lib/keys"),se=G("../mouse/default_gutter_handler").GutterTooltip,ce=function(){function e(G){this.editor=G,this.gutterLayer=G.renderer.$gutterLayer,this.element=G.renderer.$gutter,this.lines=G.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new se(this.editor)}return e.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},e.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},e.prototype.$onGutterKeyDown=function(G){if(this.annotationTooltip.isOpen)return G.preventDefault(),void(G.keyCode===ie.escape&&this.annotationTooltip.hideTooltip());if(G.target===this.element){if(G.keyCode!=ie.enter)return;G.preventDefault();var Z=this.editor.getCursorPosition().row;return this.editor.isRowVisible(Z)||this.editor.scrollToLine(Z,!0,!0),void setTimeout(function(){var G=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),Z=this.$findNearestFoldWidget(G),ne=this.$findNearestAnnotation(G);if(null!==Z||null!==ne)return null===Z&&null!==ne?(this.activeRowIndex=ne,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==Z&&null===ne?(this.activeRowIndex=Z,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(ne-G)0||G+Z=0&&this.$isFoldWidgetVisible(G-Z))return G-Z;if(G+Z<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(G+Z))return G+Z}return null},e.prototype.$findNearestAnnotation=function(G){if(this.$isAnnotationVisible(G))return G;for(var Z=0;G-Z>0||G+Z=0&&this.$isAnnotationVisible(G-Z))return G-Z;if(G+Z<=this.lines.getLength()-1&&this.$isAnnotationVisible(G+Z))return G+Z}return null},e.prototype.$focusFoldWidget=function(G){if(null!=G){var Z=this.$getFoldWidget(G);Z.classList.add(this.editor.renderer.keyboardFocusClassName),Z.focus()}},e.prototype.$focusAnnotation=function(G){if(null!=G){var Z=this.$getAnnotation(G);Z.classList.add(this.editor.renderer.keyboardFocusClassName),Z.focus()}},e.prototype.$blurFoldWidget=function(G){var Z=this.$getFoldWidget(G);Z.classList.remove(this.editor.renderer.keyboardFocusClassName),Z.blur()},e.prototype.$blurAnnotation=function(G){var Z=this.$getAnnotation(G);Z.classList.remove(this.editor.renderer.keyboardFocusClassName),Z.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var G=this.activeRowIndex;G>0;)if(G--,this.$isFoldWidgetVisible(G))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=G,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveFoldWidgetDown=function(){for(var G=this.activeRowIndex;G0;)if(G--,this.$isAnnotationVisible(G))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=G,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var G=this.activeRowIndex;G=G.length&&(G=void 0),{value:G&&G[ie++],done:!G}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")},se=G("./lib/oop"),ce=G("./lib/dom"),fe=G("./lib/lang"),me=G("./lib/useragent"),ge=G("./keyboard/textinput").TextInput,Ce=G("./mouse/mouse_handler").MouseHandler,Se=G("./mouse/fold_handler").FoldHandler,Me=G("./keyboard/keybinding").KeyBinding,ke=G("./edit_session").EditSession,xe=G("./search").Search,De=G("./range").Range,Ie=G("./lib/event_emitter").EventEmitter,Re=G("./commands/command_manager").CommandManager,ze=G("./commands/default_commands").commands,$e=G("./config"),Je=G("./token_iterator").TokenIterator,it=G("./line_widgets").LineWidgets,ot=G("./keyboard/gutter_handler").GutterKeyboardHandler,at=G("./config").nls,st=G("./clipboard"),ct=G("./lib/keys"),ut=function(){function e(G,Z,ne){this.$toDestroy=[];var ie=G.getContainerElement();this.container=ie,this.renderer=G,this.id="editor"+ ++e.$uid,this.commands=new Re(me.isMac?"mac":"win",ze),"object"==typeof document&&(this.textInput=new ge(G.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new Ce(this),new Se(this)),this.keyBinding=new Me(this),this.$search=(new xe).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=fe.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(G,Z){Z._$emitInputEvent.schedule(31)})),this.setSession(Z||ne&&ne.session||new ke("")),$e.resetOptions(this),ne&&this.setOptions(ne),$e._signal("editor",this)}return e.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=fe.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},e.prototype.startOperation=function(G){if(this.curOp){if(!G||this.curOp.command)return;this.prevOp=this.curOp}G||(this.previousCommand=null,G={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:G.command||{},args:G.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},e.prototype.endOperation=function(G){if(this.curOp&&this.session){if(G&&!1===G.returnValue||!this.session)return this.curOp=null;if(1==G&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var Z=this.curOp.command,ne=Z&&Z.scrollIntoView;if(ne){switch(ne){case"center-animate":ne="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ie=this.selection.getRange(),se=this.renderer.layerConfig;(ie.start.row>=se.lastRow||ie.end.row<=se.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==ne&&this.renderer.animateScrolling(this.curOp.scrollTop)}var ce=this.selection.toJSON();this.curOp.selectionAfter=ce,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(ce),this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(G){if(this.$mergeUndoDeltas){var Z=this.prevOp,ne=this.$mergeableCommands,ie=Z.command&&G.command.name==Z.command.name;if("insertstring"==G.command.name){var se=G.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),ie=ie&&this.mergeNextCommand&&(!/\s/.test(se)||/\s/.test(Z.args)),this.mergeNextCommand=!0}else ie=ie&&-1!==ne.indexOf(G.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(ie=!1),ie?this.session.mergeUndoDeltas=!0:-1!==ne.indexOf(G.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(G,Z){if(G&&"string"==typeof G&&"ace"!=G){this.$keybindingId=G;var ne=this;$e.loadModule(["keybinding",G],(function(ie){ne.$keybindingId==G&&ne.keyBinding.setKeyboardHandler(ie&&ie.handler),Z&&Z()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(G),Z&&Z()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(G){if(this.session!=G){this.curOp&&this.endOperation(),this.curOp={};var Z=this.session;if(Z){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var ne=this.session.getSelection();ne.off("changeCursor",this.$onCursorChange),ne.off("changeSelection",this.$onSelectionChange)}this.session=G,G?(this.$onDocumentChange=this.onDocumentChange.bind(this),G.on("change",this.$onDocumentChange),this.renderer.setSession(G),this.$onChangeMode=this.onChangeMode.bind(this),G.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),G.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),G.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),G.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),G.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),G.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=G.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(G)),this._signal("changeSession",{session:G,oldSession:Z}),this.curOp=null,Z&&Z._signal("changeEditor",{oldEditor:this}),G&&G._signal("changeEditor",{editor:this}),G&&!G.destroyed&&G.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(G,Z){return this.session.doc.setValue(G),Z?1==Z?this.navigateFileEnd():-1==Z&&this.navigateFileStart():this.selectAll(),G},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(G){this.renderer.onResize(G)},e.prototype.setTheme=function(G,Z){this.renderer.setTheme(G,Z)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(G){this.renderer.setStyle(G)},e.prototype.unsetStyle=function(G){this.renderer.unsetStyle(G)},e.prototype.getFontSize=function(){return this.getOption("fontSize")||ce.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(G){this.setOption("fontSize",G)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var G=this;this.$highlightPending=!0,setTimeout((function(){G.$highlightPending=!1;var Z=G.session;if(Z&&!Z.destroyed){Z.$bracketHighlight&&(Z.$bracketHighlight.markerIds.forEach((function(G){Z.removeMarker(G)})),Z.$bracketHighlight=null);var ne=G.getCursorPosition(),ie=G.getKeyboardHandler(),se=ie&&ie.$getDirectionForHighlight&&ie.$getDirectionForHighlight(G),ce=Z.getMatchingBracketRanges(ne,se);if(!ce){var fe=new Je(Z,ne.row,ne.column).getCurrentToken();if(fe&&/\b(?:tag-open|tag-name)/.test(fe.type)){var me=Z.getMatchingTags(ne);me&&(ce=[me.openTagName,me.closeTagName])}}if(!ce&&Z.$mode.getMatching&&(ce=Z.$mode.getMatching(G.session)),ce){var ge="ace_bracket";Array.isArray(ce)?1==ce.length&&(ge="ace_error_bracket"):ce=[ce],2==ce.length&&(0==De.comparePoints(ce[0].end,ce[1].start)?ce=[De.fromPoints(ce[0].start,ce[1].end)]:0==De.comparePoints(ce[0].start,ce[1].end)&&(ce=[De.fromPoints(ce[1].start,ce[0].end)])),Z.$bracketHighlight={ranges:ce,markerIds:ce.map((function(G){return Z.addMarker(G,ge,"text")}))},G.getHighlightIndentGuides()&&G.renderer.$textLayer.$highlightIndentGuide()}else G.getHighlightIndentGuides()&&G.renderer.$textLayer.$highlightIndentGuide()}}),50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(G){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",G))},e.prototype.onBlur=function(G){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",G))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(G){var Z=this.session.$useWrapMode,ne=G.start.row==G.end.row?G.end.row:1/0;this.renderer.updateLines(G.start.row,ne,Z),this._signal("change",G),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(G){var Z=G.data;this.renderer.updateLines(Z.first,Z.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},e.prototype.$updateHighlightActiveLine=function(){var G,Z=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(G=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(G=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(G=!1)),Z.$highlightLineMarker&&!G)Z.removeMarker(Z.$highlightLineMarker.id),Z.$highlightLineMarker=null;else if(!Z.$highlightLineMarker&&G){var ne=new De(G.row,G.column,G.row,1/0);ne.id=Z.addMarker(ne,"ace_active-line","screenLine"),Z.$highlightLineMarker=ne}else G&&(Z.$highlightLineMarker.start.row=G.row,Z.$highlightLineMarker.end.row=G.row,Z.$highlightLineMarker.start.column=G.column,Z._signal("changeBackMarker"))},e.prototype.onSelectionChange=function(G){var Z=this.session;if(Z.$selectionMarker&&Z.removeMarker(Z.$selectionMarker),Z.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var ne=this.selection.getRange(),ie=this.getSelectionStyle();Z.$selectionMarker=Z.addMarker(ne,"ace_selection",ie)}var se=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(se),this._signal("changeSelection")},e.prototype.$getSelectionHighLightRegexp=function(){var G=this.session,Z=this.getSelectionRange();if(!Z.isEmpty()&&!Z.isMultiLine()){var ne=Z.start.column,ie=Z.end.column,se=G.getLine(Z.start.row),ce=se.substring(ne,ie);if(!(ce.length>5e3)&&/[\w\d]/.test(ce)){var fe=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:ce}),me=se.substring(ne-1,ie+1);if(fe.test(me))return fe}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(G){this.renderer.updateText(),this._emit("changeMode",G)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var G=this.getSelectedText(),Z=this.session.doc.getNewLineCharacter(),ne=!1;if(!G&&this.$copyWithEmptySelection){ne=!0;for(var ie=this.selection.getAllRanges(),se=0;seme.search(/\S|$/)){var ge=me.substr(se.column).search(/\S|$/);ne.doc.removeInLine(se.row,se.column,se.column+ge)}}this.clearSelection();var Ce=se.column,Se=ne.getState(se.row),Me=(me=ne.getLine(se.row),ie.checkOutdent(Se,me,G));if(ne.insert(se,G),ce&&ce.selection&&(2==ce.selection.length?this.selection.setSelectionRange(new De(se.row,Ce+ce.selection[0],se.row,Ce+ce.selection[1])):this.selection.setSelectionRange(new De(se.row+ce.selection[0],ce.selection[1],se.row+ce.selection[2],ce.selection[3]))),this.$enableAutoIndent){if(ne.getDocument().isNewLine(G)){var ke=ie.getNextLineIndent(Se,me.slice(0,se.column),ne.getTabString());ne.insert({row:se.row+1,column:0},ke)}Me&&ie.autoOutdent(Se,ne,se.row)}},e.prototype.autoIndent=function(){var G,Z,ne=this.session,ie=ne.getMode();if(this.selection.isEmpty())G=0,Z=ne.doc.getLength()-1;else{var se=this.getSelectionRange();G=se.start.row,Z=se.end.row}for(var ce,fe,me,ge="",Ce="",Se="",Me=ne.getTabString(),ke=G;ke<=Z;ke++)ke>0&&(ge=ne.getState(ke-1),Ce=ne.getLine(ke-1),Se=ie.getNextLineIndent(ge,Ce,Me)),ce=ne.getLine(ke),Se!==(fe=ie.$getIndent(ce))&&(fe.length>0&&(me=new De(ke,0,ke,fe.length),ne.remove(me)),Se.length>0&&ne.insert({row:ke,column:0},Se)),ie.autoOutdent(ge,ne,ke)},e.prototype.onTextInput=function(G,Z){if(!Z)return this.keyBinding.onTextInput(G);this.startOperation({command:{name:"insertstring"}});var ne=this.applyComposition.bind(this,G,Z);this.selection.rangeCount?this.forEachSelection(ne):ne(),this.endOperation()},e.prototype.applyComposition=function(G,Z){var ne;(Z.extendLeft||Z.extendRight)&&((ne=this.selection.getRange()).start.column-=Z.extendLeft,ne.end.column+=Z.extendRight,ne.start.column<0&&(ne.start.row--,ne.start.column+=this.session.getLine(ne.start.row).length+1),this.selection.setRange(ne),!G&&!ne.isEmpty()&&this.remove());((G||!this.selection.isEmpty())&&this.insert(G,!0),Z.restoreStart||Z.restoreEnd)&&((ne=this.selection.getRange()).start.column-=Z.restoreStart,ne.end.column-=Z.restoreEnd,this.selection.setRange(ne))},e.prototype.onCommandKey=function(G,Z,ne){return this.keyBinding.onCommandKey(G,Z,ne)},e.prototype.setOverwrite=function(G){this.session.setOverwrite(G)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(G){this.setOption("scrollSpeed",G)},e.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},e.prototype.setDragDelay=function(G){this.setOption("dragDelay",G)},e.prototype.getDragDelay=function(){return this.getOption("dragDelay")},e.prototype.setSelectionStyle=function(G){this.setOption("selectionStyle",G)},e.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},e.prototype.setHighlightActiveLine=function(G){this.setOption("highlightActiveLine",G)},e.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},e.prototype.setHighlightGutterLine=function(G){this.setOption("highlightGutterLine",G)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.setHighlightSelectedWord=function(G){this.setOption("highlightSelectedWord",G)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(G){this.renderer.setAnimatedScroll(G)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(G){this.renderer.setShowInvisibles(G)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(G){this.renderer.setDisplayIndentGuides(G)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(G){this.renderer.setHighlightIndentGuides(G)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(G){this.renderer.setShowPrintMargin(G)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(G){this.renderer.setPrintMarginColumn(G)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(G){this.setOption("readOnly",G)},e.prototype.getReadOnly=function(){return this.getOption("readOnly")},e.prototype.setBehavioursEnabled=function(G){this.setOption("behavioursEnabled",G)},e.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},e.prototype.setWrapBehavioursEnabled=function(G){this.setOption("wrapBehavioursEnabled",G)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},e.prototype.setShowFoldWidgets=function(G){this.setOption("showFoldWidgets",G)},e.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},e.prototype.setFadeFoldWidgets=function(G){this.setOption("fadeFoldWidgets",G)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.remove=function(G){this.selection.isEmpty()&&("left"==G?this.selection.selectLeft():this.selection.selectRight());var Z=this.getSelectionRange();if(this.getBehavioursEnabled()){var ne=this.session,ie=ne.getState(Z.start.row),se=ne.getMode().transformAction(ie,"deletion",this,ne,Z);if(0===Z.end.column){var ce=ne.getTextRange(Z);if("\n"==ce[ce.length-1]){var fe=ne.getLine(Z.end.row);/^\s+$/.test(fe)&&(Z.end.column=fe.length)}}se&&(Z=se)}this.session.remove(Z),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var G=this.getSelectionRange();G.start.column==G.end.column&&G.start.row==G.end.row&&(G.end.column=0,G.end.row++),this.session.remove(G),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var G=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(G)},e.prototype.setGhostText=function(G,Z){this.session.widgetManager||(this.session.widgetManager=new it(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(G,Z)},e.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var G=this.getCursorPosition(),Z=G.column;if(0!==Z){var ne,ie,se=this.session.getLine(G.row);ZZ.toLowerCase()?1:0}));var se=new De(0,0,0,0);for(ie=G.first;ie<=G.last;ie++){var ce=Z.getLine(ie);se.start.row=ie,se.end.row=ie,se.end.column=ce.length,Z.replace(se,ne[ie-G.first])}},e.prototype.toggleCommentLines=function(){var G=this.session.getState(this.getCursorPosition().row),Z=this.$getSelectedRows();this.session.getMode().toggleCommentLines(G,this.session,Z.first,Z.last)},e.prototype.toggleBlockComment=function(){var G=this.getCursorPosition(),Z=this.session.getState(G.row),ne=this.getSelectionRange();this.session.getMode().toggleBlockComment(Z,this.session,ne,G)},e.prototype.getNumberAt=function(G,Z){var ne=/[\-]?[0-9]+(?:\.[0-9]+)?/g;ne.lastIndex=0;for(var ie=this.session.getLine(G);ne.lastIndex=Z)return{value:se[0],start:se.index,end:se.index+se[0].length}}return null},e.prototype.modifyNumber=function(G){var Z=this.selection.getCursor().row,ne=this.selection.getCursor().column,ie=new De(Z,ne-1,Z,ne),se=this.session.getTextRange(ie);if(!isNaN(parseFloat(se))&&isFinite(se)){var ce=this.getNumberAt(Z,ne);if(ce){var fe=ce.value.indexOf(".")>=0?ce.start+ce.value.indexOf(".")+1:ce.end,me=ce.start+ce.value.length-fe,ge=parseFloat(ce.value);ge*=Math.pow(10,me),fe!==ce.end&&ne=me&&ce<=ge&&(ne=Z,Ce.selection.clearSelection(),Ce.moveCursorTo(G,me+ie),Ce.selection.selectTo(G,ge+ie)),me=ge}));for(var Se,Me=this.$toggleWordPairs,ke=0;ke=ge&&fe<=Ce&&ke.match(/((?:https?|ftp):\/\/[\S]+)/)){me=ke.replace(/[\s:.,'";}\]]+$/,"");break}ge=Ce}}catch(G){ne={error:G}}finally{try{Me&&!Me.done&&(se=Se.return)&&se.call(Se)}finally{if(ne)throw ne.error}}return me},e.prototype.openLink=function(){var G=this.selection.getCursor(),Z=this.findLinkAt(G.row,G.column);return Z&&window.open(Z,"_blank"),null!=Z},e.prototype.removeLines=function(){var G=this.$getSelectedRows();this.session.removeFullLines(G.first,G.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var G=this.selection,Z=this.session,ne=G.getRange(),ie=G.isBackwards();if(ne.isEmpty()){var se=ne.start.row;Z.duplicateLines(se,se)}else{var ce=ie?ne.start:ne.end,fe=Z.insert(ce,Z.getTextRange(ne),!1);ne.start=ce,ne.end=fe,G.setSelectionRange(ne,ie)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(G,Z,ne){return this.session.moveText(G,Z,ne)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(G,Z){var ne,ie,se=this.selection;if(!se.inMultiSelectMode||this.inVirtualSelectionMode){var ce=se.toOrientedRange();ne=this.$getSelectedRows(ce),ie=this.session.$moveLines(ne.first,ne.last,Z?0:G),Z&&-1==G&&(ie=0),ce.moveBy(ie,0),se.fromOrientedRange(ce)}else{var fe=se.rangeList.ranges;se.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var me=0,ge=0,Ce=fe.length,Se=0;Sexe+1)break;xe=De.last}for(Se--,me=this.session.$moveLines(ke,xe,Z?0:G),Z&&-1==G&&(Me=Se+1);Me<=Se;)fe[Me].moveBy(me,0),Me++;Z||(me=0),ge+=me}se.fromOrientedRange(se.ranges[0]),se.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(G){return G=(G||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(G.start.row),last:this.session.getRowFoldEnd(G.end.row)}},e.prototype.onCompositionStart=function(G){this.renderer.showComposition(G)},e.prototype.onCompositionUpdate=function(G){this.renderer.setCompositionText(G)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(G){return G>=this.getFirstVisibleRow()&&G<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(G){return G>=this.renderer.getFirstFullyVisibleRow()&&G<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(G,Z){var ne=this.renderer,ie=this.renderer.layerConfig,se=G*Math.floor(ie.height/ie.lineHeight);!0===Z?this.selection.$moveSelection((function(){this.moveCursorBy(se,0)})):!1===Z&&(this.selection.moveCursorBy(se,0),this.selection.clearSelection());var ce=ne.scrollTop;ne.scrollBy(0,se*ie.lineHeight),null!=Z&&ne.scrollCursorIntoView(null,.5),ne.animateScrolling(ce)},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(G){this.renderer.scrollToRow(G)},e.prototype.scrollToLine=function(G,Z,ne,ie){this.renderer.scrollToLine(G,Z,ne,ie)},e.prototype.centerSelection=function(){var G=this.getSelectionRange(),Z={row:Math.floor(G.start.row+(G.end.row-G.start.row)/2),column:Math.floor(G.start.column+(G.end.column-G.start.column)/2)};this.renderer.alignCursor(Z,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(G,Z){this.selection.moveCursorTo(G,Z)},e.prototype.moveCursorToPosition=function(G){this.selection.moveCursorToPosition(G)},e.prototype.jumpToMatching=function(G,Z){var ne=this.getCursorPosition(),ie=new Je(this.session,ne.row,ne.column),se=ie.getCurrentToken(),ce=0;se&&-1!==se.type.indexOf("tag-name")&&(se=ie.stepBackward());var fe=se||ie.stepForward();if(fe){var me,ge,Ce=!1,Se={},Me=ne.column-fe.start,ke={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(fe.value.match(/[{}()\[\]]/g)){for(;Me1?Se[fe.value]++:"=0;--ce)this.$tryReplace(ne[ce],G)&&ie++;return this.selection.setSelectionRange(se),ie},e.prototype.$tryReplace=function(G,Z){var ne=this.session.getTextRange(G);return null!==(Z=this.$search.replace(ne,Z))?(G.end=this.session.replace(G,Z),G):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(G,Z,ne){Z||(Z={}),"string"==typeof G||G instanceof RegExp?Z.needle=G:"object"==typeof G&&se.mixin(Z,G);var ie=this.selection.getRange();null==Z.needle&&((G=this.session.getTextRange(ie)||this.$search.$options.needle)||(ie=this.session.getWordRange(ie.start.row,ie.start.column),G=this.session.getTextRange(ie)),this.$search.set({needle:G})),this.$search.set(Z),Z.start||this.$search.set({start:ie});var ce=this.$search.find(this.session);return Z.preventScroll?ce:ce?(this.revealRange(ce,ne),ce):(Z.backwards?ie.start=ie.end:ie.end=ie.start,void this.selection.setRange(ie))},e.prototype.findNext=function(G,Z){this.find({skipCurrent:!0,backwards:!1},G,Z)},e.prototype.findPrevious=function(G,Z){this.find(G,{skipCurrent:!0,backwards:!0},Z)},e.prototype.revealRange=function(G,Z){this.session.unfold(G),this.selection.setSelectionRange(G);var ne=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(G.start,G.end,.5),!1!==Z&&this.renderer.animateScrolling(ne)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(G){G.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},e.prototype.setAutoScrollEditorIntoView=function(G){if(G){var Z,ne=this,ie=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var se=this.$scrollAnchor;se.style.cssText="position:absolute",this.container.insertBefore(se,this.container.firstChild);var ce=this.on("changeSelection",(function(){ie=!0})),fe=this.renderer.on("beforeRender",(function(){ie&&(Z=ne.renderer.container.getBoundingClientRect())})),me=this.renderer.on("afterRender",(function(){if(ie&&Z&&(ne.isFocused()||ne.searchBox&&ne.searchBox.isFocused())){var G=ne.renderer,ce=G.$cursorLayer.$pixelPos,fe=G.layerConfig,me=ce.top-fe.offset;null!=(ie=ce.top>=0&&me+Z.top<0||!(ce.topwindow.innerHeight)&&null)&&(se.style.top=me+"px",se.style.left=ce.left+"px",se.style.height=fe.lineHeight+"px",se.scrollIntoView(ie)),ie=Z=null}}));this.setAutoScrollEditorIntoView=function(G){G||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",ce),this.renderer.off("afterRender",me),this.renderer.off("beforeRender",fe))}}},e.prototype.$resetCursorStyle=function(){var G=this.$cursorStyle||"ace",Z=this.renderer.$cursorLayer;Z&&(Z.setSmoothBlinking(/smooth/.test(G)),Z.isBlinking=!this.$readOnly&&"wide"!=G,ce.setCssClass(Z.element,"ace_slim-cursors",/slim/.test(G)))},e.prototype.prompt=function(G,Z,ne){var ie=this;$e.loadModule("ace/ext/prompt",(function(se){se.prompt(ie,G,Z,ne)}))},e}();ut.$uid=0,ut.prototype.curOp=null,ut.prototype.prevOp={},ut.prototype.$mergeableCommands=["backspace","del","insertstring"],ut.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],se.implement(ut.prototype,Ie),$e.defineOptions(ut.prototype,"editor",{selectionStyle:{set:function(G){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:G})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(G){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(G){this.textInput.setReadOnly(G),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(G){this.textInput.setCopyWithEmptySelection(G)},initialValue:!1},cursorStyle:{set:function(G){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(G){this.setAutoScrollEditorIntoView(G)}},keyboardHandler:{set:function(G){this.setKeyboardHandler(G)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(G){this.session.setValue(G)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(G){this.setSession(G)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(G){this.renderer.$gutterLayer.setShowLineNumbers(G),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),G&&this.$relativeLineNumbers?dt.attach(this):dt.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(G){this.$showLineNumbers&&G?dt.attach(this):dt.detach(this)}},placeholder:{set:function(G){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var G=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(G&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),ce.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(G||this.renderer.placeholderNode)!G&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),ce.addCssClass(this.container,"ace_hasPlaceholder");var Z=ce.createElement("div");Z.className="ace_placeholder",Z.textContent=this.$placeholder||"",this.renderer.placeholderNode=Z,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(G){var Z,ne={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(G){G.blur(),G.renderer.scroller.focus()},readOnly:!0},n=function(G){if(G.target==this.renderer.scroller&&G.keyCode===ct.enter){G.preventDefault();var Z=this.getCursorPosition().row;this.isRowVisible(Z)||this.scrollToLine(Z,!0,!0),this.focus()}};G?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(me.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",at("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",at("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",n.bind(this)),this.commands.addCommand(ne),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",at("editor")),this.renderer.$gutter.setAttribute("aria-label",at("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),Z||(Z=new ot(this)),Z.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",n.bind(this)),this.commands.removeCommand(ne),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),Z&&Z.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var dt={getText:function(G,Z){return(Math.abs(G.selection.lead.row-Z)||Z+1+(Z<9?"·":""))+""},getWidth:function(G,Z,ne){return Math.max(Z.toString().length,(ne.lastRow+1).toString().length,2)*ne.characterWidth},update:function(G,Z){Z.renderer.$loop.schedule(Z.renderer.CHANGE_GUTTER)},attach:function(G){G.renderer.$gutterLayer.$renderer=this,G.on("changeSelection",this.update),this.update(null,G)},detach:function(G){G.renderer.$gutterLayer.$renderer==this&&(G.renderer.$gutterLayer.$renderer=null),G.off("changeSelection",this.update),this.update(null,G)}};Z.Editor=ut})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(G,Z,ne){"use strict";var ie=G("../lib/dom"),se=function(){function e(G,Z){this.element=G,this.canvasHeight=Z||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return e.prototype.moveContainer=function(G){ie.translate(this.element,0,-G.firstRowScreen*G.lineHeight%this.canvasHeight-G.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(G,Z){return Math.floor(G.firstRowScreen*G.lineHeight/this.canvasHeight)!==Math.floor(Z.firstRowScreen*Z.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(G,Z,ne){var ie=Z.firstRowScreen*Z.lineHeight,se=Math.floor(ie/this.canvasHeight);return ne.documentToScreenRow(G,0)*Z.lineHeight-se*this.canvasHeight},e.prototype.computeLineHeight=function(G,Z,ne){return Z.lineHeight*ne.getRowLineCount(G)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(G){return this.cells[G]},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(G){if(Array.isArray(G)){this.cells.push.apply(this.cells,G);for(var Z=ie.createFragment(this.element),ne=0;nece&&(ge=se.end.row+1,ce=(se=Z.getNextFoldLine(ge,se))?se.start.row:1/0),ge>ie){for(;this.$lines.getLength()>me+1;)this.$lines.pop();break}(fe=this.$lines.get(++me))?fe.row=ge:(fe=this.$lines.createCell(ge,G,this.session,l),this.$lines.push(fe)),this.$renderCell(fe,G,se,ge),ge++}this._signal("afterRender"),this.$updateGutterWidth(G)},e.prototype.$updateGutterWidth=function(G){var Z=this.session,ne=Z.gutterRenderer||this.$renderer,ie=Z.$firstLineNumber,se=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||Z.$useWrapMode)&&(se=Z.getLength()+ie-1);var ce=ne?ne.getWidth(Z,se,G):se.toString().length*G.characterWidth,fe=this.$padding||this.$computePadding();(ce+=fe.left+fe.right)!==this.gutterWidth&&!isNaN(ce)&&(this.gutterWidth=ce,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",ce))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var G=this.session.selection.getCursor();this.$cursorRow!==G.row&&(this.$cursorRow=G.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var G=this.session.selection.cursor.row;if(this.$cursorRow=G,!this.$cursorCell||this.$cursorCell.row!=G){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var Z=this.$lines.cells;this.$cursorCell=null;for(var ne=0;ne=this.$cursorRow){if(ie.row>this.$cursorRow){var se=this.session.getFoldLine(this.$cursorRow);if(!(ne>0&&se&&se.start.row==Z[ne-1].row))break;ie=Z[ne-1]}ie.element.className="ace_gutter-active-line "+ie.element.className,this.$cursorCell=ie;break}}}}},e.prototype.scrollLines=function(G){var Z=this.config;if(this.config=G,this.$updateCursorRow(),this.$lines.pageChanged(Z,G))return this.update(G);this.$lines.moveContainer(G);var ne=Math.min(G.lastRow+G.gutterOffset,this.session.getLength()-1),ie=this.oldLastRow;if(this.oldLastRow=ne,!Z||ie0;se--)this.$lines.shift();if(ie>ne)for(se=this.session.getFoldedRowCount(ne+1,ie);se>0;se--)this.$lines.pop();G.firstRowie&&this.$lines.push(this.$renderLines(G,ie+1,ne)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(G)},e.prototype.$renderLines=function(G,Z,ne){for(var ie=[],se=Z,ce=this.session.getNextFoldLine(se),fe=ce?ce.start.row:1/0;se>fe&&(se=ce.end.row+1,fe=(ce=this.session.getNextFoldLine(se,ce))?ce.start.row:1/0),!(se>ne);){var me=this.$lines.createCell(se,G,this.session,l);this.$renderCell(me,G,ce,se),ie.push(me),se++}return ie},e.prototype.$renderCell=function(G,Z,ne,se){var ce=G.element,fe=this.session,me=ce.childNodes[0],Ce=ce.childNodes[1],Se=ce.childNodes[2],Me=Se.firstChild,ke=fe.$firstLineNumber,xe=fe.$breakpoints,De=fe.$decorations,Ie=fe.gutterRenderer||this.$renderer,Re=this.$showFoldWidgets&&fe.foldWidgets,ze=ne?ne.start.row:Number.MAX_VALUE,$e=Z.lineHeight+"px",Je=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",it=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ot=(Ie?Ie.getText(fe,se):se+ke).toString();if(this.$highlightGutterLine&&(se==this.$cursorRow||ne&&se=ze&&this.$cursorRow<=ne.end.row)&&(Je+="ace_gutter-active-line ",this.$cursorCell!=G&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=G)),xe[se]&&(Je+=xe[se]),De[se]&&(Je+=De[se]),this.$annotations[se]&&se!==ze&&(Je+=this.$annotations[se].className),Re){var at=Re[se];null==at&&(at=Re[se]=fe.getFoldWidget(se))}if(at){var st="ace_fold-widget ace_"+at,ct="start"==at&&se==ze&&sene.right-Z.right?"foldWidgets":void 0},e}();Ce.prototype.$fixedWidth=!1,Ce.prototype.$highlightGutterLine=!0,Ce.prototype.$renderer="",Ce.prototype.$showLineNumbers=!0,Ce.prototype.$showFoldWidgets=!0,se.implement(Ce.prototype,fe),Z.Gutter=Ce})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(G,Z,ne){"use strict";function o(G,Z,ne,ie){return(G?1:0)|(Z?2:0)|(ne?4:0)|(ie?8:0)}var ie=G("../range").Range,se=G("../lib/dom"),ce=function(){function e(G){this.element=se.createElement("div"),this.element.className="ace_layer ace_marker-layer",G.appendChild(this.element)}return e.prototype.setPadding=function(G){this.$padding=G},e.prototype.setSession=function(G){this.session=G},e.prototype.setMarkers=function(G){this.markers=G},e.prototype.elt=function(G,Z){var ne=-1!=this.i&&this.element.childNodes[this.i];ne?this.i++:(ne=document.createElement("div"),this.element.appendChild(ne),this.i=-1),ne.style.cssText=Z,ne.className=G},e.prototype.update=function(G){if(G){var Z;for(var ne in this.config=G,this.i=0,this.markers){var ie=this.markers[ne];if(ie.range){var se=ie.range.clipRows(G.firstRow,G.lastRow);if(!se.isEmpty())if(se=se.toScreenRange(this.session),ie.renderer){var ce=this.$getTop(se.start.row,G),fe=this.$padding+se.start.column*G.characterWidth;ie.renderer(Z,se,fe,ce,G)}else"fullLine"==ie.type?this.drawFullLineMarker(Z,se,ie.clazz,G):"screenLine"==ie.type?this.drawScreenLineMarker(Z,se,ie.clazz,G):se.isMultiLine()?"text"==ie.type?this.drawTextMarker(Z,se,ie.clazz,G):this.drawMultiLineMarker(Z,se,ie.clazz,G):this.drawSingleLineMarker(Z,se,ie.clazz+" ace_start ace_br15",G)}else ie.update(Z,this,this.session,G)}if(-1!=this.i)for(;this.ike,Ce==ge),se,Ce==ge?0:1,ce)},e.prototype.drawMultiLineMarker=function(G,Z,ne,ie,se){var ce=this.$padding,fe=ie.lineHeight,me=this.$getTop(Z.start.row,ie),ge=ce+Z.start.column*ie.characterWidth;(se=se||"",this.session.$bidiHandler.isBidiRow(Z.start.row))?((Ce=Z.clone()).end.row=Ce.start.row,Ce.end.column=this.session.getLine(Ce.start.row).length,this.drawBidiSingleLineMarker(G,Ce,ne+" ace_br1 ace_start",ie,null,se)):this.elt(ne+" ace_br1 ace_start","height:"+fe+"px;right:0;top:"+me+"px;left:"+ge+"px;"+(se||""));if(this.session.$bidiHandler.isBidiRow(Z.end.row)){var Ce;(Ce=Z.clone()).start.row=Ce.end.row,Ce.start.column=0,this.drawBidiSingleLineMarker(G,Ce,ne+" ace_br12",ie,null,se)}else{me=this.$getTop(Z.end.row,ie);var Se=Z.end.column*ie.characterWidth;this.elt(ne+" ace_br12","height:"+fe+"px;width:"+Se+"px;top:"+me+"px;left:"+ce+"px;"+(se||""))}if(!((fe=(Z.end.row-Z.start.row-1)*ie.lineHeight)<=0)){me=this.$getTop(Z.start.row+1,ie);var Me=(Z.start.column?1:0)|(Z.end.column?0:8);this.elt(ne+(Me?" ace_br"+Me:""),"height:"+fe+"px;right:0;top:"+me+"px;left:"+ce+"px;"+(se||""))}},e.prototype.drawSingleLineMarker=function(G,Z,ne,ie,se,ce){if(this.session.$bidiHandler.isBidiRow(Z.start.row))return this.drawBidiSingleLineMarker(G,Z,ne,ie,se,ce);var fe=ie.lineHeight,me=(Z.end.column+(se||0)-Z.start.column)*ie.characterWidth,ge=this.$getTop(Z.start.row,ie),Ce=this.$padding+Z.start.column*ie.characterWidth;this.elt(ne,"height:"+fe+"px;width:"+me+"px;top:"+ge+"px;left:"+Ce+"px;"+(ce||""))},e.prototype.drawBidiSingleLineMarker=function(G,Z,ne,ie,se,ce){var fe=ie.lineHeight,me=this.$getTop(Z.start.row,ie),ge=this.$padding;this.session.$bidiHandler.getSelections(Z.start.column,Z.end.column).forEach((function(G){this.elt(ne,"height:"+fe+"px;width:"+(G.width+(se||0))+"px;top:"+me+"px;left:"+(ge+G.left)+"px;"+(ce||""))}),this)},e.prototype.drawFullLineMarker=function(G,Z,ne,ie,se){var ce=this.$getTop(Z.start.row,ie),fe=ie.lineHeight;Z.start.row!=Z.end.row&&(fe+=this.$getTop(Z.end.row,ie)-ce),this.elt(ne,"height:"+fe+"px;top:"+ce+"px;left:0;right:0;"+(se||""))},e.prototype.drawScreenLineMarker=function(G,Z,ne,ie,se){var ce=this.$getTop(Z.start.row,ie),fe=ie.lineHeight;this.elt(ne,"height:"+fe+"px;top:"+ce+"px;left:0;right:0;"+(se||""))},e}();ce.prototype.$padding=0,Z.Marker=ce})),ace.define("ace/layer/text_util",["require","exports","module"],(function(G,Z,ne){var ie=new Set(["text","rparen","lparen"]);Z.isTextToken=function(G){return ie.has(G)}})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],(function(G,Z,ne){"use strict";var ie=G("../lib/oop"),se=G("../lib/dom"),ce=G("../lib/lang"),fe=G("./lines").Lines,me=G("../lib/event_emitter").EventEmitter,ge=G("../config").nls,Ce=G("./text_util").isTextToken,Se=function(){function e(G){this.dom=se,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",G.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new fe(this.element)}return e.prototype.$updateEolChar=function(){var G=this.session.doc,Z="\n"==G.getNewLineCharacter()&&"windows"!=G.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=Z)return this.EOL_CHAR=Z,!0},e.prototype.setPadding=function(G){this.$padding=G,this.element.style.margin="0 "+G+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(G){this.$fontMetrics=G,this.$fontMetrics.on("changeCharacterSize",function(G){this._signal("changeCharacterSize",G)}.bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(G){this.session=G,G&&this.$computeTabString()},e.prototype.setShowInvisibles=function(G){return this.showInvisibles!=G&&(this.showInvisibles=G,"string"==typeof G?(this.showSpaces=/tab/i.test(G),this.showTabs=/space/i.test(G),this.showEOL=/eol/i.test(G)):this.showSpaces=this.showTabs=this.showEOL=G,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(G){return this.displayIndentGuides!=G&&(this.displayIndentGuides=G,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(G){return this.$highlightIndentGuides!==G&&(this.$highlightIndentGuides=G,G)},e.prototype.$computeTabString=function(){var G=this.session.getTabSize();this.tabSize=G;for(var Z=this.$tabStrings=[0],ne=1;neSe&&(me=ge.end.row+1,Se=(ge=this.session.getNextFoldLine(me,ge))?ge.start.row:1/0),!(me>se);){var Me=ce[fe++];if(Me){this.dom.removeChildren(Me),this.$renderLine(Me,me,me==Se&&ge),Ce&&(Me.style.top=this.$lines.computeLineTop(me,G,this.session)+"px");var ke=G.lineHeight*this.session.getRowLength(me)+"px";Me.style.height!=ke&&(Ce=!0,Me.style.height=ke)}me++}if(Ce)for(;fe0;se--)this.$lines.shift();if(Z.lastRow>G.lastRow)for(se=this.session.getFoldedRowCount(G.lastRow+1,Z.lastRow);se>0;se--)this.$lines.pop();G.firstRowZ.lastRow&&this.$lines.push(this.$renderLinesFragment(G,Z.lastRow+1,G.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(G,Z,ne){for(var ie=[],ce=Z,fe=this.session.getNextFoldLine(ce),me=fe?fe.start.row:1/0;ce>me&&(ce=fe.end.row+1,me=(fe=this.session.getNextFoldLine(ce,fe))?fe.start.row:1/0),!(ce>ne);){var ge=this.$lines.createCell(ce,G,this.session),Ce=ge.element;this.dom.removeChildren(Ce),se.setStyle(Ce.style,"height",this.$lines.computeLineHeight(ce,G,this.session)+"px"),se.setStyle(Ce.style,"top",this.$lines.computeLineTop(ce,G,this.session)+"px"),this.$renderLine(Ce,ce,ce==me&&fe),this.$useLineGroups()?Ce.className="ace_line_group":Ce.className="ace_line",ie.push(ge),ce++}return ie},e.prototype.update=function(G){this.$lines.moveContainer(G),this.config=G;for(var Z=G.firstRow,ne=G.lastRow,ie=this.$lines;ie.getLength();)ie.pop();ie.push(this.$renderLinesFragment(G,Z,ne))},e.prototype.$renderToken=function(G,Z,ne,ie){for(var se,fe=this,me=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,Se=this.dom.createFragment(this.element),Me=0;se=me.exec(ie);){var ke=se[1],xe=se[2],De=se[3],Ie=se[4],Re=se[5];if(fe.showSpaces||!xe){var ze=Me!=se.index?ie.slice(Me,se.index):"";if(Me=se.index+se[0].length,ze&&Se.appendChild(this.dom.createTextNode(ze,this.element)),ke){var $e=fe.session.getScreenTabSize(Z+se.index);Se.appendChild(fe.$tabStrings[$e].cloneNode(!0)),Z+=$e-1}else if(xe)if(fe.showSpaces){(it=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",it.textContent=ce.stringRepeat(fe.SPACE_CHAR,xe.length),Se.appendChild(it)}else Se.appendChild(this.dom.createTextNode(xe,this.element));else if(De){(it=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",it.textContent=ce.stringRepeat(fe.SPACE_CHAR,De.length),Se.appendChild(it)}else if(Ie){Z+=1,(it=this.dom.createElement("span")).style.width=2*fe.config.characterWidth+"px",it.className=fe.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",it.textContent=fe.showSpaces?fe.SPACE_CHAR:Ie,Se.appendChild(it)}else if(Re){Z+=1,(it=this.dom.createElement("span")).style.width=2*fe.config.characterWidth+"px",it.className="ace_cjk",it.textContent=Re,Se.appendChild(it)}}}if(Se.appendChild(this.dom.createTextNode(Me?ie.slice(Me):ie,this.element)),Ce(ne.type))G.appendChild(Se);else{var Je="ace_"+ne.type.replace(/\./g," ace_"),it=this.dom.createElement("span");"fold"==ne.type&&(it.style.width=ne.value.length*this.config.characterWidth+"px",it.setAttribute("title",ge("Unfold code"))),it.className=Je,it.appendChild(Se),G.appendChild(it)}return Z+ie.length},e.prototype.renderIndentGuide=function(G,Z,ne){var ie=Z.search(this.$indentGuideRe);if(ie<=0||ie>=ne)return Z;if(" "==Z[0]){for(var se=(ie-=ie%this.tabSize)/this.tabSize,ce=0;cese[ce].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==G[Z.row]&&Z.column===G[Z.row].length){this.$highlightIndentGuideMarker.dir=1;for(ce=Z.row+1;ce0)for(var ie=0;ie=this.$highlightIndentGuideMarker.start+1){if(ie.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(ie,Z)}}else for(ne=G.length-1;ne>=0;ne--){ie=G[ne];if(this.$highlightIndentGuideMarker.end&&ie.row=fe;)me=this.$renderToken(ge,me,Se,Me.substring(0,fe-ie)),Me=Me.substring(fe-ie),ie=fe,ge=this.$createLineElement(),G.appendChild(ge),ge.appendChild(this.dom.createTextNode(ce.stringRepeat(" ",ne.indent),this.element)),me=0,fe=ne[++se]||Number.MAX_VALUE;0!=Me.length&&(ie+=Me.length,me=this.$renderToken(ge,me,Se,Me))}}ne[ne.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(ge,me,null,"",!0)},e.prototype.$renderSimpleLine=function(G,Z){for(var ne=0,ie=0;iethis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(G,ne,se,ce);ne=this.$renderToken(G,ne,se,ce)}}},e.prototype.$renderOverflowMessage=function(G,Z,ne,ie,se){ne&&this.$renderToken(G,Z,ne,ie.slice(0,this.MAX_LINE_LENGTH-Z));var ce=this.dom.createElement("span");ce.className="ace_inline_button ace_keyword ace_toggle_wrap",ce.textContent=se?"":"",G.appendChild(ce)},e.prototype.$renderLine=function(G,Z,ne){if(!ne&&0!=ne&&(ne=this.session.getFoldLine(Z)),ne)var ie=this.$getFoldLineTokens(Z,ne);else ie=this.session.getTokens(Z);var se=G;if(ie.length){var ce=this.session.getRowSplitData(Z);if(ce&&ce.length){this.$renderWrappedLine(G,ie,ce);se=G.lastChild}else{se=G;this.$useLineGroups()&&(se=this.$createLineElement(),G.appendChild(se)),this.$renderSimpleLine(se,ie)}}else this.$useLineGroups()&&(se=this.$createLineElement(),G.appendChild(se));if(this.showEOL&&se){ne&&(Z=ne.end.row);var fe=this.dom.createElement("span");fe.className="ace_invisible ace_invisible_eol",fe.textContent=Z==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,se.appendChild(fe)}},e.prototype.$getFoldLineTokens=function(G,Z){var ne=this.session,ie=[],se=ne.getTokens(G);return Z.walk((function(G,Z,ce,fe,me){null!=G?ie.push({type:"fold",value:G}):(me&&(se=ne.getTokens(Z)),se.length&&function i(G,Z,ne){for(var se=0,ce=0;ce+G[se].value.lengthne-Z&&(fe=fe.substring(0,ne-Z)),ie.push({type:G[se].type,value:fe}),ce=Z+fe.length,se+=1);cene?ie.push({type:G[se].type,value:fe.substring(0,ne-ce)}):ie.push(G[se]),ce+=fe.length,se+=1}}(se,fe,ce))}),Z.end.row,this.session.getLine(Z.end.row).length),ie},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();Se.prototype.EOF_CHAR="¶",Se.prototype.EOL_CHAR_LF="¬",Se.prototype.EOL_CHAR_CRLF="¤",Se.prototype.EOL_CHAR=Se.prototype.EOL_CHAR_LF,Se.prototype.TAB_CHAR="—",Se.prototype.SPACE_CHAR="·",Se.prototype.$padding=0,Se.prototype.MAX_LINE_LENGTH=1e4,Se.prototype.showInvisibles=!1,Se.prototype.showSpaces=!1,Se.prototype.showTabs=!1,Se.prototype.showEOL=!1,Se.prototype.displayIndentGuides=!0,Se.prototype.$highlightIndentGuides=!0,Se.prototype.$tabStrings=[],Se.prototype.destroy={},Se.prototype.onChangeTabSize=Se.prototype.$computeTabString,ie.implement(Se.prototype,me),Z.Text=Se})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(G,Z,ne){"use strict";var ie=G("../lib/dom"),se=function(){function e(G){this.element=ie.createElement("div"),this.element.className="ace_layer ace_cursor-layer",G.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),ie.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(G){for(var Z=this.cursors,ne=Z.length;ne--;)ie.setStyle(Z[ne].style,"opacity",G?"":"0")},e.prototype.$startCssAnimation=function(){for(var G=this.cursors,Z=G.length;Z--;)G[Z].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&ie.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,ie.removeCssClass(this.element,"ace_animate-blinking")},e.prototype.setPadding=function(G){this.$padding=G},e.prototype.setSession=function(G){this.session=G},e.prototype.setBlinking=function(G){G!=this.isBlinking&&(this.isBlinking=G,this.restartTimer())},e.prototype.setBlinkInterval=function(G){G!=this.blinkInterval&&(this.blinkInterval=G,this.restartTimer())},e.prototype.setSmoothBlinking=function(G){G!=this.smoothBlinking&&(this.smoothBlinking=G,ie.setCssClass(this.element,"ace_smooth-blinking",G),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var G=ie.createElement("div");return G.className="ace_cursor",this.element.appendChild(G),this.cursors.push(G),G},e.prototype.removeCursor=function(){if(this.cursors.length>1){var G=this.cursors.pop();return G.parentNode.removeChild(G),G}},e.prototype.hideCursor=function(){this.isVisible=!1,ie.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,ie.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.restartTimer=function(){var G=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,ie.removeCssClass(this.element,"ace_smooth-blinking")),G(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&ie.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),ie.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var Z=function(){this.timeoutId=setTimeout((function(){G(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){G(!0),Z()}),this.blinkInterval),Z()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(G,Z){if(!this.config||!this.session)return{left:0,top:0};G||(G=this.session.selection.getCursor());var ne=this.session.documentToScreenPosition(G);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(ne.row,G.row)?this.session.$bidiHandler.getPosLeft(ne.column):ne.column*this.config.characterWidth),top:(ne.row-(Z?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(G,Z){return G.top>=0&&G.topG.height+G.offset||fe.top<0)&&ne>1)){var me=this.cursors[se++]||this.addCursor(),ge=me.style;this.drawCursor?this.drawCursor(me,fe,G,Z[ne],this.session):this.isCursorInView(fe,G)?(ie.setStyle(ge,"display","block"),ie.translate(me,fe.left,fe.top),ie.setStyle(ge,"width",Math.round(G.characterWidth)+"px"),ie.setStyle(ge,"height",G.lineHeight+"px")):ie.setStyle(ge,"display","none")}}for(;this.cursors.length>se;)this.removeCursor();var Ce=this.session.getOverwrite();this.$setOverwrite(Ce),this.$pixelPos=fe,this.restartTimer()},e.prototype.$setOverwrite=function(G){G!=this.overwrite&&(this.overwrite=G,G?ie.addCssClass(this.element,"ace_overwrite-cursors"):ie.removeCssClass(this.element,"ace_overwrite-cursors"))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();se.prototype.$padding=0,se.prototype.drawCursor=null,Z.Cursor=se})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(G,Z,ne){"use strict";var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=G("./lib/oop"),ce=G("./lib/dom"),fe=G("./lib/event"),me=G("./lib/event_emitter").EventEmitter,ge=32768,Ce=function(){function e(G,Z){this.element=ce.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+Z,this.inner=ce.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),G.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,fe.addListener(this.element,"scroll",this.onScroll.bind(this)),fe.addListener(this.element,"mousedown",fe.preventDefault)}return e.prototype.setVisible=function(G){this.element.style.display=G?"":"none",this.isVisible=G,this.coeff=1},e}();se.implement(Ce.prototype,me);var Se=function(G){function t(Z,ne){var ie=G.call(this,Z,"-v")||this;return ie.scrollTop=0,ie.scrollHeight=0,ne.$scrollbarWidth=ie.width=ce.scrollbarWidth(Z.ownerDocument),ie.inner.style.width=ie.element.style.width=(ie.width||15)+5+"px",ie.$minWidth=0,ie}return ie(t,G),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var G=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-G)/(this.coeff-G)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(G){this.element.style.height=G+"px"},t.prototype.setScrollHeight=function(G){this.scrollHeight=G,G>ge?(this.coeff=ge/G,G=ge):1!=this.coeff&&(this.coeff=1),this.inner.style.height=G+"px"},t.prototype.setScrollTop=function(G){this.scrollTop!=G&&(this.skipEvent=!0,this.scrollTop=G,this.element.scrollTop=G*this.coeff)},t}(Ce);Se.prototype.setInnerHeight=Se.prototype.setScrollHeight;var Me=function(G){function t(Z,ne){var ie=G.call(this,Z,"-h")||this;return ie.scrollLeft=0,ie.height=ne.$scrollbarWidth,ie.inner.style.height=ie.element.style.height=(ie.height||15)+5+"px",ie}return ie(t,G),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(G){this.element.style.width=G+"px"},t.prototype.setInnerWidth=function(G){this.inner.style.width=G+"px"},t.prototype.setScrollWidth=function(G){this.inner.style.width=G+"px"},t.prototype.setScrollLeft=function(G){this.scrollLeft!=G&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=G)},t}(Ce);Z.ScrollBar=Se,Z.ScrollBarV=Se,Z.ScrollBarH=Me,Z.VScrollBar=Se,Z.HScrollBar=Me})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(G,Z,ne){"use strict";var ie=this&&this.__extends||function(){var e=function(G,Z){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)};return function(G,Z){function r(){this.constructor=G}if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");e(G,Z),G.prototype=null===Z?Object.create(Z):(r.prototype=Z.prototype,new r)}}(),se=G("./lib/oop"),ce=G("./lib/dom"),fe=G("./lib/event"),me=G("./lib/event_emitter").EventEmitter;ce.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var ge=function(){function e(G,Z){this.element=ce.createElement("div"),this.element.className="ace_sb"+Z,this.inner=ce.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,G.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,fe.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(G){this.element.style.display=G?"":"none",this.isVisible=G,this.coeff=1},e}();se.implement(ge.prototype,me);var Ce=function(G){function t(Z,ne){var ie=G.call(this,Z,"-v")||this;return ie.scrollTop=0,ie.scrollHeight=0,ie.parent=Z,ie.width=ie.VScrollWidth,ie.renderer=ne,ie.inner.style.width=ie.element.style.width=(ie.width||15)+"px",ie.$minWidth=0,ie}return ie(t,G),t.prototype.onMouseDown=function(G,Z){if("mousedown"===G&&0===fe.getButton(Z)&&2!==Z.detail){if(Z.target===this.inner){var ne=this,ie=Z.clientY,se=Z.clientY,ce=this.thumbTop;fe.capture(this.inner,(function(G){ie=G.clientY}),(function(){clearInterval(me)}));var me=setInterval((function(){if(void 0!==ie){var G=ne.scrollTopFromThumbTop(ce+ie-se);G!==ne.scrollTop&&ne._emit("scroll",{data:G})}}),20);return fe.preventDefault(Z)}var ge=Z.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(ge)}),fe.preventDefault(Z)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(G){var Z=G*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(Z>>=0)<0?Z=0:Z>this.pageHeight-this.viewHeight&&(Z=this.pageHeight-this.viewHeight),Z},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(G){this.height=Math.max(0,G),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(G,Z){(this.pageHeight!==G||Z)&&(this.pageHeight=G,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(G){this.scrollTop=G,G<0&&(G=0),this.thumbTop=G*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t}(ge);Ce.prototype.setInnerHeight=Ce.prototype.setScrollHeight;var Se=function(G){function t(Z,ne){var ie=G.call(this,Z,"-h")||this;return ie.scrollLeft=0,ie.scrollWidth=0,ie.height=ie.HScrollHeight,ie.inner.style.height=ie.element.style.height=(ie.height||12)+"px",ie.renderer=ne,ie}return ie(t,G),t.prototype.onMouseDown=function(G,Z){if("mousedown"===G&&0===fe.getButton(Z)&&2!==Z.detail){if(Z.target===this.inner){var ne=this,ie=Z.clientX,se=Z.clientX,ce=this.thumbLeft;fe.capture(this.inner,(function(G){ie=G.clientX}),(function(){clearInterval(me)}));var me=setInterval((function(){if(void 0!==ie){var G=ne.scrollLeftFromThumbLeft(ce+ie-se);G!==ne.scrollLeft&&ne._emit("scroll",{data:G})}}),20);return fe.preventDefault(Z)}var ge=Z.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(ge)}),fe.preventDefault(Z)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(G){var Z=G*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(Z>>=0)<0?Z=0:Z>this.pageWidth-this.viewWidth&&(Z=this.pageWidth-this.viewWidth),Z},t.prototype.setWidth=function(G){this.width=Math.max(0,G),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(G,Z){(this.pageWidth!==G||Z)&&(this.pageWidth=G,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(G){this.scrollLeft=G,G<0&&(G=0),this.thumbLeft=G*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t}(ge);Se.prototype.setInnerWidth=Se.prototype.setScrollWidth,Z.ScrollBar=Ce,Z.ScrollBarV=Ce,Z.ScrollBarH=Se,Z.VScrollBar=Ce,Z.HScrollBar=Se})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(G,Z,ne){"use strict";var ie=G("./lib/event"),se=function(){function e(G,Z){this.onRender=G,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=Z||window;var ne=this;this._flush=function(G){ne.pending=!1;var Z=ne.changes;if(Z&&(ie.blockIdle(100),ne.changes=0,ne.onRender(Z)),ne.changes){if(ne.$recursionLimit--<0)return;ne.schedule()}else ne.$recursionLimit=2}}return e.prototype.schedule=function(G){this.changes=this.changes|G,this.changes&&!this.pending&&(ie.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(G){var Z=this.changes;return this.changes=0,Z},e}();Z.RenderLoop=se})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(G,Z,ne){var ie=G("../lib/oop"),se=G("../lib/dom"),ce=G("../lib/lang"),fe=G("../lib/event"),me=G("../lib/useragent"),ge=G("../lib/event_emitter").EventEmitter,Ce=512,Se="function"==typeof ResizeObserver,Me=200,ke=function(){function e(G){this.el=se.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=se.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=se.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),G.appendChild(this.el),this.$measureNode.textContent=ce.stringRepeat("X",Ce),this.$characterSize={width:0,height:0},Se?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(G,Z){G.width=G.height="auto",G.left=G.top="0px",G.visibility="hidden",G.position="absolute",G.whiteSpace="pre",me.isIE<8?G["font-family"]="inherit":G.font="inherit",G.overflow=Z?"hidden":"visible"},e.prototype.checkForSizeChanges=function(G){if(void 0===G&&(G=this.$measureSizes()),G&&(this.$characterSize.width!==G.width||this.$characterSize.height!==G.height)){this.$measureNode.style.fontWeight="bold";var Z=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=G,this.charSizes=Object.create(null),this.allowBoldFonts=Z&&Z.width===G.width&&Z.height===G.height,this._emit("changeCharacterSize",{data:G})}},e.prototype.$addObserver=function(){var G=this;this.$observer=new window.ResizeObserver((function(Z){G.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var G=this;return this.$pollSizeChangesTimer=fe.onIdle((function t(){G.checkForSizeChanges(),fe.onIdle(t,500)}),500)},e.prototype.setPolling=function(G){G?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(G){var Z={height:(G||this.$measureNode).clientHeight,width:(G||this.$measureNode).clientWidth/Ce};return 0===Z.width||0===Z.height?null:Z},e.prototype.$measureCharWidth=function(G){return this.$main.textContent=ce.stringRepeat(G,Ce),this.$main.getBoundingClientRect().width/Ce},e.prototype.getCharacterWidth=function(G){var Z=this.charSizes[G];return void 0===Z&&(Z=this.charSizes[G]=this.$measureCharWidth(G)/this.$characterSize.width),Z},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(G){return G&&G.parentElement?(window.getComputedStyle(G).zoom||1)*this.$getZoom(G.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(G,Z){return["div",{style:"position: absolute;top:"+G+"px;left:"+Z+"px;"}]};this.els=se.buildDom([e(0,0),e(Me,0),e(0,Me),e(Me,Me)],this.el)},e.prototype.transformCoordinates=function(G,Z){function r(G,Z,ne){var ie=G[1]*Z[0]-G[0]*Z[1];return[(-Z[1]*ne[0]+Z[0]*ne[1])/ie,(+G[1]*ne[0]-G[0]*ne[1])/ie]}function i(G,Z){return[G[0]-Z[0],G[1]-Z[1]]}function s(G,Z){return[G[0]+Z[0],G[1]+Z[1]]}function o(G,Z){return[G*Z[0],G*Z[1]]}function u(G){var Z=G.getBoundingClientRect();return[Z.left,Z.top]}G&&(G=o(1/this.$getZoom(this.el),G));this.els||this.$initTransformMeasureNodes();var ne=u(this.els[0]),ie=u(this.els[1]),se=u(this.els[2]),ce=u(this.els[3]),fe=r(i(ce,ie),i(ce,se),i(s(ie,se),s(ce,ne))),me=o(1+fe[0],i(ie,ne)),ge=o(1+fe[1],i(se,ne));if(Z){var Ce=Z,Se=fe[0]*Ce[0]/Me+fe[1]*Ce[1]/Me+1,ke=s(o(Ce[0],me),o(Ce[1],ge));return s(o(1/Se/Me,ke),ne)}var xe=i(G,ne),De=r(i(me,o(fe[0],xe)),i(ge,o(fe[1],xe)),xe);return o(Me,De)},e}();ke.prototype.$characterSize={width:0,height:0},ie.implement(ke.prototype,ge),Z.FontMetrics=ke})),ace.define("ace/css/editor-css",["require","exports","module"],(function(G,Z,ne){ne.exports='\n.ace_br1 {border-top-left-radius : 3px;}\n.ace_br2 {border-top-right-radius : 3px;}\n.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}\n.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n position: relative;\n overflow: hidden;\n padding: 0;\n font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n direction: ltr;\n text-align: left;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n position: absolute;\n overflow: hidden;\n top: 0;\n bottom: 0;\n background-color: inherit;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n cursor: text;\n}\n\n.ace_content {\n position: absolute;\n box-sizing: border-box;\n min-width: 100%;\n contain: style size layout;\n font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n box-shadow: inset 0 0 0 2px #5E9ED6;\n outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n content: \'\';\n background: rgba(250, 250, 250, 0.01);\n z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n position: absolute;\n overflow : hidden;\n width: auto;\n top: 0;\n bottom: 0;\n left: 0;\n cursor: default;\n z-index: 4;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n contain: style size layout;\n}\n\n.ace_gutter-active-line {\n position: absolute;\n left: 0;\n right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n content: "";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n padding-left: 19px;\n padding-right: 6px;\n background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n margin-left: -14px;\n float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n margin-left: -19px;\n float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n background-repeat: no-repeat;\n background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n background-color: darkorange;\n}\n\n.ace_scrollbar {\n contain: strict;\n position: absolute;\n right: 0;\n bottom: 0;\n z-index: 6;\n}\n\n.ace_scrollbar-inner {\n position: absolute;\n cursor: text;\n left: 0;\n top: 0;\n}\n\n.ace_scrollbar-v{\n overflow-x: hidden;\n overflow-y: scroll;\n top: 0;\n}\n\n.ace_scrollbar-h {\n overflow-x: scroll;\n overflow-y: hidden;\n left: 0;\n}\n\n.ace_print-margin {\n position: absolute;\n height: 100%;\n}\n\n.ace_text-input {\n position: absolute;\n z-index: 0;\n width: 0.5em;\n height: 1em;\n opacity: 0;\n background: transparent;\n -moz-appearance: none;\n appearance: none;\n border: none;\n resize: none;\n outline: none;\n overflow: hidden;\n font: inherit;\n padding: 0 1px;\n margin: 0 -1px;\n contain: strict;\n -ms-user-select: text;\n -moz-user-select: text;\n -webkit-user-select: text;\n user-select: text;\n /*with `pre-line` chrome inserts   instead of space*/\n white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n background: transparent;\n color: inherit;\n z-index: 1000;\n opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n border-bottom: 1px solid;\n position: absolute;\n border-radius: 0;\n margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n transform: none!important;\n filter: none!important;\n clip-path: none!important;\n mask : none!important;\n contain: none!important;\n perspective: none!important;\n mix-blend-mode: initial!important;\n z-index: auto;\n}\n\n.ace_layer {\n z-index: 1;\n position: absolute;\n overflow: hidden;\n /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n word-wrap: normal;\n white-space: pre;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n /* setting pointer-events: auto; on node under the mouse, which changes\n during scroll, will break mouse wheel scrolling in Safari */\n pointer-events: none;\n}\n\n.ace_gutter-layer {\n position: relative;\n width: auto;\n text-align: right;\n pointer-events: auto;\n height: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer {\n font: inherit !important;\n position: absolute;\n height: 1000000px;\n width: 1000000px;\n contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #f5f5f5;\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_tooltip.ace_dark {\n background-color: #636363;\n color: #fff;\n}\n\n.ace_tooltip:focus {\n outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n display: inline-block;\n width: 18px;\n vertical-align: top;\n}\n\n.ace_icon_svg {\n display: inline-block;\n width: 12px;\n vertical-align: top;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-size: 12px;\n -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}\n\n.ace_ghost_text {\n opacity: 0.5;\n font-style: italic;\n white-space: pre;\n}\n\n.ace_screenreader-only {\n position:absolute;\n left:-10000px;\n top:auto;\n width:1px;\n height:1px;\n overflow:hidden;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(G,Z,ne){"use strict";var ie=G("../lib/dom"),se=G("../lib/oop"),ce=G("../lib/event_emitter").EventEmitter,fe=function(){function e(G,Z){this.canvas=ie.createElement("canvas"),this.renderer=Z,this.pixelRatio=1,this.maxHeight=Z.layerConfig.maxHeight,this.lineHeight=Z.layerConfig.lineHeight,this.canvasHeight=G.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=G.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},G.element.appendChild(this.canvas)}return e.prototype.$updateDecorators=function(G){var Z=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;G&&(this.maxHeight=G.maxHeight,this.lineHeight=G.lineHeight,this.canvasHeight=G.height,(G.lastRow+1)*this.lineHeightZ.priority?1:0}));for(var ce=this.renderer.session.$foldData,fe=0;fethis.canvasHeight&&(ke=this.canvasHeight-this.halfMinDecorationHeight),Se=Math.round(ke-this.halfMinDecorationHeight),Me=Math.round(ke+this.halfMinDecorationHeight)}ne.fillStyle=Z[ie[fe].type]||null,ne.fillRect(0,Ce,this.canvasWidth,Me-Se)}}var xe=this.renderer.session.selection.getCursor();if(xe){ge=this.compensateFoldRows(xe.row,ce),Ce=Math.round((xe.row-ge)*this.lineHeight*this.heightRatio);ne.fillStyle="rgba(0, 0, 0, 0.5)",ne.fillRect(0,Ce,this.canvasWidth,2)}},e.prototype.compensateFoldRows=function(G,Z){var ne=0;if(Z&&Z.length>0)for(var ie=0;ieZ[ie].start.row&&G=Z[ie].end.row&&(ne+=Z[ie].end.row-Z[ie].start.row);return ne},e}();se.implement(fe.prototype,ce),Z.Decorator=fe})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],(function(G,Z,ne){"use strict";var ie=G("./lib/oop"),se=G("./lib/dom"),ce=G("./lib/lang"),fe=G("./config"),me=G("./layer/gutter").Gutter,ge=G("./layer/marker").Marker,Ce=G("./layer/text").Text,Se=G("./layer/cursor").Cursor,Me=G("./scrollbar").HScrollBar,ke=G("./scrollbar").VScrollBar,xe=G("./scrollbar_custom").HScrollBar,De=G("./scrollbar_custom").VScrollBar,Ie=G("./renderloop").RenderLoop,Re=G("./layer/font_metrics").FontMetrics,ze=G("./lib/event_emitter").EventEmitter,$e=G("./css/editor-css"),Je=G("./layer/decorators").Decorator,it=G("./lib/useragent");se.importCssString($e,"ace_editor.css",!1);var ot=function(){function e(G,Z){var ne=this;this.container=G||se.createElement("div"),se.addCssClass(this.container,"ace_editor"),se.HI_DPI&&se.addCssClass(this.container,"ace_hidpi"),this.setTheme(Z),null==fe.get("useStrictCSP")&&fe.set("useStrictCSP",!1),this.$gutter=se.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=se.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=se.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new me(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new ge(this.content);var ie=this.$textLayer=new Ce(this.content);this.canvas=ie.element,this.$markerFront=new ge(this.content),this.$cursorLayer=new Se(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new ke(this.container,this),this.scrollBarH=new Me(this.container,this),this.scrollBarV.on("scroll",(function(G){ne.$scrollAnimation||ne.session.setScrollTop(G.data-ne.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(G){ne.$scrollAnimation||ne.session.setScrollLeft(G.data-ne.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Re(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(G){ne.updateCharacterSize(),ne.onResize(!0,ne.gutterWidth,ne.$size.width,ne.$size.height),ne._signal("changeCharacterSize",G)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!it.isIOS,this.$loop=new Ie(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),fe.resetOptions(this),fe._signal("renderer",this)}return e.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),se.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},e.prototype.setSession=function(G){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=G,G&&this.scrollMargin.top&&G.getScrollTop()<=0&&G.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(G),this.$markerBack.setSession(G),this.$markerFront.setSession(G),this.$gutterLayer.setSession(G),this.$textLayer.setSession(G),G&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},e.prototype.updateLines=function(G,Z,ne){if(void 0===Z&&(Z=1/0),this.$changedLines?(this.$changedLines.firstRow>G&&(this.$changedLines.firstRow=G),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(G){G?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(G,Z,ne,ie){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=G?1:0;var se=this.container;ie||(ie=se.clientHeight||se.scrollHeight),ne||(ne=se.clientWidth||se.scrollWidth);var ce=this.$updateCachedSize(G,Z,ne,ie);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!ne&&!ie)return this.resizing=0;G&&(this.$gutterLayer.$padding=null),G?this.$renderChanges(ce|this.$changes,!0):this.$loop.schedule(ce|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(G,Z,ne,ie){ie-=this.$extraHeight||0;var ce=0,fe=this.$size,me={width:fe.width,height:fe.height,scrollerHeight:fe.scrollerHeight,scrollerWidth:fe.scrollerWidth};if(ie&&(G||fe.height!=ie)&&(fe.height=ie,ce|=this.CHANGE_SIZE,fe.scrollerHeight=fe.height,this.$horizScroll&&(fe.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(fe.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",ce|=this.CHANGE_SCROLL),ne&&(G||fe.width!=ne)){ce|=this.CHANGE_SIZE,fe.width=ne,null==Z&&(Z=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=Z,se.setStyle(this.scrollBarH.element.style,"left",Z+"px"),se.setStyle(this.scroller.style,"left",Z+this.margin.left+"px"),fe.scrollerWidth=Math.max(0,ne-Z-this.scrollBarV.getWidth()-this.margin.h),se.setStyle(this.$gutter.style,"left",this.margin.left+"px");var ge=this.scrollBarV.getWidth()+"px";se.setStyle(this.scrollBarH.element.style,"right",ge),se.setStyle(this.scroller.style,"right",ge),se.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(fe.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||G)&&(ce|=this.CHANGE_FULL)}return fe.$dirty=!ne||!ie,ce&&this._signal("resize",me),ce},e.prototype.onGutterResize=function(G){var Z=this.$showGutter?G:0;Z!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,Z,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var G=this.$size.scrollerWidth-2*this.$padding,Z=Math.floor(G/this.characterWidth);return this.session.adjustWrapLimit(Z,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(G){this.setOption("animatedScroll",G)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(G){this.setOption("showInvisibles",G),this.session.$bidiHandler.setShowInvisibles(G)},e.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},e.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},e.prototype.setDisplayIndentGuides=function(G){this.setOption("displayIndentGuides",G)},e.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},e.prototype.setHighlightIndentGuides=function(G){this.setOption("highlightIndentGuides",G)},e.prototype.setShowPrintMargin=function(G){this.setOption("showPrintMargin",G)},e.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},e.prototype.setPrintMarginColumn=function(G){this.setOption("printMarginColumn",G)},e.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},e.prototype.getShowGutter=function(){return this.getOption("showGutter")},e.prototype.setShowGutter=function(G){return this.setOption("showGutter",G)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.setFadeFoldWidgets=function(G){this.setOption("fadeFoldWidgets",G)},e.prototype.setHighlightGutterLine=function(G){this.setOption("highlightGutterLine",G)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var G=se.createElement("div");G.className="ace_layer ace_print-margin-layer",this.$printMarginEl=se.createElement("div"),this.$printMarginEl.className="ace_print-margin",G.appendChild(this.$printMarginEl),this.content.insertBefore(G,this.content.firstChild)}var Z=this.$printMarginEl.style;Z.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",Z.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var G=this.textarea.style,Z=this.$composition;if(this.$keepTextAreaAtCursor||Z){var ne=this.$cursorLayer.$pixelPos;if(ne){Z&&Z.markerRange&&(ne=this.$cursorLayer.getPixelPosition(Z.markerRange.start,!0));var ie=this.layerConfig,ce=ne.top,fe=ne.left;ce-=ie.offset;var me=Z&&Z.useTextareaForIME||it.isMobile?this.lineHeight:1;if(ce<0||ce>ie.height-me)se.translate(this.textarea,0,0);else{var ge=1,Ce=this.$size.height-me;if(Z)if(Z.useTextareaForIME){var Se=this.textarea.value;ge=this.characterWidth*this.session.$getStringScreenWidth(Se)[0]}else ce+=this.lineHeight+2;else ce+=this.lineHeight;(fe-=this.scrollLeft)>this.$size.scrollerWidth-ge&&(fe=this.$size.scrollerWidth-ge),fe+=this.gutterWidth+this.margin.left,se.setStyle(G,"height",me+"px"),se.setStyle(G,"width",ge+"px"),se.translate(this.textarea,Math.min(fe,this.$size.scrollerWidth-ge),Math.min(ce,Ce))}}}else se.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var G=this.layerConfig,Z=G.lastRow;return this.session.documentToScreenRow(Z,0)*G.lineHeight-this.session.getScrollTop()>G.height-G.lineHeight?Z-1:Z},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(G){this.$padding=G,this.$textLayer.setPadding(G),this.$cursorLayer.setPadding(G),this.$markerFront.setPadding(G),this.$markerBack.setPadding(G),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(G,Z,ne,ie){var se=this.scrollMargin;se.top=0|G,se.bottom=0|Z,se.right=0|ie,se.left=0|ne,se.v=se.top+se.bottom,se.h=se.left+se.right,se.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-se.top),this.updateFull()},e.prototype.setMargin=function(G,Z,ne,ie){var se=this.margin;se.top=0|G,se.bottom=0|Z,se.right=0|ie,se.left=0|ne,se.v=se.top+se.bottom,se.h=se.left+se.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(G){this.setOption("hScrollBarAlwaysVisible",G)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(G){this.setOption("vScrollBarAlwaysVisible",G)},e.prototype.$updateScrollBarV=function(){var G=this.layerConfig.maxHeight,Z=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(G-=(Z-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>G-Z&&(G=this.scrollTop+Z,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(G+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(G,Z){if(this.$changes&&(G|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(G||Z)){if(this.$size.$dirty)return this.$changes|=G,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",G),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var ne=this.layerConfig;if(G&this.CHANGE_FULL||G&this.CHANGE_SIZE||G&this.CHANGE_TEXT||G&this.CHANGE_LINES||G&this.CHANGE_SCROLL||G&this.CHANGE_H_SCROLL){if(G|=this.$computeLayerConfig()|this.$loop.clear(),ne.firstRow!=this.layerConfig.firstRow&&ne.firstRowScreen==this.layerConfig.firstRowScreen){var ie=this.scrollTop+(ne.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;ie>0&&(this.scrollTop=ie,G|=this.CHANGE_SCROLL,G|=this.$computeLayerConfig()|this.$loop.clear())}ne=this.layerConfig,this.$updateScrollBarV(),G&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),se.translate(this.content,-this.scrollLeft,-ne.offset);var ce=ne.width+2*this.$padding+"px",fe=ne.minHeight+"px";se.setStyle(this.content.style,"width",ce),se.setStyle(this.content.style,"height",fe)}return G&this.CHANGE_H_SCROLL&&(se.translate(this.content,-this.scrollLeft,-ne.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),G&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(ne),this.$showGutter&&this.$gutterLayer.update(ne),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne),this.$markerBack.update(ne),this.$markerFront.update(ne),this.$cursorLayer.update(ne),this.$moveTextAreaToCursor(),void this._signal("afterRender",G)):G&this.CHANGE_SCROLL?(this.$changedLines=null,G&this.CHANGE_TEXT||G&this.CHANGE_LINES?this.$textLayer.update(ne):this.$textLayer.scrollLines(ne),this.$showGutter&&(G&this.CHANGE_GUTTER||G&this.CHANGE_LINES?this.$gutterLayer.update(ne):this.$gutterLayer.scrollLines(ne)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne),this.$markerBack.update(ne),this.$markerFront.update(ne),this.$cursorLayer.update(ne),this.$moveTextAreaToCursor(),void this._signal("afterRender",G)):(G&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(ne),this.$showGutter&&this.$gutterLayer.update(ne),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne)):G&this.CHANGE_LINES?((this.$updateLines()||G&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(ne),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne)):G&this.CHANGE_TEXT||G&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(ne),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne)):G&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(ne),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(ne)),G&this.CHANGE_CURSOR&&(this.$cursorLayer.update(ne),this.$moveTextAreaToCursor()),G&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(ne),G&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(ne),void this._signal("afterRender",G))}this.$changes|=G},e.prototype.$autosize=function(){var G=this.session.getScreenLength()*this.lineHeight,Z=this.$maxLines*this.lineHeight,ne=Math.min(Z,Math.max((this.$minLines||1)*this.lineHeight,G))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(ne+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&ne>this.$maxPixelHeight&&(ne=this.$maxPixelHeight);var ie=!(ne<=2*this.lineHeight)&&G>Z;if(ne!=this.desiredHeight||this.$size.height!=this.desiredHeight||ie!=this.$vScroll){ie!=this.$vScroll&&(this.$vScroll=ie,this.scrollBarV.setVisible(ie));var se=this.container.clientWidth;this.container.style.height=ne+"px",this.$updateCachedSize(!0,this.$gutterWidth,se,ne),this.desiredHeight=ne,this._signal("autosize")}},e.prototype.$computeLayerConfig=function(){var G=this.session,Z=this.$size,ne=Z.height<=2*this.lineHeight,ie=this.session.getScreenLength()*this.lineHeight,se=this.$getLongestLine(),ce=!ne&&(this.$hScrollBarAlwaysVisible||Z.scrollerWidth-se-2*this.$padding<0),fe=this.$horizScroll!==ce;fe&&(this.$horizScroll=ce,this.scrollBarH.setVisible(ce));var me=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var ge=Z.scrollerHeight+this.lineHeight,Ce=!this.$maxLines&&this.$scrollPastEnd?(Z.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;ie+=Ce;var Se=this.scrollMargin;this.session.setScrollTop(Math.max(-Se.top,Math.min(this.scrollTop,ie-Z.scrollerHeight+Se.bottom))),this.session.setScrollLeft(Math.max(-Se.left,Math.min(this.scrollLeft,se+2*this.$padding-Z.scrollerWidth+Se.right)));var Me=!ne&&(this.$vScrollBarAlwaysVisible||Z.scrollerHeight-ie+Ce<0||this.scrollTop>Se.top),ke=me!==Me;ke&&(this.$vScroll=Me,this.scrollBarV.setVisible(Me));var xe,De,Ie=this.scrollTop%this.lineHeight,Re=Math.ceil(ge/this.lineHeight)-1,ze=Math.max(0,Math.round((this.scrollTop-Ie)/this.lineHeight)),$e=ze+Re,Je=this.lineHeight;ze=G.screenToDocumentRow(ze,0);var it=G.getFoldLine(ze);it&&(ze=it.start.row),xe=G.documentToScreenRow(ze,0),De=G.getRowLength(ze)*Je,$e=Math.min(G.screenToDocumentRow($e,0),G.getLength()-1),ge=Z.scrollerHeight+G.getRowLength($e)*Je+De,Ie=this.scrollTop-xe*Je;var ot=0;return(this.layerConfig.width!=se||fe)&&(ot=this.CHANGE_H_SCROLL),(fe||ke)&&(ot|=this.$updateCachedSize(!0,this.gutterWidth,Z.width,Z.height),this._signal("scrollbarVisibilityChanged"),ke&&(se=this.$getLongestLine())),this.layerConfig={width:se,padding:this.$padding,firstRow:ze,firstRowScreen:xe,lastRow:$e,lineHeight:Je,characterWidth:this.characterWidth,minHeight:ge,maxHeight:ie,offset:Ie,gutterOffset:Je?Math.max(0,Math.ceil((Ie+Z.height-Z.scrollerHeight)/Je)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(se-this.$padding),ot},e.prototype.$updateLines=function(){if(this.$changedLines){var G=this.$changedLines.firstRow,Z=this.$changedLines.lastRow;this.$changedLines=null;var ne=this.layerConfig;if(!(G>ne.lastRow+1||Zthis.$textLayer.MAX_LINE_LENGTH&&(G=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(G*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(G,Z){this.$gutterLayer.addGutterDecoration(G,Z)},e.prototype.removeGutterDecoration=function(G,Z){this.$gutterLayer.removeGutterDecoration(G,Z)},e.prototype.updateBreakpoints=function(G){this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(G){this.$gutterLayer.setAnnotations(G),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(G,Z,ne){this.scrollCursorIntoView(G,ne),this.scrollCursorIntoView(Z,ne)},e.prototype.scrollCursorIntoView=function(G,Z,ne){if(0!==this.$size.scrollerHeight){var ie=this.$cursorLayer.getPixelPosition(G),se=ie.left,ce=ie.top,fe=ne&&ne.top||0,me=ne&&ne.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var ge=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ge+fe>ce?(Z&&ge+fe>ce+this.lineHeight&&(ce-=Z*this.$size.scrollerHeight),0===ce&&(ce=-this.scrollMargin.top),this.session.setScrollTop(ce)):ge+this.$size.scrollerHeight-me=1-this.scrollMargin.top||(Z>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(G<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(G>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},e.prototype.pixelToScreenCoordinates=function(G,Z){var ne;if(this.$hasCssTransforms){ne={top:0,left:0};var ie=this.$fontMetrics.transformCoordinates([G,Z]);G=ie[1]-this.gutterWidth-this.margin.left,Z=ie[0]}else ne=this.scroller.getBoundingClientRect();var se=G+this.scrollLeft-ne.left-this.$padding,ce=se/this.characterWidth,fe=Math.floor((Z+this.scrollTop-ne.top)/this.lineHeight),me=this.$blockCursor?Math.floor(ce):Math.round(ce);return{row:fe,column:me,side:ce-me>0?1:-1,offsetX:se}},e.prototype.screenToTextCoordinates=function(G,Z){var ne;if(this.$hasCssTransforms){ne={top:0,left:0};var ie=this.$fontMetrics.transformCoordinates([G,Z]);G=ie[1]-this.gutterWidth-this.margin.left,Z=ie[0]}else ne=this.scroller.getBoundingClientRect();var se=G+this.scrollLeft-ne.left-this.$padding,ce=se/this.characterWidth,fe=this.$blockCursor?Math.floor(ce):Math.round(ce),me=Math.floor((Z+this.scrollTop-ne.top)/this.lineHeight);return this.session.screenToDocumentPosition(me,Math.max(fe,0),se)},e.prototype.textToScreenCoordinates=function(G,Z){var ne=this.scroller.getBoundingClientRect(),ie=this.session.documentToScreenPosition(G,Z),se=this.$padding+(this.session.$bidiHandler.isBidiRow(ie.row,G)?this.session.$bidiHandler.getPosLeft(ie.column):Math.round(ie.column*this.characterWidth)),ce=ie.row*this.lineHeight;return{pageX:ne.left+se-this.scrollLeft,pageY:ne.top+ce-this.scrollTop}},e.prototype.visualizeFocus=function(){se.addCssClass(this.container,"ace_focus")},e.prototype.visualizeBlur=function(){se.removeCssClass(this.container,"ace_focus")},e.prototype.showComposition=function(G){this.$composition=G,G.cssText||(G.cssText=this.textarea.style.cssText),null==G.useTextareaForIME&&(G.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(se.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):G.markerId=this.session.addMarker(G.markerRange,"ace_composition_marker","text")},e.prototype.setCompositionText=function(G){var Z=this.session.selection.cursor;this.addToken(G,"composition_placeholder",Z.row,Z.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),se.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var G=this.session.selection.cursor;this.removeExtraToken(G.row,G.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},e.prototype.setGhostText=function(G,Z){var ne=this.session.selection.cursor,ie=Z||{row:ne.row,column:ne.column};this.removeGhostText();var se=G.split("\n");this.addToken(se[0],"ghost_text",ie.row,ie.column),this.$ghostText={text:G,position:{row:ie.row,column:ie.column}},se.length>1&&(this.$ghostTextWidget={text:se.slice(1).join("\n"),row:ie.row,column:ie.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},e.prototype.removeGhostText=function(){if(this.$ghostText){var G=this.$ghostText.position;this.removeExtraToken(G.row,G.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(G,Z,ne,ie){var se=this.session;se.bgTokenizer.lines[ne]=null;var ce={type:Z,value:G},fe=se.getTokens(ne);if(null!=ie&&fe.length)for(var me=0,ge=0;ge1||Math.abs(G.$size.height-ie)>1?G.$resizeTimer.delay():G.$resizeTimer.cancel()})),this.$resizeObserver.observe(this.container)}},e}();ot.prototype.CHANGE_CURSOR=1,ot.prototype.CHANGE_MARKER=2,ot.prototype.CHANGE_GUTTER=4,ot.prototype.CHANGE_SCROLL=8,ot.prototype.CHANGE_LINES=16,ot.prototype.CHANGE_TEXT=32,ot.prototype.CHANGE_SIZE=64,ot.prototype.CHANGE_MARKER_BACK=128,ot.prototype.CHANGE_MARKER_FRONT=256,ot.prototype.CHANGE_FULL=512,ot.prototype.CHANGE_H_SCROLL=1024,ot.prototype.$changes=0,ot.prototype.$padding=null,ot.prototype.$frozen=!1,ot.prototype.STEPS=8,ie.implement(ot.prototype,ze),fe.defineOptions(ot.prototype,"renderer",{useResizeObserver:{set:function(G){!G&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):G&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(G){this.$textLayer.setShowInvisibles(G)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(G){"number"==typeof G&&(this.$printMarginColumn=G),this.$showPrintMargin=!!G,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(G){this.$gutter.style.display=G?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(G){this.$gutterLayer.$useSvgGutterIcons=G},initialValue:!1},showFoldedAnnotations:{set:function(G){this.$gutterLayer.$showFoldedAnnotations=G},initialValue:!1},fadeFoldWidgets:{set:function(G){se.setCssClass(this.$gutter,"ace_fade-fold-widgets",G)},initialValue:!1},showFoldWidgets:{set:function(G){this.$gutterLayer.setShowFoldWidgets(G),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(G){this.$textLayer.setDisplayIndentGuides(G)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(G){1==this.$textLayer.setHighlightIndentGuides(G)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(G){this.$gutterLayer.setHighlightGutterLine(G),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(G){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(G){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(G){"number"==typeof G&&(G+="px"),this.container.style.fontSize=G,this.updateFontSize()},initialValue:12},fontFamily:{set:function(G){this.container.style.fontFamily=G,this.updateFontSize()}},maxLines:{set:function(G){this.updateFull()}},minLines:{set:function(G){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(G){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(G){G=+G||0,this.$scrollPastEnd!=G&&(this.$scrollPastEnd=G,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(G){this.$gutterLayer.$fixedWidth=!!G,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(G){this.$updateCustomScrollbar(G)},initialValue:!1},theme:{set:function(G){this.setTheme(G)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!it.isMobile&&!it.isIE}}),Z.VirtualRenderer=ot})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(G,Z,ne){"use strict";function a(G){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(fe.get("loadWorkerFromBlob")){var Z=function u(G){var Z="importScripts('"+se.qualifyURL(G)+"');";try{return new Blob([Z],{type:"application/javascript"})}catch(G){var ne=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return ne.append(Z),ne.getBlob("application/javascript")}}(G),ne=(window.URL||window.webkitURL).createObjectURL(Z);return new Worker(ne)}return new Worker(G)}var ie=G("../lib/oop"),se=G("../lib/net"),ce=G("../lib/event_emitter").EventEmitter,fe=G("../config"),f=function(G){G.postMessage||(G=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=G,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){ie.implement(this,ce),this.$createWorkerFromOldConfig=function(Z,ne,ie,se,ce){if(G.nameToUrl&&!G.toUrl&&(G.toUrl=G.nameToUrl),fe.get("packaged")||!G.toUrl)se=se||fe.moduleUrl(ne,"worker");else{var me=this.$normalizePath;se=se||me(G.toUrl("ace/worker/worker.js",null,"_"));var ge={};Z.forEach((function(Z){ge[Z]=me(G.toUrl(Z,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=a(se),ce&&this.send("importScripts",ce),this.$worker.postMessage({init:!0,tlns:ge,module:ne,classname:ie}),this.$worker},this.onMessage=function(G){var Z=G.data;switch(Z.type){case"event":this._signal(Z.name,{data:Z.data});break;case"call":var ne=this.callbacks[Z.id];ne&&(ne(Z.data),delete this.callbacks[Z.id]);break;case"error":this.reportError(Z.data);break;case"log":window.console&&console.log&&console.log.apply(console,Z.data)}},this.reportError=function(G){window.console&&console.error&&console.error(G)},this.$normalizePath=function(G){return se.qualifyURL(G)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(G){G.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(G,Z){this.$worker.postMessage({command:G,args:Z})},this.call=function(G,Z,ne){if(ne){var ie=this.callbackId++;this.callbacks[ie]=ne,Z.push(ie)}this.send(G,Z)},this.emit=function(G,Z){try{Z.data&&Z.data.err&&(Z.data.err={message:Z.data.err.message,stack:Z.data.err.stack,code:Z.data.err.code}),this.$worker&&this.$worker.postMessage({event:G,data:{data:Z.data}})}catch(G){console.error(G.stack)}},this.attachToDocument=function(G){this.$doc&&this.terminate(),this.$doc=G,this.call("setValue",[G.getValue()]),G.on("change",this.changeListener,!0)},this.changeListener=function(G){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==G.action?this.deltaQueue.push(G.start,G.lines):this.deltaQueue.push(G.start,G.end)},this.$sendDeltaQueue=function(){var G=this.deltaQueue;G&&(this.deltaQueue=null,G.length>50&&G.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:G}))}}).call(f.prototype);Z.UIWorkerClient=function(G,Z,ne){var ie=null,se=!1,me=Object.create(ce),ge=[],Ce=new f({messageBuffer:ge,terminate:function(){},postMessage:function(G){ge.push(G),ie&&(se?setTimeout(c):c())}});Ce.setEmitSync=function(G){se=G};var c=function(){var G=ge.shift();G.command?ie[G.command].apply(ie,G.args):G.event&&me._signal(G.event,G.data)};return me.postMessage=function(G){Ce.onMessage({data:G})},me.callback=function(G,Z){this.postMessage({type:"call",id:Z,data:G})},me.emit=function(G,Z){this.postMessage({type:"event",name:G,data:Z})},fe.loadModule(["worker",Z],(function(G){for(ie=new G[ne](me);ge.length;)c()})),Ce},Z.WorkerClient=f,Z.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(G,Z,ne){"use strict";var ie=G("./range").Range,se=G("./lib/event_emitter").EventEmitter,ce=G("./lib/oop"),fe=function(){function e(G,Z,ne,ie,se,ce){var fe=this;this.length=Z,this.session=G,this.doc=G.getDocument(),this.mainClass=se,this.othersClass=ce,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=ie,this.$onCursorChange=function(){setTimeout((function(){fe.onCursorChange()}))},this.$pos=ne;var me=G.getUndoManager().$undoStack||G.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=me.length,this.setup(),G.selection.on("changeCursor",this.$onCursorChange)}return e.prototype.setup=function(){var G=this,Z=this.doc,ne=this.session;this.selectionBefore=ne.selection.toJSON(),ne.selection.inMultiSelectMode&&ne.selection.toSingleRange(),this.pos=Z.createAnchor(this.$pos.row,this.$pos.column);var se=this.pos;se.$insertRight=!0,se.detach(),se.markerId=ne.addMarker(new ie(se.row,se.column,se.row,se.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(ne){var ie=Z.createAnchor(ne.row,ne.column);ie.$insertRight=!0,ie.detach(),G.others.push(ie)})),ne.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var G=this.session,Z=this;this.othersActive=!0,this.others.forEach((function(ne){ne.markerId=G.addMarker(new ie(ne.row,ne.column,ne.row,ne.column+Z.length),Z.othersClass,null,!1)}))}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var G=0;G=this.pos.column&&Z.start.column<=this.pos.column+this.length+1,ce=Z.start.column-this.pos.column;if(this.updateAnchors(G),se&&(this.length+=ne),se&&!this.session.$fromUndo)if("insert"===G.action)for(var fe=this.others.length-1;fe>=0;fe--){var me={row:(ge=this.others[fe]).row,column:ge.column+ce};this.doc.insertMergedLines(me,G.lines)}else if("remove"===G.action)for(fe=this.others.length-1;fe>=0;fe--){var ge;me={row:(ge=this.others[fe]).row,column:ge.column+ce};this.doc.remove(new ie(me.row,me.column,me.row,me.column-ne))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(G){this.pos.onChange(G);for(var Z=this.others.length;Z--;)this.others[Z].onChange(G);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var G=this,Z=this.session,n=function(ne,se){Z.removeMarker(ne.markerId),ne.markerId=Z.addMarker(new ie(ne.row,ne.column,ne.row,ne.column+G.length),se,null,!1)};n(this.pos,this.mainClass);for(var ne=this.others.length;ne--;)n(this.others[ne],this.othersClass)}},e.prototype.onCursorChange=function(G){if(!this.$updating&&this.session){var Z=this.session.selection.getCursor();Z.row===this.pos.row&&Z.column>=this.pos.column&&Z.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",G)):(this.hideOtherMarkers(),this._emit("cursorLeave",G))}},e.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var G=this.session.getUndoManager(),Z=(G.$undoStack||G.$undostack).length-this.$undoStackDepth,ne=0;ne1?G.multiSelect.joinSelections():G.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(G){G.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(G){G.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(G){G.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],Z.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(G){G.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(G){return G&&G.inMultiSelectMode}}];var ie=G("../keyboard/hash_handler").HashHandler;Z.keyboardHandler=new ie(Z.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(G,Z,ne){function v(G,Z){return G.row==Z.row&&G.column==Z.column}function m(G){G.$multiselectOnSessionChange||(G.$onAddRange=G.$onAddRange.bind(G),G.$onRemoveRange=G.$onRemoveRange.bind(G),G.$onMultiSelect=G.$onMultiSelect.bind(G),G.$onSingleSelect=G.$onSingleSelect.bind(G),G.$multiselectOnSessionChange=Z.onSessionChange.bind(G),G.$checkMultiselectChange=G.$checkMultiselectChange.bind(G),G.$multiselectOnSessionChange(G),G.on("changeSession",G.$multiselectOnSessionChange),G.on("mousedown",fe),G.commands.addCommands(Ce.defaultCommands),function g(G){function r(Z){ne&&(G.renderer.setMouseCursor(""),ne=!1)}if(!G.textInput)return;var Z=G.textInput.getElement(),ne=!1;me.addListener(Z,"keydown",(function(Z){var ie=18==Z.keyCode&&!(Z.ctrlKey||Z.shiftKey||Z.metaKey);G.$blockSelectEnabled&&ie?ne||(G.renderer.setMouseCursor("crosshair"),ne=!0):ne&&r()}),G),me.addListener(Z,"keyup",r,G),me.addListener(Z,"blur",r,G)}(G))}var ie=G("./range_list").RangeList,se=G("./range").Range,ce=G("./selection").Selection,fe=G("./mouse/multi_select_handler").onMouseDown,me=G("./lib/event"),ge=G("./lib/lang"),Ce=G("./commands/multi_select_commands");Z.commands=Ce.defaultCommands.concat(Ce.multiSelectCommands);var Se=new(0,G("./search").Search),Me=G("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(Me.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(G,Z){if(G){if(!this.inMultiSelectMode&&0===this.rangeCount){var ne=this.toOrientedRange();if(this.rangeList.add(ne),this.rangeList.add(G),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),Z||this.fromOrientedRange(G);this.rangeList.removeAll(),this.rangeList.add(ne),this.$onAddRange(ne)}G.cursor||(G.cursor=G.end);var ie=this.rangeList.add(G);return this.$onAddRange(G),ie.length&&this.$onRemoveRange(ie),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),Z||this.fromOrientedRange(G)}},this.toSingleRange=function(G){G=G||this.ranges[0];var Z=this.rangeList.removeAll();Z.length&&this.$onRemoveRange(Z),G&&this.fromOrientedRange(G)},this.substractPoint=function(G){var Z=this.rangeList.substractPoint(G);if(Z)return this.$onRemoveRange(Z),Z[0]},this.mergeOverlappingRanges=function(){var G=this.rangeList.merge();G.length&&this.$onRemoveRange(G)},this.$onAddRange=function(G){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(G),this._signal("addRange",{range:G})},this.$onRemoveRange=function(G){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var Z=this.rangeList.ranges.pop();G.push(Z),this.rangeCount=0}for(var ne=G.length;ne--;){var ie=this.ranges.indexOf(G[ne]);this.ranges.splice(ie,1)}this._signal("removeRange",{ranges:G}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(Z=Z||this.ranges[0])&&!Z.isEqual(this.getRange())&&this.fromOrientedRange(Z)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new ie,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var G=this.ranges.length?this.ranges:[this.getRange()],Z=[],ne=0;ne1){var G=this.rangeList.ranges,Z=G[G.length-1],ne=se.fromPoints(G[0].start,Z.end);this.toSingleRange(),this.setSelectionRange(ne,Z.cursor==Z.start)}else{var ie=this.session.documentToScreenPosition(this.cursor),ce=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(ie,ce).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(G,Z,ne){var ie=[],ce=G.column0;)Re--;if(Re>0)for(var ze=0;ie[ze].isEmpty();)ze++;for(var $e=Re;$e>=ze;$e--)ie[$e].isEmpty()&&ie.splice($e,1)}return ie}}.call(ce.prototype);var ke=G("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(G){G.cursor||(G.cursor=G.end);var Z=this.getSelectionStyle();return G.marker=this.session.addMarker(G,"ace_selection",Z),this.session.$selectionMarkers.push(G),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,G},this.removeSelectionMarker=function(G){if(G.marker){this.session.removeMarker(G.marker);var Z=this.session.$selectionMarkers.indexOf(G);-1!=Z&&this.session.$selectionMarkers.splice(Z,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(G){for(var Z=this.session.$selectionMarkers,ne=G.length;ne--;){var ie=G[ne];if(ie.marker){this.session.removeMarker(ie.marker);var se=Z.indexOf(ie);-1!=se&&Z.splice(se,1)}}this.session.selectionMarkerCount=Z.length},this.$onAddRange=function(G){this.addSelectionMarker(G.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(G){this.removeSelectionMarkers(G.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(G){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(Ce.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(G){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(Ce.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(G){var Z=G.command,ne=G.editor;if(ne.multiSelect){if(Z.multiSelectAction)"forEach"==Z.multiSelectAction?ie=ne.forEachSelection(Z,G.args):"forEachLine"==Z.multiSelectAction?ie=ne.forEachSelection(Z,G.args,!0):"single"==Z.multiSelectAction?(ne.exitMultiSelectMode(),ie=Z.exec(ne,G.args||{})):ie=Z.multiSelectAction(ne,G.args||{});else{var ie=Z.exec(ne,G.args||{});ne.multiSelect.addRange(ne.multiSelect.toOrientedRange()),ne.multiSelect.mergeOverlappingRanges()}return ie}},this.forEachSelection=function(G,Z,ne){if(!this.inVirtualSelectionMode){var ie,se=ne&&ne.keepOrder,fe=1==ne||ne&&ne.$byLines,me=this.session,ge=this.selection,Ce=ge.rangeList,Se=(se?ge:Ce).ranges;if(!Se.length)return G.exec?G.exec(this,Z||{}):G(this,Z||{});var Me=ge._eventRegistry;ge._eventRegistry={};var ke=new ce(me);this.inVirtualSelectionMode=!0;for(var xe=Se.length;xe--;){if(fe)for(;xe>0&&Se[xe].start.row==Se[xe-1].end.row;)xe--;ke.fromOrientedRange(Se[xe]),ke.index=xe,this.selection=me.selection=ke;var De=G.exec?G.exec(this,Z||{}):G(this,Z||{});!ie&&void 0!==De&&(ie=De),ke.toOrientedRange(Se[xe])}ke.detach(),this.selection=me.selection=ge,this.inVirtualSelectionMode=!1,ge._eventRegistry=Me,ge.mergeOverlappingRanges(),ge.ranges[0]&&ge.fromOrientedRange(ge.ranges[0]);var Ie=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),Ie&&Ie.from==Ie.to&&this.renderer.animateScrolling(Ie.from),ie}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var G="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var Z=this.multiSelect.rangeList.ranges,ne=[],ie=0;iefe&&(fe=ne.column),ieSe?G.insert(ie,ge.stringRepeat(" ",ce-Se)):G.remove(new se(ie.row,ie.column,ie.row,ie.column-ce+Se)),Z.start.column=Z.end.column=fe,Z.start.row=Z.end.row=ie.row,Z.cursor=Z.end})),Z.fromOrientedRange(ne[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var Se=this.selection.getRange(),Me=Se.start.row,ke=Se.end.row,xe=Me==ke;if(xe){var De,Ie=this.session.getLength();do{De=this.session.getLine(ke)}while(/[=:]/.test(De)&&++ke0);Me<0&&(Me=0),ke>=Ie&&(ke=Ie-1)}var Re=this.session.removeFullLines(Me,ke);Re=this.$reAlignText(Re,xe),this.session.insert({row:Me,column:0},Re.join("\n")+"\n"),xe||(Se.start.column=0,Se.end.column=Re[Re.length-1].length),this.selection.setRange(Se)}},this.$reAlignText=function(G,Z){function u(G){return ge.stringRepeat(" ",G)}function f(G){return G[2]?u(ne)+G[2]+u(ie-G[2].length+se)+G[4].replace(/^([=:])\s+/,"$1 "):G[0]}var ne,ie,se,ce=!0,fe=!0;return G.map((function(G){var Z=G.match(/(\s*)(.*?)(\s*)([=:].*)/);return Z?null==ne?(ne=Z[1].length,ie=Z[2].length,se=Z[3].length,Z):(ne+ie+se!=Z[1].length+Z[2].length+Z[3].length&&(fe=!1),ne!=Z[1].length&&(ce=!1),ne>Z[1].length&&(ne=Z[1].length),ieZ[3].length&&(se=Z[3].length),Z):[G]})).map(Z?f:ce?fe?function l(G){return G[2]?u(ne+ie-G[2].length)+G[2]+u(se)+G[4].replace(/^([=:])\s+/,"$1 "):G[0]}:f:function c(G){return G[2]?u(ne)+G[2]+u(se)+G[4].replace(/^([=:])\s+/,"$1 "):G[0]})}}).call(ke.prototype),Z.onSessionChange=function(G){var Z=G.session;Z&&!Z.multiSelect&&(Z.$selectionMarkers=[],Z.selection.$initRangeList(),Z.multiSelect=Z.selection),this.multiSelect=Z&&Z.multiSelect;var ne=G.oldSession;ne&&(ne.multiSelect.off("addRange",this.$onAddRange),ne.multiSelect.off("removeRange",this.$onRemoveRange),ne.multiSelect.off("multiSelect",this.$onMultiSelect),ne.multiSelect.off("singleSelect",this.$onSingleSelect),ne.multiSelect.lead.off("change",this.$checkMultiselectChange),ne.multiSelect.anchor.off("change",this.$checkMultiselectChange)),Z&&(Z.multiSelect.on("addRange",this.$onAddRange),Z.multiSelect.on("removeRange",this.$onRemoveRange),Z.multiSelect.on("multiSelect",this.$onMultiSelect),Z.multiSelect.on("singleSelect",this.$onSingleSelect),Z.multiSelect.lead.on("change",this.$checkMultiselectChange),Z.multiSelect.anchor.on("change",this.$checkMultiselectChange)),Z&&this.inMultiSelectMode!=Z.selection.inMultiSelectMode&&(Z.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},Z.MultiSelect=m,G("./config").defineOptions(ke.prototype,"editor",{enableMultiselect:{set:function(G){m(this),G?this.on("mousedown",fe):this.off("mousedown",fe)},value:!0},enableBlockSelect:{set:function(G){this.$blockSelectEnabled=G},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(G,Z,ne){"use strict";var ie=G("../../range").Range,se=Z.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(G,Z,ne){var ie=G.getLine(ne);return this.foldingStartMarker.test(ie)?"start":"markbeginend"==Z&&this.foldingStopMarker&&this.foldingStopMarker.test(ie)?"end":""},this.getFoldWidgetRange=function(G,Z,ne){return null},this.indentationBlock=function(G,Z,ne){var se=/\S/,ce=G.getLine(Z),fe=ce.search(se);if(-1!=fe){for(var me=ne||ce.length,ge=G.getLength(),Ce=Z,Se=Z;++ZCe){var xe=G.getLine(Se).length;return new ie(Ce,me,Se,xe)}}},this.openingBracketBlock=function(G,Z,ne,se,ce){var fe={row:ne,column:se+1},me=G.$findClosingBracket(Z,fe,ce);if(me){var ge=G.foldWidgets[me.row];return null==ge&&(ge=G.getFoldWidget(me.row)),"start"==ge&&me.row>fe.row&&(me.row--,me.column=G.getLine(me.row).length),ie.fromPoints(fe,me)}},this.closingBracketBlock=function(G,Z,ne,se,ce){var fe={row:ne,column:se},me=G.$findOpeningBracket(Z,fe);if(me)return me.column++,fe.column--,ie.fromPoints(me,fe)}}).call(se.prototype)})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],(function(G,Z,ne){"use strict";function a(G,Z,ne){var ie=G.getAnnotations().sort(ce.comparePoints);if(ie.length){var se=function u(G,Z,ne){for(var ie=0,se=G.length-1;ie<=se;){var ce=ie+se>>1,fe=ne(Z,G[ce]);if(fe>0)ie=ce+1;else{if(!(fe<0))return ce;se=ce-1}}return-(ie+1)}(ie,{row:Z,column:-1},ce.comparePoints);se<0&&(se=-se-1),se>=ie.length?se=ne>0?0:ie.length-1:0===se&&ne<0&&(se=ie.length-1);var fe=ie[se];if(fe&&ne){if(fe.row===Z){do{fe=ie[se+=ne]}while(fe&&fe.row===Z);if(!fe)return ie.slice()}var me=[];Z=fe.row;do{me[ne<0?"unshift":"push"](fe),fe=ie[se+=ne]}while(fe&&fe.row==Z);return me.length&&me}}}var ie=G("../line_widgets").LineWidgets,se=G("../lib/dom"),ce=G("../range").Range,fe=G("../config").nls;Z.showErrorMarker=function(G,Z){var ne=G.session;ne.widgetManager||(ne.widgetManager=new ie(ne),ne.widgetManager.attach(G));var ce=G.getCursorPosition(),me=ce.row,ge=ne.widgetManager.getWidgetsAtRow(me).filter((function(G){return"errorMarker"==G.type}))[0];ge?ge.destroy():me-=Z;var Ce,Se=a(ne,me,Z);if(Se){var Me=Se[0];ce.column=(Me.pos&&"number"!=typeof Me.column?Me.pos.sc:Me.column)||0,ce.row=Me.row,Ce=G.renderer.$gutterLayer.$annotations[ce.row]}else{if(ge)return;Ce={text:[fe("Looks good!")],className:"ace_ok"}}G.session.unfold(ce.row),G.selection.moveToPosition(ce);var ke={row:ce.row,fixedWidth:!0,coverGutter:!0,el:se.createElement("div"),type:"errorMarker"},xe=ke.el.appendChild(se.createElement("div")),De=ke.el.appendChild(se.createElement("div"));De.className="error_widget_arrow "+Ce.className;var Ie=G.renderer.$cursorLayer.getPixelPosition(ce).left;De.style.left=Ie+G.renderer.gutterWidth-5+"px",ke.el.className="error_widget_wrapper",xe.className="error_widget "+Ce.className,xe.innerHTML=Ce.text.join("
    "),xe.appendChild(se.createElement("div"));var g=function(G,Z,ne){if(0===Z&&("esc"===ne||"return"===ne))return ke.destroy(),{command:"null"}};ke.destroy=function(){G.$mouseHandler.isMousePressed||(G.keyBinding.removeKeyboardHandler(g),ne.widgetManager.removeLineWidget(ke),G.off("changeSelection",ke.destroy),G.off("changeSession",ke.destroy),G.off("mouseup",ke.destroy),G.off("change",ke.destroy))},G.keyBinding.addKeyboardHandler(g),G.on("changeSelection",ke.destroy),G.on("changeSession",ke.destroy),G.on("mouseup",ke.destroy),G.on("change",ke.destroy),G.session.widgetManager.addLineWidget(ke),ke.el.onmousedown=G.focus.bind(G),G.renderer.scrollCursorIntoView(null,.5,{bottom:ke.el.offsetHeight})},se.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(G,Z,ne){"use strict";G("./loader_build")(Z);var ie=G("./lib/dom"),se=G("./range").Range,ce=G("./editor").Editor,fe=G("./edit_session").EditSession,me=G("./undomanager").UndoManager,ge=G("./virtual_renderer").VirtualRenderer;G("./worker/worker_client"),G("./keyboard/hash_handler"),G("./placeholder"),G("./multi_select"),G("./mode/folding/fold_mode"),G("./theme/textmate"),G("./ext/error_marker"),Z.config=G("./config"),Z.edit=function(G,ne){if("string"==typeof G){var se=G;if(!(G=document.getElementById(se)))throw new Error("ace.edit can't find div #"+se)}if(G&&G.env&&G.env.editor instanceof ce)return G.env.editor;var fe="";if(G&&/input|textarea/i.test(G.tagName)){var me=G;fe=me.value,G=ie.createElement("pre"),me.parentNode.replaceChild(G,me)}else G&&(fe=G.textContent,G.innerHTML="");var Ce=Z.createEditSession(fe),Se=new ce(new ge(G),Ce,ne),Me={document:Ce,editor:Se,onResize:Se.resize.bind(Se,null)};return me&&(Me.textarea=me),Se.on("destroy",(function(){Me.editor.container.env=null})),Se.container.env=Se.env=Me,Se},Z.createEditSession=function(G,Z){var ne=new fe(G,Z);return ne.setUndoManager(new me),ne},Z.Range=se,Z.Editor=ce,Z.EditSession=fe,Z.UndoManager=me,Z.VirtualRenderer=ge,Z.version=Z.config.version})),ace.require(["ace/ace"],(function(Z){Z&&(Z.config.init(!0),Z.define=ace.define);var ne=function(){return this}();for(var ie in ne||"undefined"==typeof window||(ne=window),ne||"undefined"==typeof self||(ne=self),ne.ace||(ne.ace=Z),Z)Z.hasOwnProperty(ie)&&(ne.ace[ie]=Z[ie]);ne.ace.default=ne.ace,G&&(G.exports=ne.ace)}))}).call(this,ne(925)(G))},7332:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.getEntry=function getEntry(G){if("undefined"==typeof document)return null;var Z=new RegExp("(^|; ?)".concat(G,"=([^;]+)")),ne=null;try{var ie=document.cookie.match(Z);ne=ie?ie[2]:null}catch(G){}return ne}},7333:function(G,Z,ne){"use strict";(function(G){Object.defineProperty(Z,"__esModule",{value:!0}),Z.gteSplunkVersion=gteSplunkVersion,Z.addLeadingSearchCommand=addLeadingSearchCommand,Z.stripLeadingSearchCommand=function stripLeadingSearchCommand(G){var Z=G.trim();if((0,ie.default)(Z,"search "))return Z.substring(7);return G},Z.createJava5HashForString=createJava5HashForString,Z.getCachedSearch=function getCachedSearch(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ie=ne.cacheLimit,ge=void 0===ie?0:ie,Me=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},xe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit,De=createJava5HashForString(Z.search),Ie=me.default.encode({output_mode:"json",search:"request.webframework.cache.hash=".concat(De)});return G("".concat((0,Se.createRESTURL)("search/jobs",{},Me),"?").concat(Ie),xe).then((function(G){return G.json()})).then((function(G){var ne=(0,se.default)(Z,ke),ie=G.entry.filter((function(G){return(0,ce.default)(ne,(0,se.default)(G.content.request,ke))}));if(ie.length>0){var me=(0,fe.default)(ie,(function(G){return new Date(G.published).valueOf()})),Ce=ge<=0?0:(new Date).valueOf()-1e3*ge;if(new Date(me.published).valueOf()>Ce)return me}return null})).catch((0,Ce.handleError)("Failed to get cached jobs."))},Z.createSearchJob=function createSearchJob(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit;return G((0,Se.createRESTURL)("search/jobs",ne,ie),_objectSpread(_objectSpread({},se),{},{method:"POST",body:me.default.encode(_objectSpread({output_mode:"json"},Z))})).then((0,Ce.handleResponse)(201)).catch((0,Ce.handleError)("Failed to create search job."))},Z.oneShot=function oneShot(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit,ce=ie.versionLabel||Me.versionLabel,fe=gteSplunkVersion(ce,"9.0.2","9.0.2209")?"/v2":"";return G((0,Se.createRESTURL)("search".concat(fe,"/jobs"),ne,ie),_objectSpread(_objectSpread({},se),{},{method:"POST",body:me.default.encode(_objectSpread(_objectSpread({output_mode:"json"},Z),{},{exec_mode:"oneshot"}))})).then((0,Ce.handleResponse)(200)).catch((0,Ce.handleError)("Failed to create one shot search job"))},Z.postAction=function postAction(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit;return G((0,Se.createRESTURL)("search/jobs/".concat(Z,"/control"),{},ie),_objectSpread(_objectSpread({},se),{},{method:"POST",body:me.default.encode(_objectSpread(_objectSpread({},ne),{},{output_mode:"json"}))})).then((0,Ce.handleResponse)(200)).catch((0,Ce.handleError)("Action ".concat(ne.action," failed on search job ").concat(Z)))},Z.getData=function getData(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},ce=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ce.defaultFetchInit,fe=["results","results_preview","events"],ge=se.versionLabel||Me.versionLabel,ke=fe.includes(ne)&>eSplunkVersion(ge,"9.0.2","9.0.2209")?"/v2":"",xe=me.default.encode(_objectSpread({output_mode:"json"},ie)),De=(0,Se.createRESTURL)("search".concat(ke,"/jobs/").concat(Z).concat(ne&&"/".concat(ne)),{},se);if(ie.search&&"/v2"===ke)return G(De,_objectSpread(_objectSpread({},ce),{},{method:"POST",body:xe})).then((0,Ce.handleResponse)([200,204])).catch((0,Ce.handleError)("Failed to get ".concat(ne||"status"," for job ").concat(Z)));return G("".concat(De,"?").concat(xe),ce).then((0,Ce.handleResponse)([200,204])).catch((0,Ce.handleError)("Failed to get ".concat(ne||"status"," for job ").concat(Z)))},Z.batchGetSearches=function batchGetSearches(Z){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},se=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit,ce=me.default.encode(_objectSpread({output_mode:"json",id:Z,count:Z.length},ne));return G("".concat((0,Se.createRESTURL)("search/jobs",{},ie),"?").concat(ce),se).then((0,Ce.handleResponse)(200)).catch((0,Ce.handleError)("Failed to get batch status of jobs."))},Z.validateSearch=function validateSearch(Z){var ne,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ce=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ce.defaultFetchInit,fe=me.default.encode(_objectSpread({output_mode:"json",parse_only:!0,q:addLeadingSearchCommand(Z)},ie)),ge=se.versionLabel||Me.versionLabel,ke=gteSplunkVersion(ge,"9.0.2","9.0.2209")?"/v2":"";ne=""===ke?G("".concat((0,Se.createRESTURL)("search/parser",{},se),"?").concat(fe),ce):G("".concat((0,Se.createRESTURL)("search".concat(ke,"/parser"),{},se)),_objectSpread(_objectSpread({},ce),{},{method:"POST",body:fe}));return ne.then((0,Ce.handleResponse)(200)).then((function(G){return{valid:!0,data:G}})).catch((function(G){return G.json().then((function(Z){var ne=(0,Ce.findErrorMessage)(Z),ie=ne?ne.text:"Failed to validate search string.";return 400===G.status?Promise.resolve({valid:!1,error:ie}):Promise.reject(new Error(ie))}))}))};var ie=_interopRequireDefault(ne(1041)),se=_interopRequireDefault(ne(41)),ce=_interopRequireDefault(ne(131)),fe=_interopRequireDefault(ne(1407)),me=_interopRequireDefault(ne(255)),ge=ne(7334),Ce=ne(1618),Se=ne(1153),Me=ne(695);function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z7?G:"search ".concat(Z)}function createJava5HashForString(G){for(var Z=0,ne=0,ie=G.length;ne{const ne=ie(G,Z);return ne?ne.version:null}},7336:function(G,Z,ne){const ie=ne(1302);G.exports=(G,Z)=>{const ne=ie(G.trim().replace(/^[=v]+/,""),Z);return ne?ne.version:null}},7337:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z,ne,se,ce)=>{"string"==typeof ne&&(ce=se,se=ne,ne=void 0);try{return new ie(G instanceof ie?G.version:G,ne).inc(Z,se,ce).version}catch(G){return null}}},7338:function(G,Z,ne){const ie=ne(1302);G.exports=(G,Z)=>{const ne=ie(G,null,!0),se=ie(Z,null,!0),ce=ne.compare(se);if(0===ce)return null;const fe=ce>0,me=fe?ne:se,ge=fe?se:ne,Ce=!!me.prerelease.length;if(!!ge.prerelease.length&&!Ce)return ge.patch||ge.minor?me.patch?"patch":me.minor?"minor":"major":"major";const Se=Ce?"pre":"";return ne.major!==se.major?Se+"major":ne.minor!==se.minor?Se+"minor":ne.patch!==se.patch?Se+"patch":"prerelease"}},7339:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z)=>new ie(G,Z).major},7340:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z)=>new ie(G,Z).minor},7341:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z)=>new ie(G,Z).patch},7342:function(G,Z,ne){const ie=ne(1302);G.exports=(G,Z)=>{const ne=ie(G,Z);return ne&&ne.prerelease.length?ne.prerelease:null}},7343:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z,ne)=>ie(Z,G,ne)},7344:function(G,Z,ne){const ie=ne(756);G.exports=(G,Z)=>ie(G,Z,!0)},7345:function(G,Z,ne){const ie=ne(2858);G.exports=(G,Z)=>G.sort((G,ne)=>ie(G,ne,Z))},7346:function(G,Z,ne){const ie=ne(2858);G.exports=(G,Z)=>G.sort((G,ne)=>ie(ne,G,Z))},7347:function(G,Z,ne){const ie=ne(572),se=ne(1302),{safeRe:ce,t:fe}=ne(1619);G.exports=(G,Z)=>{if(G instanceof ie)return G;if("number"==typeof G&&(G=String(G)),"string"!=typeof G)return null;let ne=null;if((Z=Z||{}).rtl){const ie=Z.includePrerelease?ce[fe.COERCERTLFULL]:ce[fe.COERCERTL];let se;for(;(se=ie.exec(G))&&(!ne||ne.index+ne[0].length!==G.length);)ne&&se.index+se[0].length===ne.index+ne[0].length||(ne=se),ie.lastIndex=se.index+se[1].length+se[2].length;ie.lastIndex=-1}else ne=G.match(Z.includePrerelease?ce[fe.COERCEFULL]:ce[fe.COERCE]);if(null===ne)return null;const me=ne[2],ge=ne[3]||"0",Ce=ne[4]||"0",Se=Z.includePrerelease&&ne[5]?"-"+ne[5]:"",Me=Z.includePrerelease&&ne[6]?"+"+ne[6]:"";return se(`${me}.${ge}.${Ce}${Se}${Me}`,Z)}},7348:function(G,Z,ne){const ie=ne(757);G.exports=(G,Z)=>new ie(G,Z).set.map(G=>G.map(G=>G.value).join(" ").trim().split(" "))},7349:function(G,Z,ne){const ie=ne(572),se=ne(757);G.exports=(G,Z,ne)=>{let ce=null,fe=null,me=null;try{me=new se(Z,ne)}catch(G){return null}return G.forEach(G=>{me.test(G)&&(ce&&-1!==fe.compare(G)||(ce=G,fe=new ie(ce,ne)))}),ce}},7350:function(G,Z,ne){const ie=ne(572),se=ne(757);G.exports=(G,Z,ne)=>{let ce=null,fe=null,me=null;try{me=new se(Z,ne)}catch(G){return null}return G.forEach(G=>{me.test(G)&&(ce&&1!==fe.compare(G)||(ce=G,fe=new ie(ce,ne)))}),ce}},7351:function(G,Z,ne){const ie=ne(572),se=ne(757),ce=ne(2004);G.exports=(G,Z)=>{G=new se(G,Z);let ne=new ie("0.0.0");if(G.test(ne))return ne;if(ne=new ie("0.0.0-0"),G.test(ne))return ne;ne=null;for(let Z=0;Z{const Z=new ie(G.semver.version);switch(G.operator){case">":0===Z.prerelease.length?Z.patch++:Z.prerelease.push(0),Z.raw=Z.format();case"":case">=":fe&&!ce(Z,fe)||(fe=Z);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+G.operator)}}),!fe||ne&&!ce(ne,fe)||(ne=fe)}return ne&&G.test(ne)?ne:null}},7352:function(G,Z,ne){const ie=ne(757);G.exports=(G,Z)=>{try{return new ie(G,Z).range||"*"}catch(G){return null}}},7353:function(G,Z,ne){const ie=ne(2862);G.exports=(G,Z,ne)=>ie(G,Z,">",ne)},7354:function(G,Z,ne){const ie=ne(2862);G.exports=(G,Z,ne)=>ie(G,Z,"<",ne)},7355:function(G,Z,ne){const ie=ne(757);G.exports=(G,Z,ne)=>(G=new ie(G,ne),Z=new ie(Z,ne),G.intersects(Z,ne))},7356:function(G,Z,ne){const ie=ne(2006),se=ne(756);G.exports=(G,Z,ne)=>{const ce=[];let fe=null,me=null;const ge=G.sort((G,Z)=>se(G,Z,ne));for(const G of ge){ie(G,Z,ne)?(me=G,fe||(fe=G)):(me&&ce.push([fe,me]),me=null,fe=null)}fe&&ce.push([fe,null]);const Ce=[];for(const[G,Z]of ce)G===Z?Ce.push(G):Z||G!==ge[0]?Z?G===ge[0]?Ce.push("<="+Z):Ce.push(`${G} - ${Z}`):Ce.push(">="+G):Ce.push("*");const Se=Ce.join(" || "),Me="string"==typeof Z.raw?Z.raw:String(Z);return Se.length=0.0.0-0")],Ce=[new se(">=0.0.0")],simpleSubset=(G,Z,ne)=>{if(G===Z)return!0;if(1===G.length&&G[0].semver===ce){if(1===Z.length&&Z[0].semver===ce)return!0;G=ne.includePrerelease?ge:Ce}if(1===Z.length&&Z[0].semver===ce){if(ne.includePrerelease)return!0;Z=Ce}const ie=new Set;let se,Se,Me,ke,xe,De,Ie;for(const Z of G)">"===Z.operator||">="===Z.operator?se=higherGT(se,Z,ne):"<"===Z.operator||"<="===Z.operator?Se=lowerLT(Se,Z,ne):ie.add(Z.semver);if(ie.size>1)return null;if(se&&Se){if(Me=me(se.semver,Se.semver,ne),Me>0)return null;if(0===Me&&(">="!==se.operator||"<="!==Se.operator))return null}for(const G of ie){if(se&&!fe(G,String(se),ne))return null;if(Se&&!fe(G,String(Se),ne))return null;for(const ie of Z)if(!fe(G,String(ie),ne))return!1;return!0}let Re=!(!Se||ne.includePrerelease||!Se.semver.prerelease.length)&&Se.semver,ze=!(!se||ne.includePrerelease||!se.semver.prerelease.length)&&se.semver;Re&&1===Re.prerelease.length&&"<"===Se.operator&&0===Re.prerelease[0]&&(Re=!1);for(const G of Z){if(Ie=Ie||">"===G.operator||">="===G.operator,De=De||"<"===G.operator||"<="===G.operator,se)if(ze&&G.semver.prerelease&&G.semver.prerelease.length&&G.semver.major===ze.major&&G.semver.minor===ze.minor&&G.semver.patch===ze.patch&&(ze=!1),">"===G.operator||">="===G.operator){if(ke=higherGT(se,G,ne),ke===G&&ke!==se)return!1}else if(">="===se.operator&&!fe(se.semver,String(G),ne))return!1;if(Se)if(Re&&G.semver.prerelease&&G.semver.prerelease.length&&G.semver.major===Re.major&&G.semver.minor===Re.minor&&G.semver.patch===Re.patch&&(Re=!1),"<"===G.operator||"<="===G.operator){if(xe=lowerLT(Se,G,ne),xe===G&&xe!==Se)return!1}else if("<="===Se.operator&&!fe(Se.semver,String(G),ne))return!1;if(!G.operator&&(Se||se)&&0!==Me)return!1}return!(se&&De&&!Se&&0!==Me)&&(!(Se&&Ie&&!se&&0!==Me)&&(!ze&&!Re))},higherGT=(G,Z,ne)=>{if(!G)return Z;const ie=me(G.semver,Z.semver,ne);return ie>0?G:ie<0||">"===Z.operator&&">="===G.operator?Z:G},lowerLT=(G,Z,ne)=>{if(!G)return Z;const ie=me(G.semver,Z.semver,ne);return ie<0?G:ie>0||"<"===Z.operator&&"<="===G.operator?Z:G};G.exports=(G,Z,ne={})=>{if(G===Z)return!0;G=new ie(G,ne),Z=new ie(Z,ne);let se=!1;e:for(const ie of G.set){for(const G of Z.set){const Z=simpleSubset(ie,G,ne);if(se=se||null!==Z,Z)continue e}if(se)return!1}return!0}},7358:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=223)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},123:function(G,Z){G.exports=ne(421)},15:function(G,Z){G.exports=ne(65)},16:function(G,Z){G.exports=ne(2007)},168:function(G,Z){var ne;ne=function(){return this}();try{ne=ne||new Function("return this")()}catch(G){"object"==typeof window&&(ne=window)}G.exports=ne},2:function(G,Z){G.exports=ne(0)},223:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"LayerStackContext",(function(){return ze.b})),ne.d(Z,"LayerContext",(function(){return ze.a})),ne.d(Z,"LayerStackGlobalProvider",(function(){return ze.c}));var ie=ne(2),se=ne.n(ie),ce=ne(93),fe=ne(1),me=ne.n(fe),ge=ne(15),Ce=ne.n(ge),Se=ne(94),Me=ne.n(Se),ke=ne(123),xe=ne.n(ke),De=ne(7),Ie=ne(16),Re=ne.n(Ie),ze=ne(95),$e=ne(3),Je=ne.n($e),it=ne(0),ot=Je.a.div.withConfig({displayName:"LayerStyles__StyledLayer",componentId:"ii6psl-0"})(["",""],(function(G){return G.$separateStackingContexts&&Object($e.css)(["isolation:isolate;z-index:",";"],it.variables.zindexLayer)})),at=ne(28);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M3 4.10623C3 3.51257 3.47768 3.00623 4.09895 3.00623H7.49725C8.04954 3.00623 8.49725 3.45394 8.49725 4.00623C8.49725 4.55851 8.04954 5.00623 7.49725 5.00623H5V18.9937H18.9874V16.4964C18.9874 15.9441 19.4352 15.4964 19.9874 15.4964C20.5397 15.4964 20.9874 15.9441 20.9874 16.4964V19.8937C20.9874 20.5012 20.495 20.9937 19.8874 20.9937H4.1C3.49248 20.9937 3 20.5012 3 19.8937V4.10623Z"}),se.a.createElement("path",{d:"M19.0002 6.42035L10.6109 14.8096C10.2204 15.2002 9.58722 15.2002 9.1967 14.8096C8.80618 14.4191 8.80618 13.7859 9.1967 13.3954L17.5859 5.00623H13.6592C13.1069 5.00623 12.6592 4.55851 12.6592 4.00623C12.6592 3.45394 13.1069 3.00623 13.6592 3.00623H19.5002C20.3287 3.00623 21.0002 3.6778 21.0002 4.50623V10.3117C21.0002 10.864 20.5525 11.3117 20.0002 11.3117C19.4479 11.3117 19.0002 10.864 19.0002 10.3117V6.42035Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 3.67157 3.67157 3 4.5 3H19.5C20.3284 3 21 3.67157 21 4.5V19.5C21 20.3284 20.3284 21 19.5 21H4.5C3.67157 21 3 20.3284 3 19.5V4.5ZM11.5 5C10.9477 5 10.5 5.44772 10.5 6C10.5 6.55228 10.9477 7 11.5 7H15.5858L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L17 8.41421V12.5C17 13.0523 17.4477 13.5 18 13.5C18.5523 13.5 19 13.0523 19 12.5V6.5C19 5.67157 18.3284 5 17.5 5H11.5Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRightInset(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretoprightinset-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7360:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=173)}({0:function(G,Z){G.exports=ne(0)},173:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return TriangleDownSmall}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmallright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7363:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=244)}({2:function(G,Z){G.exports=ne(0)},244:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return se}));var ie=ne(2);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.59294C21.0977 5.98347 21.0977 6.61663 20.7071 7.00716L10.1447 17.5695C9.55896 18.1553 8.60922 18.1553 8.02343 17.5695L3.29289 12.839C2.90237 12.4485 2.90237 11.8153 3.29289 11.4248C3.68342 11.0343 4.31658 11.0343 4.70711 11.4248L9.08409 15.8018L19.2929 5.59294C19.6835 5.20242 20.3166 5.20242 20.7071 5.59294Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Checkmark(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkmark-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7365:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=222)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},222:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.h2.withConfig({displayName:"HeadingStyles__StyledHeading",componentId:"sc-15s3yx3-0"})(["",";margin:1.414em 0 0.4em;text-rendering:optimizelegibility;"," ",""],(function(G){var Z=G.$variant;return"title4"===Z?Object(Ce.pickVariant)("$isSection",{true:{enterprise:{compact:Ce.mixins.typography("title4",{weight:"semiBold"}),comfortable:Ce.mixins.typography("title4",{size:14,weight:"semiBold"})},prisma:Ce.mixins.typography("title4",{color:"default",size:14})},false:{enterprise:{compact:Ce.mixins.typography("title4"),comfortable:Ce.mixins.typography("title4",{size:14})},prisma:Ce.mixins.typography("title4")}}):Ce.mixins.typography(Z)}),Object(Ce.pickVariant)("$isSection",{true:{enterprise:{dark:Object(me.css)(["color:",";"],Ce.variables.gray80),light:Object(me.css)(["color:",";"],Ce.variables.gray45)}}}),(function(G){return G.$isSection&&Object(me.css)(["margin:0.707em 0 0.2em;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),level:fe.a.oneOf([1,2,3,4,"s","ss",5,6]),variant:fe.a.oneOf(["title1","title2","title3","title4","title5","title6","title7"])},ke={1:"h1",2:"h2",3:"h3",4:"h4",s:"h4",ss:"h5",5:"h5",6:"h6"},xe={h1:"title1",h2:"title2",h3:"title3",h4:"title4",h5:"title5",h6:"title6"};function Heading(G){var Z=G.children,ne=G.elementRef,ie=G.level,ce=void 0===ie?2:ie,fe=G.variant,me=_objectWithoutProperties(G,["children","elementRef","level","variant"]),ge=ke[ce],Ce=fe||xe[ge];return se.a.createElement(Se,_extends({$isSection:function isSection(G){return"s"===G.toString().charAt(0)}(ce),"data-test":"heading",ref:ne,as:ge,$variant:Ce},me),Z)}Heading.propTypes=Me;var De=Heading},3:function(G,Z){G.exports=ne(3)}})},7366:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=206)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},16:function(G,Z){G.exports=ne(2007)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},206:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ft}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(19),ge=ne.n(me),Ce=ne(43),Se=ne(3),Me=ne.n(Se),ke=ne(0),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(24),$e=ne(16),Je=ne.n($e),it=ne(53),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zie&&(Z.scrollLeft=ie,G.stopPropagation(),G.preventDefault())}if(Z.clientHeight!==Z.scrollHeight){if(G.deltaY<0&&Z.scrollTopse&&(Z.scrollTop=se,G.stopPropagation(),G.preventDefault())}}})),_defineProperty(_assertThisInitialized(ne),"handleMount",(function(G){ne.setState({containerEl:G}),Object(ot.a)(ne.props.elementRef,G)})),_defineProperty(_assertThisInitialized(ne),"handleMouseEnter",(function(){ne.defaultWindowOverflowX=document.body.style.overflowX,ne.defaultWindowOverflowY=document.body.style.overflowY,document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeave",(function(){document.body.style.overflowX=ne.defaultWindowOverflowX,document.body.style.overflowY=ne.defaultWindowOverflowY})),ne.state={containerEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Inner,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){if(this.state.containerEl){var ne,ie;if(Z.containerEl||(this.state.containerEl.scrollTop=this.props.defaultTop,this.state.containerEl.scrollLeft=this.props.defaultLeft),ge()(this.props.top))this.state.containerEl.scrollTop=(null===(ne=this.props.top)||void 0===ne?void 0:ne.get())||0;if(ge()(this.props.left))this.state.containerEl.scrollLeft=(null===(ie=this.props.left)||void 0===ie?void 0:ie.get())||0}}},{key:"render",value:function render(){var G=this.props,Z=G.children,ne=G.onScroll,ie=G.stopScrollPropagation,ce=G.top,fe=G.left,me=this.state.containerEl,ge=ze.animated[this.props.tagName];return se.a.createElement(se.a.Fragment,null,se.a.createElement(ge,_extends({},Re()(this.props,De()(Inner.propTypes)),{ref:this.handleMount,onMouseEnter:"window"===ie?this.handleMouseEnter:void 0,onMouseLeave:"window"===ie?this.handleMouseLeave:void 0,onScroll:ne,scrollTop:ce,scrollLeft:fe}),se.a.createElement(it.ScrollContainerProvider,{value:me},Z)),!0===ie&&me&&se.a.createElement(Je.a,{target:me,eventType:"wheel",listener:this.handleWheel,options:{passive:!1}}))}}]),Inner}(ie.Component);_defineProperty(st,"propTypes",at),_defineProperty(st,"defaultProps",{defaultLeft:0,defaultTop:0,tagName:"div"});var ct=st,ut=Me()(ct).withConfig({displayName:"ScrollStyles__StyledInner",componentId:"sc-1xspttf-0"})(["",";overflow:auto;overflow-y:auto;overflow-x:hidden;"],ke.mixins.reset("block"));function Scroll_typeof(G){return(Scroll_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Scroll_extends(){return(Scroll_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Scroll_defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne1&&void 0!==arguments[1]?arguments[1]:"mouseLeaveToggle";(null==G.relatedTarget||G.relatedTarget!==ne.state.popoverEl&&G.relatedTarget!==ne.state.popoverOuterEl)&&ne.handleRequestClose(G,{reason:Z})})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeavePopover",(function(G){ne.handleMouseLeave(G,"mouseLeavePopover")})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeaveHitArea",(function(G){ne.handleMouseLeave(G,"mouseLeaveHitArea")})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitAreaImpl",(function(G){ne.handleRequestClose(G,{reason:"mouseStopHitArea"})})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitArea",Se()(ne.handleMouseMoveHitAreaImpl,10)),_defineProperty(_assertThisInitialized(ne),"handleClick",(function(G){"notOnClick"!==ne.props.closeWhen&&ne.handleRequestClose(G,{reason:"toggleClick"})})),_defineProperty(_assertThisInitialized(ne),"handleFocus",(function(G){ne.handleRequestOpen(G,{reason:"focusToggle"})})),_defineProperty(_assertThisInitialized(ne),"handleBlur",(function(G){ne.handleRequestClose(G,{reason:"blurToggle"})})),_defineProperty(_assertThisInitialized(ne),"handlePopoverOnRequestClose",(function(G){ne.handleRequestClose(null,G)})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G,Z){var ie=ne.props.closeDelay;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se;ne.isControlled()||ne.setState({open:!1}),null===(ie=(se=ne.props).onRequestClose)||void 0===ie||ie.call(se,G,Z)}),ie)})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G,Z){var ie=ne.props.openDelay,se="number"==typeof ie?ie:"primary"===ie?300:750;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se,ce=ne.isOpen();(ne.isControlled()||ne.setState({open:!0}),ce)||(null===(ie=(se=ne.props).onRequestOpen)||void 0===ie||ie.call(se,G,Z))}),se)})),ne.controlledExternally=ge()(G,"open"),ne.popoverId=Object(Re.createDOMID)("popover"),ne.ariaId=Object(Re.createDOMID)("aria-id"),ne.state={anchorEl:null,open:!1,popoverEl:null,popoverOuterEl:null,hitAreaEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Tooltip,[{key:"componentDidUpdate",value:function componentDidUpdate(){0}},{key:"componentWillUnmount",value:function componentWillUnmount(){void 0!==this.timeout&&clearTimeout(this.timeout)}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"isOpen",value:function isOpen(){var G=!!this.props.content;return this.state.anchorEl&&this.isControlled()?this.props.open:G&&this.state.open}},{key:"render",value:function render(){var G,Z=this.props,ne=Z.appearance,ce=Z.children,fe=Z.content,me=Z.defaultPlacement,ge=Z.elementRef,Ce=Z.inline,Se=(Z.onRequestClose,Z.onRequestOpen,Z.splunkTheme),Me=Z.contentRelationship,xe=_objectWithoutProperties(Z,["appearance","children","content","defaultPlacement","elementRef","inline","onRequestClose","onRequestOpen","splunkTheme","contentRelationship"]),Ie=this.state.anchorEl,Re=!!fe,$e=this.isOpen(),Je=Ce?dt:ut,ot=Ce?ft:ht,at=Se.isPrisma,st=at?"below":"above";return"label"===Me?G={labelledBy:this.ariaId,"aria-labelledby":this.ariaId}:"description"===Me&&(G={describedBy:this.ariaId,"aria-describedby":this.ariaId}),se.a.createElement(Je,Tooltip_extends({"data-test":"tooltip","data-test-open":$e,"data-test-popover-id":this.popoverId,ref:ge},xe),se.a.createElement(ot,{onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:this.handleMount,"data-test":"toggle"},Re&&Object(ie.isValidElement)(ce)?Object(ie.cloneElement)(ce,G):ce,Re&&!ce&&se.a.createElement(yt,{"aria-describedby":this.ariaId},at?se.a.createElement(it,{hideDefaultTooltip:!0,screenReaderText:Object(ze._)("More info"),style:{height:"22px",width:"22px"}}):se.a.createElement(se.a.Fragment,null,se.a.createElement("span",{"aria-hidden":"true"},"?"),se.a.createElement(De.a,null,Object(ze._)("More info")))),Re&&se.a.createElement(De.a,{"aria-hidden":"true",id:this.ariaId},fe)),se.a.createElement(ke.a,{role:"tooltip",align:"center",anchor:Ie,animationConfig:{tension:400},appearance:ne,closeReasons:["offScreen","escapeKey"],defaultPlacement:"theme"===me?st:me,id:this.popoverId,open:$e,onRequestClose:this.handlePopoverOnRequestClose,elementRef:this.handlePopoverMount,hitAreaRef:this.handleHitAreaMount,outerRef:this.handlePopoverOuterMount},se.a.createElement(_t,{$isLabel:"label"===Me},fe)))}}]),Tooltip}(ie.Component);_defineProperty(wt,"propTypes",vt),_defineProperty(wt,"defaultProps",{appearance:"inverted",closeDelay:300,closeWhen:"default",contentRelationship:"description",defaultPlacement:"theme",inline:!0,openDelay:"primary"});var Ct=Object(Ie.withSplunkTheme)(wt);Ct.propTypes=wt.propTypes;var St=Ct},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},34:function(G,Z){G.exports=ne(2009)},4:function(G,Z){G.exports=ne(641)},8:function(G,Z){G.exports=ne(1155)}})},7368:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=211)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},107:function(G,Z){G.exports=ne(1157)},11:function(G,Z){G.exports=ne(63)},16:function(G,Z){G.exports=ne(2007)},167:function(G,Z){G.exports=ne(47)},17:function(G,Z){G.exports=ne(640)},2:function(G,Z){G.exports=ne(0)},211:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(58),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce),Me=ne(9),ke=ne.n(Me),xe=ne(167),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(63),$e=ne.n(ze),Je=ne(33),it=ne.n(Je),ot=ne(107),at=ne(26),st=ne.n(at),ct=ne(27),ut=ne.n(ct),dt=ne(54),ht=ne.n(dt),ft=ne(16),_t=ne.n(ft),yt=ne(49),vt=ne.n(yt),wt=ne(41),Ct=ne(0),St=ne(4),Mt=ne(3),kt=ne.n(Mt),xt=ne(6),Lt=ne.n(xt),Tt=ne(17),At=ne.n(Tt),Dt=Object(Mt.css)(["cursor:not-allowed;color:",";&::placeholder{color:",";}"],Object(Ct.pick)({enterprise:Ct.variables.textDisabledColor,prisma:Ct.variables.contentColorDisabled}),Object(Ct.pick)({enterprise:Ct.variables.textDisabledColor,prisma:Ct.variables.contentColorDisabled})),Et=Object(Mt.css)(["border-radius:",";cursor:pointer;font-size:0.83333em;flex-grow:0;",";&:not([disabled]){color:",";}"],Object(Ct.pick)({enterprise:Ct.variables.borderRadius,prisma:"50%"}),Object(Ct.pick)({enterprise:Object(Mt.css)(["width:",";height:",";"],Ct.variables.inputHeight,Ct.variables.inputHeight),prisma:{comfortable:Object(Mt.css)(["width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;"]),compact:Object(Mt.css)(["width:22px;min-width:22px;min-height:22px;margin:8px;padding:0;"])}}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted})),jt=kt()(At.a).withConfig({displayName:"TextAreaStyles__StyledClearButton",componentId:"gfy8yp-0"})(["display:none;visibility:hidden;",""],Et),It=kt.a.span.withConfig({displayName:"TextAreaStyles__StyledSearchIconWrapper",componentId:"gfy8yp-1"})(["",";color:",";pointer-events:none;padding:",";",""],Ct.mixins.reset("inline-block"),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted}),Object(Ct.pick)({comfortable:"0 8px",compact:"0 6px"}),(function(G){return G.$disabled&&Object(Mt.css)(["",""],Object(Ct.pick)({enterprise:Object(Mt.css)(["color:",";"],Ct.variables.textDisabledColor),prisma:Object(Mt.css)(["color:",";"],Ct.variables.contentColorDisabled)}))})),Nt=kt()(Lt.a).withConfig({displayName:"TextAreaStyles__StyledBox",componentId:"gfy8yp-2"})(["display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:",";}}&:focus-within:not([disabled]){","{","}","{visibility:visible;display:block;}}"],Object(Ct.pick)({enterprise:Ct.variables.spacingHalf,prisma:Ct.variables.spacingSmall}),It,Object(Ct.pick)({enterprise:Object(Mt.css)(["display:none;"])}),jt),Rt=kt.a.span.withConfig({displayName:"TextAreaStyles__StyledTextAreaWrapper",componentId:"gfy8yp-3"})([""," flex-grow:1;min-height:",";position:relative;overflow:hidden;border:1px solid ",";border-radius:",";box-sizing:border-box;background-color:",";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:",";"," "," &:hover:not([disabled]){border-color:",";}&:focus-within:not([disabled]){","}"," "," "," ",""],Ct.mixins.reset("inline-flex"),Ct.variables.inputHeight,Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.gray20},prisma:Ct.variables.interactiveColorBorder}),Ct.variables.borderRadius,Object(Ct.pick)({enterprise:{light:Ct.variables.white,dark:Ct.variables.gray22},prisma:Ct.variables.transparent}),Object(Ct.pick)({enterprise:"0px 0px 0px 10px",prisma:"0px 12px"}),(function(G){return G.$hasEndAdornment&&Object(Mt.css)(["padding-right:0;"])}),(function(G){return G.$hasStartAdornment&&Object(Mt.css)(["padding-left:0;"])}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.gray20},prisma:Ct.variables.interactiveColorBorderHover}),Object(Ct.pick)({enterprise:Object(Mt.css)(["box-shadow:",";color:",";"],Ct.variables.focusShadow,Ct.variables.textColor),prisma:Object(Mt.css)(["border-color:",";color:",";"],Ct.variables.interactiveColorPrimary,Ct.variables.contentColorActive)}),(function(G){return G.$error&&Object(Mt.css)(["&,&:hover:not([disabled]){border-color:",";}&:focus-within:not([disabled]){","}"],Object(Ct.pick)({enterprise:Ct.variables.errorColor,prisma:Ct.variables.accentColorNegative}),Object(Ct.pick)({enterprise:Object(Mt.css)(["box-shadow:",";color:",";"],Ct.variables.focusShadow,Ct.variables.textColor),prisma:Object(Mt.css)(["border-color:",";color:",";"],Ct.variables.interactiveColorPrimary,Ct.variables.contentColorActive)}))}),(function(G){return G.$append&&Object(Mt.css)(["margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;"])}),(function(G){return G.$prepend&&Object(Mt.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"])}),(function(G){return G.disabled&&Object(Mt.css)([""," box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);"],Object(Ct.pick)({enterprise:{light:Object(Mt.css)(["background-color:",";border-color:",";"],Ct.variables.gray96,Ct.variables.gray92),dark:Object(Mt.css)(["background-color:",";border-color:",";"],Ct.variables.gray22,Ct.variables.gray30)},prisma:Object(Mt.css)(["border-color:",";"],Ct.variables.interactiveColorBorderDisabled)}))})),zt=kt.a.textarea.withConfig({displayName:"TextAreaStyles__StyledTextArea",componentId:"gfy8yp-4"})(["",";outline-style:none;border:0;background:transparent;color:",";flex-grow:1;font-family:",";font-size:inherit;line-height:inherit;padding-top:",";padding-bottom:",";padding-right:",";position:relative;resize:none;overflow:auto;white-space:pre-wrap;&::placeholder{color:",";opacity:1;}"," ",""],Ct.mixins.reset("inline-flex"),Object(Ct.pick)({enterprise:Ct.variables.textColor,prisma:Ct.variables.contentColorActive}),Ct.variables.sansFontFamily,Object(Ct.pick)({enterprise:{comfortable:Ct.variables.spacingQuarter,compact:"3px"},prisma:{comfortable:Ct.variables.spacingSmall,compact:"5px"}}),Object(Ct.pick)({enterprise:{comfortable:Ct.variables.spacingQuarter,compact:"3px"},prisma:{comfortable:Ct.variables.spacingSmall,compact:"5px"}}),Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),Ct.variables.contentColorMuted,(function(G){return G.$error&&Object(Mt.css)(["&,&:hover{color:",";}"],Object(Ct.pick)({enterprise:{light:Ct.variables.errorColorD10,dark:Ct.variables.errorColorL20},prisma:Ct.variables.contentColorActive}))}),(function(G){return G.disabled&&Dt})),qt=(kt()(At.a).withConfig({displayName:"TextAreaStyles__StyledVisibilityToggle",componentId:"gfy8yp-5"})(["",""],Et),kt.a.span.withConfig({displayName:"TextAreaStyles__StyledPlaceholder",componentId:"gfy8yp-6"})(["pointer-events:none;color:",";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:",";margin-right:",";",";",";",""],Object(Ct.pick)({enterprise:Ct.variables.textGray,prisma:Ct.variables.contentColorMuted}),Ct.variables.lineHeight,Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),(function(G){var Z=G.$hasStartAdornment,ne=G.$startAdornmentWidth;return Z&&(ne?Object(Mt.css)(["margin-left:","px;"],ne):Object(Mt.css)(["margin-left:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}})))}),(function(G){var Z=G.$hasEndAdornment,ne=G.$endAdornmentWidth;return Z&&(ne?Object(Mt.css)(["max-width:calc( 100% - "," - ","px );"],Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),ne):Object(Mt.css)(["max-width:calc( 100% - "," - "," );"],Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}})))}),(function(G){var Z=G.$hasBothAdornment,ne=G.$endAdornmentWidth,ie=G.$startAdornmentWidth;return Z&&Object(Mt.css)(["max-width:calc(100% - ","px - ","px);"],ie,ne)})),Object(Mt.css)(["display:inline-flex;align-items:center;justify-content:center;height:",";pointer-events:none;"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))),Wt=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledStartAdornmentHolder",componentId:"gfy8yp-7"})([""," ",";"],qt,(function(G){var Z=G.$width;return Z?Object(Mt.css)(["min-width:","px;"],Z):Object(Mt.css)(["min-width:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))})),Bt=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledEndAdornmentHolder",componentId:"gfy8yp-8"})([""," ",";"],qt,(function(G){var Z=G.$width;return Z?Object(Mt.css)(["min-width:","px;"],Z):Object(Mt.css)(["min-width:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))})),Ft=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledAdornment",componentId:"gfy8yp-9"})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:",";color:",";",";",";",""],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted}),(function(G){return"start"===G.$position?Object(Mt.css)(["top:1px;left:1px;"]):Object(Mt.css)(["top:1px;right:1px;"])}),(function(G){return G.disabled&&Dt}),Object(Ct.pick)({enterprise:Object(Mt.css)(["margin-left:-1px;margin-right:-1px;"])}));var Ht=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=ie){var xe=ne*me+ge+Ce+Se+Me+1;ke=Math.min(xe,ke)}var De=ie*me+ge+Ce+Se+Me+1;if(Z!==(ke=Math.max(De,ke)))return ke}return!1}({height:ne.state.height,rowsMax:ne.props.rowsMax,rowsMin:ne.props.rowsMin,shadow:ne.shadow});!1!==G&&ne.setState({height:G})})),_defineProperty(_assertThisInitialized(ne),"renderEndAdornment",(function(){var G,Z=ne.props,ie=Z.appearance,ce=Z.endAdornment,fe=Z.disabled,me=Z.canClear,ge=Z.splunkTheme,Ce=ge.isPrisma,Se=ge.isEnterprise,Me=ge.isCompact?"20px":"24px",ke={ref:function ref(G){ne.endAdornment=G},disabled:fe,$position:"end"};if(ce)return se.a.createElement(Ft,ke,ce);var xe=null===(G=ne.context.labelAttrs)||void 0===G?void 0:G.text,De=xe?Object(St._)("Clear ".concat(xe," text field")):Object(St._)("Clear text field");return Ce||"search"!==ie?ne.getDisplayValue()&&(Ce&&"search"===ie||me)?se.a.createElement(Ft,ke,!fe&&se.a.createElement(jt,{"data-test":"clear",appearance:"secondary",onClick:ne.handleClear,icon:se.a.createElement(st.a,{"aria-label":De,inline:!1,width:Me,height:Me})})):void 0:se.a.createElement(Ft,ke,se.a.createElement(jt,{appearance:"pill","data-test":"clear",inline:!1,icon:se.a.createElement(ut.a,{size:1,screenReaderText:De}),onClick:ne.handleClear}),se.a.createElement(It,{$disabled:fe},Se?se.a.createElement(ht.a,{hideDefaultTooltip:!0,inline:!1,screenReaderText:null,size:"16px"}):se.a.createElement(vt.a,{height:Me,width:Me})))})),_defineProperty(_assertThisInitialized(ne),"renderStartAdornment",(function(){var G=ne.props,Z=G.appearance,ie=G.startAdornment,ce=G.splunkTheme,fe=G.disabled,me=ce.isPrisma,ge=ce.isCompact?"20px":"24px",Ce={ref:function ref(G){ne.startAdornment=G},disabled:fe,$position:"start"};return ie?se.a.createElement(Ft,Ce,ie):me&&"search"===Z?se.a.createElement(Ft,Ce,se.a.createElement(It,{$disabled:fe},se.a.createElement(vt.a,{"aria-label":"Search",height:ge,width:ge}))):void 0})),_defineProperty(_assertThisInitialized(ne),"getDisplayValue",(function(){return ne.isControlled()?ne.props.value:ne.state.value})),ne.controlledExternally=Se()(G,"value"),ne.state={value:G.defaultValue||""},TextArea.validateRows(G),ne.handleResize=it()(ne.handleResize,100),ne}return _createClass(TextArea,null,[{key:"validateRows",value:function validateRows(G){G.rowsMin,G.rowsMax}}]),_createClass(TextArea,[{key:"componentDidMount",value:function componentDidMount(){ge()(this.syncHeightWithShadow),this.getAdornmentWidth()}},{key:"componentDidUpdate",value:function componentDidUpdate(G){this.syncHeightWithShadow(),TextArea.validateRows(this.props),this.getAdornmentWidth()}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"blur",value:function blur(){var G;null===(G=this.input)||void 0===G||G.blur()}},{key:"focus",value:function focus(){var G;null===(G=this.input)||void 0===G||G.focus()}},{key:"select",value:function select(){var G;null===(G=this.input)||void 0===G||G.select()}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.autoCapitalize,ce=Z.autoComplete,fe=Z.autoCorrect,me=Z.autoFocus,ge=Z.children,Ce=Z.className,Se=Z.classNamePrivate,Me=Z.disabled,xe=Z.describedBy,Ie=Z.elementRef,ze=Z.error,Je=Z.inline,it=Z.inputClassName,ot=Z.inputId,at=Z.labelledBy,st=Z.maxLength,ct=Z.name,ut=Z.placeholder,dt=Z.prepend,ht=Z.required,ft=Z.spellCheck,yt=Z.tabIndex,vt=Z.title,Ct=_objectWithoutProperties(Z,["append","autoCapitalize","autoComplete","autoCorrect","autoFocus","children","className","classNamePrivate","disabled","describedBy","elementRef","error","inline","inputClassName","inputId","labelledBy","maxLength","name","placeholder","prepend","required","spellCheck","tabIndex","title"]),St=_objectSpread(_objectSpread({},$e()(Ct,(function(G,Z){return"role"===Z||0===Z.indexOf("aria-")}))),{},{"aria-describedby":xe,"aria-labelledby":at,"aria-invalid":ze||void 0,"aria-multiline":!0}),Mt=Re()(Ct,["inputRef","onBlur","onChange","onFocus","onKeyDown","onSelect","onInputClick","rowsMax","rowsMin"].concat(_toConsumableArray(ke()(St)))),kt=this.getDisplayValue(),xt={className:Object(wt.toClassName)(Ce,it),$append:ne||void 0,$error:ze,$prepend:dt||void 0},Lt=_objectSpread(_objectSpread({},St),{},{"data-test":"textbox",autoCapitalize:ie,autoComplete:ce,autoCorrect:fe,autoFocus:me,id:ot,maxLength:st,placeholder:ut,name:ct,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,onSelect:this.handleInputSelect,onClick:this.handleInputClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,ref:this.handleInputMount,role:"textbox",required:ht,spellCheck:ft,style:{height:this.state.height},title:vt,tabIndex:yt,value:kt,$error:ze}),Tt=!!this.renderEndAdornment(),At=!!this.renderStartAdornment();return se.a.createElement(Nt,_extends({tabIndex:-1,className:Object(wt.toClassName)(Ce,Se),"data-test":"text","data-test-value":kt,elementRef:Ie,flex:!0,inline:Je},Mt),this.renderStartAdornment(),se.a.createElement(Rt,_extends({$hasEndAdornment:Tt,$hasStartAdornment:At,disabled:Me},xt),At&&se.a.createElement(Wt,{$width:this.state.startAdornmentWidth}),se.a.createElement(zt,{"aria-hidden":"true",onChange:De.a,onClick:this.handleInputClick,style:{width:"100%",position:"absolute",overflow:"hidden",left:-1e4,top:-1e4},tabIndex:-1,ref:function ref(Z){G.shadow=Z},value:kt}),Me?se.a.createElement(zt,_extends({as:"textarea",className:Object(wt.toClassName)(Ce,Se),"data-multiline":"true","data-test":"text",disabled:!0,readOnly:!0,style:{height:this.state.height},value:kt,placeholder:ut,ref:function ref(Z){G.shadow=Z}},St)):se.a.createElement(zt,_extends({as:"textarea"},Lt,{onClick:this.handleInputClick})),se.a.createElement(_t.a,{target:window,eventType:"resize",listener:this.handleResize}),ge,Tt&&se.a.createElement(Bt,{$width:this.state.endAdornmentWidth})),this.renderEndAdornment())}}]),TextArea}(ie.Component);_defineProperty(Vt,"propTypes",$t),_defineProperty(Vt,"defaultProps",{appearance:"default",append:!1,autoFocus:!1,canClear:!1,disabled:!1,error:!1,inline:!1,placeholder:"",prepend:!1,rowsMax:8,rowsMin:2,tabIndex:0}),_defineProperty(Vt,"componentType","TextArea"),_defineProperty(Vt,"contextType",ot.ControlGroupContext);var Yt=Object(Ct.withSplunkTheme)(Vt);Yt.propTypes=Vt.propTypes,Yt.componentType=Vt.componentType;var Ut=Yt},26:function(G,Z){G.exports=ne(2011)},27:function(G,Z){G.exports=ne(2012)},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},4:function(G,Z){G.exports=ne(641)},41:function(G,Z){G.exports=ne(2008)},49:function(G,Z){G.exports=ne(2868)},5:function(G,Z){G.exports=ne(41)},54:function(G,Z){G.exports=ne(2869)},58:function(G,Z){G.exports=ne(153)},6:function(G,Z){G.exports=ne(760)},63:function(G,Z){G.exports=ne(425)},9:function(G,Z){G.exports=ne(62)}})},7369:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=57)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(642)},4:function(G,Z){G.exports=ne(759)},57:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Clear}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zce?(pushLocation(),se=G.start,ce=G.end):G.end>ce&&(ce=G.end)})),pushLocation(),fe},Z.filterByKeywords=function filterByKeywords(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(G){return G},ie=stringToKeywords(Z);return G.filter((function(G){return testPhrase(ne(G),ie)}))};var ie=_interopRequireDefault(ne(65)),se=_interopRequireDefault(ne(78));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function stringToKeywords(G){return(0,se.default)(G)?(G.match(/(?:[^\s"]+|"[^"]*")+/g)||[]).map((function(G){return G.replace(/^"(.*)"$/,"$1").toLowerCase()})):[]}function testPhrase(G,Z){if(!(0,se.default)(G))return!1;var ne=G.toLowerCase();return Z.every((function(G){return(0,ie.default)(ne,G)}))}function keywordLocationsAll(G,Z){if(!(0,se.default)(G)||!Z||!Z.length)return!1;var ne=G.toLowerCase();return Z.reduce((function(G,Z){var ie=ne.indexOf(Z);return ie>=0&&G.push({keyword:Z,start:ie,end:ie+Z.length}),G}),[]).sort((function(G,Z){return G.start!==Z.start?G.start>Z.start?1:-1:G.end>Z.end?1:-1}))}},7371:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=230)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},13:function(G,Z){G.exports=ne(4087)},153:function(G,Z){G.exports=ne(7372)},154:function(G,Z){G.exports=ne(7373)},2:function(G,Z){G.exports=ne(0)},230:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(40),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(4),De=ne(153),Ie=ne(13),Re=ne.n(Ie),ze=ne(3),$e=ne.n(ze),Je=ne(154),it=ne.n(Je),ot=ne(0),at=$e.a.div.withConfig({displayName:"ResultsMenuStyles__Styled",componentId:"avbhl8-0"})(["",";flex-direction:column;max-height:calc(100vh - 20px);",""],ot.mixins.reset("flex"),Object(ot.pick)({prisma:Object(ze.css)(["border-radius:",";background-color:",";"],ot.variables.borderRadius,ot.variables.backgroundColorPopup)})),st=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledFooter",componentId:"avbhl8-1"})(["padding:",";color:",";",""],Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray}),(function(G){return"above"===G.$placement?Object(ot.pick)({prisma:Object(ze.css)(["border-bottom:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-bottom:",";"],ot.variables.border)}):Object(ot.pick)({prisma:Object(ze.css)(["border-top:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-top:",";"],ot.variables.border)})})),ct=$e.a.li.withConfig({displayName:"ResultsMenuStyles__StyledLoading",componentId:"avbhl8-2"})(["",";padding:",";gap:",";"],ot.mixins.reset("flex"),Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),ot.variables.spacingXSmall),ut=$e()(it.a).withConfig({displayName:"ResultsMenuStyles__StyledWait",componentId:"avbhl8-3"})(["flex:0 0 auto;"]),dt=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledLoadingMessage",componentId:"avbhl8-4"})(["flex:1 0 0;color:",";"],Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray})),ht=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=se&&ne.handleScrollBottom(G)}null===(Z=(ie=ne.props).onScroll)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleWheelMenu",(function(G){G.stopPropagation(),document.documentElement.scrollTop=ne.state.windowTop})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottomOnFullMenu",(function(){var G=ie.Children.count(ne.props.children),Z=ne.state,se=Z.childrenCount,ce=Z.menuMaxHeight;ne.checkFullHeight()&&ne.handleScrollBottom(null),ce&&null!=G&&G!==se&&ne.setState({numberOfItemsLoaded:G-(null!=se?se:0),scrollBottomTriggered:!1}),G!==se&&ne.setState({childrenCount:G})})),ne.state={containerEl:null,menuEl:null,menuMaxHeight:void 0,numberOfItemsLoaded:0,scrollBottomTriggered:!1,windowTop:0},ne.scrollBottomOffset=400,ne.itemMinHeight=28,ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(ResultsMenu,[{key:"componentDidUpdate",value:function componentDidUpdate(){var G=this.state,Z=G.containerEl,ne=G.menuEl,ie=G.menuMaxHeight;if(De.isIE11&&Z&&ne){if(this.props.maxHeight){var se=Z.scrollHeight-ne.clientHeight,ce=this.props.maxHeight-se;(void 0===ie||Math.abs(ie-ce)>1)&&this.setState({menuMaxHeight:ce})}this.props&&this.props.onScrollBottom&&this.props.children&&this.handleScrollBottomOnFullMenu()}}},{key:"handleScrollBottom",value:function handleScrollBottom(G){var Z,ne;this.state.scrollBottomTriggered||(this.setState({scrollBottomTriggered:!0}),null===(Z=(ne=this.props).onScrollBottom)||void 0===Z||Z.call(ne,G))}},{key:"checkFullHeight",value:function checkFullHeight(){var G=this.state.menuEl;return G&&G.scrollHeight===G.offsetHeight}},{key:"renderFooterMessage",value:function renderFooterMessage(){return this.props.footerMessage&&!!ie.Children.toArray(this.props.children).length&&se.a.createElement(st,{$placement:this.props.placement,"data-test":"footer-message",key:"footer"},this.props.footerMessage)}},{key:"render",value:function render(){var G=this.props,Z=G.animateLoading,ne=G.children,ce=G.controlledExternally,fe=G.childrenStart,me=G.isLoading,Ce=G.loadingMessage,Se=G.noOptionsMessage,Me=G.onScrollBottom,xe=G.placement,De=G.style,ze=G.tabIndex,$e=ke()(this.props,ge()(ResultsMenu.propTypes)),Je=ie.Children.toArray(ne).filter(ie.isValidElement).some((function(G){var Z=G.type;return!(Z===Ie.Divider&&Z.filterFirst||(Z===Ie.Divider||Z===Ie.Heading)&&(Z.filterLast||Z.filterConsecutive))})),it=this.checkFullHeight(),ot=vt(this.state.menuMaxHeight),st=wt(this.state.scrollBottomTriggered&&this.state.numberOfItemsLoaded*this.itemMinHeight||0);return se.a.createElement(at,_extends({key:"wrapper",style:De,ref:this.handleMount,onWheel:Me?this.handleWheelMenu:void 0,onMouseEnter:Me?this.handleMouseEnter:void 0,onMouseLeave:Me?this.handleMouseLeave:void 0},ke()($e,"tabIndex")),"above"!==xe&&fe,"above"===xe&&this.renderFooterMessage(),se.a.createElement(Ie.MenuContext.Provider,{value:yt},se.a.createElement(Re.a,{key:"menu",style:ot,controlledExternally:ce,elementRef:this.handleMenuMount,onScroll:this.handleScroll,stopScrollPropagation:!0,tabIndex:ze},!Je&&Se&&!me&&se.a.createElement(Re.a.Item,{"data-test":"no-results-message",disabled:!0},Se),ne,Me&&!it&&se.a.createElement("div",{"data-test":"results-menu-bottom-spacer",style:st}),me&&se.a.createElement(ct,null,Z&&se.a.createElement(ut,null),se.a.createElement(dt,null,Ce)))),"above"!==xe&&this.renderFooterMessage(),"above"===xe&&fe)}}]),ResultsMenu}(ie.Component);_defineProperty(Ct,"propTypes",ft),_defineProperty(Ct,"defaultProps",_t);var St=Ct},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(641)},40:function(G,Z){G.exports=ne(85)},5:function(G,Z){G.exports=ne(41)},9:function(G,Z){G.exports=ne(62)}})},7372:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isIE11=function isIE11(){return!!navigator.userAgent.match(/Trident\/7\./)}},7373:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=238)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},238:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return at}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(51),ge=ne(0),Ce=ne(4),Se=ne(3),Me=ne.n(Se),ke=Me.a.div.withConfig({displayName:"WaitSpinnerStyles__Styled",componentId:"sc-1nu971z-0"})(["",";align-items:center;"],ge.mixins.reset("inline-flex")),xe=Object(Se.keyframes)(["100%{transform:rotate(360deg);}"]),De=Object(Se.keyframes)(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]),Ie=Me.a.svg.withConfig({displayName:"WaitSpinnerStyles__StyledSvg",componentId:"sc-1nu971z-1"})([""," ",""],Object(ge.pickVariant)("$size",{small:{enterprise:Object(Se.css)(["width:14px;height:14px;"]),prisma:Object(Se.css)(["width:16px;height:16px;"])},medium:{enterprise:Object(Se.css)(["width:19px;height:19px;"]),prisma:Object(Se.css)(["width:24px;height:24px;"])},large:{enterprise:Object(Se.css)(["width:19px;height:19px;"]),prisma:Object(Se.css)(["width:40px;height:40px;"])}}),(function(G){return G.$animated&&Object(ge.pick)({enterprise:Object(Se.css)(["transform-origin:center;animation:"," 1.2s steps(64) infinite;"],xe),prisma:Object(Se.css)(["animation:"," "," infinite linear,"," 500ms cubic-bezier(0.01,0,0,1);"],xe,"2.07s",De)})})),Re=Object(Se.keyframes)(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),ze=Object(Se.keyframes)(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),$e=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaBasePath",componentId:"sc-1nu971z-2"})(["stroke:",";stroke-width:2;fill:transparent;"," stroke-dasharray:110 10;stroke-dashoffset:-5.5;"],ge.variables.contentColorDisabled,(function(G){return G.$animated&&Object(Se.css)(["animation:"," "," infinite;animation-fill-mode:backwards;"],Re,"2.07s")})),Je=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaFillPath",componentId:"sc-1nu971z-3"})(["fill:transparent;stroke-width:2;stroke:",";stroke-dasharray:7 113;stroke-dashoffset:3;",""],Object(ge.pickVariant)("$size",{small:ge.variables.contentColorDefault,medium:ge.variables.contentColorDefault,large:ge.variables.interactiveColorPrimary}),(function(G){return G.$animated&&Object(Se.css)(["animation:"," "," infinite;"],ze,"2.07s")})),it=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledEnterpriseCircle",componentId:"sc-1nu971z-4"})(["fill:transparent;stroke:",";stroke-width:2px;",""],Object(ge.pick)({enterprise:{dark:ge.variables.white,light:ge.variables.gray60},prisma:ge.variables.contentColorMuted}),Object(ge.pick)({enterprise:Object(Se.css)(["stroke-dasharray:34 19;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ot={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string,size:fe.a.oneOf(["small","medium","large"])};function WaitSpinner(G){var Z=G.elementRef,ne=G.screenReaderText,ie=void 0===ne?Object(Ce._)("Waiting"):ne,ce=G.size,fe=void 0===ce?"small":ce,Se=_objectWithoutProperties(G,["elementRef","screenReaderText","size"]),Me="on"===Object(me.useAnimationToggle)(),xe=Object(ge.useSplunkTheme)().isPrisma,De=xe?"0 0 40 40":"0 0 19 19";return se.a.createElement(ke,_extends({"data-test":"wait-spinner"},Se),se.a.createElement(Ie,{viewBox:De,version:"1.1",xmlns:"http://www.w3.org/2000/svg",ref:Z,$animated:Me,$size:fe},ie&&se.a.createElement("title",null,ie),se.a.createElement("g",null,xe?se.a.createElement(se.a.Fragment,null,se.a.createElement($e,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe}),se.a.createElement(Je,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe})):se.a.createElement(it,{cx:"9.5",cy:"9.5",r:"8.5"}))))}WaitSpinner.propTypes=ot;var at=WaitSpinner},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(641)},51:function(G,Z){G.exports=ne(2866)}})},7374:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se,ce,fe=ie(ne(761)),me=_interopRequireWildcard(ne(0)),ge=ne(24),Ce=ne(976),Se=ie(ne(640)),Me=ie(ne(1620)),ke=ne(890),xe=_interopRequireWildcard(ne(7381)),De=ie(ne(2014)),Ie="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dropdown/Dropdown.tsx";function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}return ie.default=G,ne&&ne.set(G,ie),ie}!function(G){G.default="default",G.primary="primary",G.pill="pill",G.toggle="toggle",G.flat="flat"}(se||(se={})),function(G){G.clickAway="clickAway",G.escapeKey="escapeKey",G.offScreen="offScreen",G.toggleClick="toggleClick"}(ce||(ce={}));const TimeRange=G=>{const{onChange:Z,appearance:ne,append:ie,describedBy:se,disabled:Re,earliest:ze,inline:$e,labelMaxChars:Je,latest:it,prepend:ot,presets:at}=G,st=(0,me.useRef)(null),[ct,ut]=(0,me.useState)(!1),dt=G["aria-label"],ht=(0,Ce.createRangeLabel)(ze,it,{presets:at,maxChars:Je}),ft=Object.keys(ce),_t=me.default.createElement(Se.default,(0,fe.default)({appearance:ne,disabled:Re,label:(0,ke._)(ht),append:ie,prepend:ot,inline:$e,isMenu:!0,"aria-describedby":se,"data-test":"time-range-dropdown","data-test-earliest":ze,"data-test-latest":it,ref:st},(0,De.default)(G),{"aria-label":dt?dt+", "+ht:void 0,__self:void 0,__source:{fileName:Ie,lineNumber:105,columnNumber:9}}));return me.default.createElement(Me.default,{inline:$e,open:ct,retainFocus:!0,toggle:_t,closeReasons:ft,onRequestClose:({reason:G})=>{"contentClick"!==G&&ut(!1)},onRequestOpen:()=>{ut(!0)},__self:void 0,__source:{fileName:Ie,lineNumber:124,columnNumber:9}},ct&&me.default.createElement(xe.default,(0,fe.default)({onChange:(G,ne)=>{ut(!1),Z(G,ne),(()=>{const{current:G}=st;G&&G.focus()})()},style:{width:640}},(0,ge.omit)(G,"appearance","disabled","prepend","append","describedBy","onChange","labelMaxChars","data-test","style","className"),{__self:void 0,__source:{fileName:Ie,lineNumber:134,columnNumber:17}})))};TimeRange.defaultProps={appearance:se.toggle,advancedInputTypes:xe.possibleAdvancedInputTypes,disabled:!1,inline:!0,formInputTypes:xe.possibleFormInputTypes,labelMaxChars:30,onChange:ge.noop};var Re=TimeRange;Z.default=Re},7375:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintf=sprintf,Z.abbreviateNumber=function abbreviateNumber(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(0,ie.default)(G);if(ne<=1e3)return ne.toLocaleString(Z);if(ne<1e4)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-2).toLocaleString(Z));if(ne<1e5)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-1).toLocaleString(Z));if(ne<999500)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,0).toLocaleString(Z));if(ne<1e7)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-2).toLocaleString(Z));if(ne<1e8)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-1).toLocaleString(Z));if(ne<9995e5)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,0).toLocaleString(Z));if(ne<1e10)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-2).toLocaleString(Z));if(ne<1e11)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-1).toLocaleString(Z));return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,0).toLocaleString(Z))},Z.bytesToFileSize=function bytesToFileSize(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(G||0)/1024;if(ne<0)throw new RangeError("bytes must be >= 0");if(0===Math.floor(ne))return sprintf((0,se._)("%s B"),G.toLocaleString(Z));var ie=ne/1024;if(0===Math.floor(ie))return sprintf((0,se._)("%s KB"),(0,ce.roundToDecimal)(ne,-2).toLocaleString(Z));var fe=ie/1024;if(0===Math.floor(fe))return sprintf((0,se._)("%s MB"),(0,ce.roundToDecimal)(ie,-2).toLocaleString(Z));var me=fe/1024;if(0===Math.floor(me))return sprintf((0,se._)("%s GB"),(0,ce.roundToDecimal)(fe,-2).toLocaleString(Z));return sprintf((0,se._)("%s TB"),(0,ce.roundToDecimal)(me,-2).toLocaleString(Z))},Z.smartTrim=function smartTrim(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ie=ne.precomposed,se=void 0!==ie&&ie;if(!G||Z<1||G.length<=Z)return G;var ce=se?"…":"...";if(1===Z)return"".concat(G[0]).concat(ce);var fe=Math.ceil(G.length/2),me=G.length-Z,ge=Math.ceil(me/2),Ce=me-ge;return"".concat(G.substring(0,fe-ge)).concat(ce).concat(G.substring(fe+Ce))};var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(384)),se=ne(2870),ce=ne(7376),fe=ne(7377);function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie1&&void 0!==arguments[1]?arguments[1]:0;return(0,se.default)(G,-1*Z)},Z.floorPowerOfTen=function floorPowerOfTen(G){return Math.pow(10,Math.floor(Math.log(G)/Math.LN10))},Z.isLessThanMinSafeInt=function isLessThanMinSafeInt(G){if(!(0,ie.default)(G))return!1;return G<=-9007199254740991},Z.isGreaterThanMaxSafeInt=function isGreaterThanMaxSafeInt(G){if(!(0,ie.default)(G))return!1;return G>=9007199254740991};var ie=_interopRequireDefault(ne(118)),se=_interopRequireDefault(ne(469));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=/(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i},7377:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintfFormat=sprintfFormat,Z.sprintfParse=sprintfParse;var ie=_interopRequireDefault(ne(63)),se=_interopRequireDefault(ne(423));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var ce={notType:/[^T]/,notPrimitive:/[^v]/,number:/[diefg]/,numericArg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,keyAccess:/^\.([a-z_][a-z_\d]*)/i,indexAccess:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie=0),ge.type){case"b":ne=parseInt(ne,10).toString(2);break;case"c":ne=String.fromCharCode(parseInt(ne,10));break;case"d":case"i":ne=parseInt(ne,10);break;case"j":ne=JSON.stringify(ne,null,ge.width?parseInt(ge.width,10):0);break;case"e":ne=ge.precision?parseFloat(ne).toExponential(ge.precision):parseFloat(ne).toExponential();break;case"f":ne=ge.precision?parseFloat(ne).toFixed(ge.precision):parseFloat(ne);break;case"g":ne=ge.precision?String(Number(ne.toPrecision(ge.precision))):parseFloat(ne);break;case"o":ne=(parseInt(ne,10)>>>0).toString(8);break;case"s":ne=String(ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"t":ne=String(!!ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"T":ne=Object.prototype.toString.call(ne).slice(8,-1).toLowerCase(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"u":ne=parseInt(ne,10)>>>0;break;case"v":ne=ne.valueOf(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"x":ne=(parseInt(ne,10)>>>0).toString(16);break;case"X":ne=(parseInt(ne,10)>>>0).toString(16).toUpperCase()}ce.json.test(ge.type)?Re+=ne:(!ce.number.test(ge.type)||ke&&!ge.sign?xe="":(xe=ke?"+":"-",ne=ne.toString().replace(ce.sign,"")),Se=ge.padChar?"0"===ge.padChar?"0":ge.padChar.charAt(1):" ",Me=ge.width-(xe+ne).length,Ce=ge.width&&Me>0?(0,se.default)(Se,Me):"",Re+=ge.align?xe+ne+Ce:"0"===Se?xe+Ce+ne:Ce+xe+ne)}return Re}var fe=Object.create(null);function sprintfParse(G){if(fe[G])return fe[G];for(var Z,ne=G,ie=0,se=[];ne;){if(null!==(Z=ce.text.exec(ne)))se.push(Z[0]);else if(null!==(Z=ce.modulo.exec(ne)))se.push("%");else{if(null===(Z=ce.placeholder.exec(ne)))throw new SyntaxError("[sprintf] unexpected placeholder");if(Z[2]){ie|=1;var me=Z[2],ge=[],Ce=[];if(null===(ge=ce.key.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(Ce.push(ge[1]);""!==(me=me.substring(ge[0].length));)if(null!==(ge=ce.keyAccess.exec(me)))Ce.push(ge[1]);else{if(null===(ge=ce.indexAccess.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");Ce.push(ge[1])}Z[2]=Ce}else ie|=2;if(3===ie)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");se.push({placeholder:Z[0],paramNo:Z[1],keys:Z[2],sign:Z[3],padChar:Z[4],align:Z[5],width:Z[6],precision:Z[7],type:Z[8]})}ne=ne.substring(Z[0].length)}return fe[G]=se,fe[G]}},7378:function(G,Z,ne){G.exports=function(G){var Z={};function n(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,n),ie.l=!0,ie.exports}return n.m=G,n.c=Z,n.d=function(G,Z,ne){n.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},n.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},n.t=function(G,Z){if(1&Z&&(G=n(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(n.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)n.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},n.n=function(G){var Z=G&&G.__esModule?function(){return G.default}:function(){return G};return n.d(Z,"a",Z),Z},n.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},n.p="",n(n.s=138)}([function(G,Z,ne){(function(G){G.exports=function(){"use strict";var Z,ie;function c(){return Z.apply(null,arguments)}function M(G){return G instanceof Array||"[object Array]"===Object.prototype.toString.call(G)}function s(G){return null!=G&&"[object Object]"===Object.prototype.toString.call(G)}function o(G){return void 0===G}function i(G){return"number"==typeof G||"[object Number]"===Object.prototype.toString.call(G)}function r(G){return G instanceof Date||"[object Date]"===Object.prototype.toString.call(G)}function d(G,Z){var ne,ie=[];for(ne=0;ne>>0,ie=0;ie0)for(ne=0;ne=0?ne?"+":"":"-")+Math.pow(10,Math.max(0,se)).toString().substr(1)+ie}var Se=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ke={},xe={};function F(G,Z,ne,ie){var se=ie;"string"==typeof ie&&(se=function(){return this[ie]()}),G&&(xe[G]=se),Z&&(xe[Z[0]]=function(){return j(se.apply(this,arguments),Z[1],Z[2])}),ne&&(xe[ne]=function(){return this.localeData().ordinal(se.apply(this,arguments),G)})}function I(G,Z){return G.isValid()?(Z=U(Z,G.localeData()),ke[Z]=ke[Z]||function(G){var Z,ne,ie,se=G.match(Se);for(Z=0,ne=se.length;Z=0&&Me.test(G);)G=G.replace(Me,t),Me.lastIndex=0,ne-=1;return G}var De=/\d/,Ie=/\d\d/,Re=/\d{3}/,ze=/\d{4}/,$e=/[+-]?\d{6}/,Je=/\d\d?/,it=/\d\d\d\d?/,ot=/\d\d\d\d\d\d?/,at=/\d{1,3}/,st=/\d{1,4}/,ct=/[+-]?\d{1,6}/,ut=/\d+/,dt=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,ft=/Z|[+-]\d\d(?::?\d\d)?/gi,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yt={};function de(G,Z,ne){yt[G]=N(Z)?Z:function(G,ie){return G&&ne?ne:Z}}function _e(G,Z){return _(yt,G)?yt[G](Z._strict,Z._locale):new RegExp(ue(G.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(G,Z,ne,ie,se){return Z||ne||ie||se}))))}function ue(G){return G.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var vt={};function le(G,Z){var ne,ie=Z;for("string"==typeof G&&(G=[G]),i(Z)&&(ie=function(G,ne){ne[Z]=T(G)}),ne=0;ne68?1900:2e3)};var wt,Ct=he("FullYear",!0);function he(G,Z){return function(ne){return null!=ne?(Te(this,G,ne),c.updateOffset(this,Z),this):Ye(this,G)}}function Ye(G,Z){return G.isValid()?G._d["get"+(G._isUTC?"UTC":"")+Z]():NaN}function Te(G,Z,ne){G.isValid()&&!isNaN(ne)&&("FullYear"===Z&&Ae(G.year())&&1===G.month()&&29===G.date()?G._d["set"+(G._isUTC?"UTC":"")+Z](ne,G.month(),ye(ne,G.month())):G._d["set"+(G._isUTC?"UTC":"")+Z](ne))}function ye(G,Z){if(isNaN(G)||isNaN(Z))return NaN;var ne=(Z%12+12)%12;return G+=(Z-ne)/12,1===ne?Ae(G)?29:28:31-ne%7%2}wt=Array.prototype.indexOf?Array.prototype.indexOf:function(G){var Z;for(Z=0;Z=0?(me=new Date(G+400,Z,ne,ie,se,ce,fe),isFinite(me.getFullYear())&&me.setFullYear(G)):me=new Date(G,Z,ne,ie,se,ce,fe),me}function Be(G){var Z;if(G<100&&G>=0){var ne=Array.prototype.slice.call(arguments);ne[0]=G+400,Z=new Date(Date.UTC.apply(null,ne)),isFinite(Z.getUTCFullYear())&&Z.setUTCFullYear(G)}else Z=new Date(Date.UTC.apply(null,arguments));return Z}function ve(G,Z,ne){var ie=7+Z-ne;return-(7+Be(G,0,ie).getUTCDay()-Z)%7+ie-1}function He(G,Z,ne,ie,se){var ce,fe,me=1+7*(Z-1)+(7+ne-ie)%7+ve(G,ie,se);return me<=0?fe=be(ce=G-1)+me:me>be(G)?(ce=G+1,fe=me-be(G)):(ce=G,fe=me),{year:ce,dayOfYear:fe}}function Ee(G,Z,ne){var ie,se,ce=ve(G.year(),Z,ne),fe=Math.floor((G.dayOfYear()-ce-1)/7)+1;return fe<1?ie=fe+je(se=G.year()-1,Z,ne):fe>je(G.year(),Z,ne)?(ie=fe-je(G.year(),Z,ne),se=G.year()+1):(se=G.year(),ie=fe),{week:ie,year:se}}function je(G,Z,ne){var ie=ve(G,Z,ne),se=ve(G+1,Z,ne);return(be(G)-ie+se)/7}function Pe(G,Z){return G.slice(Z,7).concat(G.slice(0,Z))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),X("week","w"),X("isoWeek","W"),E("week",5),E("isoWeek",5),de("w",Je),de("ww",Je,Ie),de("W",Je),de("WW",Je,Ie),pe(["w","ww","W","WW"],(function(G,Z,ne,ie){Z[ie.substr(0,1)]=T(G)})),F("d",0,"do","day"),F("dd",0,0,(function(G){return this.localeData().weekdaysMin(this,G)})),F("ddd",0,0,(function(G){return this.localeData().weekdaysShort(this,G)})),F("dddd",0,0,(function(G){return this.localeData().weekdays(this,G)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),X("day","d"),X("weekday","e"),X("isoWeekday","E"),E("day",11),E("weekday",11),E("isoWeekday",11),de("d",Je),de("e",Je),de("E",Je),de("dd",(function(G,Z){return Z.weekdaysMinRegex(G)})),de("ddd",(function(G,Z){return Z.weekdaysShortRegex(G)})),de("dddd",(function(G,Z){return Z.weekdaysRegex(G)})),pe(["dd","ddd","dddd"],(function(G,Z,ne,ie){var se=ne._locale.weekdaysParse(G,ie,ne._strict);null!=se?Z.d=se:l(ne).invalidWeekday=G})),pe(["d","e","E"],(function(G,Z,ne,ie){Z[ie]=T(G)}));var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Dt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Fe(G,Z,ne){var ie,se,ce,fe=G.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ie=0;ie<7;++ie)ce=m([2e3,1]).day(ie),this._minWeekdaysParse[ie]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[ie]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[ie]=this.weekdays(ce,"").toLocaleLowerCase();return ne?"dddd"===Z?-1!==(se=wt.call(this._weekdaysParse,fe))?se:null:"ddd"===Z?-1!==(se=wt.call(this._shortWeekdaysParse,fe))?se:null:-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:"dddd"===Z?-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._shortWeekdaysParse,fe))||-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:"ddd"===Z?-1!==(se=wt.call(this._shortWeekdaysParse,fe))||-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._minWeekdaysParse,fe))?se:null:-1!==(se=wt.call(this._minWeekdaysParse,fe))||-1!==(se=wt.call(this._weekdaysParse,fe))||-1!==(se=wt.call(this._shortWeekdaysParse,fe))?se:null}var Et=_t,jt=_t,It=_t;function Ge(){function e(G,Z){return Z.length-G.length}var G,Z,ne,ie,se,ce=[],fe=[],me=[],ge=[];for(G=0;G<7;G++)Z=m([2e3,1]).day(G),ne=this.weekdaysMin(Z,""),ie=this.weekdaysShort(Z,""),se=this.weekdays(Z,""),ce.push(ne),fe.push(ie),me.push(se),ge.push(ne),ge.push(ie),ge.push(se);for(ce.sort(e),fe.sort(e),me.sort(e),ge.sort(e),G=0;G<7;G++)fe[G]=ue(fe[G]),me[G]=ue(me[G]),ge[G]=ue(ge[G]);this._weekdaysRegex=new RegExp("^("+ge.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+me.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+fe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ce.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Ve(G,Z){F(G,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),Z)}))}function Qe(G,Z){return Z._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ke),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ke.apply(this)+j(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ke.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),Ve("a",!0),Ve("A",!1),X("hour","h"),E("hour",13),de("a",Qe),de("A",Qe),de("H",Je),de("h",Je),de("k",Je),de("HH",Je,Ie),de("hh",Je,Ie),de("kk",Je,Ie),de("hmm",it),de("hmmss",ot),de("Hmm",it),de("Hmmss",ot),le(["H","HH"],3),le(["k","kk"],(function(G,Z,ne){var ie=T(G);Z[3]=24===ie?0:ie})),le(["a","A"],(function(G,Z,ne){ne._isPm=ne._locale.isPM(G),ne._meridiem=G})),le(["h","hh"],(function(G,Z,ne){Z[3]=T(G),l(ne).bigHour=!0})),le("hmm",(function(G,Z,ne){var ie=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie)),l(ne).bigHour=!0})),le("hmmss",(function(G,Z,ne){var ie=G.length-4,se=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie,2)),Z[5]=T(G.substr(se)),l(ne).bigHour=!0})),le("Hmm",(function(G,Z,ne){var ie=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie))})),le("Hmmss",(function(G,Z,ne){var ie=G.length-4,se=G.length-2;Z[3]=T(G.substr(0,ie)),Z[4]=T(G.substr(ie,2)),Z[5]=T(G.substr(se))}));var Nt,Rt=he("Hours",!0),zt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Mt,monthsShort:kt,week:{dow:0,doy:6},weekdays:Tt,weekdaysMin:Dt,weekdaysShort:At,meridiemParse:/[ap]\.?m?\.?/i},qt={},Wt={};function ta(G){return G?G.toLowerCase().replace("_","-"):G}function ca(Z){var ie=null;if(!qt[Z]&&void 0!==G&&G&&G.exports)try{ie=Nt._abbr,ne(134)("./"+Z),Ma(ie)}catch(G){}return qt[Z]}function Ma(G,Z){var ne;return G&&((ne=o(Z)?oa(G):sa(G,Z))?Nt=ne:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+G+" not found. Did you forget to load it?")),Nt._abbr}function sa(G,Z){if(null!==Z){var ne,ie=zt;if(Z.abbr=G,null!=qt[G])q("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ie=qt[G]._config;else if(null!=Z.parentLocale)if(null!=qt[Z.parentLocale])ie=qt[Z.parentLocale]._config;else{if(null==(ne=ca(Z.parentLocale)))return Wt[Z.parentLocale]||(Wt[Z.parentLocale]=[]),Wt[Z.parentLocale].push({name:G,config:Z}),null;ie=ne._config}return qt[G]=new S(g(ie,Z)),Wt[G]&&Wt[G].forEach((function(G){sa(G.name,G.config)})),Ma(G),qt[G]}return delete qt[G],null}function oa(G){var Z;if(G&&G._locale&&G._locale._abbr&&(G=G._locale._abbr),!G)return Nt;if(!M(G)){if(Z=ca(G))return Z;G=[G]}return function(G){for(var Z,ne,ie,se,ce=0;ce0;){if(ie=ca(se.slice(0,Z).join("-")))return ie;if(ne&&ne.length>=Z&&y(se,ne,!0)>=Z-1)break;Z--}ce++}return Nt}(G)}function ia(G){var Z,ne=G._a;return ne&&-2===l(G).overflow&&(Z=ne[1]<0||ne[1]>11?1:ne[2]<1||ne[2]>ye(ne[0],ne[1])?2:ne[3]<0||ne[3]>24||24===ne[3]&&(0!==ne[4]||0!==ne[5]||0!==ne[6])?3:ne[4]<0||ne[4]>59?4:ne[5]<0||ne[5]>59?5:ne[6]<0||ne[6]>999?6:-1,l(G)._overflowDayOfYear&&(Z<0||Z>2)&&(Z=2),l(G)._overflowWeeks&&-1===Z&&(Z=7),l(G)._overflowWeekday&&-1===Z&&(Z=8),l(G).overflow=Z),G}function ra(G,Z,ne){return null!=G?G:null!=Z?Z:ne}function da(G){var Z,ne,ie,se,ce,fe=[];if(!G._d){for(ie=function(G){var Z=new Date(c.now());return G._useUTC?[Z.getUTCFullYear(),Z.getUTCMonth(),Z.getUTCDate()]:[Z.getFullYear(),Z.getMonth(),Z.getDate()]}(G),G._w&&null==G._a[2]&&null==G._a[1]&&function(G){var Z,ne,ie,se,ce,fe,me,ge;if(null!=(Z=G._w).GG||null!=Z.W||null!=Z.E)ce=1,fe=4,ne=ra(Z.GG,G._a[0],Ee(Oa(),1,4).year),ie=ra(Z.W,1),((se=ra(Z.E,1))<1||se>7)&&(ge=!0);else{ce=G._locale._week.dow,fe=G._locale._week.doy;var Ce=Ee(Oa(),ce,fe);ne=ra(Z.gg,G._a[0],Ce.year),ie=ra(Z.w,Ce.week),null!=Z.d?((se=Z.d)<0||se>6)&&(ge=!0):null!=Z.e?(se=Z.e+ce,(Z.e<0||Z.e>6)&&(ge=!0)):se=ce}ie<1||ie>je(ne,ce,fe)?l(G)._overflowWeeks=!0:null!=ge?l(G)._overflowWeekday=!0:(me=He(ne,ie,se,ce,fe),G._a[0]=me.year,G._dayOfYear=me.dayOfYear)}(G),null!=G._dayOfYear&&(ce=ra(G._a[0],ie[0]),(G._dayOfYear>be(ce)||0===G._dayOfYear)&&(l(G)._overflowDayOfYear=!0),ne=Be(ce,0,G._dayOfYear),G._a[1]=ne.getUTCMonth(),G._a[2]=ne.getUTCDate()),Z=0;Z<3&&null==G._a[Z];++Z)G._a[Z]=fe[Z]=ie[Z];for(;Z<7;Z++)G._a[Z]=fe[Z]=null==G._a[Z]?2===Z?1:0:G._a[Z];24===G._a[3]&&0===G._a[4]&&0===G._a[5]&&0===G._a[6]&&(G._nextDay=!0,G._a[3]=0),G._d=(G._useUTC?Be:Xe).apply(null,fe),se=G._useUTC?G._d.getUTCDay():G._d.getDay(),null!=G._tzm&&G._d.setUTCMinutes(G._d.getUTCMinutes()-G._tzm),G._nextDay&&(G._a[3]=24),G._w&&void 0!==G._w.d&&G._w.d!==se&&(l(G).weekdayMismatch=!0)}}var Bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ht=/Z|[+-]\d\d(?::?\d\d)?/,$t=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yt=/^\/?Date\((\-?\d+)/i;function ba(G){var Z,ne,ie,se,ce,fe,me=G._i,ge=Bt.exec(me)||Ft.exec(me);if(ge){for(l(G).iso=!0,Z=0,ne=$t.length;Z0&&l(G).unusedInput.push(ce),fe=fe.slice(fe.indexOf(ne)+ne.length),ge+=ne.length),xe[se]?(ne?l(G).empty=!1:l(G).unusedTokens.push(se),Le(se,ne,G)):G._strict&&!ne&&l(G).unusedTokens.push(se);l(G).charsLeftOver=me-ge,fe.length>0&&l(G).unusedInput.push(fe),G._a[3]<=12&&!0===l(G).bigHour&&G._a[3]>0&&(l(G).bigHour=void 0),l(G).parsedDateParts=G._a.slice(0),l(G).meridiem=G._meridiem,G._a[3]=function(G,Z,ne){var ie;return null==ne?Z:null!=G.meridiemHour?G.meridiemHour(Z,ne):null!=G.isPM?((ie=G.isPM(ne))&&Z<12&&(Z+=12),ie||12!==Z||(Z=0),Z):Z}(G._locale,G._a[3],G._meridiem),da(G),ia(G)}else ha(G);else ba(G)}function Ta(G){var Z=G._i,ne=G._f;return G._locale=G._locale||oa(G._l),null===Z||void 0===ne&&""===Z?L({nullInput:!0}):("string"==typeof Z&&(G._i=Z=G._locale.preparse(Z)),h(Z)?new z(ia(Z)):(r(Z)?G._d=Z:M(ne)?function(G){var Z,ne,ie,se,ce;if(0===G._f.length)return l(G).invalidFormat=!0,void(G._d=new Date(NaN));for(se=0;sethis?this:G:L()}));function Wa(G,Z){var ne,ie;if(1===Z.length&&M(Z[0])&&(Z=Z[0]),!Z.length)return Oa();for(ne=Z[0],ie=1;ie=0?new Date(G+400,Z,ne)-126227808e5:new Date(G,Z,ne).valueOf()}function en(G,Z,ne){return G<100&&G>=0?Date.UTC(G+400,Z,ne)-126227808e5:Date.UTC(G,Z,ne)}function an(G,Z){F(0,[G,G.length],0,Z)}function nn(G,Z,ne,ie,se){var ce;return null==G?Ee(this,ie,se).year:(Z>(ce=je(G,ie,se))&&(Z=ce),tn.call(this,G,Z,ne,ie,se))}function tn(G,Z,ne,ie,se){var ce=He(G,Z,ne,ie,se),fe=Be(ce.year,0,ce.dayOfYear);return this.year(fe.getUTCFullYear()),this.month(fe.getUTCMonth()),this.date(fe.getUTCDate()),this}F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),X("weekYear","gg"),X("isoWeekYear","GG"),E("weekYear",1),E("isoWeekYear",1),de("G",dt),de("g",dt),de("GG",Je,Ie),de("gg",Je,Ie),de("GGGG",st,ze),de("gggg",st,ze),de("GGGGG",ct,$e),de("ggggg",ct,$e),pe(["gggg","ggggg","GGGG","GGGGG"],(function(G,Z,ne,ie){Z[ie.substr(0,2)]=T(G)})),pe(["gg","GG"],(function(G,Z,ne,ie){Z[ie]=c.parseTwoDigitYear(G)})),F("Q",0,"Qo","quarter"),X("quarter","Q"),E("quarter",7),de("Q",De),le("Q",(function(G,Z){Z[1]=3*(T(G)-1)})),F("D",["DD",2],"Do","date"),X("date","D"),E("date",9),de("D",Je),de("DD",Je,Ie),de("Do",(function(G,Z){return G?Z._dayOfMonthOrdinalParse||Z._ordinalParse:Z._dayOfMonthOrdinalParseLenient})),le(["D","DD"],2),le("Do",(function(G,Z){Z[2]=T(G.match(Je)[0])}));var _n=he("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),X("dayOfYear","DDD"),E("dayOfYear",4),de("DDD",at),de("DDDD",Re),le(["DDD","DDDD"],(function(G,Z,ne){ne._dayOfYear=T(G)})),F("m",["mm",2],0,"minute"),X("minute","m"),E("minute",14),de("m",Je),de("mm",Je,Ie),le(["m","mm"],4);var gn=he("Minutes",!1);F("s",["ss",2],0,"second"),X("second","s"),E("second",15),de("s",Je),de("ss",Je,Ie),le(["s","ss"],5);var bn,yn=he("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),X("millisecond","ms"),E("millisecond",16),de("S",at,De),de("SS",at,Ie),de("SSS",at,Re),bn="SSSS";bn.length<=9;bn+="S")de(bn,ut);function rn(G,Z){Z[6]=T(1e3*("0."+G))}for(bn="S";bn.length<=9;bn+="S")le(bn,rn);var vn=he("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var wn=z.prototype;function un(G){return G}wn.add=cn,wn.calendar=function(G,Z){var ne=G||Oa(),ie=va(ne,this).startOf("day"),se=c.calendarFormat(this,ie)||"sameElse",ce=Z&&(N(Z[se])?Z[se].call(this,ne):Z[se]);return this.format(ce||this.localeData().calendar(se,this,Oa(ne)))},wn.clone=function(){return new z(this)},wn.diff=function(G,Z,ne){var ie,se,ce;if(!this.isValid())return NaN;if(!(ie=va(G,this)).isValid())return NaN;switch(se=6e4*(ie.utcOffset()-this.utcOffset()),Z=B(Z)){case"year":ce=Ga(this,ie)/12;break;case"month":ce=Ga(this,ie);break;case"quarter":ce=Ga(this,ie)/3;break;case"second":ce=(this-ie)/1e3;break;case"minute":ce=(this-ie)/6e4;break;case"hour":ce=(this-ie)/36e5;break;case"day":ce=(this-ie-se)/864e5;break;case"week":ce=(this-ie-se)/6048e5;break;default:ce=this-ie}return ne?ce:Y(ce)},wn.endOf=function(G){var Z;if(void 0===(G=B(G))||"millisecond"===G||!this.isValid())return this;var ne=this._isUTC?en:$a;switch(G){case"year":Z=ne(this.year()+1,0,1)-1;break;case"quarter":Z=ne(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":Z=ne(this.year(),this.month()+1,1)-1;break;case"week":Z=ne(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":Z=ne(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":Z=ne(this.year(),this.month(),this.date()+1)-1;break;case"hour":Z=this._d.valueOf(),Z+=36e5-Za(Z+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":Z=this._d.valueOf(),Z+=6e4-Za(Z,6e4)-1;break;case"second":Z=this._d.valueOf(),Z+=1e3-Za(Z,1e3)-1}return this._d.setTime(Z),c.updateOffset(this,!0),this},wn.format=function(G){G||(G=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var Z=I(this,G);return this.localeData().postformat(Z)},wn.from=function(G,Z){return this.isValid()&&(h(G)&&G.isValid()||Oa(G).isValid())?Ca({to:this,from:G}).locale(this.locale()).humanize(!Z):this.localeData().invalidDate()},wn.fromNow=function(G){return this.from(Oa(),G)},wn.to=function(G,Z){return this.isValid()&&(h(G)&&G.isValid()||Oa(G).isValid())?Ca({from:this,to:G}).locale(this.locale()).humanize(!Z):this.localeData().invalidDate()},wn.toNow=function(G){return this.to(Oa(),G)},wn.get=function(G){return N(this[G=B(G)])?this[G]():this},wn.invalidAt=function(){return l(this).overflow},wn.isAfter=function(G,Z){var ne=h(G)?G:Oa(G);return!(!this.isValid()||!ne.isValid())&&("millisecond"===(Z=B(Z)||"millisecond")?this.valueOf()>ne.valueOf():ne.valueOf()9999?I(ne,Z?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?Z?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(ne,"Z")):I(ne,Z?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var G="moment",Z="";this.isLocal()||(G=0===this.utcOffset()?"moment.utc":"moment.parseZone",Z="Z");var ne="["+G+'("]',ie=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",se=Z+'[")]';return this.format(ne+ie+"-MM-DD[T]HH:mm:ss.SSS"+se)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Ct,wn.isLeapYear=function(){return Ae(this.year())},wn.weekYear=function(G){return nn.call(this,G,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(G){return nn.call(this,G,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(G){return null==G?Math.ceil((this.month()+1)/3):this.month(3*(G-1)+this.month()%3)},wn.month=Ne,wn.daysInMonth=function(){return ye(this.year(),this.month())},wn.week=wn.weeks=function(G){var Z=this.localeData().week(this);return null==G?Z:this.add(7*(G-Z),"d")},wn.isoWeek=wn.isoWeeks=function(G){var Z=Ee(this,1,4).week;return null==G?Z:this.add(7*(G-Z),"d")},wn.weeksInYear=function(){var G=this.localeData()._week;return je(this.year(),G.dow,G.doy)},wn.isoWeeksInYear=function(){return je(this.year(),1,4)},wn.date=_n,wn.day=wn.days=function(G){if(!this.isValid())return null!=G?this:NaN;var Z=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=G?(G=function(G,Z){return"string"!=typeof G?G:isNaN(G)?"number"==typeof(G=Z.weekdaysParse(G))?G:null:parseInt(G,10)}(G,this.localeData()),this.add(G-Z,"d")):Z},wn.weekday=function(G){if(!this.isValid())return null!=G?this:NaN;var Z=(this.day()+7-this.localeData()._week.dow)%7;return null==G?Z:this.add(G-Z,"d")},wn.isoWeekday=function(G){if(!this.isValid())return null!=G?this:NaN;if(null!=G){var Z=function(G,Z){return"string"==typeof G?Z.weekdaysParse(G)%7||7:isNaN(G)?null:G}(G,this.localeData());return this.day(this.day()%7?Z:Z-7)}return this.day()||7},wn.dayOfYear=function(G){var Z=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==G?Z:this.add(G-Z,"d")},wn.hour=wn.hours=Rt,wn.minute=wn.minutes=gn,wn.second=wn.seconds=yn,wn.millisecond=wn.milliseconds=vn,wn.utcOffset=function(G,Z,ne){var ie,se=this._offset||0;if(!this.isValid())return null!=G?this:NaN;if(null!=G){if("string"==typeof G){if(null===(G=Ba(ft,G)))return this}else Math.abs(G)<16&&!ne&&(G*=60);return!this._isUTC&&Z&&(ie=Ha(this)),this._offset=G,this._isUTC=!0,null!=ie&&this.add(ie,"m"),se!==G&&(!Z||this._changeInProgress?Ia(this,Ca(G-se,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?se:Ha(this)},wn.utc=function(G){return this.utcOffset(0,G)},wn.local=function(G){return this._isUTC&&(this.utcOffset(0,G),this._isUTC=!1,G&&this.subtract(Ha(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var G=Ba(ht,this._i);null!=G?this.utcOffset(G):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(G){return!!this.isValid()&&(G=G?Oa(G).utcOffset():0,(this.utcOffset()-G)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Ea,wn.isUTC=Ea,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=D("dates accessor is deprecated. Use date instead.",_n),wn.months=D("months accessor is deprecated. Use month instead",Ne),wn.years=D("years accessor is deprecated. Use year instead",Ct),wn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(G,Z){return null!=G?("string"!=typeof G&&(G=-G),this.utcOffset(G,Z),this):-this.utcOffset()})),wn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var G={};if(A(G,this),(G=Ta(G))._a){var Z=G._isUTC?m(G._a):Oa(G._a);this._isDSTShifted=this.isValid()&&y(G._a,Z.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Cn=S.prototype;function ln(G,Z,ne,ie){var se=oa(),ce=m().set(ie,Z);return se[ne](ce,G)}function pn(G,Z,ne){if(i(G)&&(Z=G,G=void 0),G=G||"",null!=Z)return ln(G,Z,ne,"month");var ie,se=[];for(ie=0;ie<12;ie++)se[ie]=ln(G,ie,ne,"month");return se}function Ln(G,Z,ne,ie){"boolean"==typeof G?(i(Z)&&(ne=Z,Z=void 0),Z=Z||""):(ne=Z=G,G=!1,i(Z)&&(ne=Z,Z=void 0),Z=Z||"");var se,ce=oa(),fe=G?ce._week.dow:0;if(null!=ne)return ln(Z,(ne+fe)%7,ie,"day");var me=[];for(se=0;se<7;se++)me[se]=ln(Z,(se+fe)%7,ie,"day");return me}Cn.calendar=function(G,Z,ne){var ie=this._calendar[G]||this._calendar.sameElse;return N(ie)?ie.call(Z,ne):ie},Cn.longDateFormat=function(G){var Z=this._longDateFormat[G],ne=this._longDateFormat[G.toUpperCase()];return Z||!ne?Z:(this._longDateFormat[G]=ne.replace(/MMMM|MM|DD|dddd/g,(function(G){return G.slice(1)})),this._longDateFormat[G])},Cn.invalidDate=function(){return this._invalidDate},Cn.ordinal=function(G){return this._ordinal.replace("%d",G)},Cn.preparse=un,Cn.postformat=un,Cn.relativeTime=function(G,Z,ne,ie){var se=this._relativeTime[ne];return N(se)?se(G,Z,ne,ie):se.replace(/%d/i,G)},Cn.pastFuture=function(G,Z){var ne=this._relativeTime[G>0?"future":"past"];return N(ne)?ne(Z):ne.replace(/%s/i,Z)},Cn.set=function(G){var Z,ne;for(ne in G)N(Z=G[ne])?this[ne]=Z:this["_"+ne]=Z;this._config=G,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Cn.months=function(G,Z){return G?M(this._months)?this._months[G.month()]:this._months[(this._months.isFormat||St).test(Z)?"format":"standalone"][G.month()]:M(this._months)?this._months:this._months.standalone},Cn.monthsShort=function(G,Z){return G?M(this._monthsShort)?this._monthsShort[G.month()]:this._monthsShort[St.test(Z)?"format":"standalone"][G.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cn.monthsParse=function(G,Z,ne){var ie,se,ce;if(this._monthsParseExact)return We.call(this,G,Z,ne);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ie=0;ie<12;ie++){if(se=m([2e3,ie]),ne&&!this._longMonthsParse[ie]&&(this._longMonthsParse[ie]=new RegExp("^"+this.months(se,"").replace(".","")+"$","i"),this._shortMonthsParse[ie]=new RegExp("^"+this.monthsShort(se,"").replace(".","")+"$","i")),ne||this._monthsParse[ie]||(ce="^"+this.months(se,"")+"|^"+this.monthsShort(se,""),this._monthsParse[ie]=new RegExp(ce.replace(".",""),"i")),ne&&"MMMM"===Z&&this._longMonthsParse[ie].test(G))return ie;if(ne&&"MMM"===Z&&this._shortMonthsParse[ie].test(G))return ie;if(!ne&&this._monthsParse[ie].test(G))return ie}},Cn.monthsRegex=function(G){return this._monthsParseExact?(_(this,"_monthsRegex")||we.call(this),G?this._monthsStrictRegex:this._monthsRegex):(_(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&G?this._monthsStrictRegex:this._monthsRegex)},Cn.monthsShortRegex=function(G){return this._monthsParseExact?(_(this,"_monthsRegex")||we.call(this),G?this._monthsShortStrictRegex:this._monthsShortRegex):(_(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&G?this._monthsShortStrictRegex:this._monthsShortRegex)},Cn.week=function(G){return Ee(G,this._week.dow,this._week.doy).week},Cn.firstDayOfYear=function(){return this._week.doy},Cn.firstDayOfWeek=function(){return this._week.dow},Cn.weekdays=function(G,Z){var ne=M(this._weekdays)?this._weekdays:this._weekdays[G&&!0!==G&&this._weekdays.isFormat.test(Z)?"format":"standalone"];return!0===G?Pe(ne,this._week.dow):G?ne[G.day()]:ne},Cn.weekdaysMin=function(G){return!0===G?Pe(this._weekdaysMin,this._week.dow):G?this._weekdaysMin[G.day()]:this._weekdaysMin},Cn.weekdaysShort=function(G){return!0===G?Pe(this._weekdaysShort,this._week.dow):G?this._weekdaysShort[G.day()]:this._weekdaysShort},Cn.weekdaysParse=function(G,Z,ne){var ie,se,ce;if(this._weekdaysParseExact)return Fe.call(this,G,Z,ne);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ie=0;ie<7;ie++){if(se=m([2e3,1]).day(ie),ne&&!this._fullWeekdaysParse[ie]&&(this._fullWeekdaysParse[ie]=new RegExp("^"+this.weekdays(se,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ie]=new RegExp("^"+this.weekdaysShort(se,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ie]=new RegExp("^"+this.weekdaysMin(se,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ie]||(ce="^"+this.weekdays(se,"")+"|^"+this.weekdaysShort(se,"")+"|^"+this.weekdaysMin(se,""),this._weekdaysParse[ie]=new RegExp(ce.replace(".",""),"i")),ne&&"dddd"===Z&&this._fullWeekdaysParse[ie].test(G))return ie;if(ne&&"ddd"===Z&&this._shortWeekdaysParse[ie].test(G))return ie;if(ne&&"dd"===Z&&this._minWeekdaysParse[ie].test(G))return ie;if(!ne&&this._weekdaysParse[ie].test(G))return ie}},Cn.weekdaysRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysStrictRegex:this._weekdaysRegex):(_(this,"_weekdaysRegex")||(this._weekdaysRegex=Et),this._weekdaysStrictRegex&&G?this._weekdaysStrictRegex:this._weekdaysRegex)},Cn.weekdaysShortRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=jt),this._weekdaysShortStrictRegex&&G?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cn.weekdaysMinRegex=function(G){return this._weekdaysParseExact?(_(this,"_weekdaysRegex")||Ge.call(this),G?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&G?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cn.isPM=function(G){return"p"===(G+"").toLowerCase().charAt(0)},Cn.meridiem=function(G,Z,ne){return G>11?ne?"pm":"PM":ne?"am":"AM"},Ma("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(G){var Z=G%10;return G+(1===T(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}}),c.lang=D("moment.lang is deprecated. Use moment.locale instead.",Ma),c.langData=D("moment.langData is deprecated. Use moment.localeData instead.",oa);var On=Math.abs;function An(G,Z,ne,ie){var se=Ca(Z,ne);return G._milliseconds+=ie*se._milliseconds,G._days+=ie*se._days,G._months+=ie*se._months,G._bubble()}function fn(G){return G<0?Math.floor(G):Math.ceil(G)}function zn(G){return 4800*G/146097}function hn(G){return 146097*G/4800}function Yn(G){return function(){return this.as(G)}}var Mn=Yn("ms"),kn=Yn("s"),xn=Yn("m"),Tn=Yn("h"),Dn=Yn("d"),En=Yn("w"),jn=Yn("M"),Pn=Yn("Q"),Nn=Yn("y");function Sn(G){return function(){return this.isValid()?this._data[G]:NaN}}var qn=Sn("milliseconds"),Wn=Sn("seconds"),Bn=Sn("minutes"),Hn=Sn("hours"),$n=Sn("days"),Vn=Sn("months"),Un=Sn("years"),Kn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11};function Rn(G,Z,ne,ie,se){return se.relativeTime(Z||1,!!ne,G,ie)}var Gn=Math.abs;function Fn(G){return(G>0)-(G<0)||+G}function In(){if(!this.isValid())return this.localeData().invalidDate();var G,Z,ne=Gn(this._milliseconds)/1e3,ie=Gn(this._days),se=Gn(this._months);G=Y(ne/60),Z=Y(G/60),ne%=60,G%=60;var ce=Y(se/12),fe=se%=12,me=ie,ge=Z,Ce=G,Se=ne?ne.toFixed(3).replace(/\.?0+$/,""):"",Me=this.asSeconds();if(!Me)return"P0D";var ke=Me<0?"-":"",xe=Fn(this._months)!==Fn(Me)?"-":"",De=Fn(this._days)!==Fn(Me)?"-":"",Ie=Fn(this._milliseconds)!==Fn(Me)?"-":"";return ke+"P"+(ce?xe+ce+"Y":"")+(fe?xe+fe+"M":"")+(me?De+me+"D":"")+(ge||Ce||Se?"T":"")+(ge?Ie+ge+"H":"")+(Ce?Ie+Ce+"M":"")+(Se?Ie+Se+"S":"")}var Zn=Na.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var G=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),G.milliseconds=On(G.milliseconds),G.seconds=On(G.seconds),G.minutes=On(G.minutes),G.hours=On(G.hours),G.months=On(G.months),G.years=On(G.years),this},Zn.add=function(G,Z){return An(this,G,Z,1)},Zn.subtract=function(G,Z){return An(this,G,Z,-1)},Zn.as=function(G){if(!this.isValid())return NaN;var Z,ne,ie=this._milliseconds;if("month"===(G=B(G))||"quarter"===G||"year"===G)switch(Z=this._days+ie/864e5,ne=this._months+zn(Z),G){case"month":return ne;case"quarter":return ne/3;case"year":return ne/12}else switch(Z=this._days+Math.round(hn(this._months)),G){case"week":return Z/7+ie/6048e5;case"day":return Z+ie/864e5;case"hour":return 24*Z+ie/36e5;case"minute":return 1440*Z+ie/6e4;case"second":return 86400*Z+ie/1e3;case"millisecond":return Math.floor(864e5*Z)+ie;default:throw new Error("Unknown unit "+G)}},Zn.asMilliseconds=Mn,Zn.asSeconds=kn,Zn.asMinutes=xn,Zn.asHours=Tn,Zn.asDays=Dn,Zn.asWeeks=En,Zn.asMonths=jn,Zn.asQuarters=Pn,Zn.asYears=Nn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},Zn._bubble=function(){var G,Z,ne,ie,se,ce=this._milliseconds,fe=this._days,me=this._months,ge=this._data;return ce>=0&&fe>=0&&me>=0||ce<=0&&fe<=0&&me<=0||(ce+=864e5*fn(hn(me)+fe),fe=0,me=0),ge.milliseconds=ce%1e3,G=Y(ce/1e3),ge.seconds=G%60,Z=Y(G/60),ge.minutes=Z%60,ne=Y(Z/60),ge.hours=ne%24,fe+=Y(ne/24),me+=se=Y(zn(fe)),fe-=fn(hn(se)),ie=Y(me/12),me%=12,ge.days=fe,ge.months=me,ge.years=ie,this},Zn.clone=function(){return Ca(this)},Zn.get=function(G){return G=B(G),this.isValid()?this[G+"s"]():NaN},Zn.milliseconds=qn,Zn.seconds=Wn,Zn.minutes=Bn,Zn.hours=Hn,Zn.days=$n,Zn.weeks=function(){return Y(this.days()/7)},Zn.months=Vn,Zn.years=Un,Zn.humanize=function(G){if(!this.isValid())return this.localeData().invalidDate();var Z=this.localeData(),ne=function(G,Z,ne){var ie=Ca(G).abs(),se=Kn(ie.as("s")),ce=Kn(ie.as("m")),fe=Kn(ie.as("h")),me=Kn(ie.as("d")),ge=Kn(ie.as("M")),Ce=Kn(ie.as("y")),Se=se<=Xn.ss&&["s",se]||se0,Se[4]=ne,Rn.apply(null,Se)}(this,!G,Z);return G&&(ne=Z.pastFuture(+this,ne)),Z.postformat(ne)},Zn.toISOString=In,Zn.toString=In,Zn.toJSON=In,Zn.locale=Ka,Zn.localeData=Qa,Zn.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",In),Zn.lang=mn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),de("x",dt),de("X",/[+-]?\d+(\.\d{1,3})?/),le("X",(function(G,Z,ne){ne._d=new Date(1e3*parseFloat(G,10))})),le("x",(function(G,Z,ne){ne._d=new Date(T(G))})),c.version="2.24.0",Z=Oa,c.fn=wn,c.min=function(){var G=[].slice.call(arguments,0);return Wa("isBefore",G)},c.max=function(){var G=[].slice.call(arguments,0);return Wa("isAfter",G)},c.now=function(){return Date.now?Date.now():+new Date},c.utc=m,c.unix=function(G){return Oa(1e3*G)},c.months=function(G,Z){return pn(G,Z,"months")},c.isDate=r,c.locale=Ma,c.invalid=L,c.duration=Ca,c.isMoment=h,c.weekdays=function(G,Z,ne){return Ln(G,Z,ne,"weekdays")},c.parseZone=function(){return Oa.apply(null,arguments).parseZone()},c.localeData=oa,c.isDuration=ga,c.monthsShort=function(G,Z){return pn(G,Z,"monthsShort")},c.weekdaysMin=function(G,Z,ne){return Ln(G,Z,ne,"weekdaysMin")},c.defineLocale=sa,c.updateLocale=function(G,Z){if(null!=Z){var ne,ie,se=zt;null!=(ie=ca(G))&&(se=ie._config),(ne=new S(Z=g(se,Z))).parentLocale=qt[G],qt[G]=ne,Ma(G)}else null!=qt[G]&&(null!=qt[G].parentLocale?qt[G]=qt[G].parentLocale:null!=qt[G]&&delete qt[G]);return qt[G]},c.locales=function(){return fe(qt)},c.weekdaysShort=function(G,Z,ne){return Ln(G,Z,ne,"weekdaysShort")},c.normalizeUnits=B,c.relativeTimeRounding=function(G){return void 0===G?Kn:"function"==typeof G&&(Kn=G,!0)},c.relativeTimeThreshold=function(G,Z){return void 0!==Xn[G]&&(void 0===Z?Xn[G]:(Xn[G]=Z,"s"===G&&(Xn.ss=Z-1),!0))},c.calendarFormat=function(G,Z){var ne=G.diff(Z,"days",!0);return ne<-6?"sameElse":ne<-1?"lastWeek":ne<0?"lastDay":ne<1?"sameDay":ne<2?"nextDay":ne<7?"nextWeek":"sameElse"},c.prototype=wn,c.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},c}()}).call(this,ne(133)(G))},function(G,Z){G.exports=ne(24)},function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(1);function c(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function M(G){for(var Z=1;Z=Z.offsets.length?Z:M(M({},Z),{},{starts:Z.starts.concat([{time:1e3*se,abbr:Z.abbrs[ce],offset:Z.offsets[ce]}])})}(G.substring(1,G.length),ne)}}));var se={name:Z,abbrs:[],offsets:[],untils:[]};if(0===ne.starts.length)return se.abbrs.push(ne.abbrs[0]),se.offsets.push(ne.offsets[0]),se.untils.push(null),se;var ce=ne.starts[0],fe=ne.starts[ne.starts.length-1];return ne.starts.forEach((function(G,Z){G===ce?(se.abbrs.push(fe.abbr),se.offsets.push(fe.offset),se.untils.push(G.time)):(se.abbrs.push(ne.starts[Z-1].abbr),se.offsets.push(ne.starts[Z-1].offset),se.untils.push(G.time)),G===fe&&(se.abbrs.push(G.abbr),se.offsets.push(G.offset),se.untils.push(null))})),se}},function(G,Z){G.exports=ne(695)},function(G,Z,ne){!function(G){"use strict";G.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(G){return/^nm$/i.test(G)},meridiem:function(G,Z,ne){return G<12?ne?"vm":"VM":ne?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},t=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},ie={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},M=function(G){return function(Z,ne,se,ce){var fe=t(Z),me=ie[G][t(Z)];return 2===fe&&(me=me[ne?0:1]),me.replace(/%d/i,Z)}},se=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];G.defineLocale("ar",{months:se,monthsShort:se,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},ne={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},c=function(G){return function(Z,ie,se,ce){var fe=n(Z),me=ne[G][n(Z)];return 2===fe&&(me=me[ie?0:1]),me.replace(/%d/i,Z)}},ie=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];G.defineLocale("ar-ly",{months:ie,monthsShort:ie,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:c("s"),ss:c("s"),m:c("m"),mm:c("m"),h:c("h"),hh:c("h"),d:c("d"),dd:c("d"),M:c("M"),MM:c("M"),y:c("y"),yy:c("y")},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};G.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(G){return"م"===G},meridiem:function(G,Z,ne){return G<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};G.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(G){return/^(gündüz|axşam)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"gecə":G<12?"səhər":G<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(G){if(0===G)return G+"-ıncı";var ne=G%10;return G+(Z[ne]||Z[G%100-ne]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"хвіліна":"хвіліну":"h"===ne?Z?"гадзіна":"гадзіну":G+" "+(ie=+G,se={ss:Z?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:Z?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:Z?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}G.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:a,mm:a,h:a,hh:a,d:"дзень",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(G){return/^(дня|вечара)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночы":G<12?"раніцы":G<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return G%10!=2&&G%10!=3||G%100==12||G%100==13?G+"-ы":G+"-і";case"D":return G+"-га";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(G){var Z=G%10,ne=G%100;return 0===G?G+"-ев":0===ne?G+"-ен":ne>10&&ne<20?G+"-ти":1===Z?G+"-ви":2===Z?G+"-ри":7===Z||8===Z?G+"-ми":G+"-ти"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},ne={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};G.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(G){return G.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(G,Z){return 12===G&&(G=0),"রাত"===Z&&G>=4||"দুপুর"===Z&&G<5||"বিকাল"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"রাত":G<10?"সকাল":G<17?"দুপুর":G<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},ne={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};G.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(G){return G.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"མཚན་མོ"===Z&&G>=4||"ཉིན་གུང"===Z&&G<5||"དགོང་དག"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"མཚན་མོ":G<10?"ཞོགས་ཀས":G<17?"ཉིན་གུང":G<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){return G+" "+function(G,Z){return 2===Z?function(G){var Z={m:"v",b:"v",d:"z"};return void 0===Z[G.charAt(0)]?G:Z[G.charAt(0)]+G.substring(1)}(G):G}({mm:"munutenn",MM:"miz",dd:"devezh"}[ne],G)}G.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:a,h:"un eur",hh:"%d eur",d:"un devezh",dd:a,M:"ur miz",MM:a,y:"ur bloaz",yy:function(G){switch(function e(G){return G>9?e(G%10):G}(G)){case 1:case 3:case 4:case 5:case 9:return G+" bloaz";default:return G+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(G){return G+(1===G?"añ":"vet")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(1===G?"sekunda":2===G||3===G||4===G?"sekunde":"sekundi");case"m":return Z?"jedna minuta":"jedne minute";case"mm":return ie+(1===G?"minuta":2===G||3===G||4===G?"minute":"minuta");case"h":return Z?"jedan sat":"jednog sata";case"hh":return ie+(1===G?"sat":2===G||3===G||4===G?"sata":"sati");case"dd":return ie+(1===G?"dan":"dana");case"MM":return ie+(1===G?"mjesec":2===G||3===G||4===G?"mjeseca":"mjeseci");case"yy":return ie+(1===G?"godina":2===G||3===G||4===G?"godine":"godina")}}G.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(G,Z){var ne=1===G?"r":2===G?"n":3===G?"r":4===G?"t":"è";return"w"!==Z&&"W"!==Z||(ne="a"),G+ne},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),ne="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),ie=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],se=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function M(G){return G>1&&G<5&&1!=~~(G/10)}function s(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"pár sekund":"pár sekundami";case"ss":return Z||ie?se+(M(G)?"sekundy":"sekund"):se+"sekundami";case"m":return Z?"minuta":ie?"minutu":"minutou";case"mm":return Z||ie?se+(M(G)?"minuty":"minut"):se+"minutami";case"h":return Z?"hodina":ie?"hodinu":"hodinou";case"hh":return Z||ie?se+(M(G)?"hodiny":"hodin"):se+"hodinami";case"d":return Z||ie?"den":"dnem";case"dd":return Z||ie?se+(M(G)?"dny":"dní"):se+"dny";case"M":return Z||ie?"měsíc":"měsícem";case"MM":return Z||ie?se+(M(G)?"měsíce":"měsíců"):se+"měsíci";case"y":return Z||ie?"rok":"rokem";case"yy":return Z||ie?se+(M(G)?"roky":"let"):se+"lety"}}G.defineLocale("cs",{months:Z,monthsShort:ne,monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(G){return G+(/сехет$/i.exec(G)?"рен":/ҫул$/i.exec(G)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(G){var Z="";return G>20?Z=40===G||50===G||60===G||80===G||100===G?"fed":"ain":G>0&&(Z=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][G]),G+Z},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[G+" Tage",G+" Tagen"],M:["ein Monat","einem Monat"],MM:[G+" Monate",G+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[G+" Jahre",G+" Jahren"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],ne=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];G.defineLocale("dv",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(G){return"މފ"===G},meridiem:function(G,Z,ne){return G<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:7,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(G,Z){return G?"string"==typeof Z&&/D/.test(Z.substring(0,Z.indexOf("MMMM")))?this._monthsGenitiveEl[G.month()]:this._monthsNominativeEl[G.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(G,Z,ne){return G>11?ne?"μμ":"ΜΜ":ne?"πμ":"ΠΜ"},isPM:function(G){return"μ"===(G+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(G,Z){var ne,ie=this._calendarEl[G],se=Z&&Z.hours();return((ne=ie)instanceof Function||"[object Function]"===Object.prototype.toString.call(ne))&&(ie=ie.apply(Z)),ie.replace("{}",se%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(G){return"p"===G.charAt(0).toLowerCase()},meridiem:function(G,Z,ne){return G>11?ne?"p.t.m.":"P.T.M.":ne?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ne="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),ie=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],se=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;G.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[G+"sekundi",G+"sekundit"],m:["ühe minuti","üks minut"],mm:[G+" minuti",G+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[G+" tunni",G+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[G+" kuu",G+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[G+" aasta",G+" aastat"]};return Z?se[ne][2]?se[ne][2]:se[ne][1]:ie?se[ne][0]:se[ne][1]}G.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:"%d päeva",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},ne={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};G.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(G){return/بعد از ظهر/.test(G)},meridiem:function(G,Z,ne){return G<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(G){return G.replace(/[۰-۹]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),ne=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",Z[7],Z[8],Z[9]];function t(G,ie,se,ce){var fe="";switch(se){case"s":return ce?"muutaman sekunnin":"muutama sekunti";case"ss":return ce?"sekunnin":"sekuntia";case"m":return ce?"minuutin":"minuutti";case"mm":fe=ce?"minuutin":"minuuttia";break;case"h":return ce?"tunnin":"tunti";case"hh":fe=ce?"tunnin":"tuntia";break;case"d":return ce?"päivän":"päivä";case"dd":fe=ce?"päivän":"päivää";break;case"M":return ce?"kuukauden":"kuukausi";case"MM":fe=ce?"kuukauden":"kuukautta";break;case"y":return ce?"vuoden":"vuosi";case"yy":fe=ce?"vuoden":"vuotta"}return function(G,ie){return G<10?ie?ne[G]:Z[G]:G}(G,ce)+" "+fe}G.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(G,Z){switch(Z){case"D":return G+(1===G?"er":"");default:case"M":case"Q":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(G,Z){switch(Z){default:case"M":case"Q":case"D":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(G,Z){switch(Z){default:case"M":case"Q":case"D":case"DDD":case"d":return G+(1===G?"er":"e");case"w":case"W":return G+(1===G?"re":"e")}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),ne="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");G.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(G){return 0===G.indexOf("un")?"n"+G:"en "+G},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["thodde secondanim","thodde second"],ss:[G+" secondanim",G+" second"],m:["eka mintan","ek minute"],mm:[G+" mintanim",G+" mintam"],h:["eka voran","ek vor"],hh:[G+" voranim",G+" voram"],d:["eka disan","ek dis"],dd:[G+" disanim",G+" dis"],M:["eka mhoinean","ek mhoino"],MM:[G+" mhoineanim",G+" mhoine"],y:["eka vorsan","ek voros"],yy:[G+" vorsanim",G+" vorsam"]};return Z?se[ne][0]:se[ne][1]}G.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(G,Z){switch(Z){case"D":return G+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return G}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(G,Z){return 12===G&&(G=0),"rati"===Z?G<4?G:G+12:"sokalli"===Z?G:"donparam"===Z?G>12?G:G+12:"sanje"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"rati":G<12?"sokalli":G<16?"donparam":G<20?"sanje":"rati"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},ne={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};G.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(G){return G.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"રાત"===Z?G<4?G:G+12:"સવાર"===Z?G:"બપોર"===Z?G>=10?G:G+12:"સાંજ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"રાત":G<10?"સવાર":G<17?"બપોર":G<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(G){return 2===G?"שעתיים":G+" שעות"},d:"יום",dd:function(G){return 2===G?"יומיים":G+" ימים"},M:"חודש",MM:function(G){return 2===G?"חודשיים":G+" חודשים"},y:"שנה",yy:function(G){return 2===G?"שנתיים":G%10==0&&10!==G?G+" שנה":G+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(G){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(G)},meridiem:function(G,Z,ne){return G<5?"לפנות בוקר":G<10?"בבוקר":G<12?ne?'לפנה"צ':"לפני הצהריים":G<18?ne?'אחה"צ':"אחרי הצהריים":"בערב"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};G.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(G,Z){return 12===G&&(G=0),"रात"===Z?G<4?G:G+12:"सुबह"===Z?G:"दोपहर"===Z?G>=10?G:G+12:"शाम"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"रात":G<10?"सुबह":G<17?"दोपहर":G<20?"शाम":"रात"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(1===G?"sekunda":2===G||3===G||4===G?"sekunde":"sekundi");case"m":return Z?"jedna minuta":"jedne minute";case"mm":return ie+(1===G?"minuta":2===G||3===G||4===G?"minute":"minuta");case"h":return Z?"jedan sat":"jednog sata";case"hh":return ie+(1===G?"sat":2===G||3===G||4===G?"sata":"sati");case"dd":return ie+(1===G?"dan":"dana");case"MM":return ie+(1===G?"mjesec":2===G||3===G||4===G?"mjeseca":"mjeseci");case"yy":return ie+(1===G?"godina":2===G||3===G||4===G?"godine":"godina")}}G.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:a,m:a,mm:a,h:a,hh:a,d:"dan",dd:a,M:"mjesec",MM:a,y:"godinu",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(G,Z,ne,ie){var se=G;switch(ne){case"s":return ie||Z?"néhány másodperc":"néhány másodperce";case"ss":return se+(ie||Z)?" másodperc":" másodperce";case"m":return"egy"+(ie||Z?" perc":" perce");case"mm":return se+(ie||Z?" perc":" perce");case"h":return"egy"+(ie||Z?" óra":" órája");case"hh":return se+(ie||Z?" óra":" órája");case"d":return"egy"+(ie||Z?" nap":" napja");case"dd":return se+(ie||Z?" nap":" napja");case"M":return"egy"+(ie||Z?" hónap":" hónapja");case"MM":return se+(ie||Z?" hónap":" hónapja");case"y":return"egy"+(ie||Z?" év":" éve");case"yy":return se+(ie||Z?" év":" éve")}return""}function t(G){return(G?"":"[múlt] ")+"["+Z[this.day()]+"] LT[-kor]"}G.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(G){return"u"===G.charAt(1).toLowerCase()},meridiem:function(G,Z,ne){return G<12?!0===ne?"de":"DE":!0===ne?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return t.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return t.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(G){return/^(ցերեկվա|երեկոյան)$/.test(G)},meridiem:function(G){return G<4?"գիշերվա":G<12?"առավոտվա":G<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(G,Z){switch(Z){case"DDD":case"w":case"W":case"DDDo":return 1===G?G+"-ին":G+"-րդ";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"siang"===Z?G>=11?G:G+12:"sore"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"siang":G<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G){return G%100==11||G%10!=1}function n(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return a(G)?se+(Z||ie?"sekúndur":"sekúndum"):se+"sekúnda";case"m":return Z?"mínúta":"mínútu";case"mm":return a(G)?se+(Z||ie?"mínútur":"mínútum"):Z?se+"mínúta":se+"mínútu";case"hh":return a(G)?se+(Z||ie?"klukkustundir":"klukkustundum"):se+"klukkustund";case"d":return Z?"dagur":ie?"dag":"degi";case"dd":return a(G)?Z?se+"dagar":se+(ie?"daga":"dögum"):Z?se+"dagur":se+(ie?"dag":"degi");case"M":return Z?"mánuður":ie?"mánuð":"mánuði";case"MM":return a(G)?Z?se+"mánuðir":se+(ie?"mánuði":"mánuðum"):Z?se+"mánuður":se+(ie?"mánuð":"mánuði");case"y":return Z||ie?"ár":"ári";case"yy":return a(G)?se+(Z||ie?"ár":"árum"):se+(Z||ie?"ár":"ári")}}G.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(G){return(/^[0-9].+$/.test(G)?"tra":"in")+" "+G},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(G){return(/^[0-9].+$/.test(G)?"tra":"in")+" "+G},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(G){return"午後"===G},meridiem:function(G,Z,ne){return G<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(G){return G.week()=11?G:G+12:"sonten"===Z||"ndalu"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"enjing":G<15?"siyang":G<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(G){return/(წამი|წუთი|საათი|წელი)/.test(G)?G.replace(/ი$/,"ში"):G+"ში"},past:function(G){return/(წამი|წუთი|საათი|დღე|თვე)/.test(G)?G.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(G)?G.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(G){return 0===G?G:1===G?G+"-ლი":G<20||G<=100&&G%20==0||G%100==0?"მე-"+G:G+"-ე"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};G.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},ne={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};G.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(G){return"ល្ងាច"===G},meridiem:function(G,Z,ne){return G<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(G){return G.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},ne={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};G.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(G){return G.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"ರಾತ್ರಿ"===Z?G<4?G:G+12:"ಬೆಳಿಗ್ಗೆ"===Z?G:"ಮಧ್ಯಾಹ್ನ"===Z?G>=10?G:G+12:"ಸಂಜೆ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"ರಾತ್ರಿ":G<10?"ಬೆಳಿಗ್ಗೆ":G<17?"ಮಧ್ಯಾಹ್ನ":G<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(G){return G+"ನೇ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"일";case"M":return G+"월";case"w":case"W":return G+"주";default:return G}},meridiemParse:/오전|오후/,isPM:function(G){return"오후"===G},meridiem:function(G,Z,ne){return G<12?"오전":"오후"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},ne={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},ie=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];G.defineLocale("ku",{months:ie,monthsShort:ie,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(G){return/ئێواره‌/.test(G)},meridiem:function(G,Z,ne){return G<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(G){return G.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(G){return ne[G]})).replace(/،/g,",")},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};G.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?se[ne][0]:se[ne][1]}function n(G){if(G=parseInt(G,10),isNaN(G))return!1;if(G<0)return!0;if(G<10)return 4<=G&&G<=7;if(G<100){var Z=G%10;return n(0===Z?G/10:Z)}if(G<1e4){for(;G>=10;)G/=10;return n(G)}return n(G/=1e3)}G.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(G){return n(G.substr(0,G.indexOf(" ")))?"a "+G:"an "+G},past:function(G){return n(G.substr(0,G.indexOf(" ")))?"viru "+G:"virun "+G},s:"e puer Sekonnen",ss:"%d Sekonnen",m:a,mm:"%d Minutten",h:a,hh:"%d Stonnen",d:a,dd:"%d Deeg",M:a,MM:"%d Méint",y:a,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(G){return"ຕອນແລງ"===G},meridiem:function(G,Z,ne){return G<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(G){return"ທີ່"+G}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(G,Z,ne,ie){return Z?c(ne)[0]:ie?c(ne)[1]:c(ne)[2]}function t(G){return G%10==0||G>10&&G<20}function c(G){return Z[G].split("_")}function M(G,Z,ne,ie){var se=G+" ";return 1===G?se+n(0,Z,ne[0],ie):Z?se+(t(G)?c(ne)[1]:c(ne)[0]):ie?se+c(ne)[1]:se+(t(G)?c(ne)[1]:c(ne)[2])}G.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(G,Z,ne,ie){return Z?"kelios sekundės":ie?"kelių sekundžių":"kelias sekundes"},ss:M,m:n,mm:M,h:n,hh:M,d:n,dd:M,M:n,MM:M,y:n,yy:M},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(G){return G+"-oji"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(G,Z,ne){return ne?Z%10==1&&Z%100!=11?G[2]:G[3]:Z%10==1&&Z%100!=11?G[0]:G[1]}function t(G,ne,ie){return G+" "+n(Z[ie],G,ne)}function c(G,ne,ie){return n(Z[ie],G,ne)}G.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(G,Z){return Z?"dažas sekundes":"dažām sekundēm"},ss:t,m:c,mm:t,h:c,hh:t,d:c,dd:t,M:c,MM:t,y:c,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"dan",dd:Z.translate,M:"mjesec",MM:Z.translate,y:"godinu",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(G){var Z=G%10,ne=G%100;return 0===G?G+"-ев":0===ne?G+"-ен":ne>10&&ne<20?G+"-ти":1===Z?G+"-ви":2===Z?G+"-ри":7===Z||8===Z?G+"-ми":G+"-ти"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(G,Z){return 12===G&&(G=0),"രാത്രി"===Z&&G>=4||"ഉച്ച കഴിഞ്ഞ്"===Z||"വൈകുന്നേരം"===Z?G+12:G},meridiem:function(G,Z,ne){return G<4?"രാത്രി":G<12?"രാവിലെ":G<17?"ഉച്ച കഴിഞ്ഞ്":G<20?"വൈകുന്നേരം":"രാത്രി"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){switch(ne){case"s":return Z?"хэдхэн секунд":"хэдхэн секундын";case"ss":return G+(Z?" секунд":" секундын");case"m":case"mm":return G+(Z?" минут":" минутын");case"h":case"hh":return G+(Z?" цаг":" цагийн");case"d":case"dd":return G+(Z?" өдөр":" өдрийн");case"M":case"MM":return G+(Z?" сар":" сарын");case"y":case"yy":return G+(Z?" жил":" жилийн");default:return G}}G.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(G){return"ҮХ"===G},meridiem:function(G,Z,ne){return G<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+" өдөр";default:return G}}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function t(G,Z,ne,ie){var se="";if(Z)switch(ne){case"s":se="काही सेकंद";break;case"ss":se="%d सेकंद";break;case"m":se="एक मिनिट";break;case"mm":se="%d मिनिटे";break;case"h":se="एक तास";break;case"hh":se="%d तास";break;case"d":se="एक दिवस";break;case"dd":se="%d दिवस";break;case"M":se="एक महिना";break;case"MM":se="%d महिने";break;case"y":se="एक वर्ष";break;case"yy":se="%d वर्षे"}else switch(ne){case"s":se="काही सेकंदां";break;case"ss":se="%d सेकंदां";break;case"m":se="एका मिनिटा";break;case"mm":se="%d मिनिटां";break;case"h":se="एका तासा";break;case"hh":se="%d तासां";break;case"d":se="एका दिवसा";break;case"dd":se="%d दिवसां";break;case"M":se="एका महिन्या";break;case"MM":se="%d महिन्यां";break;case"y":se="एका वर्षा";break;case"yy":se="%d वर्षां"}return se.replace(/%d/i,G)}G.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(G,Z){return 12===G&&(G=0),"रात्री"===Z?G<4?G:G+12:"सकाळी"===Z?G:"दुपारी"===Z?G>=10?G:G+12:"सायंकाळी"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"रात्री":G<10?"सकाळी":G<17?"दुपारी":G<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"tengahari"===Z?G>=11?G:G+12:"petang"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"tengahari":G<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(G,Z){return 12===G&&(G=0),"pagi"===Z?G:"tengahari"===Z?G>=11?G:G+12:"petang"===Z||"malam"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<11?"pagi":G<15?"tengahari":G<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},ne={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};G.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(G){return G.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ne={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};G.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(G){return G.replace(/[१२३४५६७८९०]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"राति"===Z?G<4?G:G+12:"बिहान"===Z?G:"दिउँसो"===Z?G>=10?G:G+12:"साँझ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<3?"राति":G<12?"बिहान":G<16?"दिउँसो":G<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),ne="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ie=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],se=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;G.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),ne="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ie=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],se=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;G.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(G,ie){return G?/-MMM-/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsRegex:se,monthsShortRegex:se,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:ie,longMonthsParse:ie,shortMonthsParse:ie,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(G){return G+(1===G||8===G||G>=20?"ste":"de")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},ne={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};G.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(G){return G.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"ਰਾਤ"===Z?G<4?G:G+12:"ਸਵੇਰ"===Z?G:"ਦੁਪਹਿਰ"===Z?G>=10?G:G+12:"ਸ਼ਾਮ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"ਰਾਤ":G<10?"ਸਵੇਰ":G<17?"ਦੁਪਹਿਰ":G<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),ne="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function t(G){return G%10<5&&G%10>1&&~~(G/10)%10!=1}function c(G,Z,ne){var ie=G+" ";switch(ne){case"ss":return ie+(t(G)?"sekundy":"sekund");case"m":return Z?"minuta":"minutę";case"mm":return ie+(t(G)?"minuty":"minut");case"h":return Z?"godzina":"godzinę";case"hh":return ie+(t(G)?"godziny":"godzin");case"MM":return ie+(t(G)?"miesiące":"miesięcy");case"yy":return ie+(t(G)?"lata":"lat")}}G.defineLocale("pl",{months:function(G,ie){return G?""===ie?"("+ne[G.month()]+"|"+Z[G.month()]+")":/D MMMM/.test(ie)?ne[G.month()]:Z[G.month()]:Z},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:c,m:c,mm:c,h:c,hh:c,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:c,y:"rok",yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie=" ";return(G%100>=20||G>=100&&G%100==0)&&(ie=" de "),G+ie+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[ne]}G.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:a,m:"un minut",mm:a,h:"o oră",hh:a,d:"o zi",dd:a,M:"o lună",MM:a,y:"un an",yy:a},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"минута":"минуту":G+" "+(ie=+G,se={ss:Z?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:Z?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}var Z=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];G.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Z,longMonthsParse:Z,shortMonthsParse:Z,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(G){if(G.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(G){if(G.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:a,m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(G){return/^(дня|вечера)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночи":G<12?"утра":G<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":return G+"-й";case"D":return G+"-го";case"w":case"W":return G+"-я";default:return G}},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],ne=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];G.defineLocale("sd",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:ne,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(G){return"شام"===G},meridiem:function(G,Z,ne){return G<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(G){return G+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(G){return"ප.ව."===G||"පස් වරු"===G},meridiem:function(G,Z,ne){return G>11?ne?"ප.ව.":"පස් වරු":ne?"පෙ.ව.":"පෙර වරු"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),ne="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function t(G){return G>1&&G<5}function c(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"pár sekúnd":"pár sekundami";case"ss":return Z||ie?se+(t(G)?"sekundy":"sekúnd"):se+"sekundami";case"m":return Z?"minúta":ie?"minútu":"minútou";case"mm":return Z||ie?se+(t(G)?"minúty":"minút"):se+"minútami";case"h":return Z?"hodina":ie?"hodinu":"hodinou";case"hh":return Z||ie?se+(t(G)?"hodiny":"hodín"):se+"hodinami";case"d":return Z||ie?"deň":"dňom";case"dd":return Z||ie?se+(t(G)?"dni":"dní"):se+"dňami";case"M":return Z||ie?"mesiac":"mesiacom";case"MM":return Z||ie?se+(t(G)?"mesiace":"mesiacov"):se+"mesiacmi";case"y":return Z||ie?"rok":"rokom";case"yy":return Z||ie?se+(t(G)?"roky":"rokov"):se+"rokmi"}}G.defineLocale("sk",{months:Z,monthsShort:ne,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:c,ss:c,m:c,mm:c,h:c,hh:c,d:c,dd:c,M:c,MM:c,y:c,yy:c},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se=G+" ";switch(ne){case"s":return Z||ie?"nekaj sekund":"nekaj sekundami";case"ss":return se+(1===G?Z?"sekundo":"sekundi":2===G?Z||ie?"sekundi":"sekundah":G<5?Z||ie?"sekunde":"sekundah":"sekund");case"m":return Z?"ena minuta":"eno minuto";case"mm":return se+(1===G?Z?"minuta":"minuto":2===G?Z||ie?"minuti":"minutama":G<5?Z||ie?"minute":"minutami":Z||ie?"minut":"minutami");case"h":return Z?"ena ura":"eno uro";case"hh":return se+(1===G?Z?"ura":"uro":2===G?Z||ie?"uri":"urama":G<5?Z||ie?"ure":"urami":Z||ie?"ur":"urami");case"d":return Z||ie?"en dan":"enim dnem";case"dd":return se+(1===G?Z||ie?"dan":"dnem":2===G?Z||ie?"dni":"dnevoma":Z||ie?"dni":"dnevi");case"M":return Z||ie?"en mesec":"enim mesecem";case"MM":return se+(1===G?Z||ie?"mesec":"mesecem":2===G?Z||ie?"meseca":"mesecema":G<5?Z||ie?"mesece":"meseci":Z||ie?"mesecev":"meseci");case"y":return Z||ie?"eno leto":"enim letom";case"yy":return se+(1===G?Z||ie?"leto":"letom":2===G?Z||ie?"leti":"letoma":G<5?Z||ie?"leta":"leti":Z||ie?"let":"leti")}}G.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(G){return"M"===G.charAt(0)},meridiem:function(G,Z,ne){return G<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"dan",dd:Z.translate,M:"mesec",MM:Z.translate,y:"godinu",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(G,Z){return 1===G?Z[0]:G>=2&&G<=4?Z[1]:Z[2]},translate:function(G,ne,ie){var se=Z.words[ie];return 1===ie.length?ne?se[0]:se[1]:G+" "+Z.correctGrammaticalCase(G,se)}};G.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:Z.translate,m:Z.translate,mm:Z.translate,h:Z.translate,hh:Z.translate,d:"дан",dd:Z.translate,M:"месец",MM:Z.translate,y:"годину",yy:Z.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(G,Z,ne){return G<11?"ekuseni":G<15?"emini":G<19?"entsambama":"ebusuku"},meridiemHour:function(G,Z){return 12===G&&(G=0),"ekuseni"===Z?G:"emini"===Z?G>=11?G:G+12:"entsambama"===Z||"ebusuku"===Z?0===G?0:G+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"e":1===Z||2===Z?"a":"e")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},ne={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};G.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(G){return G+"வது"},preparse:function(G){return G.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(G){return ne[G]}))},postformat:function(G){return G.replace(/\d/g,(function(G){return Z[G]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(G,Z,ne){return G<2?" யாமம்":G<6?" வைகறை":G<10?" காலை":G<14?" நண்பகல்":G<18?" எற்பாடு":G<22?" மாலை":" யாமம்"},meridiemHour:function(G,Z){return 12===G&&(G=0),"யாமம்"===Z?G<2?G:G+12:"வைகறை"===Z||"காலை"===Z||"நண்பகல்"===Z&&G>=10?G:G+12},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(G,Z){return 12===G&&(G=0),"రాత్రి"===Z?G<4?G:G+12:"ఉదయం"===Z?G:"మధ్యాహ్నం"===Z?G>=10?G:G+12:"సాయంత్రం"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"రాత్రి":G<10?"ఉదయం":G<17?"మధ్యాహ్నం":G<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};G.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"шаб"===Z?G<4?G:G+12:"субҳ"===Z?G:"рӯз"===Z?G>=11?G:G+12:"бегоҳ"===Z?G+12:void 0},meridiem:function(G,Z,ne){return G<4?"шаб":G<11?"субҳ":G<16?"рӯз":G<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(G){return G+(Z[G]||Z[G%10]||Z[G>=100?100:null])},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(G){return"หลังเที่ยง"===G},meridiem:function(G,Z,ne){return G<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(G){return G},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(G,ne,ie,se){var ce=function(G){var ne=Math.floor(G%1e3/100),ie=Math.floor(G%100/10),se=G%10,ce="";return ne>0&&(ce+=Z[ne]+"vatlh"),ie>0&&(ce+=(""!==ce?" ":"")+Z[ie]+"maH"),se>0&&(ce+=(""!==ce?" ":"")+Z[se]),""===ce?"pagh":ce}(G);switch(ie){case"ss":return ce+" lup";case"mm":return ce+" tup";case"hh":return ce+" rep";case"dd":return ce+" jaj";case"MM":return ce+" jar";case"yy":return ce+" DIS"}}G.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(G){var Z=G;return-1!==G.indexOf("jaj")?Z.slice(0,-3)+"leS":-1!==G.indexOf("jar")?Z.slice(0,-3)+"waQ":-1!==G.indexOf("DIS")?Z.slice(0,-3)+"nem":Z+" pIq"},past:function(G){var Z=G;return-1!==G.indexOf("jaj")?Z.slice(0,-3)+"Hu’":-1!==G.indexOf("jar")?Z.slice(0,-3)+"wen":-1!==G.indexOf("DIS")?Z.slice(0,-3)+"ben":Z+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};G.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(G,ne){switch(ne){case"d":case"D":case"Do":case"DD":return G;default:if(0===G)return G+"'ıncı";var ie=G%10;return G+(Z[ie]||Z[G%100-ie]||Z[G>=100?100:null])}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne,ie){var se={s:["viensas secunds","'iensas secunds"],ss:[G+" secunds",G+" secunds"],m:["'n míut","'iens míut"],mm:[G+" míuts",G+" míuts"],h:["'n þora","'iensa þora"],hh:[G+" þoras",G+" þoras"],d:["'n ziua","'iensa ziua"],dd:[G+" ziuas",G+" ziuas"],M:["'n mes","'iens mes"],MM:[G+" mesen",G+" mesen"],y:["'n ar","'iens ar"],yy:[G+" ars",G+" ars"]};return ie||Z?se[ne][0]:se[ne][1]}G.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(G){return"d'o"===G.toLowerCase()},meridiem:function(G,Z,ne){return G>11?ne?"d'o":"D'O":ne?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(G,Z){return 12===G&&(G=0),"يېرىم كېچە"===Z||"سەھەر"===Z||"چۈشتىن بۇرۇن"===Z?G:"چۈشتىن كېيىن"===Z||"كەچ"===Z?G+12:G>=11?G:G+12},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"يېرىم كېچە":ie<900?"سەھەر":ie<1130?"چۈشتىن بۇرۇن":ie<1230?"چۈش":ie<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"-كۈنى";case"w":case"W":return G+"-ھەپتە";default:return G}},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";function a(G,Z,ne){var ie,se;return"m"===ne?Z?"хвилина":"хвилину":"h"===ne?Z?"година":"годину":G+" "+(ie=+G,se={ss:Z?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:Z?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:Z?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[ne].split("_"),ie%10==1&&ie%100!=11?se[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?se[1]:se[2])}function n(G){return function(){return G+"о"+(11===this.hours()?"б":"")+"] LT"}}G.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(G,Z){var ne={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===G?ne.nominative.slice(1,7).concat(ne.nominative.slice(0,1)):G?ne[/(\[[ВвУу]\]) ?dddd/.test(Z)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][G.day()]:ne.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:a,m:a,mm:a,h:"годину",hh:a,d:"день",dd:a,M:"місяць",MM:a,y:"рік",yy:a},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(G){return/^(дня|вечора)$/.test(G)},meridiem:function(G,Z,ne){return G<4?"ночі":G<12?"ранку":G<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(G,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return G+"-й";case"D":return G+"-го";default:return G}},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";var Z=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],ne=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];G.defineLocale("ur",{months:Z,monthsShort:Z,weekdays:ne,weekdaysShort:ne,weekdaysMin:ne,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(G){return"شام"===G},meridiem:function(G,Z,ne){return G<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(G){return G.replace(/،/g,",")},postformat:function(G){return G.replace(/,/g,"،")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(G){return/^ch$/i.test(G)},meridiem:function(G,Z,ne){return G<12?ne?"sa":"SA":ne?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(G){return G},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(G){var Z=G%10;return G+(1==~~(G%100/10)?"th":1===Z?"st":2===Z?"nd":3===Z?"rd":"th")},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"下午"===Z||"晚上"===Z?G+12:G>=11?G:G+12},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"周";default:return G}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"中午"===Z?G>=11?G:G+12:"下午"===Z||"晚上"===Z?G+12:void 0},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"週";default:return G}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(ne(0))},function(G,Z,ne){!function(G){"use strict";G.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(G,Z){return 12===G&&(G=0),"凌晨"===Z||"早上"===Z||"上午"===Z?G:"中午"===Z?G>=11?G:G+12:"下午"===Z||"晚上"===Z?G+12:void 0},meridiem:function(G,Z,ne){var ie=100*G+Z;return ie<600?"凌晨":ie<900?"早上":ie<1130?"上午":ie<1230?"中午":ie<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(G,Z){switch(Z){case"d":case"D":case"DDD":return G+"日";case"M":return G+"月";case"w":case"W":return G+"週";default:return G}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(ne(0))},function(G,Z,ne){var ie,se,ce;//! moment-timezone.js //! version : 0.5.28 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !function(fe,me){"use strict";G.exports?G.exports=me(ne(0)):(se=[ne(0)],void 0===(ce="function"==typeof(ie=me)?ie.apply(Z,se):ie)||(G.exports=ce))}(0,(function(G){"use strict";var Z,ne={},ie={},se={},ce={},fe={};G&&"string"==typeof G.version||q("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var me=G.version.split("."),ge=+me[0],Ce=+me[1];function d(G){return G>96?G-87:G>64?G-29:G-48}function _(G){var Z=0,ne=G.split("."),ie=ne[0],se=ne[1]||"",ce=1,fe=0,me=1;for(45===G.charCodeAt(0)&&(Z=1,me=-1);Z= 2.6.0. You are using Moment.js "+G.version+". See momentjs.com"),p.prototype={_set:function(G){this.name=G.name,this.abbrs=G.abbrs,this.untils=G.untils,this.offsets=G.offsets,this.population=G.population},_index:function(G){var Z,ne=+G,ie=this.untils;for(Z=0;Zie&&N.moveInvalidForward&&(Z=ie),ce3){var Z=ce[y(G)];if(Z)return Z;q("Moment Timezone found "+G+" from the Intl api, but did not have that data loaded.")}}catch(G){}var ne,ie,se,fe=function(){var G,Z,ne,ie=(new Date).getFullYear()-2,se=new b(new Date(ie,0,1)),ce=[se];for(ne=1;ne<48;ne++)(Z=new b(new Date(ie,ne,1))).offset!==se.offset&&(G=f(se,Z),ce.push(G),ce.push(new b(new Date(G.at+6e4)))),se=Z;for(ne=0;ne<4;ne++)ce.push(new b(new Date(ie+ne,0,1))),ce.push(new b(new Date(ie+ne,6,1)));return ce}(),me=fe.length,ge=Y(fe),Ce=[];for(ie=0;ie0?Ce[0].zone.name:void 0}()),Z},N.names=function(){var G,Z=[];for(G in ce)ce.hasOwnProperty(G)&&(ne[G]||ne[ie[G]])&&ce[G]&&Z.push(ce[G]);return Z.sort()},N.Zone=p,N.unpack=l,N.unpackBase60=_,N.needsOffset=W,N.moveInvalidForward=!0,N.moveAmbiguousForward=!1,N.countries=function(){return Object.keys(se)},N.zonesForCountry=function(G,Z){var ne;if(ne=(ne=G).toUpperCase(),!(G=se[ne]||null))return null;var ie=G.zones.sort();return Z?ie.map((function(G){return{name:G,offset:D(G).utcOffset(new Date)}})):ie};var Se,Me=G.fn;function w(G){return function(){return this._z?this._z.abbr(this):G.call(this)}}function X(G){return function(){return this._z=null,G.apply(this,arguments)}}G.tz=N,G.defaultZone=null,G.updateOffset=function(Z,ne){var ie,se=G.defaultZone;if(void 0===Z._z&&(se&&W(Z)&&!Z._isUTC&&(Z._d=G.utc(Z._a)._d,Z.utc().add(se.parse(Z),"minutes")),Z._z=se),Z._z)if(ie=Z._z.utcOffset(Z),Math.abs(ie)<16&&(ie/=60),void 0!==Z.utcOffset){var ce=Z._z;Z.utcOffset(-ie,ne),Z._z=ce}else Z.zone(ie,ne)},Me.tz=function(Z,ne){if(Z){if("string"!=typeof Z)throw new Error("Time zone name must be a string, got "+Z+" ["+typeof Z+"]");return this._z=D(Z),this._z?G.updateOffset(this,ne):q("Moment Timezone has no data for "+Z+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},Me.zoneName=w(Me.zoneName),Me.zoneAbbr=w(Me.zoneAbbr),Me.utc=X(Me.utc),Me.local=X(Me.local),Me.utcOffset=(Se=Me.utcOffset,function(){return arguments.length>0&&(this._z=null),Se.apply(this,arguments)}),G.tz.setDefault=function(Z){return(ge<2||2===ge&&Ce<9)&&q("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+G.version+"."),G.defaultZone=Z?D(Z):null,G};var ke=G.momentProperties;return"[object Array]"===Object.prototype.toString.call(ke)?(ke.push("_z"),ke.push("_a")):ke&&(ke._z=null),G}))},function(G,Z){G.exports=ne(7379)},function(G,Z){G.exports=function(G){return G.webpackPolyfill||(G.deprecate=function(){},G.paths=[],G.children||(G.children=[]),Object.defineProperty(G,"loaded",{enumerable:!0,get:function(){return G.l}}),Object.defineProperty(G,"id",{enumerable:!0,get:function(){return G.i}}),G.webpackPolyfill=1),G}},function(G,Z,ne){var ie={"./af":4,"./af.js":4,"./ar":5,"./ar-dz":6,"./ar-dz.js":6,"./ar-kw":7,"./ar-kw.js":7,"./ar-ly":8,"./ar-ly.js":8,"./ar-ma":9,"./ar-ma.js":9,"./ar-sa":10,"./ar-sa.js":10,"./ar-tn":11,"./ar-tn.js":11,"./ar.js":5,"./az":12,"./az.js":12,"./be":13,"./be.js":13,"./bg":14,"./bg.js":14,"./bm":15,"./bm.js":15,"./bn":16,"./bn.js":16,"./bo":17,"./bo.js":17,"./br":18,"./br.js":18,"./bs":19,"./bs.js":19,"./ca":20,"./ca.js":20,"./cs":21,"./cs.js":21,"./cv":22,"./cv.js":22,"./cy":23,"./cy.js":23,"./da":24,"./da.js":24,"./de":25,"./de-at":26,"./de-at.js":26,"./de-ch":27,"./de-ch.js":27,"./de.js":25,"./dv":28,"./dv.js":28,"./el":29,"./el.js":29,"./en-SG":30,"./en-SG.js":30,"./en-au":31,"./en-au.js":31,"./en-ca":32,"./en-ca.js":32,"./en-gb":33,"./en-gb.js":33,"./en-ie":34,"./en-ie.js":34,"./en-il":35,"./en-il.js":35,"./en-nz":36,"./en-nz.js":36,"./eo":37,"./eo.js":37,"./es":38,"./es-do":39,"./es-do.js":39,"./es-us":40,"./es-us.js":40,"./es.js":38,"./et":41,"./et.js":41,"./eu":42,"./eu.js":42,"./fa":43,"./fa.js":43,"./fi":44,"./fi.js":44,"./fo":45,"./fo.js":45,"./fr":46,"./fr-ca":47,"./fr-ca.js":47,"./fr-ch":48,"./fr-ch.js":48,"./fr.js":46,"./fy":49,"./fy.js":49,"./ga":50,"./ga.js":50,"./gd":51,"./gd.js":51,"./gl":52,"./gl.js":52,"./gom-latn":53,"./gom-latn.js":53,"./gu":54,"./gu.js":54,"./he":55,"./he.js":55,"./hi":56,"./hi.js":56,"./hr":57,"./hr.js":57,"./hu":58,"./hu.js":58,"./hy-am":59,"./hy-am.js":59,"./id":60,"./id.js":60,"./is":61,"./is.js":61,"./it":62,"./it-ch":63,"./it-ch.js":63,"./it.js":62,"./ja":64,"./ja.js":64,"./jv":65,"./jv.js":65,"./ka":66,"./ka.js":66,"./kk":67,"./kk.js":67,"./km":68,"./km.js":68,"./kn":69,"./kn.js":69,"./ko":70,"./ko.js":70,"./ku":71,"./ku.js":71,"./ky":72,"./ky.js":72,"./lb":73,"./lb.js":73,"./lo":74,"./lo.js":74,"./lt":75,"./lt.js":75,"./lv":76,"./lv.js":76,"./me":77,"./me.js":77,"./mi":78,"./mi.js":78,"./mk":79,"./mk.js":79,"./ml":80,"./ml.js":80,"./mn":81,"./mn.js":81,"./mr":82,"./mr.js":82,"./ms":83,"./ms-my":84,"./ms-my.js":84,"./ms.js":83,"./mt":85,"./mt.js":85,"./my":86,"./my.js":86,"./nb":87,"./nb.js":87,"./ne":88,"./ne.js":88,"./nl":89,"./nl-be":90,"./nl-be.js":90,"./nl.js":89,"./nn":91,"./nn.js":91,"./pa-in":92,"./pa-in.js":92,"./pl":93,"./pl.js":93,"./pt":94,"./pt-br":95,"./pt-br.js":95,"./pt.js":94,"./ro":96,"./ro.js":96,"./ru":97,"./ru.js":97,"./sd":98,"./sd.js":98,"./se":99,"./se.js":99,"./si":100,"./si.js":100,"./sk":101,"./sk.js":101,"./sl":102,"./sl.js":102,"./sq":103,"./sq.js":103,"./sr":104,"./sr-cyrl":105,"./sr-cyrl.js":105,"./sr.js":104,"./ss":106,"./ss.js":106,"./sv":107,"./sv.js":107,"./sw":108,"./sw.js":108,"./ta":109,"./ta.js":109,"./te":110,"./te.js":110,"./tet":111,"./tet.js":111,"./tg":112,"./tg.js":112,"./th":113,"./th.js":113,"./tl-ph":114,"./tl-ph.js":114,"./tlh":115,"./tlh.js":115,"./tr":116,"./tr.js":116,"./tzl":117,"./tzl.js":117,"./tzm":118,"./tzm-latn":119,"./tzm-latn.js":119,"./tzm.js":118,"./ug-cn":120,"./ug-cn.js":120,"./uk":121,"./uk.js":121,"./ur":122,"./ur.js":122,"./uz":123,"./uz-latn":124,"./uz-latn.js":124,"./uz.js":123,"./vi":125,"./vi.js":125,"./x-pseudo":126,"./x-pseudo.js":126,"./yo":127,"./yo.js":127,"./zh-cn":128,"./zh-cn.js":128,"./zh-hk":129,"./zh-hk.js":129,"./zh-tw":130,"./zh-tw.js":130};function c(G){var Z=M(G);return ne(Z)}function M(G){if(!ne.o(ie,G)){var Z=new Error("Cannot find module '"+G+"'");throw Z.code="MODULE_NOT_FOUND",Z}return ie[G]}c.keys=function(){return Object.keys(ie)},c.resolve=M,G.exports=c,c.id=134},function(G,Z,ne){var ie,se,ce;//! moment-timezone-utils.js //! version : 0.5.28 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !function(fe,me){"use strict";G.exports?G.exports=me(ne(136)):(se=[ne(0)],void 0===(ce="function"==typeof(ie=me)?ie.apply(Z,se):ie)||(G.exports=ce))}(0,(function(G){"use strict";if(!G.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var Z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function n(G,ne){for(var ie="",se=Math.abs(G),ce=Math.floor(se),fe=function(G,ne){for(var ie,se=".",ce="";ne>0;)ne-=1,G*=60,ie=Math.floor(G+1e-6),se+=Z[ie],G-=ie,ie&&(ce+=se,se="");return ce}(se-ce,Math.min(~~ne,10));ce>0;)ie=Z[ce%60]+ie,ce=Math.floor(ce/60);return G<0&&(ie="-"+ie),ie&&fe?ie+fe:(fe||"-"!==ie)&&(ie||fe)||"0"}function t(G){var Z,ne=[],ie=0;for(Z=0;Zme.population||fe.population===me.population&&ie&&ie[fe.name]?ge.unshift(fe):ge.push(fe),Ce=!0);Ce||Se.push([fe])}for(se=0;sene&&(se=Z,Z=ne,ne=se),se=0;sene&&(fe=Math.min(fe,se+1)));return[ce,fe]}(G.untils,Z,ne),ce=ie.apply(G.untils,se);return ce[ce.length-1]=null,{name:G.name,abbrs:ie.apply(G.abbrs,se),untils:ce,offsets:ie.apply(G.offsets,se),population:G.population,countries:G.countries}}return G.tz.pack=s,G.tz.packBase60=n,G.tz.createLinks=d,G.tz.filterYears=_,G.tz.filterLinkPack=function(G,Z,ne,ie){var se,ce,fe=G.zones,me=[];for(se=0;se-1){var fe=Z.format(ie[ne]);return se="".concat(se.substring(0,ce),"[").concat(fe,"]").concat(se.substring(ce+ne.length)),!0}return!1})),this.format(se)},Z.default=se.a}])},7379:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},738:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},198:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"isInternalLink",(function(){return at})),ne.d(Z,"NavigationContext",(function(){return ze})),ne.d(Z,"NavigationProvider",(function(){return NavigationProvider}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=(ne(11),ne(23)),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(22),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),De.variables.contentColorDisabled),Re={children:fe.a.node,onClick:fe.a.func,prefix:fe.a.string},ze=se.a.createContext({});function NavigationProvider(G){var Z=G.children,ne=G.onClick,ie=G.prefix;return se.a.createElement(ze.Provider,{value:{onClick:ne,prefix:ie}},Z)}NavigationProvider.propTypes=Re;var $e=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne{if((0,Ce.findPresetLabel)(se,Z,ie))return st.presets;const ce=(0,Ce.parseTimeString)(Z),fe=ce.modifiers,ge=(0,Ce.parseTimeString)(ie);if(ce.isFullyParsed&&ge.isFullyParsed&&1===fe.length){if((0,me.includes)(ne,at.relative)&&"realTime"!==ce.type&&"realTime"!==ge.type&&(!fe[0].snap||fe[0].unit===fe[0].snap)){if((0,Ce.isLatestNow)(ie))return st.relative;const G=ge.modifiers[0];if(G&&!G.amount&&G.snap===fe[0].unit)return st.relative}if((0,me.includes)(ne,at.realTime)&&"realTime"===ce.type&&!fe[0].snap&&("rt"===ie||"rtnow"===ie))return st.realTime}if(!(0,Ce.isISO)(Z)||""!==ie&&"now"!==ie)if(!(0,Ce.isISO)(ie)||""!==Z&&"0"!==Z){if((0,Ce.isISO)(Z)&&(0,Ce.isISO)(ie)){if((0,me.includes)(ne,at.date)&&(0,Ce.isWholeDay)(Z)&&(0,Ce.isWholeDay)(ie))return st.date;if((0,me.includes)(ne,at.dateTime))return st.dateTime}else if((0,Ce.isEpoch)(Z)&&(0,Ce.isEpoch)(ie))return st.dateTime}else{if((0,me.includes)(ne,at.date)&&(0,Ce.isWholeDay)(ie))return st.date;if((0,me.includes)(ne,at.dateTime))return st.dateTime}else{if((0,me.includes)(ne,at.date)&&(0,Ce.isWholeDay)(Z))return st.date;if((0,me.includes)(ne,at.dateTime))return st.dateTime}return G.length?st.advanced:se.length?st.presets:st[ne[0]]};Z.findPanelType=findPanelType;const convertToISO=(G,Z,ne=!0)=>(0,Ce.isISO)(G)?G:ne&&(0,Ce.isEarliestEmpty)(G)||!ne&&(0,Ce.isLatestNow)(G)?"":Z&&Z.iso?Z.iso:"";function enrichParse(G){if(!G)return;const Z=G.iso&&(0,Ce.isISO)(G.iso)?(0,Ce.removeISOTimezone)(G.iso):void 0;return{error:G.error||Z?G.error:new Error("The iso time could not be converted to a JavaScript Date."),iso:Z,displayValue:Z?(0,ge.default)(Z).locale(it).format("LLL"):void 0,time:G.time}}Z.convertToISO=convertToISO;const TimeRangeDialog=G=>{const{onRequestParseEarliest:Z,onRequestParseLatest:ne,earliest:ie,latest:se,momentTimeZone:Se,advancedInputTypes:ct,documentationURL:ut,formInputTypes:dt,onChange:ht,presets:ft,realTimeDisabled:_t,style:yt}=G,[vt,wt]=(0,fe.useState)(findPanelType(G)),Ct=(0,fe.useRef)(),St=(0,fe.useRef)(),Mt=(0,fe.useRef)();(0,fe.useEffect)(()=>{Ct.current=Se},[Se]),(0,fe.useEffect)(()=>{St.current=ie},[ie]),(0,fe.useEffect)(()=>{Mt.current=se},[se]),Ct.current!==Se&&ge.default.tz.add(ge.default.tz.pack(Se)),(0,fe.useEffect)(()=>{const G=["presets","date","dateTime"];((0,Ce.isEpoch)(ie)||G.includes(vt))&&Z(ie),((0,Ce.isEpoch)(se)||G.includes(vt))&&ne(se)},[Z,ne,ie,se,vt]),ie!==St.current&&(0,Ce.isEpoch)(ie)&&Z(ie),se!==Mt.current&&(0,Ce.isEpoch)(se)&&ne(se);const handleRequestParseEarliest=(G,ne)=>{if(ne===vt){const ie=(0,Ce.removeRealTime)(G||"0");Z(ie,ne)}},handleRequestParseLatest=(G,Z)=>{if(Z===vt){const ie=(0,Ce.removeRealTime)(G||"now");ne(ie,Z)}},kt=Se?Se.name:"",xt={earliest:ie,latest:se,onChange:ht},Lt=enrichParse(G.parseEarliest),Tt=enrichParse(G.parseLatest),At={onRequestParseEarliest:handleRequestParseEarliest,onRequestParseLatest:handleRequestParseLatest,parseEarliest:Lt,parseLatest:Tt},Dt={earliest:convertToISO(ie,Lt,!0),latest:convertToISO(se,Tt,!1),onChange:ht,locale:it},Et=[];if(ft&&ft.length){let G;_t&&(G=ft.filter(G=>!G.earliest.includes("rt")&&!G.latest.includes("rt"))),Et.push(fe.default.createElement(Ie.default,(0,ce.default)({panelId:"presets",key:"presets",presets:_t?G:ft,onRequestParseLatest:handleRequestParseLatest,onRequestParseEarliest:handleRequestParseEarliest},xt,{__self:void 0,__source:{fileName:Je,lineNumber:405,columnNumber:13}})))}if((0,me.includes)(dt,at.relative)&&Et.push(fe.default.createElement(ze.default,(0,ce.default)({open:"relative"===vt,panelId:"relative",key:"relative"},xt,At,{__self:void 0,__source:{fileName:Je,lineNumber:417,columnNumber:13}}))),!_t&&(0,me.includes)(dt,at.realTime)&&Et.push(fe.default.createElement(Re.default,(0,ce.default)({open:"realTime"===vt,panelId:"realTime",key:"realTime"},xt,At,{__self:void 0,__source:{fileName:Je,lineNumber:428,columnNumber:13}}))),(0,me.includes)(dt,at.date)&&Et.push(fe.default.createElement(xe.default,(0,ce.default)({panelId:"date",key:"date",momentTimeZoneName:kt},Dt,{__self:void 0,__source:{fileName:Je,lineNumber:439,columnNumber:13}}))),(0,me.includes)(dt,at.dateTime)&&Et.push(fe.default.createElement(De.default,(0,ce.default)({panelId:"dateTime",key:"dateTime",momentTimeZoneName:kt},Dt,{__self:void 0,__source:{fileName:Je,lineNumber:444,columnNumber:13}}))),ct.length){const G=_t?ct.filter(G=>G!==ot.realTime):ct;Et.push(fe.default.createElement(ke.default,(0,ce.default)({open:"advanced"===vt,panelId:"advanced",key:"advanced",inputTypes:G,documentationURL:ut,momentTimeZoneName:kt},xt,At,{__self:void 0,__source:{fileName:Je,lineNumber:457,columnNumber:13}})))}return fe.default.createElement(Me.default,(0,ce.default)({openPanelId:vt,onChange:(G,{panelId:Z})=>{wt(st[Z])},"data-test":"time-range-dialog","data-test-earliest":ie,"data-test-latest":se},(0,$e.default)(G),{style:_objectSpread({minWidth:820},yt),__self:void 0,__source:{fileName:Je,lineNumber:471,columnNumber:9}}),Et)};TimeRangeDialog.defaultProps={advancedInputTypes:ut,formInputTypes:ct,placeholder:"Select...",onChange:me.noop,onRequestParseEarliest:me.noop,onRequestParseLatest:me.noop};var dt=TimeRangeDialog;Z.default=dt},7383:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},7384:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=199)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(758)},199:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return At}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(8),De=ne(74),Ie=ne.n(De),Re=ne(3),ze=ne.n(Re),$e=ne(6),Je=ne.n($e),it=ne(12),ot=ne.n(it),at=ne(0),st=ze()(Je.a).withConfig({displayName:"CollapsiblePanelStyles__StyledBox",componentId:"sc-1phikbp-0"})(["display:flex;flex-direction:column;min-height:",";",";& + &{margin-top:",";}"],Object(at.pick)({enterprise:Object(Re.css)(["calc("," + 12px)"],at.variables.lineHeight),prisma:{comfortable:"56px",compact:"48px"}}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.backgroundColorSection)}),Object(at.pick)({enterprise:"2px",prisma:"1px"})),ct=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledIcon",componentId:"sc-1phikbp-1"})(["position:absolute;left:",";transition:transform ",";",";"],Object(at.pick)({enterprise:"12px",prisma:"20px"}),Object(at.pick)({enterprise:"300ms",prisma:"200ms"}),Object(at.pick)({prisma:Object(Re.css)(["color:",";display:flex;top:",";[disabled] > &{color:inherit;}"],at.variables.contentColorDefault,Object(at.pick)({comfortable:"20px",compact:"16px"}))})),ut=ze.a.div.withConfig({displayName:"CollapsiblePanelStyles__StyledTitleWithActions",componentId:"sc-1phikbp-2"})(["flex-shrink:0;border-bottom:0;position:relative;padding:",";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:",";"," ",""],Object(at.pick)({enterprise:Object(Re.css)([""," "," "," 30px"],at.variables.spacingXSmall,at.variables.spacingSmall,at.variables.spacingXSmall),prisma:{comfortable:"8px 10px 8px 52px",compact:"8px 10px 8px 52px"}}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.interactiveColorBackground),enterprise:{dark:Object(Re.css)(["background-color:",";"],at.variables.gray45),light:Object(Re.css)(["background-color:",";"],at.variables.gray96)}}),(function(G){return G.$disabled&&Object(Re.css)(["cursor:default;color:",";"],Object(at.pick)({enterprise:at.variables.contentColorDefault,prisma:at.variables.contentColorDisabled}))})),dt=ze()(ot.a).withConfig({displayName:"CollapsiblePanelStyles__StyledClickableIcon",componentId:"sc-1phikbp-3"})(["position:absolute;left:",";padding:",";top:8px;& > svg{transition:transform ",";}",";"," &:focus:not([disabled]),&:active:not([disabled]){color:",";box-shadow:",";}&:hover:not([disabled]){color:",";background-color:",";}"],Object(at.pick)({enterprise:"4px",prisma:"8px"}),Object(at.pick)({enterprise:{comfortable:"2px 8px",compact:"0px 8px"},prisma:{comfortable:"14px",compact:"8px"}}),Object(at.pick)({enterprise:"300ms",prisma:"200ms"}),Object(at.pick)({prisma:Object(Re.css)(["color:",";display:flex;[disabled] > &{color:inherit;}"],at.variables.contentColorDefault)}),Object(at.pickVariant)("$open",{true:Object(Re.css)(["& > svg{transform:rotate(90deg);}"])}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),at.variables.focusShadowInset,Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({enterprise:{light:at.variables.gray92,dark:at.variables.gray30},prisma:at.mixins.overlayColors(at.variables.interactiveColorBackground,at.variables.interactiveColorOverlayHover)})),ht=ze()(ot.a).withConfig({displayName:"CollapsiblePanelStyles__StyledTitleClickable",componentId:"sc-1phikbp-4"})(["width:100%;flex-shrink:0;border-bottom:0;cursor:pointer;position:relative;display:block;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:",";color:",";"," "," &[disabled]{cursor:default;color:",";}&:focus:not([disabled]),&:active:not([disabled]){color:",";box-shadow:",";}&:hover:not([disabled]){color:",";background-color:",";}"],Object(at.pick)({enterprise:"6px 30px",prisma:{comfortable:"18px 20px 18px 52px",compact:"14px 20px 14px 52px"}}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.interactiveColorBackground)}),Object(at.pickVariant)("$open",{true:Object(Re.css)(["","{transform:rotate(90deg);}"],ct),false:{enterprise:{dark:Object(Re.css)(["background-color:",";"],at.variables.gray45),light:Object(Re.css)(["background-color:",";"],at.variables.gray96)}}}),Object(at.pick)({enterprise:at.variables.contentColorDefault,prisma:at.variables.contentColorDisabled}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),at.variables.focusShadowInset,Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({enterprise:{light:at.variables.gray92,dark:at.variables.gray30},prisma:at.mixins.overlayColors(at.variables.interactiveColorBackground,at.variables.interactiveColorOverlayHover)})),ft=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledHeadingContent",componentId:"sc-1phikbp-5"})(["display:flex;justify-content:space-between;"," ",""],Object(at.pick)({prisma:Object(Re.css)(["font-weight:",";"],at.variables.fontWeightSemiBold)}),(function(G){return G.$titleWithActions&&Object(Re.css)(["min-height:",";"],Object(at.pick)({prisma:{comfortable:"40px",compact:"32px"}}))})),_t=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledDescription",componentId:"sc-1phikbp-6"})(["font-size:",";margin-left:",";"],at.variables.fontSizeSmall,Object(at.pick)({enterprise:at.variables.spacingHalf,prisma:at.variables.spacingLarge})),yt=ne(46),vt=ne.n(yt),wt=ne(38),Ct=ne.n(wt),St=ne(4),Mt={open:fe.a.bool},kt=function ChevronRight(G){var Z=G.open,ne=Object(at.useSplunkTheme)().isEnterprise,ie=Z?Object(St._)("Panel is open"):Object(St._)("Panel is closed");return ne?se.a.createElement(Ct.a,{hideDefaultTooltip:!0,screenReaderText:ie}):se.a.createElement(vt.a,{"aria-label":ie})};kt.propTypes=Mt;var xt=kt;function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7858 11.9999L8.48564 5.69972C8.09512 5.3092 8.09512 4.67603 8.48564 4.28551C8.87617 3.89498 9.50933 3.89498 9.89986 4.28551L16.5536 10.9393C17.1394 11.525 17.1394 12.4748 16.5536 13.0606L9.9012 19.713C9.51067 20.1035 8.87751 20.1035 8.48698 19.713C8.09646 19.3224 8.09646 18.6893 8.48698 18.2988L14.7858 11.9999Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ChevronRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="chevronright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7386:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=237)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},237:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return at}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(43),ke=ne(31),xe=ne(41),De=ne(24),Ie=ne(3),Re=ne.n(Ie),ze=ne(0),$e=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__Styled",componentId:"sc-1x58s0g-0"})(["",";",";"],ze.mixins.reset("block"),(function(G){return G.$hideOverflow&&Object(Ie.css)(["overflow:hidden;"])})),Je=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__StyledInner",componentId:"sc-1x58s0g-1"})(["",";",";width:100%;"],ze.mixins.reset("table"),ze.mixins.clearfix());function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{let{earliest:Z,latest:ne,onRequestParseEarliest:ie,onRequestParseLatest:ot,onChange:at,documentationURL:st,parseEarliest:ct,parseLatest:ut,momentTimeZoneName:dt,inputTypes:ht,open:ft}=G,_t=(0,ce.default)(G,Je);const{panelId:yt}=_t,[vt,wt]=(0,fe.useState)(Z),[Ct,St]=(0,fe.useState)(ne),[Mt,kt]=(0,fe.useState)(null),xt=(0,fe.useRef)(),Lt=(0,fe.useRef)(),Tt=(0,fe.useRef)();ft&&!Tt.current&&(ie(Z.trim()?Z:"0",yt),ot(ne.trim()?ne:"now",yt)),(0,fe.useEffect)(()=>{xt.current=Z,Lt.current=ne,Tt.current=ft}),xt.current&&Z!==xt.current&&ft&&!Tt.current&&ie(Z,yt),Lt.current&&ne!==Lt.current&&ft&&ot(ne,yt),ft&&!Tt.current&&(vt!==Z&&(0,Me.isValidTime)(vt)?ie(vt,yt):ie(Z,yt),Ct!==ne&&(0,Me.isValidTime)(Ct)?ot(Ct,yt):ot(ne,yt));const At=(0,fe.useMemo)(()=>(0,me.debounce)((G,{value:ne})=>{wt(G=>{const se=ne.trim(),ce=(0,Me.isValidTime)(se);return G.trim()!==se&&ce?ie(se||"0",yt):ce||ie(Z,yt),ne})}),[ie,Z,yt]),Dt=(0,fe.useMemo)(()=>(0,me.debounce)((G,{value:Z})=>{St(G=>{const ie=Z.trim(),se=(0,Me.isValidTime)(ie);return G.trim()!==ie&&se?ot(ie||"now",yt):se||ot(ne,yt),Z})}),[ot,ne,yt]),handleApply=G=>{let Z="";const ne=(0,Me.parseTimeString)(vt),ie=(0,Me.parseTimeString)(Ct),se=["iso","epoch"];!ne.isFullyParsed&&vt||Se.default.tz(ct.iso,dt).valueOf()>Se.default.tz(dt).valueOf()?Z=(0,ge._)("The earliest time is invalid."):!ie.isFullyParsed&&Ct?Z=(0,ge._)("The latest time is invalid."):vt&&vt===Ct?Z=(0,ge._)("You cannot have equivalent times."):((0,me.includes)(ht,"relative")||"realTime"===ne.type||(0,me.includes)(se,ie.type))&&((0,me.includes)(ht,"relative")||"realTime"===ie.type||"epoch"===ie.type||"iso"===ie.type)?(0,me.includes)(ht,"realTime")||"realTime"!==ie.type&&"realTime"!==ne.type?"realTime"!==ie.type&&"realTime"!==ne.type||ie.type===ne.type?(0,me.includes)(ht,"dateTime")||!(0,me.includes)(se,ie.type)&&!(0,me.includes)(se,ne.type)?!(0,me.includes)(ht,"allTime")&&(0,Me.isEarliestEmpty)(vt)&&(0,Me.isLatestNow)(Ct)?Z=(0,ge._)("All-time searches are not supported."):ct.error?Z=(0,ge._)("Earliest could not be validated."):ut.error?Z=(0,ge._)("Latest could not be validated."):Se.default.tz(ct.iso,dt).valueOf()>=Se.default.tz(ut.iso,dt).valueOf()&&(Z=(0,ge._)("Earliest must be before latest.")):Z=(0,ge._)("Epoch and ISO times are not supported."):Z=(0,ge._)("You must set a rt value for both earliest and latest time."):Z=(0,ge._)("Real-time searches are not supported."):Z=(0,ge._)("Relative searches are not supported."),kt(Z),!Z&&at&&at(G,{earliest:vt,latest:Ct})},handleKeydown=G=>{"enter"===(0,Ce.keycode)(G)&&handleApply(G)},Et=ct&&Advanced.parseIsValid(vt,ct.time,"0"),jt=ut&&Advanced.parseIsValid(Ct,ut.time,"now"),It=!!((0,Me.isValidTime)(vt)&&ct&&null===ct.error&&(0,Me.isValidTime)(Ct)&&ut&&null===ut.error);return fe.default.createElement(ze.default,(0,se.default)({title:(0,ge._)("Advanced")},_t,{__self:void 0,__source:{fileName:it,lineNumber:219,columnNumber:9}}),Mt&&fe.default.createElement(De.default,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:void 0,__source:{fileName:it,lineNumber:221,columnNumber:17}},Mt),fe.default.createElement($e.StyledCGWrapper,{__self:void 0,__source:{fileName:it,lineNumber:225,columnNumber:13}},fe.default.createElement($e.FlexControlGroup,{controlsLayout:"none",label:(0,ge._)("Earliest:"),labelPosition:"top",__self:void 0,__source:{fileName:it,lineNumber:226,columnNumber:17}},fe.default.createElement(Ie.default,{value:vt,"data-test":"earliest",onChange:At,onKeyDown:It?handleKeydown:void 0,__self:void 0,__source:{fileName:it,lineNumber:227,columnNumber:21}}),fe.default.createElement(Re.default,{"data-test":"earliest-absolute-value",error:Et?ct.error:new Error("invalid"),displayValue:Et?ct.displayValue:void 0,__self:void 0,__source:{fileName:it,lineNumber:233,columnNumber:21}})),fe.default.createElement($e.FlexControlGroup,{controlsLayout:"none",label:(0,ge._)("Latest:"),labelPosition:"top",__self:void 0,__source:{fileName:it,lineNumber:239,columnNumber:17}},fe.default.createElement(Ie.default,{value:Ct,"data-test":"latest",onChange:Dt,onKeyDown:It?handleKeydown:void 0,__self:void 0,__source:{fileName:it,lineNumber:240,columnNumber:21}}),fe.default.createElement(Re.default,{"data-test":"latest-absolute-value",error:jt?ut.error:new Error("invalid"),displayValue:jt?ut.displayValue:void 0,__self:void 0,__source:{fileName:it,lineNumber:246,columnNumber:21}}))),fe.default.createElement($e.StyledApplyContainer,{__self:void 0,__source:{fileName:it,lineNumber:253,columnNumber:13}},!!st&&fe.default.createElement(xe.default,{to:st,style:{marginRight:20},openInNewContext:!0,__self:void 0,__source:{fileName:it,lineNumber:255,columnNumber:21}},(0,ge._)("Documentation")),fe.default.createElement(ke.default,{disabled:!It,label:(0,ge._)("Apply"),onClick:handleApply,"data-test":"apply",__self:void 0,__source:{fileName:it,lineNumber:259,columnNumber:17}})))};Advanced.defaultProps={open:!1,onChange:me.noop,onRequestParseEarliest:me.noop,onRequestParseLatest:me.noop},Advanced.parseIsValid=(G,Z,ne)=>{const ie=G.trim()||ne;return(0,Me.removeRealTime)(ie)===Z.trim()};var ot=Advanced;Z.default=ot},7388:function(G,Z){G.exports=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se},G.exports.default=G.exports,G.exports.__esModule=!0},7389:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=224)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},100:function(G,Z){G.exports=ne(4093)},101:function(G,Z){G.exports=ne(4094)},102:function(G,Z){G.exports=ne(4095)},103:function(G,Z){G.exports=ne(4096)},12:function(G,Z){G.exports=ne(758)},14:function(G,Z){G.exports=ne(1303)},2:function(G,Z){G.exports=ne(0)},224:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return $t}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(26),ge=ne.n(me),Ce=ne(27),Se=ne.n(Ce),Me=ne(14),ke=ne.n(Me),xe=ne(0),De=ne(4),Ie=ne(3),Re=ne.n(Ie),ze=ne(72),$e=ne.n(ze),Je=ne(73),it=ne.n(Je),ot=ne(98),at=ne.n(ot),st=ne(99),ct=ne.n(st),ut=ne(100),dt=ne.n(ut),ht=ne(101),ft=ne.n(ht),_t=ne(102),yt=ne.n(_t),vt=ne(103),wt=ne.n(vt),Ct=ne(6),St=ne.n(Ct),Mt=ne(12),kt=ne.n(Mt),xt=Re.a.div.withConfig({displayName:"MessageBarStyles__MessageBarContent",componentId:"sc-1uyhzza-0"})(["",";color:inherit;padding:0 8px;text-align:center;margin-right:auto;& a{display:inline-block;color:inherit;text-decoration:underline;text-underline-position:under;padding:0 3px 2px 3px;&:not([disabled]):focus{border-radius:",";outline:0;box-shadow:",";}}"],xe.mixins.reset("inline"),xe.variables.borderRadius,Object(xe.pick)({enterprise:{dark:Object(Ie.css)(["0 0 0 2px ",""],xe.variables.gray80),light:Object(Ie.css)(["0 0 0 2px ",""],xe.variables.gray25)},prisma:{light:Object(xe.pickVariant)("$type",{info:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black),warning:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black),error:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.white),success:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.white)}),dark:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black)}})),Lt=Re()(kt.a).withConfig({displayName:"MessageBarStyles__MessageBarCloseWrapper",componentId:"sc-1uyhzza-1"})(["",";border:1px solid transparent;border-radius:",";color:inherit;cursor:pointer;padding:",";"," &:hover,&:focus{background:",";border:",";color:",";}&:active{",";}",""],xe.mixins.reset("flex"),xe.variables.borderRadius,Object(xe.pick)({enterprise:xe.variables.spacingXSmall,prisma:"3px"}),Object(xe.pick)({enterprise:Object(Ie.css)(["margin-top:1px;"])}),Object(xe.pick)({prisma:xe.variables.interactiveColorOverlayHover,enterprise:{dark:xe.variables.gray30,light:xe.variables.gray92}}),Object(xe.pick)({prisma:Object(Ie.css)(["1px solid inherit"]),enterprise:Object(Ie.css)(["1px solid ",""],xe.variables.gray80)}),Object(xe.pick)({enterprise:{dark:xe.variables.gray96,light:xe.variables.linkColor}}),Object(xe.pick)({prisma:Object(Ie.css)(["background:",";"],xe.variables.interactiveColorOverlayActive),enterprise:Object(Ie.css)(["box-shadow:",";"],xe.variables.focusShadow)}),Object(xe.pick)({prisma:Object(Ie.css)(["&:focus{border-radius:",";box-shadow:",";}"],xe.variables.borderRadius,Object(xe.pick)({light:Object(xe.pickVariant)("$type",{info:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black),warning:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black),error:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.white),success:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.white)}),dark:Object(Ie.css)(["0 0 0 3px ",""],xe.variables.black)}))})),Tt=Object(Ie.css)(["margin-left:auto;"]),At=Re()($e.a).withConfig({displayName:"MessageBarStyles__StyledCheckCircleIcon",componentId:"sc-1uyhzza-2"})(["",""],Tt),Dt=Re()(it.a).withConfig({displayName:"MessageBarStyles__StyledExclamationCircleIcon",componentId:"sc-1uyhzza-3"})(["",""],Tt),Et=Re()(at.a).withConfig({displayName:"MessageBarStyles__StyledInformationCircleIcon",componentId:"sc-1uyhzza-4"})(["",""],Tt),jt=Re()(ct.a).withConfig({displayName:"MessageBarStyles__StyledExclamationTriangleIcon",componentId:"sc-1uyhzza-5"})(["",""],Tt),It=Re()(dt.a).withConfig({displayName:"MessageBarStyles__StyledEnterpriseErrorIcon",componentId:"sc-1uyhzza-6"})([""," color:",";"],Tt,xe.variables.errorColor),Nt=Re()(ft.a).withConfig({displayName:"MessageBarStyles__StyledEnterpriseInfoCircleIcon",componentId:"sc-1uyhzza-7"})([""," color:",";"],Tt,xe.variables.infoColor),Rt=Re()(yt.a).withConfig({displayName:"MessageBarStyles__StyledEnterpriseSuccessIcon",componentId:"sc-1uyhzza-8"})([""," color:",";"],Tt,xe.variables.successColor),zt=Re()(wt.a).withConfig({displayName:"MessageBarStyles__StyledEnterpriseWarningIcon",componentId:"sc-1uyhzza-9"})([""," color:",";"],Tt,xe.variables.warningColor),qt=Re()(St.a).withConfig({displayName:"MessageBarStyles__MessageBarWrapper",componentId:"sc-1uyhzza-10"})(["",";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:",";",";word-wrap:break-word;color:",";",";"],xe.mixins.reset("block"),xe.variables.spacingSmall,(function(G){return G.$hasCloseButton?Object(Ie.css)(["",""],Object(xe.pick)({prisma:Object(Ie.css)(["padding:0 8px 0 32px;"]),enterprise:Object(Ie.css)(["padding:0 8px 0 38px;"])})):Object(Ie.css)(["",""],Object(xe.pick)({prisma:Object(Ie.css)(["padding:0 33px 0 32px;"]),enterprise:Object(Ie.css)(["padding:0 26px 0 32px;"])}))}),Object(xe.pick)({prisma:Object(xe.pickVariant)("$type",{info:{light:xe.variables.contentColorActive,dark:xe.variables.contentColorInverted},success:xe.variables.contentColorInverted,warning:xe.variables.black,error:xe.variables.contentColorInverted}),enterprise:{dark:xe.variables.gray96,light:xe.variables.gray25}}),Object(xe.pickVariant)("$type",{info:Object(Ie.css)(["background-color:",";"],Object(xe.pick)({prisma:{dark:xe.variables.white,light:xe.variables.neutral200},enterprise:{dark:xe.mixins.colorWithAlpha(xe.variables.infoColor,.5),light:xe.variables.infoColorL50}})),success:Object(Ie.css)(["background-color:",";"],Object(xe.pick)({prisma:xe.variables.accentColorPositive,enterprise:{dark:xe.mixins.colorWithAlpha(xe.variables.successColor,.5),light:xe.variables.successColorL50}})),warning:Object(Ie.css)(["background-color:",";"],Object(xe.pick)({prisma:xe.variables.accentColorWarning,enterprise:{dark:xe.mixins.colorWithAlpha(xe.variables.warningColor,.5),light:xe.variables.warningColorL50}})),error:Object(Ie.css)(["background-color:",";"],Object(xe.pick)({prisma:xe.variables.accentColorNegative,enterprise:{dark:xe.mixins.colorWithAlpha(xe.variables.errorColor,.5),light:xe.variables.errorColorL50}}))}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Wt={children:fe.a.node.isRequired,onRequestClose:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"]).isRequired},Bt=Object.freeze({info:Object(De._)("Info"),warning:Object(De._)("Warning"),error:Object(De._)("Alert"),success:Object(De._)("Success")}),Ft=Object.freeze({info:Nt,warning:zt,error:It,success:Rt}),Ht=Object.freeze({info:Et,warning:jt,error:Dt,success:At});function MessageBar(G){var Z,ne=G.children,ie=G.type,ce=G.onRequestClose,fe=_objectWithoutProperties(G,["children","type","onRequestClose"]),me=Object(xe.useSplunkTheme)().isEnterprise,Ce=me&&"error"===ie?"22px":"24px",Me=me&&"warning"===ie?"21px":"24px";if(me){var Ie=Ft[ie];Z=se.a.createElement(Ie,{height:Me,width:Ce,hideDefaultTooltip:!0,screenReaderText:null,"aria-hidden":!0,"data-test":"icon"})}else{var Re=Ht[ie];Z=se.a.createElement(Re,{height:"24px",width:"24px",variant:"filled","aria-hidden":!0,"data-test":"icon"})}return se.a.createElement(qt,_extends({$type:ie,"data-test":"message-bar","data-test-type":ie},fe,{role:"region",$hasCloseButton:Boolean(ce)}),Z,se.a.createElement(ke.a,null,Bt[ie]),se.a.createElement(xt,{$type:ie,"data-test":"content"},ne),ce&&se.a.createElement(Lt,{$type:ie,onClick:ce},me?se.a.createElement(Se.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(ge.a,{height:"19px",style:{margin:-.5},width:"19px"}),se.a.createElement(ke.a,null,Object(De._)("Close"))))}MessageBar.propTypes=Wt;var $t=MessageBar},26:function(G,Z){G.exports=ne(2011)},27:function(G,Z){G.exports=ne(2012)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(641)},6:function(G,Z){G.exports=ne(760)},72:function(G,Z){G.exports=ne(4097)},73:function(G,Z){G.exports=ne(4098)},98:function(G,Z){G.exports=ne(4099)},99:function(G,Z){G.exports=ne(4100)}})},7390:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.Styled=void 0;var se,ce=ie(ne(2873)),fe=ie(ne(3)),me=ne(240);const ge=fe.default.div(se||(se=(0,ce.default)(["\n min-height: ",";\n min-width: 100px;\n border-radius: ",";\n background-color: ",";\n font-size: ",";\n margin-top: 5px;\n padding: 0 ",";\n color: ",";\n"])),me.variables.lineHeight,me.variables.borderRadius,(0,me.pick)({enterprise:{light:me.variables.gray96,dark:me.variables.gray22},prisma:{light:me.variables.neutral100,dark:me.variables.neutral100}}),me.variables.fontSizeSmall,me.variables.spacingXSmall,me.variables.textGray);Z.Styled=ge},7391:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(977)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(890),ge=ne(1621),Ce=ie(ne(2013)),Se=ne(976),Me=ie(ne(640)),ke=ie(ne(1157)),xe=ie(ne(473)),De=ie(ne(978)),Ie=ie(ne(1304)),Re=ie(ne(4101)),ze=ne(1622),$e=ie(ne(1306));const Je=["earliest","latest","locale","momentTimeZoneName","onChange"];var it="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/DateRange.tsx";function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}const convertEarliestPropToState=(G,Z)=>{let ne;return ne=Z?G?Ce.default.tz(G,Z):Ce.default.unix(0):G?(0,Ce.default)(G):Ce.default.unix(0),ne.format(xe.default.momentFormat)},convertLatestPropToState=(G,Z,ne)=>{let ie;return ie=Z?G?Ce.default.tz(G,Z):Ce.default.tz(void 0,Z):G?(0,Ce.default)(G):(0,Ce.default)(void 0),ne&&"between"===ne&&G&&(0,Se.isWholeDay)(G)&&(ie=ie.subtract({days:1})),ie.format(xe.default.momentFormat)},DateRange=G=>{let{earliest:Z,latest:ne,locale:ie,momentTimeZoneName:ot,onChange:at}=G,st=(0,ce.default)(G,Je);const ct=((G,Z)=>!G||Z&&"now"!==Z?!Z||G&&"0"!==G?"between":"before":"since")(Z,ne),ut=convertEarliestPropToState(Z,ot),dt=convertLatestPropToState(ne,ot,ct),[ht,ft]=(0,fe.useState)(ut),[_t,yt]=(0,fe.useState)(dt),[vt,wt]=(0,fe.useState)(),[Ct,St]=(0,fe.useState)(ct),Mt=(0,fe.useRef)(),kt=(0,fe.useRef)();(0,fe.useEffect)(()=>{Mt.current=Z,kt.current=ne},[Z,ne]),Mt.current!==Z&&ht!==ut&&ft(ut),kt.current!==ne&&_t!==dt&&yt(dt),Mt.current===Z&&kt.current===ne||Ct===ct||St(ct);const handleChange=(G,{value:Z,name:ne})=>{"earliest"===ne?ft(Z):yt(Z)},apply=(G,Z,ne)=>{const ie="between"===Ct?Ce.default.tz(ne,ot).add({days:1}).format(xe.default.momentFormat):_t;let se="";"between"===Ct&&Ce.default.tz(Z,ot).valueOf()>=Ce.default.tz(ie,ot).valueOf()&&(se=(0,me._)("Earliest must be before latest.")),wt(se),!se&&at&&at(G,{earliest:"before"===Ct?"0":(0,Se.getISOWithTimeZone)(Z+"T00:00:00.000",ot),latest:"since"===Ct?"now":(0,Se.getISOWithTimeZone)(ie+"T00:00:00.000",ot)})},handleKeyDown=G=>{if("enter"===(0,ge.keycode)(G)){const Z=G.target,{name:ne,value:ie}=Z;apply(G,"earliest"===ne?convertEarliestPropToState(ie):ht,"latest"===ne?convertLatestPropToState(ie):_t)}},xt={flex:1};return fe.default.createElement($e.default,(0,se.default)({title:(0,me._)("Date Range")},st,{__self:void 0,__source:{fileName:it,lineNumber:181,columnNumber:9}}),vt&&fe.default.createElement(De.default,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:void 0,__source:{fileName:it,lineNumber:183,columnNumber:17}},vt),fe.default.createElement(ze.StyledCGWrapper,{__self:void 0,__source:{fileName:it,lineNumber:187,columnNumber:13}},fe.default.createElement(ke.default,{controlsLayout:"none",label:"",labelPosition:"top",style:{flex:"0 1 auto",marginRight:10,marginTop:0},__self:void 0,__source:{fileName:it,lineNumber:188,columnNumber:17}},fe.default.createElement(Ie.default,{value:Ct,"data-test":"range-type",onChange:(G,{value:Z})=>{St(Z)},__self:void 0,__source:{fileName:it,lineNumber:189,columnNumber:21}},fe.default.createElement(Ie.default.Option,{label:(0,me._)("Between"),value:"between",__self:void 0,__source:{fileName:it,lineNumber:190,columnNumber:25}}),fe.default.createElement(Ie.default.Option,{label:(0,me._)("Before"),value:"before",__self:void 0,__source:{fileName:it,lineNumber:191,columnNumber:25}}),fe.default.createElement(Ie.default.Option,{label:(0,me._)("Since"),value:"since",__self:void 0,__source:{fileName:it,lineNumber:192,columnNumber:25}}))),fe.default.createElement(ke.default,{controlsLayout:"none",label:"",labelPosition:"top",help:"00:00:00",style:xt,__self:void 0,__source:{fileName:it,lineNumber:195,columnNumber:17}},fe.default.createElement(xe.default,{name:"before"!==Ct?"earliest":"latest",value:"before"!==Ct?ht:_t,onChange:handleChange,onKeyDown:handleKeyDown,inline:!1,locale:ie,style:xt,"data-test":"before"!==Ct?"earliest-date":"latest-date",__self:void 0,__source:{fileName:it,lineNumber:202,columnNumber:21}})),"before"!==Ct&&fe.default.createElement(ke.default,{controlsLayout:"none",label:"",labelPosition:"top",__self:void 0,__source:{fileName:it,lineNumber:214,columnNumber:21}},fe.default.createElement(Re.default,{style:{marginLeft:"between"===Ct?0:10,paddingLeft:7,paddingRight:7},__self:void 0,__source:{fileName:it,lineNumber:215,columnNumber:25}},"between"===Ct?(0,me._)("and"):(0,me._)("until now"))),"between"===Ct&&fe.default.createElement(ke.default,{controlsLayout:"none",label:"",labelPosition:"top",help:"24:00:00",style:xt,__self:void 0,__source:{fileName:it,lineNumber:228,columnNumber:21}},fe.default.createElement(xe.default,{name:"latest",value:_t,onChange:handleChange,inline:!1,locale:ie,onKeyDown:handleKeyDown,"data-test":"latest-date",__self:void 0,__source:{fileName:it,lineNumber:235,columnNumber:25}}))),fe.default.createElement(ze.StyledApplyContainer,{__self:void 0,__source:{fileName:it,lineNumber:247,columnNumber:13}},fe.default.createElement(Me.default,{label:(0,me._)("Apply"),"data-test":"apply",onClick:G=>{apply(G,ht,_t)},__self:void 0,__source:{fileName:it,lineNumber:248,columnNumber:17}})))};DateRange.defaultProps={placeholder:"Select..."};var ot=DateRange;Z.default=ot},7392:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(977)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(890),ge=ne(1621),Ce=ie(ne(2013)),Se=ie(ne(640)),Me=ie(ne(1157)),ke=ie(ne(473)),xe=ie(ne(978)),De=ie(ne(1304)),Ie=ie(ne(4101)),Re=ie(ne(1156)),ze=ne(976),$e=ne(1622),Je=ie(ne(1306));const it=["earliest","latest","onChange","momentTimeZoneName","locale"];var ot="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/DateTimeRange.tsx";function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}const DateTimeRange=G=>{let{earliest:Z,latest:ne,onChange:ie,momentTimeZoneName:at,locale:st}=G,ct=(0,ce.default)(G,it);const convertEarliestPropToState=(G,Z)=>{const ne=Z?Ce.default.tz(G,Z):(0,Ce.default)(G),ie=G?ne:Ce.default.unix(0);return{date:ie.format(ke.default.momentFormat),time:ie.format(DateTimeRange.timeFormat)}},convertLatestPropToState=(G,Z)=>{const ne=Z?Ce.default.tz(G||void 0,Z):(0,Ce.default)(G||void 0);return{date:ne.format(ke.default.momentFormat),time:ne.format(DateTimeRange.timeFormat)}},ut=convertEarliestPropToState(Z,at),dt=convertLatestPropToState(ne,at),ht=DateTimeRange.inferType(Z,ne),[ft,_t]=(0,fe.useState)(ut.date),[yt,vt]=(0,fe.useState)(ut.time),[wt,Ct]=(0,fe.useState)(dt.date),[St,Mt]=(0,fe.useState)(dt.time),[kt,xt]=(0,fe.useState)(ht),[Lt,Tt]=(0,fe.useState)(""),At=(0,fe.useRef)(),Dt=(0,fe.useRef)();(0,fe.useEffect)(()=>{At.current=Z,Dt.current=ne},[Z,ne]),At.current!==Z&&ut.date!==ft&&_t(ut.date),Dt.current!==ne&&dt.date!==wt&&Ct(dt.date),At.current!==Z&&ut.time!==yt&&vt(ut.time),Dt.current!==ne&&dt.time!==St&&Mt(dt.time),ht===kt||At.current===Z&&Dt.current===ne||xt(ht);const apply=(G,Z,ne,se,ce)=>{let fe="";const ge="before"===kt?"0":(0,ze.getISOWithTimeZone)(ne+"T"+Z,at),Se="since"===kt?"now":(0,ze.getISOWithTimeZone)(ce+"T"+se,at);"before"===kt||DateTimeRange.validateTime(Z)&&Ce.default.tz(ge,at).isValid()?"since"===kt||DateTimeRange.validateTime(se)&&Ce.default.tz(Se,at).isValid()?"between"===kt&&Ce.default.tz(ge,at).valueOf()>=Ce.default.tz(Se,at).valueOf()&&(fe=(0,me._)("Earliest must be before latest.")):fe=(0,me._)("Latest time is invalid."):fe=(0,me._)("Earliest time is invalid."),Tt(fe),!fe&&ie&&ie(G,{earliest:ge,latest:Se})},handleTimeKeyDown=G=>{"enter"===(0,ge.keycode)(G)&&apply(G,yt,ft,St,wt)},handleDateKeyDown=G=>{if("enter"===(0,ge.keycode)(G)){const{value:Z,name:ne}=G.target,ie="earliestDate"===ne?convertEarliestPropToState(Z).date:ft,se="latestDate"===ne?convertLatestPropToState(Z).date:wt;apply(G,yt,ie,St,se)}},Et={flex:"0 1 150px",marginRight:10};return fe.default.createElement(Je.default,(0,se.default)({title:(0,me._)("Date & Time Range")},ct,{__self:void 0,__source:{fileName:ot,lineNumber:224,columnNumber:9}}),Lt&&fe.default.createElement(xe.default,{type:"error","data-test":"error-message",style:{margin:"0 20px"},__self:void 0,__source:{fileName:ot,lineNumber:226,columnNumber:17}},Lt),fe.default.createElement($e.StyledCGWrapper,{__self:void 0,__source:{fileName:ot,lineNumber:230,columnNumber:13}},fe.default.createElement(Me.default,{controlsLayout:"none",label:"","data-role":"rangetype",labelPosition:"top",style:{flex:"0 1 auto",marginRight:10,marginTop:0},__self:void 0,__source:{fileName:ot,lineNumber:231,columnNumber:17}},fe.default.createElement(De.default,{value:kt,"data-test":"range-type",onChange:(G,{value:Z})=>{xt(Z)},__self:void 0,__source:{fileName:ot,lineNumber:238,columnNumber:21}},fe.default.createElement(De.default.Option,{label:(0,me._)("Between"),value:"between",__self:void 0,__source:{fileName:ot,lineNumber:239,columnNumber:25}}),fe.default.createElement(De.default.Option,{label:(0,me._)("Before"),value:"before",__self:void 0,__source:{fileName:ot,lineNumber:240,columnNumber:25}}),fe.default.createElement(De.default.Option,{label:(0,me._)("Since"),value:"since",__self:void 0,__source:{fileName:ot,lineNumber:241,columnNumber:25}}))),"before"!==kt&&fe.default.createElement(Me.default,{controlsLayout:"none",label:"",labelPosition:"top",style:Et,__self:void 0,__source:{fileName:ot,lineNumber:245,columnNumber:21}},fe.default.createElement(ke.default,{name:"earliestDate",value:ft,onChange:(G,{value:Z})=>{_t(Z)},onKeyDown:handleDateKeyDown,inline:!1,locale:st,"data-test":"earliest-date",__self:void 0,__source:{fileName:ot,lineNumber:246,columnNumber:25}})),"before"!==kt&&fe.default.createElement(Me.default,{controlsLayout:"none",label:"",labelPosition:"top",help:"HH:MM:SS.SSS",style:{flex:1},__self:void 0,__source:{fileName:ot,lineNumber:258,columnNumber:21}},fe.default.createElement(Re.default,{value:yt,onChange:(G,{value:Z})=>{vt(Z)},onKeyDown:handleTimeKeyDown,"data-test":"earliest-time",__self:void 0,__source:{fileName:ot,lineNumber:265,columnNumber:25}})),"before"!==kt&&fe.default.createElement(Me.default,{controlsLayout:"none",label:"",labelPosition:"top",inline:!1,__self:void 0,__source:{fileName:ot,lineNumber:274,columnNumber:21}},fe.default.createElement(Ie.default,{style:{marginLeft:"between"===kt?0:10,paddingLeft:7,paddingRight:7},__self:void 0,__source:{fileName:ot,lineNumber:275,columnNumber:25}},"between"===kt?(0,me._)("and"):(0,me._)("until now"))),"since"!==kt&&fe.default.createElement(Me.default,{controlsLayout:"none",label:"",labelPosition:"top",style:Et,__self:void 0,__source:{fileName:ot,lineNumber:288,columnNumber:21}},fe.default.createElement(ke.default,{name:"latestDate",value:wt,onChange:(G,{value:Z})=>{Ct(Z)},onKeyDown:handleDateKeyDown,inline:!1,locale:st,"data-test":"latest-date",__self:void 0,__source:{fileName:ot,lineNumber:289,columnNumber:25}})),"since"!==kt&&fe.default.createElement(Me.default,{controlsLayout:"none",label:"",labelPosition:"top",help:(0,me._)("HH:MM:SS.SSS"),style:{flex:1},__self:void 0,__source:{fileName:ot,lineNumber:301,columnNumber:21}},fe.default.createElement(Re.default,{value:St,onChange:(G,{value:Z})=>{Mt(Z)},onKeyDown:handleTimeKeyDown,"data-test":"latest-time",__self:void 0,__source:{fileName:ot,lineNumber:308,columnNumber:25}}))),fe.default.createElement($e.StyledApplyContainer,{__self:void 0,__source:{fileName:ot,lineNumber:317,columnNumber:13}},fe.default.createElement(Se.default,{label:(0,me._)("Apply"),"data-test":"apply",onClick:G=>{apply(G,yt,ft,St,wt)},__self:void 0,__source:{fileName:ot,lineNumber:318,columnNumber:17}})))};DateTimeRange.defaultProps={placeholder:"Select..."},DateTimeRange.timeFormat="HH:mm:ss.SSS",DateTimeRange.validateTime=G=>G.match(/^\d\d:\d\d(:\d\d|:\d\d\.\d?\d?\d?)?$/),DateTimeRange.inferType=(G,Z)=>!G||Z&&"now"!==Z?!Z||G&&"0"!==G?"between":"before":"since";var at=DateTimeRange;Z.default=at},7393:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(0)),fe=ne(24),me=ne(890),ge=ne(976),Ce=ie(ne(7394)),Se=ne(7395),Me=ie(ne(1306)),ke="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/Presets.tsx";const Presets=G=>{const handleClick=(Z,{earliest:ne,latest:ie})=>{G.onRequestParseEarliest(ne,G.panelId),G.onRequestParseLatest(ie,G.panelId),G.onChange(Z,{earliest:ne,latest:ie})};return ce.default.createElement(Me.default,(0,se.default)({title:(0,me._)("Presets")},G,{__self:void 0,__source:{fileName:ke,lineNumber:108,columnNumber:9}}),function renderPresets(){const Z=[],ne=[],ie=[],se=[];return G.presets.forEach(G=>{const fe=(0,ge.parseTimeString)(G.earliest),Se=fe.modifiers[0],Me=(0,ge.parseTimeString)(G.latest),xe=ce.default.createElement(Ce.default,{key:G.earliest+" "+G.latest,earliest:G.earliest,latest:G.latest,onClick:handleClick,label:G.label,"data-test":G.label,__self:this,__source:{fileName:ke,lineNumber:41,columnNumber:17}},(0,me._)(G.label));!1===fe?se.push(xe):"realTime"===fe.type||"realTime"===Me.type?Z.push(xe):(0,ge.isLatestNow)(G.latest)&&Se&&Se.unit?ie.push(xe):Se&&(Se.amount||Se.snap)?ne.push(xe):se.push(xe)}),ce.default.createElement(Se.Styled,{__self:this,__source:{fileName:ke,lineNumber:67,columnNumber:13}},!!Z.length&&ce.default.createElement(Se.StyledColumn,{"data-test":"real-time-column",__self:this,__source:{fileName:ke,lineNumber:69,columnNumber:21}},ce.default.createElement(Se.StyledHeading,{__self:this,__source:{fileName:ke,lineNumber:70,columnNumber:25}},(0,me._)("Real-time")),Z),!!ne.length&&ce.default.createElement(Se.StyledColumn,{"data-test":"relative-column","data-test-column-id":"past","data-divider":!!Z.length,__self:this,__source:{fileName:ke,lineNumber:75,columnNumber:21}},ce.default.createElement(Se.StyledHeading,{__self:this,__source:{fileName:ke,lineNumber:80,columnNumber:25}},(0,me._)("Relative")),ne),!!ie.length&&ce.default.createElement(Se.StyledColumn,{"data-test":"relative-column","data-test-column-id":"latest","data-divider":!!Z.length&&!ne.length,__self:this,__source:{fileName:ke,lineNumber:85,columnNumber:21}},ce.default.createElement(Se.StyledHeading,{__self:this,__source:{fileName:ke,lineNumber:90,columnNumber:25}},!ne.length&&(0,me._)("Relative")),ie),!!se.length&&ce.default.createElement(Se.StyledColumn,{"data-test":"other-column","data-divider":!!Z.length||!!ne.length||!!ie.length,__self:this,__source:{fileName:ke,lineNumber:95,columnNumber:21}},ce.default.createElement(Se.StyledHeading,{__self:this,__source:{fileName:ke,lineNumber:99,columnNumber:25}},(0,me._)("Other")),se))}())};Presets.defaultProps={placeholder:"Select...",onChange:fe.noop,onRequestParseEarliest:fe.noop,onRequestParseLatest:fe.noop};var xe=Presets;Z.default=xe},7394:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(977)),fe=ie(ne(0)),me=ie(ne(1305)),ge=ie(ne(2014));const Ce=["children","earliest","latest","label","onClick"];var Se=function PresetLink(G){let{children:Z,earliest:ne,latest:ie,label:Se,onClick:Me}=G,ke=(0,ce.default)(G,Ce);return fe.default.createElement(me.default,(0,se.default)({style:{display:"block"},label:Se,onClick:G=>{Me(G,{earliest:ne,latest:ie})}},(0,ge.default)(ke),{__self:this,__source:{fileName:"/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/PresetLink.tsx",lineNumber:23,columnNumber:9}}),Z)};Z.default=Se},7395:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.StyledHeading=Z.StyledColumn=Z.Styled=void 0;var se,ce,fe,me=ie(ne(2873)),ge=ie(ne(3)),Ce=ne(240);const Se=ge.default.div(se||(se=(0,me.default)(["\n display: flex;\n padding: ",";\n"])),Ce.variables.spacingLarge);Z.Styled=Se;const Me=ge.default.div(ce||(ce=(0,me.default)(["\n flex: 1 0 auto;\n padding-right: ",";\n"])),Ce.variables.spacingSmall);Z.StyledColumn=Me;const ke=ge.default.h5(fe||(fe=(0,me.default)(["\n ",";\n color: ",";\n min-height: ",";\n min-width: 20px;\n"])),Ce.mixins.reset("block"),Ce.variables.textGray,Ce.variables.lineHeight);Z.StyledHeading=ke},7396:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(977)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(976),ge=ne(24),Ce=ne(890),Se=ne(1621),Me=ie(ne(640)),ke=ie(ne(978)),xe=ie(ne(2015)),De=ie(ne(1304)),Ie=ie(ne(1156)),Re=ie(ne(2872)),ze=ne(1622),$e=ie(ne(1306));const Je=["earliest","open","onChange","onRequestParseEarliest","parseEarliest","panelId"];var it="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/RealTime.tsx";function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}const RealTime=G=>{let{earliest:Z,open:ne,onChange:ie,onRequestParseEarliest:ge,parseEarliest:ot,panelId:at}=G,st=(0,ce.default)(G,Je);const ct=(0,me.getFromNumber)(Z),ut=(0,me.getFromUnit)(Z),[dt,ht]=(0,fe.useState)(ct),[ft,_t]=(0,fe.useState)(ut),[yt,vt]=(0,fe.useState)(),wt=(0,fe.useRef)(),Ct=(0,fe.useRef)();if((0,fe.useEffect)(()=>{Ct.current=Z},[Z]),(0,fe.useEffect)(()=>{wt.current=ne},[ne]),ne&&Ct.current&&(Z!==Ct.current||!wt.current)){yt&&vt(!1);(!wt.current||ct!==dt||ut!==ft)&&ge((0,me.getRealTimeEarliest)(dt,ft),at)}const handleApply=G=>{if(!isFinite(dt))return void vt(!0);const Z=(0,me.getRealTimeEarliest)(dt,ft);ie(G,{earliest:Z,latest:"rt"})},St=(0,me.removeRealTime)((0,me.getRealTimeEarliest)(dt,ft)),Mt=ot&&St===ot.time;return fe.default.createElement($e.default,(0,se.default)({title:(0,Ce._)("Real-time"),panelId:at,open:ne},st,{__self:void 0,__source:{fileName:it,lineNumber:114,columnNumber:9}}),yt&&fe.default.createElement(ze.StyledError,{__self:void 0,__source:{fileName:it,lineNumber:116,columnNumber:17}},fe.default.createElement(ke.default,{type:"error","data-test":"error-message",__self:void 0,__source:{fileName:it,lineNumber:117,columnNumber:21}},(0,Ce._)("A number is required for earliest."))),fe.default.createElement(ze.StyledCGWrapper,{__self:void 0,__source:{fileName:it,lineNumber:122,columnNumber:13}},fe.default.createElement(ze.FlexControlGroup,{controlsLayout:"none",label:(0,Ce._)("Earliest:"),labelPosition:"top",__self:void 0,__source:{fileName:it,lineNumber:123,columnNumber:17}},fe.default.createElement(ze.StyledFromControl,{__self:void 0,__source:{fileName:it,lineNumber:124,columnNumber:21}},fe.default.createElement(xe.default,{onChange:(G,{value:Z})=>{ht(Z),ge((0,me.getRealTimeEarliest)(Z,ft),at)},onKeyDown:G=>{"enter"===(0,Se.keycode)(G)&&handleApply(G)},min:1,roundTo:0,value:dt,style:{flex:1},append:!0,"data-test":"earliest-number",__self:void 0,__source:{fileName:it,lineNumber:125,columnNumber:25}}),fe.default.createElement(De.default,{value:ft,onChange:(G,{value:Z})=>{_t(Z),ge((0,me.getRealTimeEarliest)(dt,Z),at)},style:{flex:"0 1 auto"},prepend:!0,"data-test":"earliest-unit",__self:void 0,__source:{fileName:it,lineNumber:135,columnNumber:25}},fe.default.createElement(De.default.Option,{label:(0,Ce._)("Seconds Ago"),value:"s",__self:void 0,__source:{fileName:it,lineNumber:142,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Minutes Ago"),value:"m",__self:void 0,__source:{fileName:it,lineNumber:143,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Hours Ago"),value:"h",__self:void 0,__source:{fileName:it,lineNumber:144,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Days Ago"),value:"d",__self:void 0,__source:{fileName:it,lineNumber:145,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Weeks Ago"),value:"w",__self:void 0,__source:{fileName:it,lineNumber:146,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Months Ago"),value:"mon",__self:void 0,__source:{fileName:it,lineNumber:147,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Quarters Ago"),value:"q",__self:void 0,__source:{fileName:it,lineNumber:148,columnNumber:29}}),fe.default.createElement(De.default.Option,{label:(0,Ce._)("Years Ago"),value:"y",__self:void 0,__source:{fileName:it,lineNumber:149,columnNumber:29}}))),fe.default.createElement(Re.default,{error:Mt?ot.error:void 0,displayValue:Mt?ot.displayValue:void 0,__self:void 0,__source:{fileName:it,lineNumber:152,columnNumber:21}})),fe.default.createElement(ze.FlexControlGroup,{controlsLayout:"none",label:(0,Ce._)("Latest:"),labelPosition:"top",__self:void 0,__source:{fileName:it,lineNumber:157,columnNumber:17}},fe.default.createElement(Ie.default,{value:"now","data-test":"now",disabled:!0,__self:void 0,__source:{fileName:it,lineNumber:158,columnNumber:21}}))),fe.default.createElement(ze.StyledApplyContainer,{__self:void 0,__source:{fileName:it,lineNumber:161,columnNumber:13}},fe.default.createElement(Me.default,{label:(0,Ce._)("Apply"),"data-test":"apply",disabled:!Mt||!(!ot||!ot.error),onClick:handleApply,__self:void 0,__source:{fileName:it,lineNumber:162,columnNumber:17}})))};RealTime.defaultProps={open:!1,onChange:ge.noop,onRequestParseEarliest:ge.noop,onRequestParseLatest:ge.noop};var ot=RealTime;Z.default=ot},7397:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(761)),ce=ie(ne(977)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(24),ge=ie(ne(640)),Ce=ie(ne(978)),Se=ie(ne(2015)),Me=ie(ne(1304)),ke=ie(ne(7398)),xe=ne(976),De=ne(7399),Ie=ne(890),Re=ne(1621),ze=ie(ne(2872)),$e=ne(1622),Je=ie(ne(1306));const it=["earliest","latest","open","onChange","onRequestParseEarliest","onRequestParseLatest","parseEarliest","parseLatest","panelId"];var ot="/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/Dialog/Relative.tsx";function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}const Relative=G=>{let{earliest:Z,latest:ne,open:ie,onChange:at,onRequestParseEarliest:st,onRequestParseLatest:ct,parseEarliest:ut,parseLatest:dt,panelId:ht}=G,ft=(0,ce.default)(G,it);const _t=(0,xe.getFromNumber)(Z),yt=(0,xe.getFromSnap)(Z),vt=(0,xe.getFromUnit)(Z),wt=(0,xe.getToSnap)(ne),[Ct,St]=(0,fe.useState)(_t),[Mt,kt]=(0,fe.useState)(vt),[xt,Lt]=(0,fe.useState)(yt),[Tt,At]=(0,fe.useState)(wt),[Dt,Et]=(0,fe.useState)(!1),jt=(0,fe.useRef)(),It=(0,fe.useRef)(),Nt=(0,fe.useRef)();if((0,fe.useEffect)(()=>{jt.current=ie},[ie]),(0,fe.useEffect)(()=>{It.current=Z,Nt.current=ne},[Z,ne]),ie&&!jt.current&&(st((0,xe.getRelativeEarliest)(Ct,xt,Mt),ht),ct((0,xe.getRelativeLatest)(Mt,Tt),ht)),ie&&(It.current||Nt.current)&&(It.current!==Z||Nt.current!==ne)){Dt&&Et(!1);(!jt.current||Ct!==_t||xt!==yt||Mt!==vt)&&st((0,xe.getRelativeEarliest)(Ct,xt,Mt),ht);(wt!==Tt||!jt.current)&&ct((0,xe.getRelativeLatest)(Mt,Tt),ht)}const handleApply=G=>{if(!(0,me.isFinite)(Ct))return void Et(!0);const Z=(0,xe.getRelativeEarliest)(Ct,xt,Mt),ne=(0,xe.getRelativeLatest)(Mt,Tt);at(G,{earliest:Z,latest:ne})},Rt=(0,xe.getRelativeEarliest)(Ct,xt,Mt),zt=(0,xe.getRelativeLatest)(Mt,Tt),qt=ut&&Rt===ut.time,Wt=dt&&zt===dt.time,Bt=(0,xe.getUnitLabel)(Mt);return fe.default.createElement(Je.default,(0,se.default)({title:(0,Ie._)("Relative"),panelId:ht,open:ie},ft,{__self:void 0,__source:{fileName:ot,lineNumber:152,columnNumber:9}}),Dt&&fe.default.createElement($e.StyledError,{__self:void 0,__source:{fileName:ot,lineNumber:154,columnNumber:17}},fe.default.createElement(Ce.default,{type:"error","data-test":"error-message",__self:void 0,__source:{fileName:ot,lineNumber:155,columnNumber:21}},(0,Ie._)("A number is required for earliest."))),fe.default.createElement($e.StyledCGWrapper,{__self:void 0,__source:{fileName:ot,lineNumber:161,columnNumber:13}},fe.default.createElement($e.FlexControlGroup,{controlsLayout:"none",label:(0,Ie._)("Earliest:"),labelPosition:"top",__self:void 0,__source:{fileName:ot,lineNumber:162,columnNumber:17}},fe.default.createElement($e.StyledFromControl,{__self:void 0,__source:{fileName:ot,lineNumber:163,columnNumber:21}},fe.default.createElement(Se.default,{style:{flex:1},onChange:(G,{value:Z})=>{St(Z),st((0,xe.getRelativeEarliest)(Z,xt,Mt),ht)},onKeyDown:G=>{"enter"===(0,Re.keycode)(G)&&handleApply(G)},min:0,roundTo:0,value:Ct,append:!0,"data-test":"earliest-number",__self:void 0,__source:{fileName:ot,lineNumber:164,columnNumber:25}}),fe.default.createElement(Me.default,{value:Mt,onChange:(G,{value:Z})=>{kt(Z),st((0,xe.getRelativeEarliest)(Ct,xt,Z),ht),ct((0,xe.getRelativeLatest)(Z,Tt),ht)},prepend:!0,style:{flex:"0 1 auto"},"data-test":"earliest-unit",__self:void 0,__source:{fileName:ot,lineNumber:174,columnNumber:25}},fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Seconds Ago"),value:"s",__self:void 0,__source:{fileName:ot,lineNumber:181,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Minutes Ago"),value:"m",__self:void 0,__source:{fileName:ot,lineNumber:182,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Hours Ago"),value:"h",__self:void 0,__source:{fileName:ot,lineNumber:183,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Days Ago"),value:"d",__self:void 0,__source:{fileName:ot,lineNumber:184,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Weeks Ago"),value:"w",__self:void 0,__source:{fileName:ot,lineNumber:185,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Months Ago"),value:"mon",__self:void 0,__source:{fileName:ot,lineNumber:186,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Quarters Ago"),value:"q",__self:void 0,__source:{fileName:ot,lineNumber:187,columnNumber:29}}),fe.default.createElement(Me.default.Option,{label:(0,Ie._)("Years Ago"),value:"y",__self:void 0,__source:{fileName:ot,lineNumber:188,columnNumber:29}}))),fe.default.createElement(ke.default,{"data-test-temp":"radio-list-earliest",value:xt,onChange:(G,{value:Z})=>{Lt(Z),st((0,xe.getRelativeEarliest)(Ct,Z,Mt),ht)},__self:void 0,__source:{fileName:ot,lineNumber:192,columnNumber:21}},fe.default.createElement(ke.default.Option,{"data-test":"no-snap-to",value:!1,__self:void 0,__source:{fileName:ot,lineNumber:197,columnNumber:25}},(0,Ie._)("No snap-to")),fe.default.createElement(ke.default.Option,{"data-test":"earliest-begin",value:!0,__self:void 0,__source:{fileName:ot,lineNumber:200,columnNumber:25}},(0,De.sprintf)((0,Ie._)("Beginning of %(timeUnit)s"),{timeUnit:Bt}))),fe.default.createElement(ze.default,{"data-test":"earliest-absolute-value",error:qt?ut.error:void 0,displayValue:qt?ut.displayValue:void 0,__self:void 0,__source:{fileName:ot,lineNumber:204,columnNumber:21}})),fe.default.createElement($e.FlexControlGroup,{controlsLayout:"none",label:(0,Ie._)("Latest:"),labelPosition:"top",__self:void 0,__source:{fileName:ot,lineNumber:210,columnNumber:17}},fe.default.createElement(ke.default,{"data-test-temp":"radio-list-latest",value:Tt,onChange:(G,{value:Z})=>{At(Z),ct((0,xe.getRelativeLatest)(Mt,Z),ht)},__self:void 0,__source:{fileName:ot,lineNumber:211,columnNumber:21}},fe.default.createElement(ke.default.Option,{"data-test":"now",value:!1,__self:void 0,__source:{fileName:ot,lineNumber:216,columnNumber:25}},(0,Ie._)("Now")),fe.default.createElement(ke.default.Option,{"data-test":"latest-begin",value:!0,__self:void 0,__source:{fileName:ot,lineNumber:219,columnNumber:25}},(0,De.sprintf)((0,Ie._)("Beginning of current %(timeUnit)s"),{timeUnit:Bt}))),fe.default.createElement(ze.default,{"data-test":"latest-absolute-value",error:Wt?dt.error:void 0,displayValue:Wt?dt.displayValue:void 0,__self:void 0,__source:{fileName:ot,lineNumber:223,columnNumber:21}}))),fe.default.createElement($e.StyledApplyContainer,{__self:void 0,__source:{fileName:ot,lineNumber:230,columnNumber:13}},fe.default.createElement(ge.default,{label:(0,Ie._)("Apply"),disabled:!(qt&&Wt&&(!ut||!ut.error)&&(!ut||!dt.error)),"data-test":"apply",onClick:handleApply,__self:void 0,__source:{fileName:ot,lineNumber:231,columnNumber:17}})))};Relative.defaultProps={onChange:me.noop,open:!1};var at=Relative;Z.default=at},7398:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=189)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},189:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ct})),ne.d(Z,"Option",(function(){return Je}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(5),ge=ne.n(me),Ce=ne(8),Se=Object(ie.createContext)({});Se.displayName="RadioList";var Me=Se,ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.div.withConfig({displayName:"OptionStyles__StyledWrapper",componentId:"imaqjt-0"})(["position:relative;padding:",";"],Object(De.pick)({prisma:{comfortable:"10px 0",compact:"6px 0"},enterprise:"7px 0 7px 0"})),Re=xe.a.label.withConfig({displayName:"OptionStyles__StyledLabel",componentId:"imaqjt-1"})(["",";",";position:relative;flex:1 1 auto;padding-left:",";margin-left:",";cursor:pointer;&::before,&::after{display:block;content:'';position:absolute;border-radius:50%;}&::before{box-sizing:border-box;top:0;border:",";","}&::after{opacity:0;width:8px;height:8px;"," background-color:",";}"," ",""],De.mixins.reset("block"),Object(De.pick)({prisma:Object(ke.css)(["color:",";"],De.variables.contentColorActive)}),Object(De.pick)({prisma:"10px",enterprise:De.variables.spacingQuarter}),Object(De.pick)({prisma:"20px",enterprise:"18px"}),Object(De.pick)({prisma:Object(ke.css)(["2px solid ",""],De.variables.contentColorMuted),enterprise:Object(ke.css)(["1px solid ",""],De.variables.gray80)}),Object(De.pick)({prisma:Object(ke.css)(["width:20px;height:20px;left:-20px;"]),enterprise:Object(ke.css)(["width:18px;height:18px;left:-18px;"])}),Object(De.pick)({prisma:Object(ke.css)(["top:6px;left:-14px;"]),enterprise:Object(ke.css)(["top:5px;left:-13px;"])}),Object(De.pick)({prisma:De.variables.white,enterprise:{dark:De.variables.gray80,light:De.variables.gray45}}),Object(De.pick)({compact:{enterprise:Object(ke.css)(["font-size:",";"],De.variables.fontSizeSmall)}}),Object(De.pick)({prisma:Object(ke.css)(["&:hover{&::before{box-shadow:",";border-color:",";background-color:",";}"],De.variables.hoverShadow,De.variables.contentColorDefault,De.mixins.overlayColors(De.variables.backgroundColorPage,De.variables.interactiveColorOverlayHover))})),ze=xe.a.input.withConfig({displayName:"OptionStyles__StyledRadioInput",componentId:"imaqjt-2"})(["opacity:0;position:absolute;top:10px;left:0;&:focus{& + ","::before{box-shadow:",";}}&:checked + ","::after{opacity:1;}&:checked + ","::before{","}&:disabled,&:disabled + ","{color:",";cursor:not-allowed;}&:disabled + ","::before{",";}&:disabled:not(:checked) + ","::before{",";}&:disabled + ","::after{background-color:",";}"," ",""],Re,De.variables.focusShadow,Re,Re,Object(De.pick)({prisma:Object(ke.css)(["border-color:transparent;background-color:",";"],De.variables.interactiveColorPrimary),enterprise:{dark:Object(ke.css)(["border-color:",";"],De.variables.gray80),light:Object(ke.css)(["border-color:",";"],De.variables.gray45)}}),Re,Object(De.pick)({prisma:De.variables.contentColorDisabled,enterprise:{dark:De.variables.gray45,light:De.variables.gray80}}),Re,Object(De.pick)({enterprise:{dark:Object(ke.css)(["border-color:",";"],De.variables.gray45),light:Object(ke.css)(["border-color:",";"],De.variables.gray80)}}),Re,Object(De.pick)({prisma:Object(ke.css)(["border-color:",";"],De.variables.contentColorDisabled)}),Re,Object(De.pick)({prisma:De.variables.contentColorDisabled,enterprise:{dark:De.variables.gray45,light:De.variables.gray80}}),(function(G){return G.$error&&Object(ke.css)(["&:not(:disabled) + ","{color:",";&::before{border-color:",";}}&:checked:not(:disabled) + ","{&::before{border-color:",";}","}",""],Re,Object(De.pick)({prisma:De.variables.accentColorNegative,enterprise:De.variables.errorColor}),Object(De.pick)({prisma:De.variables.accentColorNegative,enterprise:{dark:De.variables.errorColor,light:De.variables.errorColorL30}}),Re,Object(De.pick)({prisma:De.variables.accentColorNegative,enterprise:De.variables.errorColor}),Object(De.pick)({enterprise:Object(ke.css)(["&::after{background-color:",";}"],De.variables.errorColor)}),Object(De.pick)({prisma:Object(ke.css)(["&:not(:disabled):checked + ","{&::before{background-color:",";}}"],Re,De.variables.accentColorNegative)}))}),Object(De.pick)({prisma:Object(ke.css)(["&:active + ","::before{background-color:",";}&:active + ","::after{background-color:",";}&:checked:active + ","::before{border-color:transparent;background-color:",";}&:disabled + ",":hover::before{box-shadow:none;}&:checked:disabled + ","{&::before{background-color:",";}&::after{background-color:rgba(255,255,255,0.3);}}"],Re,De.mixins.overlayColors(De.variables.backgroundColorPage,De.variables.interactiveColorOverlayActive),Re,De.mixins.overlayColors(De.variables.white,De.variables.interactiveColorOverlayActive),Re,De.mixins.overlayColors(De.variables.interactiveColorPrimary,De.variables.interactiveColorOverlayActive),Re,Re,De.variables.interactiveColorBackgroundDisabled)}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var $e={children:fe.a.node,disabled:fe.a.bool,error:fe.a.bool,id:fe.a.string,onChange:fe.a.func,value:fe.a.any.isRequired};function Option(G){var Z=G.children,ne=G.disabled,ce=void 0!==ne&&ne,fe=G.error,me=void 0!==fe&&fe,ge=G.id,Se=G.onChange,ke=G.value,xe=_objectWithoutProperties(G,["children","disabled","error","id","onChange","value"]),De=Object(ie.useRef)(ge||Object(Ce.createDOMID)("radio-option")).current,$e=Object(ie.useContext)(Me),Je=!1;void 0!==(null==$e?void 0:$e.value)&&(Je=$e.value===ke);var it=ce;(null==$e?void 0:$e.disabled)&&(it=$e.disabled);var ot=me;return(null==$e?void 0:$e.error)&&(ot=$e.error),se.a.createElement(Ie,_extends({"data-test":"option","data-test-value":ke},xe,{"data-checked":Je}),se.a.createElement(ze,{id:De,type:"radio",name:$e.name,$error:ot,disabled:it,value:ke.toString(),checked:Je,onChange:function handleOnChange(G){var Z;G.stopPropagation(),null==Se||Se(G,{value:ke,name:$e.name}),null===(Z=$e.onChange)||void 0===Z||Z.call($e,G,{value:ke,name:$e.name})},"data-test":"input"}),se.a.createElement(Re,{htmlFor:De,"data-test":"label"},Z))}Option.propTypes=$e;var Je=Option,it=ne(6),ot=ne.n(it),at=xe()(ot.a).withConfig({displayName:"RadioListStyles__StyledBox",componentId:"sc-1qg10hx-0"})(["align-items:flex-start;flex-wrap:wrap;flex-direction:",";",""],(function(G){return G.direction}),(function(G){return"row"===G.direction&&Object(ke.css)(["","{margin-right:40px;margin-inline-end:40px;}"],Ie)}));function RadioList_extends(){return(RadioList_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var st={direction:fe.a.oneOf(["row","column"]),children:fe.a.node,defaultValue:fe.a.any,disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),error:fe.a.bool,name:fe.a.string,onChange:fe.a.func,required:fe.a.bool,value:fe.a.any,labelledBy:fe.a.string,describedBy:fe.a.string};function RadioList(G){var Z=G.children,ne=G.defaultValue,ce=G.describedBy,fe=G.direction,me=void 0===fe?"column":fe,Se=G.disabled,ke=void 0!==Se&&Se,xe=G.error,De=void 0!==xe&&xe,Ie=G.labelledBy,Re=G.name,ze=G.onChange,$e=G.required,Je=G.value,it=RadioList_objectWithoutProperties(G,["children","defaultValue","describedBy","direction","disabled","error","labelledBy","name","onChange","required","value"]),ot=Object(ie.useRef)(void 0!==Je).current,st=_slicedToArray(Object(ie.useState)(ne),2),ct=st[0],ut=st[1],dt=ot?Je:ct,ht=Object(ie.useRef)(Re||Object(Ce.createDOMID)("radio-name")).current;Object(ie.useEffect)((function(){0}),[Je,ot]);var ft=Object(ie.useRef)(ne).current;Object(ie.useEffect)((function(){0}),[ft,ne,ot]);var _t=it["aria-labelledby"],yt=it["aria-describedby"];return se.a.createElement(Me.Provider,{value:{value:dt,name:ht,onChange:function handleChange(G,Z){ot||ut(Z.value),null==ze||ze(G,Z)},error:De,disabled:ke}},se.a.createElement(at,RadioList_extends({flex:!0,direction:me,role:"radiogroup","data-test":"radio-list","data-test-value":dt},ge()(it,["aria-labelledby","aria-describedby"]),{"aria-labelledby":_t?"".concat(_t," ").concat(Ie):Ie,"aria-describedby":yt?"".concat(yt," ").concat(ce):ce,"aria-required":$e}),Z))}RadioList.propTypes=st,RadioList.Option=Je;var ct=RadioList},2:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(3)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(760)},8:function(G,Z){G.exports=ne(1155)}})},7399:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintf=sprintf,Z.abbreviateNumber=function abbreviateNumber(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(0,ie.default)(G);if(ne<=1e3)return ne.toLocaleString(Z);if(ne<1e4)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-2).toLocaleString(Z));if(ne<1e5)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,-1).toLocaleString(Z));if(ne<999500)return sprintf((0,se._)("%sK"),(0,ce.roundToDecimal)(ne/1e3,0).toLocaleString(Z));if(ne<1e7)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-2).toLocaleString(Z));if(ne<1e8)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,-1).toLocaleString(Z));if(ne<9995e5)return sprintf((0,se._)("%sM"),(0,ce.roundToDecimal)(ne/1e6,0).toLocaleString(Z));if(ne<1e10)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-2).toLocaleString(Z));if(ne<1e11)return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,-1).toLocaleString(Z));return sprintf((0,se._)("%sB"),(0,ce.roundToDecimal)(ne/1e9,0).toLocaleString(Z))},Z.bytesToFileSize=function bytesToFileSize(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-us",ne=(G||0)/1024;if(ne<0)throw new RangeError("bytes must be >= 0");if(0===Math.floor(ne))return sprintf((0,se._)("%s B"),G.toLocaleString(Z));var ie=ne/1024;if(0===Math.floor(ie))return sprintf((0,se._)("%s KB"),(0,ce.roundToDecimal)(ne,-2).toLocaleString(Z));var fe=ie/1024;if(0===Math.floor(fe))return sprintf((0,se._)("%s MB"),(0,ce.roundToDecimal)(ie,-2).toLocaleString(Z));var me=fe/1024;if(0===Math.floor(me))return sprintf((0,se._)("%s GB"),(0,ce.roundToDecimal)(fe,-2).toLocaleString(Z));return sprintf((0,se._)("%s TB"),(0,ce.roundToDecimal)(me,-2).toLocaleString(Z))},Z.smartTrim=function smartTrim(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ie=ne.precomposed,se=void 0!==ie&&ie;if(!G||Z<1||G.length<=Z)return G;var ce=se?"…":"...";if(1===Z)return"".concat(G[0]).concat(ce);var fe=Math.ceil(G.length/2),me=G.length-Z,ge=Math.ceil(me/2),Ce=me-ge;return"".concat(G.substring(0,fe-ge)).concat(ce).concat(G.substring(fe+Ce))};var ie=function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}(ne(384)),se=ne(890),ce=ne(7400),fe=ne(7401);function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie1&&void 0!==arguments[1]?arguments[1]:0;return(0,se.default)(G,-1*Z)},Z.floorPowerOfTen=function floorPowerOfTen(G){return Math.pow(10,Math.floor(Math.log(G)/Math.LN10))},Z.isLessThanMinSafeInt=function isLessThanMinSafeInt(G){if(!(0,ie.default)(G))return!1;return G<=-9007199254740991},Z.isGreaterThanMaxSafeInt=function isGreaterThanMaxSafeInt(G){if(!(0,ie.default)(G))return!1;return G>=9007199254740991};var ie=_interopRequireDefault(ne(118)),se=_interopRequireDefault(ne(469));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=/(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i},7401:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintfFormat=sprintfFormat,Z.sprintfParse=sprintfParse;var ie=_interopRequireDefault(ne(63)),se=_interopRequireDefault(ne(423));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var ce={notType:/[^T]/,notPrimitive:/[^v]/,number:/[diefg]/,numericArg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,keyAccess:/^\.([a-z_][a-z_\d]*)/i,indexAccess:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie=0),ge.type){case"b":ne=parseInt(ne,10).toString(2);break;case"c":ne=String.fromCharCode(parseInt(ne,10));break;case"d":case"i":ne=parseInt(ne,10);break;case"j":ne=JSON.stringify(ne,null,ge.width?parseInt(ge.width,10):0);break;case"e":ne=ge.precision?parseFloat(ne).toExponential(ge.precision):parseFloat(ne).toExponential();break;case"f":ne=ge.precision?parseFloat(ne).toFixed(ge.precision):parseFloat(ne);break;case"g":ne=ge.precision?String(Number(ne.toPrecision(ge.precision))):parseFloat(ne);break;case"o":ne=(parseInt(ne,10)>>>0).toString(8);break;case"s":ne=String(ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"t":ne=String(!!ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"T":ne=Object.prototype.toString.call(ne).slice(8,-1).toLowerCase(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"u":ne=parseInt(ne,10)>>>0;break;case"v":ne=ne.valueOf(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"x":ne=(parseInt(ne,10)>>>0).toString(16);break;case"X":ne=(parseInt(ne,10)>>>0).toString(16).toUpperCase()}ce.json.test(ge.type)?Re+=ne:(!ce.number.test(ge.type)||ke&&!ge.sign?xe="":(xe=ke?"+":"-",ne=ne.toString().replace(ce.sign,"")),Se=ge.padChar?"0"===ge.padChar?"0":ge.padChar.charAt(1):" ",Me=ge.width-(xe+ne).length,Ce=ge.width&&Me>0?(0,se.default)(Se,Me):"",Re+=ge.align?xe+ne+Ce:"0"===Se?xe+Ce+ne:Ce+xe+ne)}return Re}var fe=Object.create(null);function sprintfParse(G){if(fe[G])return fe[G];for(var Z,ne=G,ie=0,se=[];ne;){if(null!==(Z=ce.text.exec(ne)))se.push(Z[0]);else if(null!==(Z=ce.modulo.exec(ne)))se.push("%");else{if(null===(Z=ce.placeholder.exec(ne)))throw new SyntaxError("[sprintf] unexpected placeholder");if(Z[2]){ie|=1;var me=Z[2],ge=[],Ce=[];if(null===(ge=ce.key.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(Ce.push(ge[1]);""!==(me=me.substring(ge[0].length));)if(null!==(ge=ce.keyAccess.exec(me)))Ce.push(ge[1]);else{if(null===(ge=ce.indexAccess.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");Ce.push(ge[1])}Z[2]=Ce}else ie|=2;if(3===ie)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");se.push({placeholder:Z[0],paramNo:Z[1],keys:Z[2],sign:Z[3],padChar:Z[4],align:Z[5],width:Z[6],precision:Z[7],type:Z[8]})}ne=ne.substring(Z[0].length)}return fe[G]=se,fe[G]}},7402:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(7403);Object.keys(ie).forEach((function(G){"default"!==G&&"__esModule"!==G&&(G in Z&&Z[G]===ie[G]||Object.defineProperty(Z,G,{enumerable:!0,get:function(){return ie[G]}}))}))},7403:function(G,Z){},7404:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(2871)),ce=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),fe=ie(ne(2)),me=ne(24),ge=ne(7405),Ce=ne(7406),Se=ne(7407),Me=ne(695),ke=ie(ne(7408)),xe=ie(ne(978)),De=ne(7409);function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{this.cancelableEarliestTimeParser&&this.cancelableEarliestTimeParser.cancel(),this.cancelableEarliestTimeParser=(0,ge.makeCancelable)((0,Se.getISO)(G)),this.cancelableEarliestTimeParser.promise.then(Z=>{this.setState({parseEarliest:_objectSpread({error:null,time:G},Z)})}).catch(Z=>{this.setState({parseEarliest:{error:Z,time:G}})})}),(0,se.default)(this,"handleRequestParseLatest",G=>{this.cancelableLatestTimeParser&&this.cancelableLatestTimeParser.cancel(),this.cancelableLatestTimeParser=(0,ge.makeCancelable)((0,Se.getISO)(G)),this.cancelableLatestTimeParser.promise.then(Z=>{this.setState({parseLatest:_objectSpread({error:null,time:G},Z)})}).catch(Z=>{this.setState({parseLatest:{error:Z,time:G}})})});let ne=null;if(Me.isAvailable){const G=(0,ke.default)(Me.serverTimezoneInfo,"temporary"),Z=SplunkwebConnector.hashCode(G.abbrs+G.offsets+G.untils);ne=(0,ke.default)(Me.serverTimezoneInfo,Z.toString())}G.validateRTSearchCapability&&(this.cancelableFetchUserRTSearchCapability=(0,ge.makeCancelable)((0,De.fetchUserRTSearchCapability)()),this.cancelableFetchUserRTSearchCapability.promise.then(G=>{this.setState({realTimeDisabled:!G})}).catch(()=>{this.setState({realTimeDisabled:!0})})),this.state={momentTimeZone:ne,realTimeDisabled:G.validateRTSearchCapability,presets:SplunkwebConnector.sharedPresets},SplunkwebConnector.instances.push(this)}componentWillUnmount(){this.cancelableFetchUserRTSearchCapability&&this.cancelableFetchUserRTSearchCapability.cancel();const G=SplunkwebConnector.instances.indexOf(this);SplunkwebConnector.instances.splice(G,1)}updatePresets(){this.setState({presets:SplunkwebConnector.sharedPresets})}render(){var G,Z;const{children:ne,presetsTransform:ie}=this.props,{realTimeDisabled:se,parseEarliest:fe,parseLatest:ge,momentTimeZone:Ce}=this.state;return Me.isAvailable?(0,ce.cloneElement)(ne,{presets:ie((0,me.cloneDeep)(this.state.presets)),realTimeDisabled:null!=(G=null==ne||null==(Z=ne.props)?void 0:Z.realTimeDisabled)?G:se,onRequestParseEarliest:this.handleRequestParseEarliest,onRequestParseLatest:this.handleRequestParseLatest,parseEarliest:fe,parseLatest:ge,momentTimeZone:Ce}):ce.default.createElement(xe.default,{type:"error",__self:this,__source:{fileName:"/builds/swp/ui-platform/projects/lib/search-components/react-time-range/src/SplunkwebConnector/SplunkwebConnector.tsx",lineNumber:181,columnNumber:20}},"Cannot access splunkweb.")}}(0,se.default)(SplunkwebConnector,"propTypes",{children:fe.default.element.isRequired,presetsTransform:fe.default.func}),(0,se.default)(SplunkwebConnector,"defaultProps",{presetsTransform:G=>G,validateRTSearchCapability:!0}),(0,se.default)(SplunkwebConnector,"instances",[]),(0,se.default)(SplunkwebConnector,"sharedPresets",[]),Me.isAvailable&&(0,Ce.getPresets)().then(G=>{G.forEach(G=>SplunkwebConnector.sharedPresets.push(G)),SplunkwebConnector.instances.forEach(G=>G.updatePresets())}).catch(()=>{console.log("Time presets could not be loaded from splunkweb.")});var Ie=SplunkwebConnector;Z.default=Ie},7405:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.makeCancelable=void 0;Z.makeCancelable=function makeCancelable(G){var Z=!1;return{promise:new Promise((function(ne,ie){G.then((function(G){Z?ie({isCanceled:!0}):ne(G)})),G.catch((function(G){ie(Z?{isCanceled:!0}:G)}))})),cancel:function cancel(){Z=!0}}}},7406:function(G,Z,ne){"use strict";(function(G){Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=Z.getPresets=void 0;var ie=ne(24),se=ne(695),ce=ne(1153),fe=ne(1618);const me=(0,ce.createRESTURL)("data/ui/times",{app:se.app,owner:se.username}),ge=(0,ie.memoize)(()=>G(me+"?output_mode=json&count=-1",fe.defaultFetchInit).then((0,fe.handleResponse)(200)).then(G=>G.entry.sort((G,Z)=>parseInt(G.content.label.toUpperCase(),10)>parseInt(Z.content.label.toUpperCase(),10)?1:-1).sort((G,Z)=>parseInt(G.content.order,10)>parseInt(Z.content.order,10)?1:-1).filter(G=>(G.content.earliest_time||G.content.latest_time)&&!G.content.disabled).map(G=>({label:G.content.label,earliest:G.content.earliest_time||"",latest:G.content.latest_time||""}))).catch(G=>{console.log("preset times fetch failed",G)}));Z.getPresets=ge;var Ce={getPresets:ge};Z.default=Ce}).call(this,ne(189))},7407:function(G,Z,ne){"use strict";(function(G){var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.getISO=getISO,Z.default=void 0;var se=ie(ne(255)),ce=ne(24),fe=ne(1153),me=ne(1618);function getISO(Z){const ne=se.default.stringify({output_mode:"json",time:Z}),ie=(0,fe.createRESTURL)("search/timeparser");return G(ie+"?"+ne,me.defaultFetchInit).then((0,me.handleResponse)(200)).then(G=>({error:null,iso:G[(0,ce.keys)(G)[0]],time:Z})).catch(G=>({error:G,time:Z}))}var ge={getISO:getISO};Z.default=ge}).call(this,ne(189))},7408:function(G,Z,ne){G.exports=function(G){var Z={};function r(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,r),ie.l=!0,ie.exports}return r.m=G,r.c=Z,r.d=function(G,Z,ne){r.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},r.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},r.t=function(G,Z){if(1&Z&&(G=r(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(r.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)r.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},r.n=function(G){var Z=G&&G.__esModule?function(){return G.default}:function(){return G};return r.d(Z,"a",Z),Z},r.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},r.p="",r(r.s=2)}([,function(G,Z){G.exports=ne(24)},function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(1);function s(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function o(G){for(var Z=1;Z=Z.offsets.length?Z:o(o({},Z),{},{starts:Z.starts.concat([{time:1e3*se,abbr:Z.abbrs[ce],offset:Z.offsets[ce]}])})}(G.substring(1,G.length),ne)}}));var se={name:Z,abbrs:[],offsets:[],untils:[]};if(0===ne.starts.length)return se.abbrs.push(ne.abbrs[0]),se.offsets.push(ne.offsets[0]),se.untils.push(null),se;var ce=ne.starts[0],fe=ne.starts[ne.starts.length-1];return ne.starts.forEach((function(G,Z){G===ce?(se.abbrs.push(fe.abbr),se.offsets.push(fe.offset),se.untils.push(G.time)):(se.abbrs.push(ne.starts[Z-1].abbr),se.offsets.push(ne.starts[Z-1].offset),se.untils.push(G.time)),G===fe&&(se.abbrs.push(G.abbr),se.offsets.push(G.offset),se.untils.push(null))})),se}}])},7409:function(G,Z,ne){"use strict";(function(G){var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.fetchUserRTSearchCapability=void 0;var se=ie(ne(85)),ce=ne(1153),fe=ne(1618);const me=(0,ce.createRESTURL)("authentication/current-context"),ge=(0,se.default)(()=>G(me+"?output_mode=json",fe.defaultFetchInit).then((0,fe.handleResponse)(200)).then(G=>{var Z,ne;return null!=(Z=null==(ne=G.entry[0])?void 0:ne.content.capabilities.includes("rtsearch"))&&Z}).catch(G=>(console.log("real time capability fetch failed",G),!1)));Z.fetchUserRTSearchCapability=ge}).call(this,ne(189))},7410:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=_interopRequireDefault(ne(2874)),se=_interopRequireDefault(ne(4108)),ce=_interopRequireDefault(ne(4109)),fe=_interopRequireDefault(ne(4110)),me=_interopRequireDefault(ne(7411));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},7418:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(2018)),fe=_interopRequireDefault(ne(1307));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},7422:function(G,Z,ne){},7423:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},214:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M3 4.10623C3 3.51257 3.47768 3.00623 4.09895 3.00623H7.49725C8.04954 3.00623 8.49725 3.45394 8.49725 4.00623C8.49725 4.55851 8.04954 5.00623 7.49725 5.00623H5V18.9937H18.9874V16.4964C18.9874 15.9441 19.4352 15.4964 19.9874 15.4964C20.5397 15.4964 20.9874 15.9441 20.9874 16.4964V19.8937C20.9874 20.5012 20.495 20.9937 19.8874 20.9937H4.1C3.49248 20.9937 3 20.5012 3 19.8937V4.10623Z"}),se.a.createElement("path",{d:"M19.0002 6.42035L10.6109 14.8096C10.2204 15.2002 9.58722 15.2002 9.1967 14.8096C8.80618 14.4191 8.80618 13.7859 9.1967 13.3954L17.5859 5.00623H13.6592C13.1069 5.00623 12.6592 4.55851 12.6592 4.00623C12.6592 3.45394 13.1069 3.00623 13.6592 3.00623H19.5002C20.3287 3.00623 21.0002 3.6778 21.0002 4.50623V10.3117C21.0002 10.864 20.5525 11.3117 20.0002 11.3117C19.4479 11.3117 19.0002 10.864 19.0002 10.3117V6.42035Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 3.67157 3.67157 3 4.5 3H19.5C20.3284 3 21 3.67157 21 4.5V19.5C21 20.3284 20.3284 21 19.5 21H4.5C3.67157 21 3 20.3284 3 19.5V4.5ZM11.5 5C10.9477 5 10.5 5.44772 10.5 6C10.5 6.55228 10.9477 7 11.5 7H15.5858L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L17 8.41421V12.5C17 13.0523 17.4477 13.5 18 13.5C18.5523 13.5 19 13.0523 19 12.5V6.5C19 5.67157 18.3284 5 17.5 5H11.5Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRightInset(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretoprightinset-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7424:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=223)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},123:function(G,Z){G.exports=ne(421)},15:function(G,Z){G.exports=ne(65)},16:function(G,Z){G.exports=ne(1309)},168:function(G,Z){var ne;ne=function(){return this}();try{ne=ne||new Function("return this")()}catch(G){"object"==typeof window&&(ne=window)}G.exports=ne},2:function(G,Z){G.exports=ne(0)},223:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"LayerStackContext",(function(){return ze.b})),ne.d(Z,"LayerContext",(function(){return ze.a})),ne.d(Z,"LayerStackGlobalProvider",(function(){return ze.c}));var ie=ne(2),se=ne.n(ie),ce=ne(93),fe=ne(1),me=ne.n(fe),ge=ne(15),Ce=ne.n(ge),Se=ne(94),Me=ne.n(Se),ke=ne(123),xe=ne.n(ke),De=ne(7),Ie=ne(16),Re=ne.n(Ie),ze=ne(95),$e=ne(3),Je=ne.n($e),it=ne(0),ot=Je.a.div.withConfig({displayName:"LayerStyles__StyledLayer",componentId:"ii6psl-0"})(["",""],(function(G){return G.$separateStackingContexts&&Object($e.css)(["isolation:isolate;z-index:",";"],it.variables.zindexLayer)})),at=ne(28);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Wt={children:fe.a.node.isRequired,onRequestClose:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"]).isRequired},Bt=Object.freeze({info:Object(De._)("Info"),warning:Object(De._)("Warning"),error:Object(De._)("Alert"),success:Object(De._)("Success")}),Ft=Object.freeze({info:Nt,warning:zt,error:It,success:Rt}),Ht=Object.freeze({info:Et,warning:jt,error:Dt,success:At});function MessageBar(G){var Z,ne=G.children,ie=G.type,ce=G.onRequestClose,fe=_objectWithoutProperties(G,["children","type","onRequestClose"]),me=Object(xe.useSplunkTheme)().isEnterprise,Ce=me&&"error"===ie?"22px":"24px",Me=me&&"warning"===ie?"21px":"24px";if(me){var Ie=Ft[ie];Z=se.a.createElement(Ie,{height:Me,width:Ce,hideDefaultTooltip:!0,screenReaderText:null,"aria-hidden":!0,"data-test":"icon"})}else{var Re=Ht[ie];Z=se.a.createElement(Re,{height:"24px",width:"24px",variant:"filled","aria-hidden":!0,"data-test":"icon"})}return se.a.createElement(qt,_extends({$type:ie,"data-test":"message-bar","data-test-type":ie},fe,{role:"region",$hasCloseButton:Boolean(ce)}),Z,se.a.createElement(ke.a,null,Bt[ie]),se.a.createElement(xt,{$type:ie,"data-test":"content"},ne),ce&&se.a.createElement(Lt,{$type:ie,onClick:ce},me?se.a.createElement(Se.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(ge.a,{height:"19px",style:{margin:-.5},width:"19px"}),se.a.createElement(ke.a,null,Object(De._)("Close"))))}MessageBar.propTypes=Wt;var $t=MessageBar},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(371)},6:function(G,Z){G.exports=ne(604)},72:function(G,Z){G.exports=ne(4121)},73:function(G,Z){G.exports=ne(4122)},98:function(G,Z){G.exports=ne(4123)},99:function(G,Z){G.exports=ne(4124)}})},7427:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=57)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(643)},4:function(G,Z){G.exports=ne(764)},57:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Clear}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=ie){var xe=ne*me+ge+Ce+Se+Me+1;ke=Math.min(xe,ke)}var De=ie*me+ge+Ce+Se+Me+1;if(Z!==(ke=Math.max(De,ke)))return ke}return!1}({height:ne.state.height,rowsMax:ne.props.rowsMax,rowsMin:ne.props.rowsMin,shadow:ne.shadow});!1!==G&&ne.setState({height:G})})),_defineProperty(_assertThisInitialized(ne),"renderEndAdornment",(function(){var G,Z=ne.props,ie=Z.appearance,ce=Z.endAdornment,fe=Z.disabled,me=Z.canClear,ge=Z.splunkTheme,Ce=ge.isPrisma,Se=ge.isEnterprise,Me=ge.isCompact?"20px":"24px",ke={ref:function ref(G){ne.endAdornment=G},disabled:fe,$position:"end"};if(ce)return se.a.createElement(Ft,ke,ce);var xe=null===(G=ne.context.labelAttrs)||void 0===G?void 0:G.text,De=xe?Object(St._)("Clear ".concat(xe," text field")):Object(St._)("Clear text field");return Ce||"search"!==ie?ne.getDisplayValue()&&(Ce&&"search"===ie||me)?se.a.createElement(Ft,ke,!fe&&se.a.createElement(jt,{"data-test":"clear",appearance:"secondary",onClick:ne.handleClear,icon:se.a.createElement(st.a,{"aria-label":De,inline:!1,width:Me,height:Me})})):void 0:se.a.createElement(Ft,ke,se.a.createElement(jt,{appearance:"pill","data-test":"clear",inline:!1,icon:se.a.createElement(ut.a,{size:1,screenReaderText:De}),onClick:ne.handleClear}),se.a.createElement(It,{$disabled:fe},Se?se.a.createElement(ht.a,{hideDefaultTooltip:!0,inline:!1,screenReaderText:null,size:"16px"}):se.a.createElement(vt.a,{height:Me,width:Me})))})),_defineProperty(_assertThisInitialized(ne),"renderStartAdornment",(function(){var G=ne.props,Z=G.appearance,ie=G.startAdornment,ce=G.splunkTheme,fe=G.disabled,me=ce.isPrisma,ge=ce.isCompact?"20px":"24px",Ce={ref:function ref(G){ne.startAdornment=G},disabled:fe,$position:"start"};return ie?se.a.createElement(Ft,Ce,ie):me&&"search"===Z?se.a.createElement(Ft,Ce,se.a.createElement(It,{$disabled:fe},se.a.createElement(vt.a,{"aria-label":"Search",height:ge,width:ge}))):void 0})),_defineProperty(_assertThisInitialized(ne),"getDisplayValue",(function(){return ne.isControlled()?ne.props.value:ne.state.value})),ne.controlledExternally=Se()(G,"value"),ne.state={value:G.defaultValue||""},TextArea.validateRows(G),ne.handleResize=it()(ne.handleResize,100),ne}return _createClass(TextArea,null,[{key:"validateRows",value:function validateRows(G){G.rowsMin,G.rowsMax}}]),_createClass(TextArea,[{key:"componentDidMount",value:function componentDidMount(){ge()(this.syncHeightWithShadow),this.getAdornmentWidth()}},{key:"componentDidUpdate",value:function componentDidUpdate(G){this.syncHeightWithShadow(),TextArea.validateRows(this.props),this.getAdornmentWidth()}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"blur",value:function blur(){var G;null===(G=this.input)||void 0===G||G.blur()}},{key:"focus",value:function focus(){var G;null===(G=this.input)||void 0===G||G.focus()}},{key:"select",value:function select(){var G;null===(G=this.input)||void 0===G||G.select()}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.autoCapitalize,ce=Z.autoComplete,fe=Z.autoCorrect,me=Z.autoFocus,ge=Z.children,Ce=Z.className,Se=Z.classNamePrivate,Me=Z.disabled,xe=Z.describedBy,Ie=Z.elementRef,ze=Z.error,Je=Z.inline,it=Z.inputClassName,ot=Z.inputId,at=Z.labelledBy,st=Z.maxLength,ct=Z.name,ut=Z.placeholder,dt=Z.prepend,ht=Z.required,ft=Z.spellCheck,yt=Z.tabIndex,vt=Z.title,Ct=_objectWithoutProperties(Z,["append","autoCapitalize","autoComplete","autoCorrect","autoFocus","children","className","classNamePrivate","disabled","describedBy","elementRef","error","inline","inputClassName","inputId","labelledBy","maxLength","name","placeholder","prepend","required","spellCheck","tabIndex","title"]),St=_objectSpread(_objectSpread({},$e()(Ct,(function(G,Z){return"role"===Z||0===Z.indexOf("aria-")}))),{},{"aria-describedby":xe,"aria-labelledby":at,"aria-invalid":ze||void 0,"aria-multiline":!0}),Mt=Re()(Ct,["inputRef","onBlur","onChange","onFocus","onKeyDown","onSelect","onInputClick","rowsMax","rowsMin"].concat(_toConsumableArray(ke()(St)))),kt=this.getDisplayValue(),xt={className:Object(wt.toClassName)(Ce,it),$append:ne||void 0,$error:ze,$prepend:dt||void 0},Lt=_objectSpread(_objectSpread({},St),{},{"data-test":"textbox",autoCapitalize:ie,autoComplete:ce,autoCorrect:fe,autoFocus:me,id:ot,maxLength:st,placeholder:ut,name:ct,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,onSelect:this.handleInputSelect,onClick:this.handleInputClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,ref:this.handleInputMount,role:"textbox",required:ht,spellCheck:ft,style:{height:this.state.height},title:vt,tabIndex:yt,value:kt,$error:ze}),Tt=!!this.renderEndAdornment(),At=!!this.renderStartAdornment();return se.a.createElement(Nt,_extends({tabIndex:-1,className:Object(wt.toClassName)(Ce,Se),"data-test":"text","data-test-value":kt,elementRef:Ie,flex:!0,inline:Je},Mt),this.renderStartAdornment(),se.a.createElement(Rt,_extends({$hasEndAdornment:Tt,$hasStartAdornment:At,disabled:Me},xt),At&&se.a.createElement(Wt,{$width:this.state.startAdornmentWidth}),se.a.createElement(zt,{"aria-hidden":"true",onChange:De.a,onClick:this.handleInputClick,style:{width:"100%",position:"absolute",overflow:"hidden",left:-1e4,top:-1e4},tabIndex:-1,ref:function ref(Z){G.shadow=Z},value:kt}),Me?se.a.createElement(zt,_extends({as:"textarea",className:Object(wt.toClassName)(Ce,Se),"data-multiline":"true","data-test":"text",disabled:!0,readOnly:!0,style:{height:this.state.height},value:kt,placeholder:ut,ref:function ref(Z){G.shadow=Z}},St)):se.a.createElement(zt,_extends({as:"textarea"},Lt,{onClick:this.handleInputClick})),se.a.createElement(_t.a,{target:window,eventType:"resize",listener:this.handleResize}),ge,Tt&&se.a.createElement(Bt,{$width:this.state.endAdornmentWidth})),this.renderEndAdornment())}}]),TextArea}(ie.Component);_defineProperty(Vt,"propTypes",$t),_defineProperty(Vt,"defaultProps",{appearance:"default",append:!1,autoFocus:!1,canClear:!1,disabled:!1,error:!1,inline:!1,placeholder:"",prepend:!1,rowsMax:8,rowsMin:2,tabIndex:0}),_defineProperty(Vt,"componentType","TextArea"),_defineProperty(Vt,"contextType",ot.ControlGroupContext);var Yt=Object(Ct.withSplunkTheme)(Vt);Yt.propTypes=Vt.propTypes,Yt.componentType=Vt.componentType;var Ut=Yt},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},4:function(G,Z){G.exports=ne(371)},41:function(G,Z){G.exports=ne(2020)},49:function(G,Z){G.exports=ne(2021)},5:function(G,Z){G.exports=ne(41)},54:function(G,Z){G.exports=ne(2022)},58:function(G,Z){G.exports=ne(153)},6:function(G,Z){G.exports=ne(604)},63:function(G,Z){G.exports=ne(425)},9:function(G,Z){G.exports=ne(62)}})},7429:function(G,Z,ne){var ie=ne(1716),se=ne(1027),ce=ne(544),fe=ne(385);G.exports=function endsWith(G,Z,ne){G=fe(G),Z=se(Z);var me=G.length,ge=ne=void 0===ne?me:ie(ce(ne),0,me);return(ne-=Z.length)>=0&&G.slice(ne,ge)==Z}},7430:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=173)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},12:function(G,Z){G.exports=ne(530)},133:function(G,Z){G.exports=ne(2403)},134:function(G,Z){G.exports=ne(7431)},16:function(G,Z){G.exports=ne(1309)},173:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return dn})),ne.d(Z,"Item",(function(){return Wt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(68),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(133),ke=ne.n(Me),xe=ne(23),De=ne.n(xe),Ie=ne(16),Re=ne.n(Ie),ze=ne(0),$e=ne(4),Je=ne(8),it=ne(42),ot=ne.n(it),at=ne(26),st=ne.n(at),ct=ne(27),ut=ne.n(ct),dt=ne(134),ht=ne.n(dt),ft=ne(29),_t=Object(ie.createContext)({disabled:!1});_t.displayName="File";var yt=_t,vt=ne(34),wt=ne.n(vt);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var qt={disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),error:fe.a.bool,index:fe.a.number,itemId:fe.a.any,name:fe.a.string.isRequired,uploadPercentage:fe.a.number};function Item(G){var Z=G.disabled,ne=G.error,ce=void 0!==ne&&ne,fe=G.itemId,me=G.name,ge=G.index,Ce=void 0===ge?0:ge,Se=G.uploadPercentage,Me=_objectWithoutProperties(G,["disabled","error","itemId","name","index","uploadPercentage"]),ke=Object(ze.useSplunkTheme)(),xe=ke.isPrisma,De=ke.isEnterprise,Ie=ke.isCompact?"20px":"24px",Re=Object(ie.useContext)(_t).onRequestRemove;function handleRequestRemove(G){G.preventDefault(),null==Re||Re({itemId:fe,name:me,index:Ce})}var Je=Object(ie.useContext)(_t).onRequestRetry;var it=Object(ie.useContext)(_t).disabled,at=Object(ft.sprintf)(Object($e._)('Remove "%(filename)s"'),{filename:me}),ct=Object(ft.sprintf)(Object($e._)('Retry "%(filename)s"'),{filename:me}),dt=Object(ft.sprintf)(Object($e._)('Uploading "%(filename)s"'),{filename:me}),yt=Object($e._)("Remove"),vt=se.a.createElement("span",null,se.a.createElement("span",{style:{paddingRight:"4px"}},Object($e._)("Uploading ")),se.a.createElement(Rt,null,Se,"%")),wt=xe&&!ot()(Se)&&Se>0?vt:me,Ct=void 0!==Z?Z:it;return se.a.createElement(se.a.Fragment,null,se.a.createElement(At,Item_extends({"data-test":"item","data-test-disabled":Ct,"data-test-error":ce},Me,{flex:!0,$error:ce,$disabled:Ct}),xe&&ot()(Se)&&se.a.createElement(Nt,{"data-test":"paper-clip",$disabled:Ct},se.a.createElement(PaperClip,{"aria-hidden":"true"})),se.a.createElement(It,{"data-test":"label",$error:ce,$disabled:Ct},wt),xe&&Je&&ce&&se.a.createElement(Et,{"data-test":"retry",onClick:function handleRequestRetry(G){G.preventDefault(),null==Je||Je({itemId:fe,name:me,index:Ce})},"aria-label":ct},se.a.createElement(Retry,{screenReaderText:Object($e._)("Retry")})),!Ct&&(xe&&ot()(Se)&&!ce?se.a.createElement(jt,{"data-test":"remove",onClick:handleRequestRemove,"aria-label":at},se.a.createElement(Trash,{screenReaderText:Object($e._)("Remove")})):se.a.createElement(Et,{"data-test":"remove",$error:ce,onClick:handleRequestRemove,"aria-label":at},De?se.a.createElement(ut.a,{hideDefaultTooltip:!0,screenReaderText:yt}):se.a.createElement(st.a,{"aria-label":yt,height:Ie,width:Ie}))),!ot()(Se)&&Se>0&&(xe?se.a.createElement(zt,{$uploadPercentage:Se,"aria-label":dt,role:"progressbar","aria-valuenow":Se,"aria-valuemin":0,"aria-valuemax":100}):se.a.createElement(ht.a,{style:{position:"absolute",left:0,top:0,right:0,zIndex:1},percentage:Se,"aria-label":dt}))),xe&&ce&&se.a.createElement(Dt,null,Object($e._)("Something went wrong.")))}Item.propTypes=qt;var Wt=Item;function Icon_extends(){return(Icon_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne0){var ne,ie,se=Array.from(G);null===(ne=(ie=this.props).onRequestAdd)||void 0===ne||ne.call(ie,this.props.allowMultiple?se:[se[0]],{name:Z})}else{var ce,fe;null===(ce=(fe=this.props).onRequestAdd)||void 0===ce||ce.call(fe,[],{name:Z})}this.inputCount+=1}},{key:"render",value:function render(){var G=this.props,Z=G.accept,ne=G.allowMultiple,ce=G.children,fe=G.disabled,me=G.dropAnywhere,ge=G.error,Ce=G.fullscreen,Me=G.help,xe=G.name,Ie=G.onRequestRemove,ze=G.onRequestRetry,Je=G.required,it=G.splunkTheme,ot=File_objectWithoutProperties(G,["accept","allowMultiple","children","disabled","dropAnywhere","error","fullscreen","help","name","onRequestRemove","onRequestRetry","required","splunkTheme"]),at=it.isPrisma,st=0,ct=ie.Children.toArray(ce).filter(ie.isValidElement).map((function(G,Z){return st+=1,Object(ie.cloneElement)(G,{index:Z,key:G.key||G.props.itemId||"item-".concat(Z)})})),ut=Ce||me,dt=ut||fe,ht=ut&&!fe,ft=Ce?Qt:Jt,_t=Ce?Ut:Yt,vt=Ce?$t:Ht,wt=!dt&&(this.state.dragOver||!1),Ct=De()(Z)&&ke()(Z.split(",").join(", ")),St=null;return this.props.supportsMessage?St=se.a.createElement(Kt,{"data-test":"file-supports"},this.props.supportsMessage):at&&!fe&&(St=Z?se.a.createElement(Kt,{"data-test":"file-supports"},Object($e._)("Supports ".concat(Ct))):se.a.createElement(Kt,{"data-test":"file-supports"},Object($e._)("Supports all file types"))),se.a.createElement(ft,File_extends({onDragOver:dt?void 0:this.handleDragOver,onDragLeave:dt?void 0:this.handleDragLeave,onDrop:dt?void 0:this.handleDrop,$disabled:fe,$dragOver:wt,$error:ge,$fileCount:st,"data-test":"file","data-test-disabled":fe,"data-test-error":ge},Se()(ot,"onRequestAdd","onRequestRemove")),se.a.createElement(_t,{$disabled:fe,$dragOver:wt,$error:ge},!fe&&!at&&se.a.createElement(vt,{$dragOver:wt,$error:ge})," ",se.a.createElement("span",{"data-test":"file-label"},!ut&&!fe&&Object($e._)("Drop your file here or"),ht&&Object($e._)("Drop your file anywhere or")," ",0===st&&fe&&Object($e._)("No Files Selected"),se.a.createElement(Vt,{htmlFor:this.inputId,"data-test":"file-link","data-focused":this.state.focusedInput||null},se.a.createElement(Bt,{accept:Z,"data-test":"file-input",disabled:fe,id:this.inputId,key:"file-input-".concat(this.inputCount),multiple:ne||void 0,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,required:Je,type:"file"}),!fe&&Object($e._)("upload file…"))),St),!fe&&Me&&se.a.createElement(Gt,{"data-test":"help"},Me),ht&&this.state.dragOver&&se.a.createElement(Zt,{"data-test":"file-window-drop",onDragLeave:this.handleDragLeave}),ht&&se.a.createElement(se.a.Fragment,null,se.a.createElement(Re.a,{target:window,eventType:"dragover",listener:this.handleDragOver}),se.a.createElement(Re.a,{target:window,eventType:"drop",listener:this.handleDrop})),se.a.createElement(yt.Provider,{value:{disabled:fe,onRequestRemove:Ie?function handleRemove(G){null==Ie||Ie({event:G,index:G.index,filename:G.name,itemId:G.itemId,name:xe})}:void 0,onRequestRetry:ze?function handleRetry(G){null==ze||ze({event:G,filename:G.name,index:G.index,itemId:G.itemId,name:xe})}:void 0}},ct))}}]),File}(ie.Component);_defineProperty(sn,"propTypes",on),_defineProperty(sn,"defaultProps",{allowMultiple:!1,disabled:!1,dropAnywhere:!1,error:!1}),_defineProperty(sn,"Item",Wt);var cn=Object(ze.withSplunkTheme)(sn);cn.propTypes=sn.propTypes,cn.Item=Wt;var dn=cn},2:function(G,Z){G.exports=ne(0)},23:function(G,Z){G.exports=ne(78)},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},29:function(G,Z){G.exports=ne(4127)},3:function(G,Z){G.exports=ne(3)},34:function(G,Z){G.exports=ne(1623)},4:function(G,Z){G.exports=ne(371)},42:function(G,Z){G.exports=ne(105)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(604)},68:function(G,Z){G.exports=ne(97)},8:function(G,Z){G.exports=ne(979)},83:function(G,Z){G.exports=ne(4113)}})},7431:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=228)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},228:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(77),ge=ne.n(me),Ce=ne(51),Se=ne(3),Me=ne.n(Se),ke=ne(69),xe=ne.n(ke),De=ne(45),Ie=ne.n(De),Re=ne(6),ze=ne.n(Re),$e=ne(0),Je=Me()(ze.a).withConfig({displayName:"ProgressStyles__StyledBox",componentId:"csowex-0"})(["background-color:",";"],Object($e.pick)({enterprise:$e.variables.transparent,prisma:$e.variables.neutral200})),it=Me()(Ie.a).withConfig({displayName:"ProgressStyles__StyledTooltip",componentId:"csowex-1"})(["background-color:",";height:",";position:relative;overflow:hidden;padding-left:",";",";"],Object($e.pick)({enterprise:$e.variables.accentColorD10,prisma:Object($e.pickVariant)("$type",{info:$e.variables.interactiveColorPrimary,success:$e.variables.accentColorPositive,warning:$e.variables.accentColorWarning,error:$e.variables.accentColorNegative})}),Object($e.pick)({enterprise:"3px",prisma:"4px"}),Object($e.pick)({enterprise:$e.variables.spacingHalf,prisma:"10px"}),(function(G){return G.$animated&&Object(Se.css)(["transition:width 300ms;"])})),ot=Object(Se.keyframes)(["from{opacity:0;}to{opacity:1;}"]),at=Object(Se.keyframes)(["from{background-position:130%;}to{background-position:-30%;}"]),st=Me.a.div.withConfig({displayName:"ProgressStyles__StyledPuck",componentId:"csowex-2"})(["height:",";width:",";position:absolute;right:0;top:0;background:",";",""],Object($e.pick)({enterprise:"3px",prisma:"4px"}),Object($e.pick)({enterprise:"300px",prisma:"100%"}),Object($e.pick)({enterprise:Object(Se.css)(["linear-gradient( 90deg,",",",",40%,",",80%,"," )"],$e.variables.accentColorD10,$e.variables.accentColorL10,$e.variables.accentColorL40,$e.variables.accentColorL40),prisma:function prisma(G){var Z=G.$animated,ne=Object($e.pickVariant)("$type",{info:$e.variables.interactiveColorPrimary,success:$e.variables.accentColorPositive,warning:$e.variables.accentColorWarning,error:$e.variables.accentColorNegative});if(Z){var ie=Object($e.pickVariant)("$type",{info:$e.variables.statusColorInfo,success:$e.variables.statusColorNormal,warning:$e.variables.statusColorMedium,error:$e.variables.statusColorHigh});return Object(Se.css)(["radial-gradient(circle at center,",","," 30%);"],ie,ne)}return ne}}),(function(G){return G.$animated&&Object($e.pick)({enterprise:Object(Se.css)(["animation-duration:1500ms;animation-name:",";animation-iteration-count:infinite;animation-direction:alternate;"],ot),prisma:function prisma(){var Z=Object($e.pickVariant)("$type",{info:$e.variables.statusColorInfo,success:$e.variables.statusColorNormal,warning:$e.variables.statusColorMedium,error:$e.variables.statusColorHigh})(G);return Object(Se.css)(["background-size:200% 100%;animation:"," 1500ms infinite cubic-bezier(0.33,0,0.67,1);&::after{content:'';display:block;width:60px;background:linear-gradient( to right,rgba(255,255,255,0),"," 70%,rgba(255,255,255,0.75) );height:100%;position:absolute;right:0;}"],at,xe()(Z(G)).setAlpha(.75).toRgbString())}})}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ct={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),percentage:fe.a.number,tooltip:fe.a.node,type:fe.a.oneOf(["info","success","warning","error"])};function Progress(G){var Z=G.percentage,ne=G.tooltip,ce=G.type,fe=void 0===ce?"info":ce,me=_objectWithoutProperties(G,["percentage","tooltip","type"]);var Se=_slicedToArray(Object(ie.useState)(!1),2),Me=Se[0],ke=Se[1],xe="on"===Object(Ce.useAnimationToggle)(),De=Object(ie.useCallback)((function(){ke(!0)}),[]),Ie=Object(ie.useCallback)((function(){ke(!1)}),[]),Re=ne||"".concat(Z,"%");return se.a.createElement(Je,_extends({$animated:xe,"data-test":"progress",onMouseEnter:De,onMouseLeave:Ie},me),ge()(Z)&&se.a.createElement(it,{inline:!1,open:Me,content:Re,style:{width:"".concat(Z,"%")},role:"progressbar","aria-valuenow":Z,"aria-valuemin":0,"aria-valuemax":100,$animated:xe,$type:fe},se.a.createElement(st,{$animated:xe,$type:fe})))}Progress.propTypes=ct;var ut=Progress},3:function(G,Z){G.exports=ne(3)},45:function(G,Z){G.exports=ne(1311)},51:function(G,Z){G.exports=ne(2019)},6:function(G,Z){G.exports=ne(604)},69:function(G,Z){G.exports=ne(83)},77:function(G,Z){G.exports=ne(118)}})},7432:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.strictParseFloat=function strictParseFloat(G){return ce.test(G)?parseFloat(G):NaN},Z.roundToDecimal=function roundToDecimal(G){var Z=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,se.default)(G,-1*Z)},Z.floorPowerOfTen=function floorPowerOfTen(G){return Math.pow(10,Math.floor(Math.log(G)/Math.LN10))},Z.isLessThanMinSafeInt=function isLessThanMinSafeInt(G){if(!(0,ie.default)(G))return!1;return G<=-9007199254740991},Z.isGreaterThanMaxSafeInt=function isGreaterThanMaxSafeInt(G){if(!(0,ie.default)(G))return!1;return G>=9007199254740991};var ie=_interopRequireDefault(ne(118)),se=_interopRequireDefault(ne(469));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=/(^[-+]?[0-9]*[.]?[0-9]*$)|(^[-+]?[0-9][.]?[0-9]*e[-+]?[0-9][0-9]*$)/i},7433:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.sprintfFormat=sprintfFormat,Z.sprintfParse=sprintfParse;var ie=_interopRequireDefault(ne(63)),se=_interopRequireDefault(ne(423));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var ce={notType:/[^T]/,notPrimitive:/[^v]/,number:/[diefg]/,numericArg:/[bcdiefguxX]/,json:/[j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,keyAccess:/^\.([a-z_][a-z_\d]*)/i,indexAccess:/^\[(\d+)\]/,sign:/^[+-]/};function sprintf(G){for(var Z=arguments.length,ne=new Array(Z>1?Z-1:0),ie=1;ie=0),ge.type){case"b":ne=parseInt(ne,10).toString(2);break;case"c":ne=String.fromCharCode(parseInt(ne,10));break;case"d":case"i":ne=parseInt(ne,10);break;case"j":ne=JSON.stringify(ne,null,ge.width?parseInt(ge.width,10):0);break;case"e":ne=ge.precision?parseFloat(ne).toExponential(ge.precision):parseFloat(ne).toExponential();break;case"f":ne=ge.precision?parseFloat(ne).toFixed(ge.precision):parseFloat(ne);break;case"g":ne=ge.precision?String(Number(ne.toPrecision(ge.precision))):parseFloat(ne);break;case"o":ne=(parseInt(ne,10)>>>0).toString(8);break;case"s":ne=String(ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"t":ne=String(!!ne),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"T":ne=Object.prototype.toString.call(ne).slice(8,-1).toLowerCase(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"u":ne=parseInt(ne,10)>>>0;break;case"v":ne=ne.valueOf(),ne=ge.precision?ne.substring(0,ge.precision):ne;break;case"x":ne=(parseInt(ne,10)>>>0).toString(16);break;case"X":ne=(parseInt(ne,10)>>>0).toString(16).toUpperCase()}ce.json.test(ge.type)?Re+=ne:(!ce.number.test(ge.type)||ke&&!ge.sign?xe="":(xe=ke?"+":"-",ne=ne.toString().replace(ce.sign,"")),Se=ge.padChar?"0"===ge.padChar?"0":ge.padChar.charAt(1):" ",Me=ge.width-(xe+ne).length,Ce=ge.width&&Me>0?(0,se.default)(Se,Me):"",Re+=ge.align?xe+ne+Ce:"0"===Se?xe+Ce+ne:Ce+xe+ne)}return Re}var fe=Object.create(null);function sprintfParse(G){if(fe[G])return fe[G];for(var Z,ne=G,ie=0,se=[];ne;){if(null!==(Z=ce.text.exec(ne)))se.push(Z[0]);else if(null!==(Z=ce.modulo.exec(ne)))se.push("%");else{if(null===(Z=ce.placeholder.exec(ne)))throw new SyntaxError("[sprintf] unexpected placeholder");if(Z[2]){ie|=1;var me=Z[2],ge=[],Ce=[];if(null===(ge=ce.key.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(Ce.push(ge[1]);""!==(me=me.substring(ge[0].length));)if(null!==(ge=ce.keyAccess.exec(me)))Ce.push(ge[1]);else{if(null===(ge=ce.indexAccess.exec(me)))throw new SyntaxError("[sprintf] failed to parse named argument key");Ce.push(ge[1])}Z[2]=Ce}else ie|=2;if(3===ie)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");se.push({placeholder:Z[0],paramNo:Z[1],keys:Z[2],sign:Z[3],padChar:Z[4],align:Z[5],width:Z[6],precision:Z[7],type:Z[8]})}ne=ne.substring(Z[0].length)}return fe[G]=se,fe[G]}},7434:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=256)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},256:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmallright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7435:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=244)}({2:function(G,Z){G.exports=ne(0)},244:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return se}));var ie=ne(2);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neie&&(Z.scrollLeft=ie,G.stopPropagation(),G.preventDefault())}if(Z.clientHeight!==Z.scrollHeight){if(G.deltaY<0&&Z.scrollTopse&&(Z.scrollTop=se,G.stopPropagation(),G.preventDefault())}}})),_defineProperty(_assertThisInitialized(ne),"handleMount",(function(G){ne.setState({containerEl:G}),Object(ot.a)(ne.props.elementRef,G)})),_defineProperty(_assertThisInitialized(ne),"handleMouseEnter",(function(){ne.defaultWindowOverflowX=document.body.style.overflowX,ne.defaultWindowOverflowY=document.body.style.overflowY,document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeave",(function(){document.body.style.overflowX=ne.defaultWindowOverflowX,document.body.style.overflowY=ne.defaultWindowOverflowY})),ne.state={containerEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Inner,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){if(this.state.containerEl){var ne,ie;if(Z.containerEl||(this.state.containerEl.scrollTop=this.props.defaultTop,this.state.containerEl.scrollLeft=this.props.defaultLeft),ge()(this.props.top))this.state.containerEl.scrollTop=(null===(ne=this.props.top)||void 0===ne?void 0:ne.get())||0;if(ge()(this.props.left))this.state.containerEl.scrollLeft=(null===(ie=this.props.left)||void 0===ie?void 0:ie.get())||0}}},{key:"render",value:function render(){var G=this.props,Z=G.children,ne=G.onScroll,ie=G.stopScrollPropagation,ce=G.top,fe=G.left,me=this.state.containerEl,ge=ze.animated[this.props.tagName];return se.a.createElement(se.a.Fragment,null,se.a.createElement(ge,_extends({},Re()(this.props,De()(Inner.propTypes)),{ref:this.handleMount,onMouseEnter:"window"===ie?this.handleMouseEnter:void 0,onMouseLeave:"window"===ie?this.handleMouseLeave:void 0,onScroll:ne,scrollTop:ce,scrollLeft:fe}),se.a.createElement(it.ScrollContainerProvider,{value:me},Z)),!0===ie&&me&&se.a.createElement(Je.a,{target:me,eventType:"wheel",listener:this.handleWheel,options:{passive:!1}}))}}]),Inner}(ie.Component);_defineProperty(st,"propTypes",at),_defineProperty(st,"defaultProps",{defaultLeft:0,defaultTop:0,tagName:"div"});var ct=st,ut=Me()(ct).withConfig({displayName:"ScrollStyles__StyledInner",componentId:"sc-1xspttf-0"})(["",";overflow:auto;overflow-y:auto;overflow-x:hidden;"],ke.mixins.reset("block"));function Scroll_typeof(G){return(Scroll_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Scroll_extends(){return(Scroll_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Scroll_defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ot={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string,size:fe.a.oneOf(["small","medium","large"])};function WaitSpinner(G){var Z=G.elementRef,ne=G.screenReaderText,ie=void 0===ne?Object(Ce._)("Waiting"):ne,ce=G.size,fe=void 0===ce?"small":ce,Se=_objectWithoutProperties(G,["elementRef","screenReaderText","size"]),Me="on"===Object(me.useAnimationToggle)(),xe=Object(ge.useSplunkTheme)().isPrisma,De=xe?"0 0 40 40":"0 0 19 19";return se.a.createElement(ke,_extends({"data-test":"wait-spinner"},Se),se.a.createElement(Ie,{viewBox:De,version:"1.1",xmlns:"http://www.w3.org/2000/svg",ref:Z,$animated:Me,$size:fe},ie&&se.a.createElement("title",null,ie),se.a.createElement("g",null,xe?se.a.createElement(se.a.Fragment,null,se.a.createElement($e,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe}),se.a.createElement(Je,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe})):se.a.createElement(it,{cx:"9.5",cy:"9.5",r:"8.5"}))))}WaitSpinner.propTypes=ot;var at=WaitSpinner},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(371)},51:function(G,Z){G.exports=ne(2019)}})},7439:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=204)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},204:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.55086 12.3369C6.16033 11.9464 5.52717 11.9464 5.13664 12.3369C4.74612 12.7275 4.74612 13.3606 5.13664 13.7512L10.9391 19.5536C11.5249 20.1394 12.4746 20.1394 13.0604 19.5536L18.8628 13.7512C19.2534 13.3606 19.2534 12.7275 18.8628 12.3369C18.4723 11.9464 17.8391 11.9464 17.4486 12.3369L13 16.7856V5.00235C13 4.45006 12.5523 4.00235 12 4.00235C11.4477 4.00235 11 4.45006 11 5.00235V16.7861L6.55086 12.3369Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowdown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7440:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=220)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},220:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.55135 11.6631C6.16082 12.0536 5.52766 12.0536 5.13713 11.6631C4.74661 11.2725 4.74661 10.6394 5.13713 10.2488L10.9396 4.44642C11.5253 3.86064 12.4751 3.86063 13.0609 4.44642L18.8633 10.2488C19.2538 10.6394 19.2538 11.2725 18.8633 11.6631C18.4728 12.0536 17.8396 12.0536 17.4491 11.6631L13 7.21397V19.0009C13 19.5532 12.5523 20.0009 12 20.0009C11.4477 20.0009 11 19.5532 11 19.0009V7.21441L6.55135 11.6631Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowUp(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowup-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7441:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=199)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(530)},199:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return At}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(9),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(8),De=ne(74),Ie=ne.n(De),Re=ne(3),ze=ne.n(Re),$e=ne(6),Je=ne.n($e),it=ne(12),ot=ne.n(it),at=ne(0),st=ze()(Je.a).withConfig({displayName:"CollapsiblePanelStyles__StyledBox",componentId:"sc-1phikbp-0"})(["display:flex;flex-direction:column;min-height:",";",";& + &{margin-top:",";}"],Object(at.pick)({enterprise:Object(Re.css)(["calc("," + 12px)"],at.variables.lineHeight),prisma:{comfortable:"56px",compact:"48px"}}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.backgroundColorSection)}),Object(at.pick)({enterprise:"2px",prisma:"1px"})),ct=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledIcon",componentId:"sc-1phikbp-1"})(["position:absolute;left:",";transition:transform ",";",";"],Object(at.pick)({enterprise:"12px",prisma:"20px"}),Object(at.pick)({enterprise:"300ms",prisma:"200ms"}),Object(at.pick)({prisma:Object(Re.css)(["color:",";display:flex;top:",";[disabled] > &{color:inherit;}"],at.variables.contentColorDefault,Object(at.pick)({comfortable:"20px",compact:"16px"}))})),ut=ze.a.div.withConfig({displayName:"CollapsiblePanelStyles__StyledTitleWithActions",componentId:"sc-1phikbp-2"})(["flex-shrink:0;border-bottom:0;position:relative;padding:",";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:",";"," ",""],Object(at.pick)({enterprise:Object(Re.css)([""," "," "," 30px"],at.variables.spacingXSmall,at.variables.spacingSmall,at.variables.spacingXSmall),prisma:{comfortable:"8px 10px 8px 52px",compact:"8px 10px 8px 52px"}}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.interactiveColorBackground),enterprise:{dark:Object(Re.css)(["background-color:",";"],at.variables.gray45),light:Object(Re.css)(["background-color:",";"],at.variables.gray96)}}),(function(G){return G.$disabled&&Object(Re.css)(["cursor:default;color:",";"],Object(at.pick)({enterprise:at.variables.contentColorDefault,prisma:at.variables.contentColorDisabled}))})),dt=ze()(ot.a).withConfig({displayName:"CollapsiblePanelStyles__StyledClickableIcon",componentId:"sc-1phikbp-3"})(["position:absolute;left:",";padding:",";top:8px;& > svg{transition:transform ",";}",";"," &:focus:not([disabled]),&:active:not([disabled]){color:",";box-shadow:",";}&:hover:not([disabled]){color:",";background-color:",";}"],Object(at.pick)({enterprise:"4px",prisma:"8px"}),Object(at.pick)({enterprise:{comfortable:"2px 8px",compact:"0px 8px"},prisma:{comfortable:"14px",compact:"8px"}}),Object(at.pick)({enterprise:"300ms",prisma:"200ms"}),Object(at.pick)({prisma:Object(Re.css)(["color:",";display:flex;[disabled] > &{color:inherit;}"],at.variables.contentColorDefault)}),Object(at.pickVariant)("$open",{true:Object(Re.css)(["& > svg{transform:rotate(90deg);}"])}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),at.variables.focusShadowInset,Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({enterprise:{light:at.variables.gray92,dark:at.variables.gray30},prisma:at.mixins.overlayColors(at.variables.interactiveColorBackground,at.variables.interactiveColorOverlayHover)})),ht=ze()(ot.a).withConfig({displayName:"CollapsiblePanelStyles__StyledTitleClickable",componentId:"sc-1phikbp-4"})(["width:100%;flex-shrink:0;border-bottom:0;cursor:pointer;position:relative;display:block;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:",";color:",";"," "," &[disabled]{cursor:default;color:",";}&:focus:not([disabled]),&:active:not([disabled]){color:",";box-shadow:",";}&:hover:not([disabled]){color:",";background-color:",";}"],Object(at.pick)({enterprise:"6px 30px",prisma:{comfortable:"18px 20px 18px 52px",compact:"14px 20px 14px 52px"}}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({prisma:Object(Re.css)(["background-color:",";"],at.variables.interactiveColorBackground)}),Object(at.pickVariant)("$open",{true:Object(Re.css)(["","{transform:rotate(90deg);}"],ct),false:{enterprise:{dark:Object(Re.css)(["background-color:",";"],at.variables.gray45),light:Object(Re.css)(["background-color:",";"],at.variables.gray96)}}}),Object(at.pick)({enterprise:at.variables.contentColorDefault,prisma:at.variables.contentColorDisabled}),Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),at.variables.focusShadowInset,Object(at.pick)({enterprise:at.variables.textColor,prisma:at.variables.contentColorActive}),Object(at.pick)({enterprise:{light:at.variables.gray92,dark:at.variables.gray30},prisma:at.mixins.overlayColors(at.variables.interactiveColorBackground,at.variables.interactiveColorOverlayHover)})),ft=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledHeadingContent",componentId:"sc-1phikbp-5"})(["display:flex;justify-content:space-between;"," ",""],Object(at.pick)({prisma:Object(Re.css)(["font-weight:",";"],at.variables.fontWeightSemiBold)}),(function(G){return G.$titleWithActions&&Object(Re.css)(["min-height:",";"],Object(at.pick)({prisma:{comfortable:"40px",compact:"32px"}}))})),_t=ze.a.span.withConfig({displayName:"CollapsiblePanelStyles__StyledDescription",componentId:"sc-1phikbp-6"})(["font-size:",";margin-left:",";"],at.variables.fontSizeSmall,Object(at.pick)({enterprise:at.variables.spacingHalf,prisma:at.variables.spacingLarge})),yt=ne(46),vt=ne.n(yt),wt=ne(38),Ct=ne.n(wt),St=ne(4),Mt={open:fe.a.bool},kt=function ChevronRight(G){var Z=G.open,ne=Object(at.useSplunkTheme)().isEnterprise,ie=Z?Object(St._)("Panel is open"):Object(St._)("Panel is closed");return ne?se.a.createElement(Ct.a,{hideDefaultTooltip:!0,screenReaderText:ie}):se.a.createElement(vt.a,{"aria-label":ie})};kt.propTypes=Mt;var xt=kt;function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7858 11.9999L8.48564 5.69972C8.09512 5.3092 8.09512 4.67603 8.48564 4.28551C8.87617 3.89498 9.50933 3.89498 9.89986 4.28551L16.5536 10.9393C17.1394 11.525 17.1394 12.4748 16.5536 13.0606L9.9012 19.713C9.51067 20.1035 8.87751 20.1035 8.48698 19.713C8.09646 19.3224 8.09646 18.6893 8.48698 18.2988L14.7858 11.9999Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ChevronRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="chevronright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7443:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=237)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},237:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return at}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(43),ke=ne(31),xe=ne(41),De=ne(24),Ie=ne(3),Re=ne.n(Ie),ze=ne(0),$e=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__Styled",componentId:"sc-1x58s0g-0"})(["",";",";"],ze.mixins.reset("block"),(function(G){return G.$hideOverflow&&Object(Ie.css)(["overflow:hidden;"])})),Je=Re()(De.animated.div).withConfig({displayName:"TransitionOpenStyles__StyledInner",componentId:"sc-1x58s0g-1"})(["",";",";width:100%;"],ze.mixins.reset("table"),ze.mixins.clearfix());function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var zt={append:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),error:fe.a.bool,noBorder:fe.a.bool,onClick:fe.a.func,prepend:fe.a.bool,value:fe.a.string,showSelected:fe.a.bool},qt=se.a.forwardRef((function(G,Z){var ne=G.append,ie=G.error,ce=void 0!==ie&&ie,fe=G.onClick,me=G.prepend,ge=G.value,Ce=G.noBorder,Se=G.showSelected,Me=_objectWithoutProperties(G,["append","error","onClick","prepend","value","noBorder","showSelected"]),ke=null==ge?Object(vt._)("No color"):ge,xe=ge;return"string"==typeof xe&&(Object(yt.isValidHexColor)(xe)||"transparent"===xe)||null==xe||(xe=void 0),se.a.createElement(Rt,_extends({onClick:function onClick(G){return null==fe?void 0:fe(G,{value:ge})},ref:Z,$value:xe,$append:ne,$prepend:me,$hasError:ce,$noBorder:Ce,$showSelected:Se,"data-test":"swatch","data-test-value":ge},Me),Se&&se.a.createElement(Nt,{"aria-label":Object(vt._)("Selected"),role:"presentation"}),se.a.createElement(Lt.a,null,ke))}));qt.propTypes=zt;var Wt=qt,Bt=St.a.div.withConfig({displayName:"ColorStyles__StyledColor",componentId:"jxrost-0"})(["",";flex-direction:row;"],_t.mixins.reset("flex")),Ft=St.a.div.withConfig({displayName:"ColorStyles__StyledInput",componentId:"jxrost-1"})(["",";"],Object(_t.pick)({enterprise:Object(Ct.css)(["display:flex;width:100%;"]),prisma:Object(Ct.css)(["position:relative;",""],(function(G){return G.$inDropdown?Object(Ct.css)(["width:80px;"]):Object(Ct.css)(["flex:0 1 auto;min-width:0;"])}))})),Ht=St()(kt.a).withConfig({displayName:"ColorStyles__StyledInputText",componentId:"jxrost-2"})(["",""],(function(G){return G.$inDropdown&&Object(Ct.css)(["font-size:12px;"])})),$t=St()(Wt).withConfig({displayName:"ColorStyles__StyledToggleSwatch",componentId:"jxrost-3"})(["",""],Object(_t.pick)({prisma:{comfortable:Object(Ct.css)(["width:40px;height:40px;"]),compact:Object(Ct.css)(["width:32px;height:32px;"])},enterprise:{comfortable:Object(Ct.css)(["width:32px;height:32px;"]),compact:Object(Ct.css)(["width:28px;height:28px;"])}})),Vt=ne(129),Yt=ne.n(Vt),Ut=St.a.div.withConfig({displayName:"PaletteStyles__StyledPalette",componentId:"qgv9v9-0"})(["width:",";padding:",";",""],Object(_t.pick)({enterprise:"180px",prisma:"224px"}),Object(_t.pick)({enterprise:_t.variables.spacingHalf,prisma:"8px"}),Object(_t.pick)({prisma:Object(Ct.css)(["display:flex;flex-direction:column;border-radius:2px;"])})),Kt=St.a.ul.withConfig({displayName:"PaletteStyles__StyledSwatches",componentId:"qgv9v9-1"})(["",";margin-bottom:",";margin-right:",";",""],_t.mixins.reset("block"),Object(_t.pick)({enterprise:"6px"}),Object(_t.pick)({enterprise:"-6px"}),Object(_t.pick)({prisma:Object(Ct.css)(["position:relative;"])})),Gt=St.a.li.withConfig({displayName:"PaletteStyles__StyledSwatch",componentId:"qgv9v9-2"})(["",";margin-right:",";margin-bottom:",";",""],_t.mixins.reset("inline-block"),Object(_t.pick)({enterprise:_t.variables.spacingQuarter,prisma:"4px"}),Object(_t.pick)({enterprise:_t.variables.spacingQuarter,prisma:"4px"}),Object(_t.pick)({prisma:Object(Ct.css)(["vertical-align:top;&:nth-child(8n){margin-right:0;}"])})),Zt=St.a.div.withConfig({displayName:"PaletteStyles__StyledToolBarPrisma",componentId:"qgv9v9-3"})(["position:relative;display:flex;align-items:center;padding:0;margin-top:12px;gap:4px;"]),Jt=St()(Et.a).withConfig({displayName:"PaletteStyles__StyledExpandButton",componentId:"qgv9v9-4"})(["position:absolute;bottom:4px;right:4px;padding:2px 4px;border-radius:2px;&:focus{box-shadow:",";}",""],_t.variables.focusShadow,(function(G){return G.$expanded&&Object(Ct.css)(["transform:rotate(180deg);"])})),Qt=St.a.div.withConfig({displayName:"PaletteStyles__StyledSystemColorPickerWrapper",componentId:"qgv9v9-5"})(["position:relative;"]),on=St.a.input.withConfig({displayName:"PaletteStyles__StyledSystemColorPicker",componentId:"qgv9v9-6"})(["box-sizing:border-box;height:24px;width:24px;border:none;border-radius:2px;outline:none;appearance:none;padding:12px;margin:0;background:conic-gradient( #ef3434,#ef9a34,#deef34,#78ef34,#34ef56,#34efbc,#34bcef,#3456ef,#7834ef,#de34ef,#ef349a,#ef3434 );background-repeat:no-repeat;background-position:-6px -6px;background-size:36px 36px;cursor:pointer;&::-webkit-color-swatch{border:none;border-radius:2px;}&::-moz-color-swatch{opacity:0;}&:focus{box-shadow:",";}"],_t.variables.focusShadow),sn=St()(At.a).withConfig({displayName:"PaletteStyles__StyledCheck",componentId:"qgv9v9-7"})(["box-sizing:border-box;color:#d3d3d3;height:100%;width:100%;position:absolute;top:0;left:0;pointer-events:none;"]);var cn=function Palette(G){var Z=G.expanded,ne=G.palette,ie=G.value,ce=G.swatchToFocusRef,fe=G.onSwatchClick,me=G.expandButtonRef,ge=G.onPaletteExpand,Ce=G.onSystemColorPickerChange,Se=G.renderInput,Me=Object(_t.useSplunkTheme)(),xe=Me.isPrisma,De=Me.isLight,Ie=ke()(ne.map((function(G){return G&&at()(G)})),ie),Re=ne.map((function(G,Z){var ne=null===G?null:at()(G),me=ne===ie,ge=!Ie&&0===Z||Ie&&me;return se.a.createElement(Gt,{key:ne||"null"},se.a.createElement(Wt,{value:ne,ref:ge?ce:null,onClick:fe,noBorder:xe,showSelected:xe&&me}))}));if(xe){var ze=!Ie&&"#ffffff"!==ie&&"#000000"!==ie&&null!==ie&&""!==ie,Je=8===Re.length?7:15,it=$e()(Re,0,Je),ot=$e()(Re,Je);return se.a.createElement(Ut,null,se.a.createElement("div",{style:{position:"relative"}},se.a.createElement(Kt,null,it,Z&&ot),Z&&se.a.createElement(Zt,{"data-test":"tool-bar"},se.a.createElement(_t.SplunkThemeProvider,{density:"compact"},Se&&Se()),se.a.createElement(Wt,{value:null,ref:null===ie?ce:null,onClick:fe,noBorder:!De,showSelected:null===ie}),se.a.createElement(Wt,{value:"#ffffff",ref:"#ffffff"===ie?ce:null,onClick:fe,noBorder:!De,showSelected:"#ffffff"===ie}),se.a.createElement(Wt,{value:"#000000",ref:"#000000"===ie?ce:null,onClick:fe,noBorder:!0,showSelected:"#000000"===ie}),se.a.createElement(Qt,null,se.a.createElement(on,{type:"color",value:null===ie?"":ie,onChange:Ce,ref:ze?ce:null}),ze&&se.a.createElement(sn,{"aria-label":Object(vt._)("Selected"),role:"presentation"}))),se.a.createElement(Jt,{ref:me,$expanded:Z,onClick:ge,"data-test":"expand-button"},se.a.createElement(Yt.a,null))))}return se.a.createElement(Ut,null,se.a.createElement(Kt,null,Re),Se&&Se())};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Color_extends(){return(Color_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne3*G.length)Z.push(ie);else{var se=40-ne/G.length*10;Z.push(dt()(ie).lighten(se).toString())}}return Z})),_n=["#ffffff","#000000",null],gn={append:fe.a.bool,defaultValue:fe.a.string,describedBy:fe.a.string,disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),error:fe.a.bool,hideInput:fe.a.bool,labelledBy:fe.a.string,name:fe.a.string,onChange:fe.a.func,palette:fe.a.array,prepend:fe.a.bool,splunkTheme:fe.a.object,value:fe.a.string},bn={append:!1,disabled:!1,error:!1,hideInput:!1,palette:mn(dn),prepend:!1},yn=function isValidHEX(G){return Object(yt.isValidHexColor)(G)},vn=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Color,G);var Z=_createSuper(Color);function Color(G){var ne;!function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Color),_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"focusSwatch",void 0),_defineProperty(_assertThisInitialized(ne),"focusExpandButton",void 0),_defineProperty(_assertThisInitialized(ne),"controlledExternally",void 0),_defineProperty(_assertThisInitialized(ne),"dropdown",null),_defineProperty(_assertThisInitialized(ne),"handleSwatchClick",(function(G,Z){var ie=Z.value;G.preventDefault();var se=ne.props,ce=se.name,fe=se.onChange,me=ie!==ne.getValue(),ge=null===ie?"N/A":ie;ne.isControlled()||ne.setState({value:ie}),ne.setState({displayValue:ge,open:!1}),me&&(null==fe||fe({value:ie,name:ce})),ne.focus()})),_defineProperty(_assertThisInitialized(ne),"handlePaletteExpand",(function(){ne.setState((function(G){return{expanded:!G.expanded}}))})),_defineProperty(_assertThisInitialized(ne),"handleTextChange",(function(G,Z){var ie=Z.value;ne.setState({displayValue:ie})})),_defineProperty(_assertThisInitialized(ne),"handleTextKeyDown",(function(G){"enter"===Object(wt.keycode)(G.nativeEvent)&&(G.preventDefault(),ne.handleRequestClose({reason:"enterKey"}),ne.focus())})),_defineProperty(_assertThisInitialized(ne),"handleButtonClick",(function(G){G.preventDefault(),ne.handleRequestClose({reason:"buttonClick"}),ne.focus()})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){var Z=G.reason,ie=ne.state.displayValue,se=ne.state.value;"n/a"===at()(ie)?(ie="N/A",ne.setState({displayValue:ie})):"transparent"===at()(ie)&&(ie="transparent",ne.setState({displayValue:ie})),"N/A"===ie||"transparent"===at()(ie)||it()(ie,"#")||(ie="#".concat(ie),"escapeKey"===Z?null==se?ne.setState({displayValue:"N/A"}):ne.setState({displayValue:se}):ne.setState({displayValue:ie})),"contentClick"!==Z&&ne.setState({open:!1}),"escapeKey"!==Z&&ne.submitValue(ie)})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(){var G=ne.props,Z=G.splunkTheme,ie=G.palette,se=Z.isPrisma,ce=ne.getValue(),fe=null===ce?"N/A":ce;ne.setState({displayValue:fe,open:!0},(function(){ne.focusSwatch.current&&ne.focusSwatch.current.focus&&ne.focusSwatch.current.focus()}));var me=se?$e()(ie,15):ie;(se&&!ke()(ie.map((function(G){return G&&at()(G)})),ce)||ke()(me.map((function(G){return G&&at()(G)})),ce)||ke()(_n,ce))&&!ne.state.expanded&&ne.setState({expanded:!0})})),_defineProperty(_assertThisInitialized(ne),"handleSystemColorPickerChange",ge()((function(G){var Z,ie,se=G!==ne.getValue(),ce=ne.props.name,fe=null===G?"N/A":G;(ne.isControlled()||ne.setState({value:G}),ne.setState({displayValue:fe}),se)&&(null===(Z=(ie=ne.props).onChange)||void 0===Z||Z.call(ie,{value:G,name:ce}));ne.focus()}),200)),ne.focusSwatch=se.a.createRef(),ne.focusExpandButton=se.a.createRef(),ne.controlledExternally=Se()(G,"value");var ie=ne.controlledExternally?Object(yt.expandShortHandHex)(G.value):Object(yt.expandShortHandHex)(G.defaultValue);null!==ie&&(ie=at()(ie));var ce=null===ie?"N/A":ie;return ne.state={displayValue:ce,open:!1,value:ie,expanded:!1},ne}return _createClass(Color,null,[{key:"hasNull",value:function hasNull(G){return G.some((function(G){return null===G}))}},{key:"hasTransparent",value:function hasTransparent(G){return G.some((function(G){return null!==G&&"transparent"===at()(G)}))}}]),_createClass(Color,[{key:"componentDidUpdate",value:function componentDidUpdate(G){}},{key:"showNull",value:function showNull(){var G=this.props.splunkTheme.isPrisma;return Color.hasNull(this.props.palette)||G}},{key:"getValue",value:function getValue(){var G=Object(yt.expandShortHandHex)(this.props.value);if(null!==this.props.value||this.showNull())return this.isControlled()?function formatValueForProp(G){return null===G?null:at()(G)}(G):this.state.value}},{key:"submitValue",value:function submitValue(G){var Z=this.props.splunkTheme.isPrisma;if(G){var ne=yn(G);if(ne||"transparent"===G||"N/A"===G||console.warn('"'.concat(G,'" is not a valid hex color.')),ne||Color.hasTransparent(this.props.palette)&&"transparent"===G||(Color.hasNull(this.props.palette)||Z)&&"N/A"===G){var ie=Object(yt.expandShortHandHex)(G);this.setState({displayValue:ie});var se,ce,fe=G!==(this.props.value&&at()(this.props.value)),me=this.props.name,ge="N/A"===G?null:G,Ce=Object(yt.expandShortHandHex)(ge);if(G&&!this.isControlled()&&this.setState({value:Ce}),fe)null===(se=(ce=this.props).onChange)||void 0===se||se.call(ce,{value:Ce,name:me})}}}},{key:"focus",value:function focus(){var G;null===(G=this.dropdown)||void 0===G||G.focus()}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"renderInput",value:function renderInput(G){var Z=G.textAppend,ne=G.textPrepend,ie=G.textInline,ce=G.inDropdown,fe=this.props.splunkTheme,me=this.state.displayValue,ge=fe.isPrisma,Ce=Color.hasTransparent(this.props.palette)&&"transparent"===at()(me),Se=this.showNull()&&"n/a"===at()(me),Me=me;return it()(me,"#")||(Me="#".concat(me)),Me=Ce?"transparent":Me,Me=Se?null:Me,se.a.createElement(Ft,{$inDropdown:ce},se.a.createElement(Ht,{$inDropdown:ce,append:Z,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-label":Object(vt._)("Hexadecimal color value"),prepend:ne,inline:ie,onKeyDown:this.handleTextKeyDown,onChange:this.handleTextChange,value:me}),!ge&&se.a.createElement(Wt,{"data-test":"textbox-swatch",onClick:this.handleButtonClick,value:Me,tabIndex:-1,style:{marginLeft:"1px"}}))}},{key:"renderPalette",value:function renderPalette(){var G=this,Z=this.props,ne=Z.splunkTheme,ie=Z.palette,ce=this.state.expanded,fe=ne.isPrisma;return se.a.createElement(cn,{palette:ie,value:this.getValue(),swatchToFocusRef:this.focusSwatch,renderInput:function renderInput(){return fe?G.renderInput({textAppend:!1,textPrepend:!1,textInline:!0,inDropdown:!0}):G.renderInput({textAppend:!0,textPrepend:!0,textInline:!0,inDropdown:!1})},expandButtonRef:this.focusExpandButton,onSwatchClick:this.handleSwatchClick,expanded:ce,onPaletteExpand:this.handlePaletteExpand,onSystemColorPickerChange:function onSystemColorPickerChange(Z){return G.handleSystemColorPickerChange(Z.target.value)}})}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.disabled,ce=Z.describedBy,fe=Z.elementRef,me=Z.error,ge=Z.hideInput,Ce=Z.labelledBy,Se=Z.name,Me=Z.prepend,ke=Z.splunkTheme,xe=Color_objectWithoutProperties(Z,["append","disabled","describedBy","elementRef","error","hideInput","labelledBy","name","prepend","splunkTheme"]),Ie=ke.isPrisma,ze=this.getValue(),$e=this.state.displayValue,Je=se.a.createElement($t,Color_extends({append:!(!Ie||ge)||ne,"data-test":"color","data-test-value":$e,"aria-describedby":ce,"aria-labelledby":Ce,"aria-invalid":me||void 0,disabled:ie,error:me,elementRef:fe,name:Se,prepend:Me,value:ze},Re()(xe,[].concat(_toConsumableArray(De()(Color.propTypes)),["onChange"]))));return se.a.createElement(Bt,null,se.a.createElement(ft.a,{closeReasons:["clickAway","escapeKey","offScreen","toggleClick"],onRequestClose:this.handleRequestClose,onRequestOpen:this.handleRequestOpen,open:this.state.open,ref:function ref(Z){G.dropdown=Z},retainFocus:!0,takeFocus:!1,toggle:Je},this.renderPalette()),Ie&&!ge&&this.renderInput({textAppend:!1,textPrepend:!0,textInline:!0,inDropdown:!1}))}}]),Color}(ie.Component);_defineProperty(vn,"propTypes",gn),_defineProperty(vn,"defaultProps",bn);var wn=Object(_t.withSplunkTheme)(vn);wn.propTypes=vn.propTypes;var Cn=wn},2:function(G,Z){G.exports=ne(0)},22:function(G,Z){G.exports=ne(1160)},3:function(G,Z){G.exports=ne(3)},32:function(G,Z){G.exports=ne(1313)},36:function(G,Z){G.exports=ne(736)},4:function(G,Z){G.exports=ne(371)},40:function(G,Z){G.exports=ne(85)},5:function(G,Z){G.exports=ne(41)},50:function(G,Z){G.exports=ne(4138)},68:function(G,Z){G.exports=ne(97)},69:function(G,Z){G.exports=ne(83)},7:function(G,Z){G.exports=ne(763)},78:function(G,Z){G.exports=ne(2882)},9:function(G,Z){G.exports=ne(62)}})},7445:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=308)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(490)},2:function(G,Z){G.exports=ne(491)},308:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0001 14.7858L18.2953 8.49062C18.6858 8.1001 19.319 8.1001 19.7095 8.49062C20.1 8.88115 20.1 9.51431 19.7095 9.90484L13.0607 16.5536C12.475 17.1394 11.5252 17.1394 10.9394 16.5536L4.28874 9.90289C3.89822 9.51236 3.89822 8.8792 4.28874 8.48868C4.67927 8.09815 5.31243 8.09815 5.70296 8.48868L12.0001 14.7858Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ChevronDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="chevrondown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7446:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=180)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},112:function(G,Z){G.exports=ne(548)},180:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"Column",(function(){return ze})),ne.d(Z,"Row",(function(){return ot}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(70),ge=ne.n(me),Ce=ne(112),Se=ne.n(Ce),Me=ne(3),ke=ne.n(Me),xe=ne(0),De=ke.a.div.withConfig({displayName:"ColumnStyles__Styled",componentId:"sc-1pchz98-0"})(["",";"],xe.mixins.reset("block")),Ie=ne(79);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Re={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number,isFirstChild:fe.a.bool,isLastChild:fe.a.bool,span:fe.a.number,style:fe.a.object};function Column(G){var Z=G.children,ne=G.elementRef,ie=G.gutter,ce=G.span,fe=void 0===ce?1:ce,me=G.isFirstChild,ge=G.isLastChild,Ce=G.style,Me=_objectWithoutProperties(G,["children","elementRef","gutter","span","isFirstChild","isLastChild","style"]),ke=ie?"calc((100% - ".concat(11*ie,"px) * ").concat(fe/12," + (").concat(ie,"px * ").concat(fe-1,"))"):"".concat(100/12*fe,"%");Object(Ie.a)(ie);var xe={marginLeft:me?void 0:ie/2,marginRight:ge?void 0:ie/2,flex:"".concat(fe," ").concat(fe," auto"),width:ke};return se.a.createElement(De,_extends({"data-test":"column",ref:ne,style:Se()({},Ce,xe)},Me),Z)}Column.propTypes=Re;var ze=Column,$e=ke.a.div.withConfig({displayName:"RowStyles__Styled",componentId:"sc-121ntds-0"})(["",";flex-flow:row nowrap;&[data-align-items='start']{align-items:flex-start;}&[data-align-items='end']{align-items:flex-end;}&[data-align-items='center']{align-items:center;}&[data-align-items='stretch']{align-items:stretch;}"],xe.mixins.reset("flex")),Je=ke.a.div.withConfig({displayName:"RowStyles__StyledDivider",componentId:"sc-121ntds-1"})(["border-left:1px solid ",";flex:0 0 1;align-self:stretch;"],Object(xe.pick)({prisma:xe.variables.neutral200,enterprise:{light:xe.variables.gray92,dark:xe.variables.gray60}}));function Row_extends(){return(Row_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var it={alignItems:fe.a.oneOf(["start","end","center","stretch"]),children:fe.a.node,divider:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number,isFirstChild:fe.a.bool,isLastChild:fe.a.bool,style:fe.a.object};function Row(G){var Z=G.alignItems,ne=void 0===Z?"stretch":Z,ce=G.children,fe=G.divider,me=G.elementRef,ge=G.gutter,Ce=G.isFirstChild,Me=G.isLastChild,ke=G.style,xe=Row_objectWithoutProperties(G,["alignItems","children","divider","elementRef","gutter","isFirstChild","isLastChild","style"]),De=Object(ie.useCallback)((function(G,Z){return Object(ie.cloneElement)(G,{gutter:ge,isFirstChild:0===Z,isLastChild:Z===ie.Children.count(ce)-1})}),[ce,ge]),Re=Object(ie.useCallback)((function(G,Z,ne,ie){return G.push(Z),fe&&ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ct={children:fe.a.node,divider:fe.a.oneOf(["none","vertical","horizontal"]),elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),gutter:fe.a.number};function ColumnLayout(G){var Z=G.children,ne=G.divider,ce=void 0===ne?"none":ne,fe=G.elementRef,me=G.gutter,Ce=ColumnLayout_objectWithoutProperties(G,["children","divider","elementRef","gutter"]),Se=ge()(),Me=Se.family,ke=Se.density,xe=Object(ie.useCallback)((function(G,ne){var se=0===ne,fe=ne===ie.Children.count(Z)-1,ge=me;return void 0===ge&&("prisma"===Me?"compact"===ke?ge=16:"comfortable"===ke&&(ge=24):"enterprise"===Me&&(ge=30)),Object(ie.cloneElement)(G,{gutter:ge,divider:"vertical"===ce,isFirstChild:se,isLastChild:fe})}),[Z,ke,ce,Me,me]),De=Object(ie.useCallback)((function(G,Z,ne,ie){return G.push(Z),"horizontal"===ce&&ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var St={children:fe.a.node,index:fe.a.number,onRequestRemove:fe.a.func,renderDragHandle:fe.a.func,style:fe.a.object,value:fe.a.node},Mt=se.a.forwardRef((function(G,Z){var ne=G.children,ce=G.index,fe=G.onRequestRemove,ge=G.renderDragHandle,Ce=_objectWithoutProperties(G,["children","index","onRequestRemove","renderDragHandle"]),Me=Object(ie.useContext)(Se),ke=Me.disabledDeleteButton,xe=(Me.hasOnRequestAdd,Me.onKeyDown),De=Me.sortable,Ie=Object(ie.useCallback)((function(G){null==xe||xe(G,{index:null!=ce?ce:0})}),[xe,ce]),Re=Object(ie.useCallback)((function(G){null==fe||fe(G,{index:null!=ce?ce:0})}),[fe,ce]),ze=void 0!==fe;return se.a.createElement(vt,_extends({$sortable:De,"data-test":"row",ref:Z,onKeyDown:Ie},$e()(Ce,["onKeyDown","onRequestRemove"])),ge&&ge(),ne,ze&&se.a.createElement(wt,null,se.a.createElement(it.a,{disabled:ke,"data-test":"remove",onClick:Re,screenReaderText:Object(me._)("Remove Row")})))}));Mt.propTypes=St;var kt=Mt,xt=ne(109),Lt=ne(137),Tt=ne(14),At=ne.n(Tt),Dt=ne(10);function SortableRow_objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function SortableRow_objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function SortableRow_extends(){return(SortableRow_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function FormRows_classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function FormRows_defineProperties(G,Z){for(var ne=0;ne0&&(null===(ie=(ce=G.props).onRequestMove)||void 0===ie||ie.call(ce,{fromIndex:fe,toIndex:fe-1}));else if("down"===Object(ge.keycode)(Z.nativeEvent)){var me,Ce;if(Z.preventDefault(),fe=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5V11H5C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13H11V19C11 19.5523 11.4477 20 12 20C12.5523 20 13 19.5523 13 19V13H19C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11H13V5Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Plus(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="plus-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7449:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=131)}({0:function(G,Z){G.exports=ne(0)},131:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Plus}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var $e={disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string};function CloseButton(G){var Z=G.disabled,ne=void 0!==Z&&Z,ie=G.screenReaderText,ce=void 0===ie?Object(ke._)("Close"):ie,fe=_objectWithoutProperties(G,["disabled","screenReaderText"]),me=Object(Me.useSplunkTheme)(),Ce=me.isEnterprise,xe=me.isCompact?"20px":"24px";return se.a.createElement(ze,_extends({appearance:"pill",disabled:ne,"aria-label":ce},fe),Ce?se.a.createElement(Se.a,{"data-test":"cross",inline:!1,screenReaderText:null,size:"13px"}):se.a.createElement(ge.a,{"data-test":"cross",height:xe,width:xe}))}CloseButton.propTypes=$e;var Je=CloseButton},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(371)},64:function(G,Z){G.exports=ne(4115)}})},7451:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=172)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},110:function(G,Z){G.exports=ne(7452)},141:function(G,Z){G.exports=ne(1507)},142:function(G,Z){G.exports=ne(8401)},143:function(G,Z){G.exports=ne(7453)},144:function(G,Z){G.exports=ne(7454)},172:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Vt})),ne.d(Z,"MarkdownBlockquote",(function(){return it})),ne.d(Z,"MarkdownCodeBlock",(function(){return ht})),ne.d(Z,"MarkdownCode",(function(){return at})),ne.d(Z,"MarkdownHeading",(function(){return vt})),ne.d(Z,"MarkdownAnchorHeading",(function(){return Mt})),ne.d(Z,"MarkdownImage",(function(){return xt})),ne.d(Z,"MarkdownItem",(function(){return zt})),ne.d(Z,"MarkdownLink",(function(){return Dt})),ne.d(Z,"MarkdownList",(function(){return Nt})),ne.d(Z,"MarkdownParagraph",(function(){return Ft}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(141),ge=ne.n(me),Ce=ne(142),Se=ne(6),Me=ne.n(Se),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.div.withConfig({displayName:"MarkdownStyles__StyledCodeBlock",componentId:"sc-1xadih-0"})(["padding:",";margin:"," 0;background-color:",";"],Object(De.pick)({enterprise:De.variables.spacingHalf,prisma:Object(ke.css)(["10px ",""],De.variables.spacingLarge)}),Object(De.pick)({enterprise:De.variables.spacingHalf,prisma:De.variables.spacingLarge}),Object(De.pick)({enterprise:{light:De.variables.gray96,dark:De.variables.gray22},prisma:De.variables.backgroundColorSection})),Re=xe.a.code.withConfig({displayName:"MarkdownStyles__StyledCodeInline",componentId:"sc-1xadih-1"})(["",";font-family:",";background-color:",";"],De.mixins.reset("inline"),De.variables.monoFontFamily,Object(De.pick)({enterprise:{light:De.variables.gray92,dark:De.variables.gray22},prisma:De.variables.neutral200})),ze=xe.a.blockquote.withConfig({displayName:"MarkdownStyles__StyledHint",componentId:"sc-1xadih-2"})([""," "," background-color:",";margin-bottom:15px;padding:",";border-left:10px solid ",";>:last-child{margin-bottom:0;}"],De.mixins.reset("block"),De.mixins.clearfix(),Object(De.pick)({enterprise:{light:De.variables.infoColorL50,dark:De.variables.infoColorD50},prisma:De.variables.neutral100}),De.variables.spacingSmall,De.variables.infoColor),$e=xe.a.img.withConfig({displayName:"MarkdownStyles__StyledImage",componentId:"sc-1xadih-3"})(["max-width:100%;"]),Je={children:fe.a.node};function MarkdownBlockquote(G){var Z=G.children;return se.a.createElement(ze,null,Z)}MarkdownBlockquote.propTypes=Je;var it=MarkdownBlockquote,ot={literal:fe.a.string};function MarkdownCode(G){var Z=G.literal;return se.a.createElement(Re,null,Z)}MarkdownCode.propTypes=ot;var at=MarkdownCode,st=ne(143),ct=ne.n(st),ut=ne(4),dt={literal:fe.a.string,language:fe.a.string};function MarkdownCodeBlock(G){var Z=G.literal,ne=G.language;return se.a.createElement(Ie,null,se.a.createElement(ct.a,{"aria-label":Object(ut._)("Code Block"),language:ne,value:Z,style:{margin:0}}))}MarkdownCodeBlock.propTypes=dt;var ht=MarkdownCodeBlock,ft=ne(80),_t=ne.n(ft),yt={children:fe.a.node};function MarkdownHeading(G){var Z=G.level,ne=G.children;return se.a.createElement(_t.a,{level:Math.min(Z,4)},ne)}MarkdownHeading.propTypes=yt;var vt=MarkdownHeading,wt=ne(88),Ct=ne.n(wt),St={children:fe.a.node};function MarkdownAnchorHeading(G){var Z=G.level,ne=G.children;return se.a.createElement(_t.a,{level:Math.min(Z,4)},se.a.createElement(Ct.a,{name:ne.toString().toLowerCase().replace(/[^a-z0-9-. ]/g,"").replace(/[-. ]+/g,"-")},ne))}MarkdownAnchorHeading.propTypes=St;var Mt=MarkdownAnchorHeading,kt={alt:fe.a.string,src:fe.a.string,title:fe.a.string};function MarkdownImage(G){var Z=G.src,ne=G.title,ie=G.alt;return se.a.createElement($e,{src:Z,title:ne,alt:ie})}MarkdownImage.propTypes=kt;var xt=MarkdownImage,Lt=ne(37),Tt=ne.n(Lt);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var At={children:fe.a.node,href:fe.a.string,title:fe.a.string};function MarkdownLink(G){var Z=G.children,ne=G.href,ie=_objectWithoutProperties(G,["children","href"]);return se.a.createElement(Tt.a,_extends({to:ne},ie),Z)}MarkdownLink.propTypes=At;var Dt=MarkdownLink,Et=ne(110),jt=ne.n(Et),It={children:fe.a.node,type:fe.a.string};function MarkdownList(G){var Z=G.children;return"ordered"===G.type?se.a.createElement(jt.a,{ordered:!0},Z):se.a.createElement(jt.a,null,Z)}MarkdownList.propTypes=It;var Nt=MarkdownList,Rt={children:fe.a.node};function MarkdownItem(G){var Z=G.children;return se.a.createElement(Et.Item,null,Z)}MarkdownItem.propTypes=Rt;var zt=MarkdownItem,qt=ne(144),Wt=ne.n(qt),Bt={children:fe.a.node};function MarkdownParagraph(G){var Z=G.children;return se.a.createElement(Wt.a,null,Z)}MarkdownParagraph.propTypes=Bt;var Ft=MarkdownParagraph;function Markdown_extends(){return(Markdown_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ht={blockquoteRenderer:fe.a.func,codeBlockRenderer:fe.a.func,codeRenderer:fe.a.func,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),headingRenderer:fe.a.func,imageRenderer:fe.a.func,itemRenderer:fe.a.func,linkRenderer:fe.a.func,listRenderer:fe.a.func,paragraphRenderer:fe.a.func,text:fe.a.string.isRequired},$t=new Ce.Parser;function Markdown(G){var Z=G.blockquoteRenderer,ne=G.codeBlockRenderer,ie=G.codeRenderer,ce=G.headingRenderer,fe=G.imageRenderer,me=G.itemRenderer,Ce=G.linkRenderer,Se=G.listRenderer,ke=G.paragraphRenderer,xe=G.text,De=Markdown_objectWithoutProperties(G,["blockquoteRenderer","codeBlockRenderer","codeRenderer","headingRenderer","imageRenderer","itemRenderer","linkRenderer","listRenderer","paragraphRenderer","text"]),Ie={escapeHtml:!0,renderers:{CodeBlock:ne||ht,Code:ie||at,Heading:ce||vt,Link:Ce||Dt,List:Se||Nt,Item:me||zt,Paragraph:ke||Ft}};Z&&(Ie.renderers.Blockquote=Z),fe&&(Ie.renderers.Image=fe);var Re=new ge.a(function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ke={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Item(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Me,_extends({"data-test":"item",ref:ne},ie),Z)}Item.propTypes=ke;var xe=Item;function List_extends(){return(List_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var De={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),ordered:fe.a.bool,type:fe.a.oneOf(["disc","decimal","lower-alpha","upper-alpha"])};function List(G){var Z=G.children,ne=G.elementRef,ie=G.type,ce=void 0===ie?"disc":ie,fe=G.ordered,me=List_objectWithoutProperties(G,["children","elementRef","type","ordered"]);return se.a.createElement(Se,List_extends({as:fe||"disc"!==ce?"ol":"ul","data-test":"list",ref:ne,$type:fe||"decimal"===ce?"decimal":ce},me),Z)}List.propTypes=De,List.Item=xe;var Ie=List},3:function(G,Z){G.exports=ne(3)}})},7453:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=219)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},118:function(G,Z,ne){!function(){var Z=void 0,ne=void 0,ie=function(G){var ne=/\blang(?:uage)?-([\w-]+)\b/i,ie=0,se={},ce={manual:G.Prism&&G.Prism.manual,disableWorkerMessageHandler:G.Prism&&G.Prism.disableWorkerMessageHandler,util:{encode:function encode(G){return G instanceof Token?new Token(G.type,encode(G.content),G.alias):Array.isArray(G)?G.map(encode):G.replace(/&/g,"&").replace(/=fe.reach);$e+=ze.value.length,ze=ze.next){var Je=ze.value;if(Z.length>G.length)return;if(!(Je instanceof Token)){var it,ot=1;if(xe){if(!(it=matchPattern(Re,$e,G,ke)))break;var at=it.index,st=it.index+it[0].length,ct=$e;for(ct+=ze.value.length;at>=ct;)ze=ze.next,ct+=ze.value.length;if(ct-=ze.value.length,$e=ct,ze.value instanceof Token)continue;for(var ut=ze;ut!==Z.tail&&(ctfe.reach&&(fe.reach=_t);var yt=ze.prev;ht&&(yt=addAfter(Z,yt,ht),$e+=ht.length),removeRange(Z,yt,ot);var vt=new Token(me,Me?ce.tokenize(dt,Me):dt,De,dt);if(ze=addAfter(Z,yt,vt),ft&&addAfter(Z,ze,ft),ot>1){var wt={cause:me+","+Ce,reach:_t};matchGrammar(G,Z,ne,ze.prev,$e,wt),fe&&wt.reach>fe.reach&&(fe.reach=wt.reach)}}}}}}(G,se,Z,se.head,0),function toArray(G){var Z=[],ne=G.head.next;for(;ne!==G.tail;)Z.push(ne.value),ne=ne.next;return Z}(se)},hooks:{all:{},add:function(G,Z){var ne=ce.hooks.all;ne[G]=ne[G]||[],ne[G].push(Z)},run:function(G,Z){var ne=ce.hooks.all[G];if(ne&&ne.length)for(var ie,se=0;ie=ne[se++];)ie(Z)}},Token:Token};function Token(G,Z,ne,ie){this.type=G,this.content=Z,this.alias=ne,this.length=0|(ie||"").length}function matchPattern(G,Z,ne,ie){G.lastIndex=Z;var se=G.exec(ne);if(se&&ie&&se[1]){var ce=se[1].length;se.index+=ce,se[0]=se[0].slice(ce)}return se}function LinkedList(){var G={value:null,prev:null,next:null},Z={value:null,prev:G,next:null};G.next=Z,this.head=G,this.tail=Z,this.length=0}function addAfter(G,Z,ne){var ie=Z.next,se={value:ne,prev:Z,next:ie};return Z.next=se,ie.prev=se,G.length++,se}function removeRange(G,Z,ne){for(var ie=Z.next,se=0;se"+ie.content+""},!G.document)return G.addEventListener?(ce.disableWorkerMessageHandler||G.addEventListener("message",(function(Z){var ne=JSON.parse(Z.data),ie=ne.language,se=ne.code,fe=ne.immediateClose;G.postMessage(ce.highlight(se,ce.languages[ie],ie)),fe&&G.close()}),!1),ce):ce;var fe=ce.util.currentScript();function highlightAutomaticallyCallback(){ce.manual||ce.highlightAll()}if(fe&&(ce.filename=fe.src,fe.hasAttribute("data-manual")&&(ce.manual=!0)),!ce.manual){var me=document.readyState;"loading"===me||"interactive"===me&&fe&&fe.defer?document.addEventListener("DOMContentLoaded",highlightAutomaticallyCallback):Z.requestAnimationFrame?Z.requestAnimationFrame(highlightAutomaticallyCallback):Z.setTimeout(highlightAutomaticallyCallback,16)}return ce}(void 0!==Z?Z:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});G.exports&&(G.exports=ie),void 0!==ne&&(ne.Prism=ie),ie.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},ie.languages.webmanifest=ie.languages.json,ie.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},ie.languages.markup.tag.inside["attr-value"].inside.entity=ie.languages.markup.entity,ie.languages.markup.doctype.inside["internal-subset"].inside=ie.languages.markup,ie.hooks.add("wrap",(function(G){"entity"===G.type&&(G.attributes.title=G.content.replace(/&/,"&"))})),Object.defineProperty(ie.languages.markup.tag,"addInlined",{value:function addInlined(G,Z){var ne={};ne["language-"+Z]={pattern:/(^$)/i,lookbehind:!0,inside:ie.languages[Z]},ne.cdata=/^$/i;var se={"included-cdata":{pattern://i,inside:ne}};se["language-"+Z]={pattern:/[\s\S]+/,inside:ie.languages[Z]};var ce={};ce[G]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return G})),"i"),lookbehind:!0,greedy:!0,inside:se},ie.languages.insertBefore("markup","cdata",ce)}}),Object.defineProperty(ie.languages.markup.tag,"addAttribute",{value:function(G,Z){ie.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Z,"language-"+Z],inside:ie.languages[Z]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ie.languages.html=ie.languages.markup,ie.languages.mathml=ie.languages.markup,ie.languages.svg=ie.languages.markup,ie.languages.xml=ie.languages.extend("markup",{}),ie.languages.ssml=ie.languages.xml,ie.languages.atom=ie.languages.xml,ie.languages.rss=ie.languages.xml,ie.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},ie.languages.javascript=ie.languages.extend("clike",{"class-name":[ie.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),ie.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,ie.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ie.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ie.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ie.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ie.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ie.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ie.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ie.languages.javascript}},string:/[\s\S]+/}}}),ie.languages.markup&&(ie.languages.markup.tag.addInlined("script","javascript"),ie.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),ie.languages.js=ie.languages.javascript,function(G){var Z=G.util.clone(G.languages.javascript),ne=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,ie=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,se=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(G,Z){return G=G.replace(//g,(function(){return ne})).replace(//g,(function(){return ie})).replace(//g,(function(){return se})),RegExp(G,Z)}se=re(se).source,G.languages.jsx=G.languages.extend("markup",Z),G.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),G.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,G.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,G.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,G.languages.jsx.tag.inside.comment=Z.comment,G.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:G.languages.jsx}},G.languages.jsx.tag),G.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:G.languages.jsx},alias:"language-javascript"}},G.languages.jsx.tag);var stringifyToken=function(G){return G?"string"==typeof G?G:"string"==typeof G.content?G.content:G.content.map(stringifyToken).join(""):""},walkTokens=function(Z){for(var ne=[],ie=0;ie0&&ne[ne.length-1].tagName===stringifyToken(se.content[0].content[1])&&ne.pop():"/>"===se.content[se.content.length-1].content||ne.push({tagName:stringifyToken(se.content[0].content[1]),openedBraces:0}):ne.length>0&&"punctuation"===se.type&&"{"===se.content?ne[ne.length-1].openedBraces++:ne.length>0&&ne[ne.length-1].openedBraces>0&&"punctuation"===se.type&&"}"===se.content?ne[ne.length-1].openedBraces--:ce=!0),(ce||"string"==typeof se)&&ne.length>0&&0===ne[ne.length-1].openedBraces){var fe=stringifyToken(se);ie0&&("string"==typeof Z[ie-1]||"plain-text"===Z[ie-1].type)&&(fe=stringifyToken(Z[ie-1])+fe,Z.splice(ie-1,1),ie--),Z[ie]=new G.Token("plain-text",fe,null,fe)}se.content&&"string"!=typeof se.content&&walkTokens(se.content)}};G.hooks.add("after-tokenize",(function(G){"jsx"!==G.language&&"tsx"!==G.language||walkTokens(G.tokens)}))}(ie),function(G){G.languages.typescript=G.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),G.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete G.languages.typescript.parameter;var Z=G.languages.extend("typescript",{});delete Z["class-name"],G.languages.typescript["class-name"].inside=Z,G.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Z}}}}),G.languages.ts=G.languages.typescript}(ie),function(G){var Z=G.util.clone(G.languages.typescript);G.languages.tsx=G.languages.extend("jsx",Z);var ne=G.languages.tsx.tag;ne.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+ne.pattern.source+")",ne.pattern.flags),ne.lookbehind=!0}(ie),function(G){var Z=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;G.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Z.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Z.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+Z.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Z,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},G.languages.css.atrule.inside.rest=G.languages.css;var ne=G.languages.markup;ne&&(ne.tag.addInlined("style","css"),ne.tag.addAttribute("style","css"))}(ie),function(G){var Z="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",ne={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},ie={bash:ne,environment:{pattern:RegExp("\\$"+Z),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Z),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};G.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Z),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:ie},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:ne}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:ie},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:ie.entity}}],environment:{pattern:RegExp("\\$?"+Z),alias:"constant"},variable:ie.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},ne.inside=G.languages.bash;for(var se=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],ce=ie.variable[1].inside,fe=0;fe|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,ie="(?:"+ne.source+"(?:[ \t]+"+Z.source+")?|"+Z.source+"(?:[ \t]+"+ne.source+")?)",se=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),ce=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(G,Z){Z=(Z||"").replace(/m/g,"")+"m";var ne=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return ie})).replace(/<>/g,(function(){return G}));return RegExp(ne,Z)}G.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return ie}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return ie})).replace(/<>/g,(function(){return"(?:"+se+"|"+ce+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/true|false/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(ce),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:ne,important:Z,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},G.languages.yml=G.languages.yaml}(ie),ie.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}()},128:function(G,Z){G.exports=ne(299)},2:function(G,Z){G.exports=ne(0)},219:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(67),ge=ne.n(me),Ce=ne(128),Se=ne.n(Ce),Me=ne(84),ke=ne.n(Me),xe=ne(82),De=ne.n(xe),Ie=ne(81),Re=ne.n(Ie),ze=ne(118),$e=ne.n(ze),Je=ne(3),it=ne.n(Je),ot=ne(0),at=it.a.pre.withConfig({displayName:"CodeStyles__Styled",componentId:"sc-1eq4k68-0"})(["",";"," line-height:",";text-align:left;tab-size:4;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;hyphens:none;overflow-x:auto;margin-bottom:1.3em;&:focus-visible{outline:solid ",";}"],ot.mixins.reset("block"),Object(ot.pick)({enterprise:{dark:Object(Je.css)(["color:",";"],ot.variables.gray92)}}),Object(ot.pick)({enterprise:"17px",prisma:ot.variables.lineHeight}),ot.variables.focusColor),st=it.a.code.withConfig({displayName:"CodeStyles__StyledCode",componentId:"sc-1eq4k68-1"})(["font-family:",";"],ot.variables.monoFontFamily),ct=it.a.span.withConfig({displayName:"CodeStyles__StyledIndent",componentId:"sc-1eq4k68-2"})(["&:not(:last-child){background-image:linear-gradient( to left,rgba(0,0,0,0.15) 1px,transparent 1px,transparent );}"]),ut=Object(ot.pick)({prisma:ot.variables.syntaxGray,enterprise:{dark:ot.variables.gray60,light:ot.variables.syntaxGray}}),dt=Object(ot.pick)({prisma:ot.variables.syntaxPurple,enterprise:{dark:ot.variables.syntaxPurpleLight,light:ot.variables.syntaxPurple}}),ht=Object(ot.pick)({prisma:ot.variables.syntaxGreen,enterprise:{dark:ot.variables.syntaxGreenLight,light:ot.variables.syntaxGreen}}),ft=Object(ot.pick)({prisma:ot.variables.syntaxBlue,enterprise:{dark:ot.variables.syntaxBlueLight,light:ot.variables.syntaxBlue}}),_t=Object(ot.pick)({prisma:ot.variables.syntaxRed,enterprise:{dark:ot.variables.syntaxRedLight,light:ot.variables.syntaxRed}}),yt={comment:ut,prolog:ut,doctype:ut,cdata:ut,punctuation:ut,property:dt,tag:dt,boolean:dt,number:dt,constant:dt,symbol:dt,deleted:dt,key:dt,selector:ht,"attr-name":ht,string:ht,char:ht,builtin:ht,inserted:ht,operator:ot.variables.syntaxBrown,entity:ot.variables.syntaxBrown,url:ot.variables.syntaxBrown,atrule:ft,"attr-value":ft,keyword:ft,function:_t,regex:ot.variables.syntaxOrange,important:ot.variables.syntaxOrange,variable:ot.variables.syntaxOrange},vt=it.a.span.withConfig({displayName:"CodeStyles__StyledToken",componentId:"sc-1eq4k68-3"})(["color:",";cursor:",";opacity:",";font-style:",";font-weight:",";"],(function(G){var Z=G.partType;return yt[Z]}),(function(G){return"entity"===G.partType?"help":null}),(function(G){return"namespace"===G.partType?.7:null}),(function(G){return"italic"===G.partType?"italic":null}),(function(G){var Z=G.partType;return"important"===Z||"bold"===Z?"bold":null}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var wt=["bash","clike","css","html","json","javascript","js","jsx","typescript","ts","tsx","markup","mathml","splunk-spl","svg","xml","yaml","yml"];var Ct={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),indentChars:fe.a.number,language:fe.a.oneOf(wt),languageFallback:fe.a.oneOf(wt),showIndentGuide:fe.a.bool,value:fe.a.string};function Code(G){var Z=G.elementRef,ne=G.indentChars,ie=void 0===ne?4:ne,ce=G.language,fe=G.languageFallback,me=void 0===fe?"javascript":fe,Ce=G.showIndentGuide,Me=void 0===Ce||Ce,xe=G.value,Ie=void 0===xe?"":xe,ze=_objectWithoutProperties(G,["elementRef","indentChars","language","languageFallback","showIndentGuide","value"]),Je=De()(" ",ie);var it=ke()(wt,ce)>-1&&ce?ce:me,ot=function render(G){return ge()(G).map((function(G,Z){if("string"==typeof G){if(!Me)return G;var ne=G.split("\n");return 1===ne.length?G:Se()(ne.map((function(G,ne){var ce=0===ne?[]:["\n"],fe=G.match(/^(\s+)(.*)/);return fe?ce.push(se.a.createElement("span",{key:"".concat(Z.toString(),":").concat(ne.toString())},function makeIndentGuide(G){var Z=Math.floor(G/ie),ne=G%ie,ce=Re()(Z,(function(G){return se.a.createElement(ct,{key:G.toString()},Je)}));return ne&&ce.push(De()(" ",ne)),ce}(fe[1].length)),fe[2]):ce.push(G),ce})))}var ce="string"==typeof G.content?G.content:render(G.content);return se.a.createElement(vt,{"data-part-type":G.type,partType:G.type,key:Z.toString()},ce)}))}(function tokenize(G,Z){return $e.a.tokenize(G,$e.a.languages[Z])}(Ie,it));return se.a.createElement(at,_extends({"data-test":"code",ref:Z,tabIndex:0},ze),se.a.createElement(st,{className:"language-".concat(it)},ot))}Code.propTypes=Ct;var St=Code},3:function(G,Z){G.exports=ne(3)},67:function(G,Z){G.exports=ne(594)},81:function(G,Z){G.exports=ne(1426)},82:function(G,Z){G.exports=ne(423)},84:function(G,Z){G.exports=ne(292)}})},7454:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=227)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},227:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.p.withConfig({displayName:"ParagraphStyles__Styled",componentId:"sic5zk-0"})(["",";",";",""],Ce.mixins.reset("block"),Ce.mixins.typography("body"),Object(Ce.pick)({enterprise:Object(me.css)(["margin-bottom:calc("," / 2);"],Ce.variables.lineHeight),prisma:Object(me.css)(["margin-bottom:14px;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function Paragraph(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"paragraph",ref:ne},ie),Z)}Paragraph.propTypes=Me;var ke=Paragraph},3:function(G,Z){G.exports=ne(3)}})},7455:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=213)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},213:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.a.withConfig({displayName:"AnchorStyles__StyledAnchor",componentId:"sc-1m9yzet-0"})(["",";color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;text-decoration:inherit;text-rendering:inherit;text-transform:inherit;cursor:pointer;margin:1px;&:hover::after{content:' #';opacity:0.5;}&:focus,&:active{box-shadow:",";&::after{content:' #';opacity:0.5;}}"],Ce.mixins.reset("inline"),Ce.variables.focusShadow);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),name:fe.a.string.isRequired};function Anchor(G){var Z=G.children,ne=G.elementRef,ie=G.name,ce=_objectWithoutProperties(G,["children","elementRef","name"]);return se.a.createElement(Se,_extends({"data-test":"anchor",ref:ne},ce,{name:ie,href:"#".concat(ie)}),Z)}Anchor.propTypes=Me;var ke=Anchor},3:function(G,Z){G.exports=ne(3)}})},7456:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=187)}([function(G,Z){G.exports=ne(204)},function(G,Z){G.exports=ne(2)},function(G,Z){G.exports=ne(0)},function(G,Z){G.exports=ne(3)},function(G,Z){G.exports=ne(371)},function(G,Z){G.exports=ne(41)},function(G,Z){G.exports=ne(604)},function(G,Z){G.exports=ne(763)},function(G,Z){G.exports=ne(979)},function(G,Z){G.exports=ne(62)},function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},function(G,Z){G.exports=ne(63)},function(G,Z){G.exports=ne(530)},function(G,Z){G.exports=ne(2881)},function(G,Z){G.exports=ne(891)},function(G,Z){G.exports=ne(65)},,function(G,Z){G.exports=ne(762)},function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},,,function(G,Z){G.exports=ne(1308)},function(G,Z){G.exports=ne(1160)},function(G,Z){G.exports=ne(78)},,function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return ze})),ne.d(Z,"c",(function(){return Me})),ne.d(Z,"d",(function(){return ke})),ne.d(Z,"e",(function(){return De})),ne.d(Z,"f",(function(){return xe})),ne.d(Z,"g",(function(){return Je})),ne.d(Z,"h",(function(){return it})),ne.d(Z,"i",(function(){return ot})),ne.d(Z,"j",(function(){return Re})),ne.d(Z,"k",(function(){return $e}));var ie=ne(3),se=ne.n(ie),ce=ne(12),fe=ne.n(ce),me=ne(39),ge=ne.n(me),Ce=ne(0),Se=Object(ie.css)(["color:",";font-size:",";line-height:",";overflow:inherit;white-space:inherit;text-overflow:inherit;"],Object(Ce.pick)({prisma:Ce.variables.contentColorDefault,enterprise:Ce.variables.textGray}),Ce.variables.fontSizeSmall,Object(Ce.pick)({prisma:"16px"})),Me=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionBottom",componentId:"sc-4kc053-0"})(["",";display:block;"],Se),ke=se.a.span.withConfig({displayName:"ItemStyles__StyledItemDescriptionRight",componentId:"sc-4kc053-1"})(["",";float:right;padding-left:",";max-width:50%;text-align:right;box-sizing:border-box;"],Se,Ce.variables.spacing),xe=se.a.div.withConfig({displayName:"ItemStyles__StyledItemSelectedIcon",componentId:"sc-4kc053-2"})(["position:absolute;"," color:",";"],Object(Ce.pick)({prisma:Object(ie.css)(["right:16px;"]),enterprise:Object(ie.css)(["top:5px;right:3px;left:8px;"])}),Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:Ce.variables.accentColorL10})),De=se.a.span.withConfig({displayName:"ItemStyles__StyledItemIcon",componentId:"sc-4kc053-3"})(["flex:0 0 auto;padding-right:",";min-width:10px;display:inline-block;text-align:center;vertical-align:",";",""],Object(Ce.pick)({prisma:"8px",enterprise:"3px"}),Object(Ce.pick)({prisma:"initial",enterprise:"middle"}),Object(Ce.pick)({prisma:Object(ie.css)(["color:",";display:inline-flex;align-items:center;min-width:20px;min-height:20px;& > svg{width:20px;height:20px;}"],Ce.variables.contentColorMuted),enterprise:Object(ie.css)(["transform:translateY(-1px);"])})),Ie=se()(fe.a).withConfig({displayName:"ItemStyles__StyledClickable",componentId:"sc-4kc053-4"})(["display:block;position:relative;cursor:pointer;color:",";word-wrap:break-word;max-width:100%;width:100%;padding:",";"," "," "," &:not([disabled]){&:hover{background:",";","}&:focus{outline:0;box-shadow:",";","}"," ","}&[disabled]{color:",";cursor:not-allowed;",",","{color:inherit;}","{cursor:not-allowed;color:",";}","}",""],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray22}}),Object(Ce.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),(function(G){var Z=G.$isSelectable,ne=G.$selectableAppearance;return Z&&Object(Ce.pick)({prisma:Object(ie.css)(["padding-right:44px;",""],(function(){return"checkbox"===ne&&"padding-left: 42px;"})),enterprise:Object(ie.css)(["padding-right:10px;padding-left:",";"],(function(){return"checkbox"===ne?"32px":"28px"}))})}),(function(G){var Z=G.$active,ne=G.$preventFocus;return Z&&!ne&&Object(ie.css)(["box-shadow:",";"],Ce.variables.focusShadowInset)}),(function(G){return G.$active&&Object(ie.css)(["background:",";font-weight:",";"],Object(Ce.pick)({enterprise:{light:Ce.variables.gray92,dark:Ce.variables.gray22},prisma:Ce.variables.neutral100}),Ce.variables.fontWeightBold)}),Object(Ce.pick)({prisma:Ce.variables.interactiveColorOverlayHover,enterprise:Ce.variables.backgroundColorHover}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayHover))})}),Ce.variables.focusShadowInset,Object(Ce.pick)({prisma:Object(ie.css)(["background:",";"],Ce.variables.interactiveColorOverlayHover)}),Object(Ce.pick)({prisma:Object(ie.css)(["&:active{background:",";}"],Ce.variables.interactiveColorOverlayActive)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["background:",";&:active{background:",";}"],Ce.variables.interactiveColorOverlaySelected,Ce.mixins.overlayColors(Ce.variables.interactiveColorOverlaySelected,Ce.variables.interactiveColorOverlayActive))})}),Object(Ce.pick)({enterprise:{light:Ce.variables.gray45,dark:Ce.variables.contentColorDisabled},prisma:Ce.variables.contentColorDisabled}),Me,ke,xe,Object(Ce.pick)({prisma:Ce.variables.contentColorDisabled,enterprise:Ce.variables.gray80}),Object(Ce.pick)({prisma:Object(ie.css)(["& > * > ","{color:",";}"],De,Ce.variables.contentColorDisabled)}),(function(G){return G.$selected&&Object(Ce.pick)({prisma:Object(ie.css)(["","{color:",";}"],De,Ce.variables.contentColorActive)})})),Re=se()(ge.a).withConfig({displayName:"ItemStyles__StyledSwitch",componentId:"sc-4kc053-5"})(["position:absolute;left:",";top:",";"],Object(Ce.pick)({prisma:"16px",enterprise:"8px"}),Object(Ce.pick)({prisma:"0px",enterprise:{comfortable:"-1px",compact:"2px"}})),ze=se.a.span.withConfig({displayName:"ItemStyles__StyledInnerWrapper",componentId:"sc-4kc053-6"})(["display:flex;align-items:flex-start;"]),$e=se.a.span.withConfig({displayName:"ItemStyles__StyledTitleAndDescriptionWrapper",componentId:"sc-4kc053-7"})(["max-width:100%;width:100%;align-self:center;word-break:break-word;white-space:normal;",""],(function(G){return G.$truncate&&Object(ie.css)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])})),Je=se.a.div.withConfig({displayName:"ItemStyles__StyledLabel",componentId:"sc-4kc053-8"})(["overflow:inherit;white-space:inherit;text-overflow:inherit;max-width:100%;min-height:20px;",""],(function(G){return G.$truncate&&Object(ie.css)(["display:block;clear:both;"])})),it=se.a.span.withConfig({displayName:"ItemStyles__StyledMatch",componentId:"sc-4kc053-9"})(["border-bottom:1px solid ",";"],Object(Ce.pick)({prisma:Ce.variables.contentColorActive,enterprise:{dark:Ce.variables.gray96,light:Ce.variables.gray45}})),ot=se.a.span.withConfig({displayName:"ItemStyles__StyledSubmenu",componentId:"sc-4kc053-10"})(["float:right;padding-left:",";color:",";"],Ce.variables.spacingSmall,Object(Ce.pick)({prisma:"inherit",enterprise:Ce.variables.textGray}))},,,function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},,function(G,Z,ne){"use strict";var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(13);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;neZ.value?(fece)&&(ne=G):ce>fe&&(ne=G):ne=G}return!1}));return 0===ce.length&&ne?[ne]:ce}},,function(G,Z){G.exports=ne(198)},function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return wt.Divider})),ne.d(Z,"b",(function(){return wt.Heading})),ne.d(Z,"d",(function(){return isOption}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(67),ge=ne.n(me),Ce=ne(55),Se=ne.n(Ce),Me=ne(105),ke=ne.n(Me),xe=ne(11),De=ne.n(xe),Ie=ne(15),Re=ne.n(Ie),ze=ne(42),$e=ne.n(ze),Je=ne(9),it=ne.n(Je),ot=ne(40),at=ne.n(ot),st=ne(5),ct=ne.n(st),ut=ne(44),dt=ne.n(ut),ht=ne(106),ft=ne.n(ht),_t=ne(61),yt=ne.n(_t),vt=ne(8),wt=ne(13),Ct=ne(22),St=ne.n(Ct),Mt=ne(7),kt=ne(35),xt=ne(37),Lt=ne.n(xt),Tt=ne(47),At=ne.n(Tt),Dt=ne(32),Et=ne.n(Dt),jt=ne(4),It=ne(56),Nt=ne.n(It),Rt=ne(57),zt=ne.n(Rt),qt=ne(0),Wt=function CaretSmallDownIcon(){return Object(qt.useSplunkTheme)().isEnterprise?se.a.createElement(zt.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(Nt.a,null)},Bt=ne(54),Ft=ne.n(Bt),Ht=ne(49),$t=ne.n(Ht),Vt=function Search(){var G=Object(qt.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact,ie=Object(jt._)("Search"),ce=ne?"20px":"24px";return Z?se.a.createElement(Ft.a,{role:"presentation",size:"16px",screenReaderText:ie,hideDefaultTooltip:!0}):se.a.createElement($t.a,{role:"presentation","aria-label":ie,width:ce,height:ce})},Yt=ne(30),Ut=ne(3),Kt=ne.n(Ut),Gt=ne(25),Zt=Kt()(Gt.g).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllLabel",componentId:"y6bn08-0"})(["font-weight:",";"],qt.variables.fontWeightBold),Jt=Kt()(Yt.a).withConfig({displayName:"SelectAllOptionStyles__StyledSelectAllOption",componentId:"y6bn08-1"})(["padding-inline-start:",";box-shadow:none;"],Object(qt.pick)({prisma:"42px;",enterprise:"32px;"})),Qt={active:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),id:fe.a.string,onClick:fe.a.func,selectAllLabel:fe.a.string,totalCount:fe.a.number,changedToggle:fe.a.bool,selected:fe.a.oneOf([!1,!0,"some"])},on=se.a.forwardRef((function(G,Z){var ne=G.active,ie=G.id,ce=G.onClick,fe=G.selectAllLabel,me=G.totalCount,ge=G.changedToggle,Ce=G.selected,Se=ge?" (".concat(null==me?void 0:me.toString(),")"):"";return se.a.createElement(Jt,{label:fe,value:"selectAll",key:"selectAll",onClick:ce,"data-test":"select-all","aria-keyshortcuts":"Control+A",id:ie,active:ne,ref:Z,tabIndex:-1},se.a.createElement(Gt.j,{interactive:!1,selected:"some"===Ce?"some":Ce,key:"main-checkbox",value:"main-checkbox",appearance:"checkbox","aria-label":!Ce&&Object(jt._)("No options selected")||"some"===Ce&&Object(jt._)("Some options selected")||Object(jt._)("All options selected"),"data-test":"select-all-switch",selectedLabel:!0===Ce?Object(jt._)("All options selected"):Object(jt._)("Option selected"),unselectedLabel:!0===Ce?Object(jt._)("No options selected"):Object(jt._)("Option unselected"),someSelectedLabel:Object(jt._)("Some options selected")}),se.a.createElement(Gt.d,{"data-test":"description"},"".concat(Se," Ctrl-a")),se.a.createElement(Gt.b,null,se.a.createElement(Gt.k,{$truncate:!1},se.a.createElement(Zt,{$truncate:!1},fe))))}));on.propTypes=Qt;var sn=on,cn=ne(17),dn=ne.n(cn),mn=Kt()(dn.a).withConfig({displayName:"SelectBaseStyles__StyledButton",componentId:"sc-16cj7sk-0"})(["&[data-inline]{width:",";}",""],(function(G){return G.$multiple?"400px":"auto"}),(function(G){return!G.$multiple&&"flex-grow: 0;"})),_n=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkIcon",componentId:"sc-16cj7sk-1"})(["padding-right:2px;"]),gn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledLinkCaret",componentId:"sc-16cj7sk-2"})(["padding-left:2px;"]),bn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledFilter",componentId:"sc-16cj7sk-3"})(["padding:",";min-width:160px;"],Object(qt.pick)({enterprise:"8px",prisma:"10px 16px"})),yn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledSearchIconWrapper",componentId:"sc-16cj7sk-4"})(["color:",";pointer-events:none;padding:",";"],Object(qt.pick)({enterprise:{light:qt.variables.gray60,dark:qt.variables.white},prisma:qt.variables.contentColorMuted}),Object(qt.pick)({comfortable:"0 8px",compact:"0 6px"})),vn=Kt.a.span.withConfig({displayName:"SelectBaseStyles__StyledCount",componentId:"sc-16cj7sk-5"})(["padding-right:",";"],Object(qt.pick)({enterprise:qt.variables.spacingQuarter,prisma:qt.variables.spacingXSmall})),wn=Kt()(Lt.a).withConfig({displayName:"SelectBaseStyles__StyledControlsLink",componentId:"sc-16cj7sk-6"})(["margin-right:20px;",";"],(function(G){return G.$disabled&&Object(Ut.css)(["color:",";"],qt.variables.contentColorDisabled)})),Cn=Kt.a.div.withConfig({displayName:"SelectBaseStyles__StyledToggleAllControls",componentId:"sc-16cj7sk-7"})(["padding:",";",""],Object(qt.pick)({enterprise:"5px 8px",prisma:"10px 16px"}),Object(qt.pickVariant)("$placement",{above:{enterprise:Object(Ut.css)(["border-top:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-top:1px solid ",";"],qt.variables.neutral200)},below:{enterprise:Object(Ut.css)(["border-bottom:",";"],qt.variables.border),prisma:Object(Ut.css)(["border-bottom:1px solid ",";"],qt.variables.neutral200)}})),On=ne(59),Mn=ne(18);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&(ce.index=ne.matchCharacter.index+1,se=Object(On.a)(ne.currentMatchOptions,ce));else{if(" "===ie)return void ne.resetMatches();se=Object(On.a)(ne.availableMatchOptions,ce)}if(se.length){var fe=0;if(0===ce.index&&se.length>1){var me=se.indexOf(ne.availableMatchOptions[Z]);me>=0&&(fe=me===se.length-1?0:me+1)}var ge,Ce=se[fe],Se=ne.optionRefsByKey[itemKeyFromValueLabel(Ce.value,Ce.label)];if(null!=Se)null===(ge=Se.focus)||void 0===ge||ge.call(Se)}ne.currentMatchOptions=se,ne.matchCharacter=ce,ne.matchTimeout&&clearTimeout(ne.matchTimeout),ne.matchTimeout=setTimeout(ne.resetMatches,500),G.preventDefault(),G.stopPropagation()}})),_defineProperty(_assertThisInitialized(ne),"handleTextChange",(function(G,Z){var ie,se,ce=Z.value;ne.setState({filterKeyword:ce,open:!0,activeIndex:0}),null===(ie=(se=ne.props).onFilterChange)||void 0===ie||ie.call(se,G,{keyword:ce})})),_defineProperty(_assertThisInitialized(ne),"handleTextFocus",(function(){ne.setState({textHasFocus:!0})})),_defineProperty(_assertThisInitialized(ne),"handleTextBlur",(function(){ne.setState({textHasFocus:!1})})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G){var Z={open:!0,topValues:ne.getTopValues()};ne.props.multiple&&(Z.filterKeyword="");var ie=ne.state.filterKeyword;ne.setState(Z,(function(){var Z,se,ce,fe,me;(null===(Z=(se=ne.props).onOpen)||void 0===Z||Z.call(se),ne.firstSelectedEnabledOption&&!ne.hasFilter())?ne.firstSelectedEnabledOption.focus():ne.setState({activeIndex:null!==(ce=ne.firstSelectedOptionIndex)&&void 0!==ce?ce:0});ie!==ne.state.filterKeyword&&(null===(fe=(me=ne.props).onFilterChange)||void 0===fe||fe.call(me,G,{keyword:ne.state.filterKeyword}))}))})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(){ne.setState({open:!1,activeIndex:0},(function(){var G,Z;ne.previousActiveIndex=null,null===(G=(Z=ne.props).onClose)||void 0===G||G.call(Z)}))})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottom",(function(G){var Z,ie;ne.state.open&&!ne.props.isLoadingOptions&&(null===(Z=(ie=ne.props).onScrollBottom)||void 0===Z||Z.call(ie,G))})),_defineProperty(_assertThisInitialized(ne),"handleActiveOptionMount",(function(G){ne.previousActiveIndex!==ne.state.activeIndex&&(null==G||G.scrollIntoViewIfNeeded())})),_defineProperty(_assertThisInitialized(ne),"handleOptionMount",(function(G,Z,ie){ie&&(ne.firstSelectedEnabledOption=G),null==G?delete ne.optionRefsByKey[Z]:ne.optionRefsByKey[Z]=G})),_defineProperty(_assertThisInitialized(ne),"createToggle",(function(){var G,Z,ce,fe=ne.props,me=fe.toggle,ge=fe.appearance,Ce=fe.children,Me=fe.describedBy,ke=fe.disabled,xe=fe.elementRef,De=fe.error,Ie=fe.inline,Re=fe.labelledBy,ze=fe.labelText,$e=fe.multiple,Je=fe.placeholder,ot=fe.prefixLabel,at=fe.required,st=fe.suffixLabel,ut=null!==(G=ne.getCurrentValues())&&void 0!==G?G:[],ht=ie.Children.toArray(Ce);(ce=ut.reduce((function(G,ne,ie,se){var ce=Se()(ht,(function(G){return isOption(G)&&G.props.value===ne}));return ce?(G.push(ce.props.children||ce.props.label),$e||1!==ut.length||(Z=ce.props.icon)):$e&&G.push(ne),ie0&&(ce=ne.wrapLabel({prefixLabel:ot,label:ce,suffixLabel:st})),(0===ce.length||!$e&&ce.every((function(G){return""===G})))&&(ce=Tn(Je));var ft=ce;ce.length>1&&(ft=ne.wrapLabel({prefixLabel:ot,label:["".concat(ut.length," items selected")],suffixLabel:st}));var _t=_objectSpread({"aria-describedby":Me,"aria-label":"".concat(ze?"".concat(ze,", "):"").concat(ft),"aria-labelledby":ze?void 0:Re,"aria-multiselectable":$e||void 0,"aria-required":at,"data-select-appearance":ge,"data-test":$e?"multiselect":"select",disabled:ke,elementRef:xe,error:De},ct()(ne.props,it()(SelectBase.propTypes)));if($e)_t["data-test-values"]=JSON.stringify(ut);else{var yt=_slicedToArray(ut,1)[0];_t["data-test-value"]=yt}return me?Object(ie.cloneElement)(me,_t):"link"===ge?se.a.createElement(Lt.a,_extends({},_t,{"data-select-appearance":"link"}),!!Z&&se.a.createElement(_n,null,Z),ce||Je,se.a.createElement(gn,null,se.a.createElement(Wt,null))):se.a.createElement(mn,_extends({},_t,{$multiple:$e,appearance:ge,label:ce,error:De,icon:Z,inline:Ie,isMenu:!0,"aria-haspopup":"listbox","aria-owns":ne.menuId,onClick:ne.props.onClick},dt()(ne.props,SelectBase.invalidLinkAppearanceProps)),!!ut.length&&$e&&se.a.createElement(vn,{"data-role":"count"},"(",ut.length,")"))})),_defineProperty(_assertThisInitialized(ne),"createChildren",(function(){var G,Z=ne.state,ce=Z.filterKeyword,fe=Z.textHasFocus,me=Z.topValues,ge=ne.props,Ce=ge.allowKeyMatching,Me=ge.allowNewValues,xe=ge.filter,De=ge.multiple,Ie=ge.selectAllAppearance,Re=ge.showSelectedValuesFirst,ze=ge.isLoadingOptions,$e=ge.onScrollBottom,Je=ne.getCurrentValues();ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.activeValue=void 0,ne.availableMatchOptions=[];var it,ot=0,at=!1,st="immediately"===Re?ne.getTopValues():me,ct=ie.Children.toArray(ne.props.children).reduce((function(Z,ce,fe){if(!isOption(ce))return Z.push(ce),Z;ce.props.value===ne.state.filterKeyword&&(G=!0);var me=Je&&Je.indexOf(ce.props.value)>=0,ge=!!me&&!ce.props.disabled&&!it,Se=Ce&&!De&&!xe&&!ze&&!$e,Me=itemKeyFromValueLabel(ce.props.value,ce.props.label),ke=-1;!Se||ce.props.disabled||ce.props.hidden||(ne.availableMatchOptions.push({label:ce.props.label,value:ce.props.value}),ke=ne.availableMatchOptions.length-1);var Ie=Object(ie.cloneElement)(ce,{key:ce.key||fe,onClick:ne.handleMenuOptionClick,onKeyDown:Se?function(G){return ne.handleMenuOptionKeyDown(G,ke)}:void 0,selected:me,multiple:De,role:"option",ref:function ref(G){return ne.handleOptionMount(G,Me,ge)}});return ge&&(it=!0),st&&st.indexOf(ce.props.value)>=0?(0===ot&&(Z.splice(ot,0,se.a.createElement(wt.Divider,{key:"topDivider"})),at=!0),Z.splice(ot,0,Ie),ot+=1):Z.push(Ie),Z}),[]);De&&ke()(Je,(function(Z){if(!Se()(ct,(function(G){return isOption(G)&&G.props&&G.props.value===Z}))){Z===ne.state.filterKeyword&&(G=!0);var ie=st&&st.indexOf(Z)>=0,ce=st.length;0===ot&&(ct.splice(0,0,se.a.createElement(wt.Divider,{key:"topDivider"})),ot+=1,at=!0),ct.splice(ie?0:ce+1,0,se.a.createElement(Yt.a,{label:String(Z),value:Z,key:"missing-value-".concat(Z),onClick:ne.handleMenuOptionClick,multiple:De,selected:!0})),ie&&(ot+=1)}}));var ut="controlled"===xe,dt=Object(kt.stringToKeywords)(ce);if(ct=ut?ct:ct.filter((function(G){return!isOption(G)||Object(kt.testPhrase)(G.props.label,dt)})).map((function(G){if(!isOption(G))return G;var Z=dt&&Object(kt.keywordLocations)(G.props.label,dt);return Object(ie.cloneElement)(G,{matchRanges:Z||void 0})})),Me&&!G&&ce){var ht=at?ot+1:ot;ct.splice(ht,0,se.a.createElement(Yt.a,{label:"".concat(ce," (new value)"),value:ce,key:"newValue",multiple:De,onClick:ne.handleMenuOptionClick}))}var ft,_t,yt="checkbox"===Ie&&De&&ct.length>1?1:0,vt=!0;(ct=ct.reduce((function(G,Z){if(!isOption(Z))return G.push(Z),G;if(Z.props&&Z.props.hidden)return G;Z.props.selected&&!Z.props.disabled&&null==ne.firstSelectedOptionIndex&&(ne.firstSelectedOptionIndex=ne.availableOptionCount);var se=yt===ne.state.activeIndex;if(yt+=1,ne.availableOptionCount+=1,ne.selectedOptionCount+=Z.props.selected?1:0,"newValue"===Z.key||Z.props.disabled||Z.props.selected||(vt=!1),!se||!fe)return G.push(Z),G;Z.props.disabled||(ne.activeValue=Z.props.value);var ce=Object(ie.cloneElement)(Z,{active:se,id:ne.activeItemId,ref:ne.handleActiveOptionMount});return G.push(ce),G}),[]),ne.optionSelection=(0===ne.selectedOptionCount?"none":vt&&"all")||"some","checkbox"===Ie&&De&&ne.availableOptionCount>0)&&(_t="all"===ne.optionSelection?""===ce?Object(jt._)("Clear all"):Object(jt._)("Clear all matches"):""===ce?Object(jt._)("Select all"):Object(jt._)("Select all matches"),0===ne.state.activeIndex&&fe&&(ne.activeValue="selectAll"),ct.unshift(se.a.createElement(sn,{key:"selectAllOption",selected:"all"===ne.optionSelection||"none"!==ne.optionSelection&&"some",selectAllLabel:_t,totalCount:null===(ft=ne.getCurrentValues())||void 0===ft?void 0:ft.length,changedToggle:!!ne.props.toggle,onClick:"all"===ne.optionSelection?ne.handleClearAll:ne.handleSelectAll,id:0===ne.state.activeIndex?ne.activeItemId:void 0,active:0===ne.state.activeIndex,ref:ne.handleActiveOptionMount,tabIndex:-1}),se.a.createElement(wt.Divider,{key:"selectAllDivider"})));return ne.displayedValues=ct.reduce((function(G,Z){return isOption(Z)&&G.push(Z.props.value),G}),[]),ct})),_defineProperty(_assertThisInitialized(ne),"wrapLabel",(function(G){var Z=G.prefixLabel,ne=G.label,ie=G.suffixLabel,se=ne;return Z&&(se=["".concat(Z,": ")].concat(se)),ie&&(se=ge()(se).concat(" ".concat(ie))),se})),_defineProperty(_assertThisInitialized(ne),"handleDropdownMount",(function(G){ne.dropdown=G})),ne.state={activeIndex:0,filterKeyword:"",open:!1,textHasFocus:!1,topValues:[],values:G.defaultValues||[]},ne.controlledExternally=De()(G,"values"),ne.displayedValues=[],ne.availableOptionCount=0,ne.firstSelectedOptionIndex=void 0,ne.selectedOptionCount=0,ne.matchCharacter=null,ne.matchTimeout=null,ne.currentMatchOptions=[],ne.availableMatchOptions=[],ne.optionRefsByKey={},ne.optionSelection="none",SelectBase.validateAppearance(G),ne.menuId=Object(vt.createDOMID)("menu"),ne.activeItemId=Object(vt.createDOMID)("active-item"),ne}return _createClass(SelectBase,null,[{key:"validateAppearance",value:function validateAppearance(G){0}}]),_createClass(SelectBase,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){SelectBase.validateAppearance(this.props),this.previousActiveIndex=Z.activeIndex}},{key:"getCurrentValues",value:function getCurrentValues(){var G=this.isControlled()?this.props.values:this.state.values;return this.props.multiple||null==G?G:G.slice(0,1)}},{key:"getTopValues",value:function getTopValues(){var G;return this.props.multiple&&"never"!==this.props.showSelectedValuesFirst&&null!==(G=this.getCurrentValues())&&void 0!==G?G:[]}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"hasFilter",value:function hasFilter(){return!!this.props.filter}},{key:"toggleValue",value:function toggleValue(G,Z){var ne,ie,se,ce,fe=null!==(ne=this.getCurrentValues())&&void 0!==ne?ne:[],me=fe.indexOf(Z),ge=this.props,Ce=ge.name,Se=ge.multiple;ce=Se?me>=0?[].concat(_toConsumableArray(fe.slice(0,me)),_toConsumableArray(fe.slice(me+1))):fe.concat([Z]):[Z];var Me=!this.isControlled();Me&&this.setState({values:ce}),Se?Me&&this.setState({open:!0}):(this.handleRequestClose({reason:"contentClick"}),this.focus()),null===(ie=(se=this.props).onChange)||void 0===ie||ie.call(se,G,{values:ce,name:Ce,reason:"valueToggle"})}},{key:"focus",value:function focus(){var G;null===(G=this.dropdown)||void 0===G||G.focus()}},{key:"renderControls",value:function renderControls(G){var Z=G.hasChildren,ne=G.placement,ie=this.state.filterKeyword,ce=this.props,fe=ce.inputId,me=ce.inputRef,ge=ce.multiple,Ce=ce.selectAllAppearance,Se=Object(jt._)("Select all options".concat("all"===this.optionSelection?" disabled":"")),Me=Object(jt._)("Clear all options".concat("none"===this.optionSelection?" disabled":"")),ke=se.a.createElement(Cn,{$placement:ne,key:"selectAll"},se.a.createElement(wn,{$disabled:"all"===this.optionSelection,"aria-label":Se,onClick:this.handleSelectAll,"data-test":"select-all"},ie?Object(jt._)("Select All Matches"):Object(jt._)("Select All")),se.a.createElement(wn,{$disabled:"none"===this.optionSelection,"aria-label":Me,onClick:this.handleClearAll,"data-test":"clear-all"},ie?Object(jt._)("Clear All Matches"):Object(jt._)("Clear All")));return this.hasFilter()&&se.a.createElement("div",{key:"controls"},se.a.createElement(bn,{key:"filter","data-test":"filter"},se.a.createElement(Et.a,{value:ie,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,onChange:this.handleTextChange,onKeyDown:this.handleTextKeyDown,onFocus:this.handleTextFocus,onBlur:this.handleTextBlur,placeholder:Object(jt._)("filter"),role:"combobox","aria-expanded":"true","aria-label":Object(jt._)("Filter"),"aria-activedescendant":this.activeItemId,inputRef:me,inputId:fe,canClear:!0,startAdornment:se.a.createElement(yn,null,se.a.createElement(Vt,null))})),ge&&Z&&"buttongroup"===Ce&&ke)}},{key:"render",value:function render(){var G,Z=this,ne=this.props,ce=ne.children,fe=ne.defaultPlacement,me=ne.inputId,ge=ne.multiple,Ce=ne.repositionMode,Me=this.hasFilter(),ke=null!==(G=this.getCurrentValues())&&void 0!==G?G:[],xe=ie.Children.toArray(ce),De=ke.some((function(G){var Z=Se()(xe,(function(Z){return isOption(Z)&&Z.props.value===G}));return Z&&!Z.props.disabled})),Ie=this.createChildren(),Re=this.createToggle(),ze=function createMenu(G){var ne=G.anchorWidth,ie=G.maxHeight,ce=G.placement,fe=Dn({anchorWidth:ne,isMultiple:Z.props.multiple,menuStyle:Z.props.menuStyle}),me=ke.length>0&&!De&&!Z.hasFilter()?0:void 0;return se.a.createElement(At.a,_extends({"aria-multiselectable":ge||void 0,childrenStart:Z.renderControls({placement:ce,hasChildren:!!Ie.length}),controlledExternally:Z.hasFilter(),placement:null!=ce?ce:void 0,maxHeight:null!=ie?ie:void 0,onScrollBottom:Z.props.onScrollBottom?Z.handleScrollBottom:void 0,"data-test":"results-menu",isLoading:Z.props.isLoadingOptions,id:Z.menuId},dt()(Z.props,"noOptionsMessage","footerMessage","animateLoading","loadingMessage","onScroll"),{style:fe,tabIndex:me}),Ie)};return se.a.createElement(St.a,{closeReasons:En,inputId:me,toggle:Re,onRequestOpen:this.handleRequestOpen,onRequestClose:this.handleRequestClose,open:this.state.open,openWithArrowKeys:!0,repositionMode:Ce,defaultPlacement:Me?fe:void 0,canCoverAnchor:Object(Mn.a)().innerHeight<500,ref:this.handleDropdownMount,retainFocus:!1,takeFocus:0===ke.length||ke.length>0&&!De||!!Me},ze)}}]),SelectBase}(ie.Component);_defineProperty(jn,"propTypes",kn),_defineProperty(jn,"defaultProps",xn),_defineProperty(jn,"Option",Yt.a),_defineProperty(jn,"Divider",wt.Divider),_defineProperty(jn,"Heading",wt.Heading),_defineProperty(jn,"invalidLinkAppearanceProps",["append","error","prepend"]);Z.c=jn},function(G,Z){G.exports=ne(425)},,,,function(G,Z){G.exports=ne(594)},,,,,,,,,,,,,,,,,,,,,,,,,,,function(G,Z){G.exports=ne(197)},,,,,,,,,,,function(G,Z){G.exports=ne(785)},function(G,Z){G.exports=ne(272)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(G,Z){G.exports=ne(112)},function(G,Z){G.exports=ne(7457)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cn})),ne.d(Z,"Divider",(function(){return ke.Divider})),ne.d(Z,"Heading",(function(){return ke.Heading})),ne.d(Z,"Option",(function(){return Re}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(4),ke=ne(13),xe=ne(30);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Compact_classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function Compact_defineProperties(G,Z){for(var ne=0;neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Normal_extends(){return(Normal_extends=Object.assign||function(G){for(var Z=1;Z=0;dt&&dt.length&&ie.Children.toArray(fe).filter(ie.isValidElement).filter((function(G){return G.type===Re})).forEach((function(G){if(G.type===Re){var Z=dt.indexOf(G.props.value);-1!==Z&&(ft[Z]=G)}}));var vt=Object(It.stringToKeywords)(this.state.filterKeyword),wt=me?ie.Children.toArray(fe):ie.Children.toArray(fe).filter((function(G){return!ht()(G,["props","label"],!1)||Object(It.testPhrase)(G.props.label,vt)}));this.availableOptionCount=0,this.activeValue=void 0,this.children=ie.Children.map(wt,(function(G,ne){if(!G.props||!ge()(G.props,"value"))return G;var se=G;if(se.props.value===Z.state.filterKeyword&&(yt=!0),dt.indexOf(se.props.value)>=0)return null;var ce=se.props,fe=ce.children,Ce=ce.label,Se=ce.matchRanges,Me=void 0===fe||_t()(fe),ke=Me&&!me&&!Se&&vt&&Object(It.keywordLocations)(Ce,vt);return Object(ie.cloneElement)(se,{key:ne,onClick:Z.handleMenuOptionClick,matchRanges:Me&&(Se||ke)||void 0})})).filter((function(G){return null!==G})),ce&&!yt&&this.state.filterKeyword&&this.children.unshift(se.a.createElement(Re,{label:"".concat(this.state.filterKeyword),description:Object(Me._)("(New value)"),descriptionPosition:"right",value:this.state.filterKeyword,key:"newValue",onClick:this.handleMenuOptionClick})),this.state.open&&(this.children=ie.Children.map(this.children,(function(G){if(!G.props||!ge()(G.props,"value"))return G;var ne=G,se=Z.availableOptionCount===Z.state.activeIndex;return Z.availableOptionCount+=1,se?(ne.props.disabled||(Z.activeValue=ne.props.value),Object(ie.cloneElement)(ne,{active:se,id:Z.activeItemId,ref:Z.handleActiveOptionMount})):ne})));var St=_n("".concat(.8*this.state.filterKeyword.length,"em"));return se.a.createElement(se.a.Fragment,null,se.a.createElement(Jt,Normal_extends({key:"control","data-test-values":JSON.stringify(dt),inline:Ie,$hasfocus:this.state.hasFocus},Se.a.apply(void 0,[st,"animateLoading","controlledFilter","defaultValues","footerMessage","inputRef","isLoadingOptions","labelledBy","menuStyle","noOptionsMessage","onChange","onFilterChange","onScroll","onScrollBottom","onClose","onOpen","values","useClickawayOverlay"].concat(_toConsumableArray(Ct()(ct)))),{onClick:xe?void 0:this.handleClick,$disabled:xe,$error:De,"data-test-popover-id":this.popoverId,$popoverOpen:this.state.open,flex:!0,elementRef:this.handleMount,role:"listbox","aria-disabled":xe||void 0,"aria-labelledby":$e,"aria-invalid":De,"aria-multiselectable":"true"},ut),this.renderButtons(ft),!xe&&se.a.createElement(Qt,{role:"combobox","aria-owns":this.state.open?this.popoverId:void 0,"aria-haspopup":!0,"aria-expanded":this.state.open,"aria-controls":this.state.open?this.popoverId:void 0},se.a.createElement(on,Normal_extends({"data-test":"textbox",id:ze,ref:this.handleInputMount,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,value:this.state.filterKeyword,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",style:St,placeholder:dt.length?"":Je,required:it,"aria-activedescendant":this.state.open&&this.availableOptionCount>0?this.activeItemId:void 0},ct))),!xe&&se.a.createElement(Ht.a,{open:this.state.open&&!!this.state.el,autoCloseWhenOffScreen:!0,anchor:this.state.el,onRequestClose:this.handleRequestClose,canCoverAnchor:!1,defaultPlacement:Ce,repositionMode:ot,id:this.popoverId},this.renderMenu)),se.a.createElement(Vt.a,{role:"status","aria-live":"polite"},this.state.loadingMoreMessage),at&&this.state.open?se.a.createElement(sn,{key:"overlay",$popoveropen:this.state.open,"data-test":"overlay"}):null)}}]),Normal}(ie.Component);Normal_defineProperty(gn,"propTypes",dn),Normal_defineProperty(gn,"defaultProps",mn),Normal_defineProperty(gn,"Option",Re),Normal_defineProperty(gn,"Divider",ke.Divider),Normal_defineProperty(gn,"Heading",ke.Heading);var bn=gn;function Multiselect_typeof(G){return(Multiselect_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Multiselect_extends(){return(Multiselect_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ht={appearance:ge.a.oneOf(["info","success","warning","error","outline"]),backgroundColor:ge.a.string,children:ge.a.node.isRequired,disabled:ge.a.bool,elementRef:ge.a.oneOfType([ge.a.func,ge.a.object]),foregroundColor:ge.a.string,icon:ge.a.node,onRequestRemove:ge.a.func,value:ge.a.any};function getSharedProps(G){var Z=G.appearance,ne=G.backgroundColor,ie=G.disabled,se=G.foregroundColor,ce=G.icon,fe=_objectWithoutProperties(G,["appearance","backgroundColor","disabled","foregroundColor","icon"]),me=se&&Object(De.isCSSColor)(se)?se:void 0,ge=ne&&Object(De.isCSSColor)(ne)?ne:void 0;return[{"data-test":"chip",$appearance:Z||(ge?"custom":"default"),$backgroundColor:ge,$foregroundColor:me,disabled:ie,icon:ce},fe]}function ChipInteractive(G){var Z=_slicedToArray(getSharedProps(G),2),ne=Z[0],ce=Z[1],me=ne.$appearance,ge=ne.$foregroundColor,Ce=ne.disabled,Me=ne.icon,De=_objectWithoutProperties(ne,["$appearance","$foregroundColor","disabled","icon"]),Re=ce.children,ze=ce.elementRef,$e=ce.onRequestRemove,Je=ce.value,it=_objectWithoutProperties(ce,["children","elementRef","onRequestRemove","value"]),ot=Object(Ie.useSplunkTheme)().isEnterprise,ft=Object(ie.useCallback)((function(G){$e(G,{value:Je})}),[$e,Je]);return se.a.createElement(dt,_extends({$appearance:me,$disabled:Ce,$foregroundColor:ge,"data-test-value":Je,disabled:Ce,elementRef:ze,onClick:ft},De,fe()(it,Object.keys(ht))),se.a.createElement(at,{$icon:!!Me,$removable:!0},Me&&se.a.createElement(st,{$appearance:me,$disabled:Ce,$foregroundColor:ge},Me),se.a.createElement(ct,{"data-test":"label",$appearance:me,$disabled:Ce,$foregroundColor:ge},Re),se.a.createElement(ut,{$appearance:me,$disabled:Ce,$foregroundColor:ge},ot?se.a.createElement(ke.a,{"data-test":"cross",hideDefaultTooltip:!0,screenReaderText:Object(xe._)("Remove"),size:.85}):se.a.createElement(Se.a,{"aria-label":Object(xe._)("Remove"),"data-test":"cross",height:"20px",width:"20px"}))))}function ChipNonInteractive(G){var Z=_slicedToArray(getSharedProps(G),2),ne=Z[0],ie=Z[1],ce=ne.$appearance,me=ne.$foregroundColor,ge=ne.disabled,Ce=ne.icon,Se=_objectWithoutProperties(ne,["$appearance","$foregroundColor","disabled","icon"]),Me=ie.children,ke=ie.elementRef,xe=_objectWithoutProperties(ie,["children","elementRef"]);return se.a.createElement(ot,_extends({$appearance:ce,$disabled:ge,ref:ke},Se,fe()(xe,Object.keys(ht))),se.a.createElement(at,{$icon:!!Ce,$removable:!1},Ce&&se.a.createElement(st,{$appearance:ce,$disabled:ge,$foregroundColor:me},Ce),se.a.createElement(ct,{"data-test":"label",$appearance:ce,$disabled:ge,$foregroundColor:me},Me)))}function Chip(G){return function isInteractive(G){return!!G.onRequestRemove}(G)?se.a.createElement(ChipInteractive,G):se.a.createElement(ChipNonInteractive,G)}Chip.propTypes=ht,Chip.defaultProps={disabled:!1};var ft=Chip},26:function(G,Z){G.exports=ne(814)},27:function(G,Z){G.exports=ne(980)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(371)},5:function(G,Z){G.exports=ne(41)},50:function(G,Z){G.exports=ne(4138)}})},7458:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=188)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},12:function(G,Z){G.exports=ne(530)},17:function(G,Z){G.exports=ne(762)},188:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ct})),ne.d(Z,"Option",(function(){return dt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(11),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(7),ke=ne(0),xe=ne(17),De=ne.n(xe),Ie=ne(3),Re=ne.n(Ie),ze=ne(12),$e=ne.n(ze),Je=Re()($e.a).withConfig({displayName:"OptionStyles__StyledClickable",componentId:"fyq77p-0"})(["border-radius:3px;flex:1 1 auto;display:flex;justify-content:center;align-items:center;color:",";padding:2px 12px;height:calc("," - 6px);position:relative;gap:",";& + &{margin-left:2px;}"," "," &:focus{color:",";box-shadow:",";z-index:2;&:active{background-color:",";}}"," ",""],ke.variables.contentColorDefault,ke.variables.inputHeight,ke.variables.spacingXSmall,(function(G){return G.$selected&&Object(Ie.css)(["color:",";background-color:",";box-shadow:",";"],ke.variables.contentColorActive,Object(ke.pick)({dark:ke.variables.interactiveColorOverlaySelected,light:ke.variables.white}),ke.variables.embossShadow)}),(function(G){var Z=G.$selected,ne=G.disabled;return Z&&ne&&Object(Ie.css)(["background-color:",";"],ke.variables.backgroundColorPage)}),ke.variables.contentColorActive,ke.variables.focusShadow,ke.variables.interactiveColorOverlayActive,(function(G){var Z=G.$selected,ne=G.disabled;return!Z&&!ne&&Object(Ie.css)(["&:hover{color:",";background-color:",";}&:active{background-color:",";}"],ke.variables.contentColorActive,ke.variables.interactiveColorOverlayHover,ke.variables.interactiveColorOverlayActive)}),(function(G){return G.disabled&&Object(Ie.css)(["color:",";"],ke.variables.contentColorDisabled)})),it=Re.a.div.withConfig({displayName:"OptionStyles__StyledIcon",componentId:"fyq77p-1"})(["flex:0 0 auto;margin-top:-2px;font-size:15px;"]),ot=Re.a.div.withConfig({displayName:"OptionStyles__StyledLabel",componentId:"fyq77p-2"})([""," flex:0 1 auto;",""],ke.mixins.ellipsis,Object(ke.pick)({enterprise:Object(Ie.css)(["&:not(:first-child){margin-left:",";}"],ke.variables.spacingXSmall)})),at=Re.a.div.withConfig({displayName:"OptionStyles__StyledAdornment",componentId:"fyq77p-3"})(["flex:0 0 auto;",""],Object(ke.pick)({enterprise:Object(Ie.css)(["&:not(:first-child){margin-left:",";}"],ke.variables.spacingXSmall)})),st=Object(ie.createContext)({});st.displayName="RadioBar";var ct=st;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ut={disabled:fe.a.bool,startAdornment:fe.a.node,endAdornment:fe.a.node,icon:fe.a.node,label:fe.a.string,selected:fe.a.bool,value:fe.a.any.isRequired};function Option(G){var Z=G.disabled,ne=G.icon,ce=G.label,fe=G.selected,me=G.startAdornment,ge=G.endAdornment,Ce=G.value,Se=_objectWithoutProperties(G,["disabled","icon","label","selected","startAdornment","endAdornment","value"]),Me=Object(ie.useContext)(ct),ke=Me.onClick,xe=Me.appearance,Ie=Me.error,Re=Me.onKeyDown,ze=Me.firstValue,$e=Me.selectedValue;var st=-1;$e?Ce===$e&&(st=0):Ce===ze&&(st=0);var ut=st;return"prisma"===xe?se.a.createElement(Je,_extends({"data-test":"option","data-test-value":Ce},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,$selected:fe,tabIndex:ut,disabled:Z,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),ne&&se.a.createElement(it,null,ne),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge)):se.a.createElement(De.a,_extends({"data-test":"option","data-test-value":Ce,appearance:xe,disabled:Z,icon:ne,selected:fe,value:Ce,error:Ie},Se,{onClick:fe?void 0:function(G){return null==ke?void 0:ke(G,{value:Ce,label:ce})},role:"radio","aria-checked":fe,tabIndex:ut,onKeyDown:function onKeyDown(G){return null==Re?void 0:Re(G,{value:Ce,label:ce})}}),me&&se.a.createElement(at,null,me),ce&&se.a.createElement(ot,null,ce),ge&&se.a.createElement(at,null,ge))}Option.propTypes=ut;var dt=Option,ht=ne(6),ft=ne.n(ht),_t=Re()(ft.a).withConfig({displayName:"RadioBarStyles__StyledRadioBar",componentId:"gg1b79-0"})(["height:",";"," [data-inline] + &{margin-left:",";}"],ke.variables.inputHeight,Object(ke.pick)({prisma:Object(Ie.css)(["padding:2px;border-radius:",";border:1px solid ",";background:",";"],ke.variables.borderRadius,(function(G){return G.$error?ke.variables.accentColorNegative:"transparent"}),(function(G){return G.$disabled?ke.variables.interactiveColorBackgroundDisabled:ke.variables.interactiveColorBackground}))}),Object(ke.pick)({enterprise:ke.variables.spacingHalf,prisma:ke.variables.spacingSmall}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function RadioBar_extends(){return(RadioBar_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _defineProperties(G,Z){for(var ne=0;nene.filteredValues.length-1&&(Ce=0),ge=me.nextSibling?me.nextSibling:null===(ie=me.parentElement)||void 0===ie?void 0:ie.firstElementChild;else if("up"===fe||"left"===fe){var ke;G.preventDefault(),(Ce=Se-1)<0&&(Ce=ne.filteredValues.length-1),ge=me.previousSibling?me.previousSibling:null===(ke=me.parentElement)||void 0===ke?void 0:ke.lastElementChild}if(ge){var xe;null===(xe=ge)||void 0===xe||xe.focus();var De=ne.filteredValues[Ce];ne.handleOnChange(G,{value:De,label:ce})}})),_defineProperty(_assertThisInitialized(ne),"handleOnChange",(function(G,Z){var ie,se;ne.props.value!==Z.value&&(null===(ie=(se=ne.props).onChange)||void 0===ie||ie.call(se,G,function _objectSpread(G){for(var Z=1;Z0})})),$e=this.filteredValues[0],Je=null==Me||this.filteredValues.includes(De);var it={appearance:Ie?"prisma":ne,onClick:this.handleClick,error:!Ie&&me,onKeyDown:this.handleOnKeyDown,firstValue:$e,selectedValue:Je?De:void 0};return se.a.createElement(_t,RadioBar_extends({flex:!0,$disabled:Re,$error:me,"data-test":"radio-bar","data-test-value":De,role:"radiogroup","aria-labelledby":ge,"aria-describedby":fe,"aria-required":ke},Se()(xe,"onChange")),se.a.createElement(ct.Provider,{value:it},ze))}}]),RadioBar}(ie.Component);_defineProperty(vt,"propTypes",yt),_defineProperty(vt,"defaultProps",{appearance:"default",error:!1,inline:!1}),_defineProperty(vt,"Option",dt);var wt=Object(ke.withSplunkTheme)(vt);wt.propTypes=vt.propTypes,wt.Option=dt;var Ct=wt},2:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(3)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(604)},7:function(G,Z){G.exports=ne(763)}})},7459:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=235)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},11:function(G,Z){G.exports=ne(63)},156:function(G,Z){G.exports=ne(3980)},16:function(G,Z){G.exports=ne(1309)},2:function(G,Z){G.exports=ne(0)},21:function(G,Z){G.exports=ne(1308)},235:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Et}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(156),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce),Me=ne(9),ke=ne.n(Me),xe=ne(5),De=ne.n(xe),Ie=ne(7),Re=ne(0),ze=ne(16),$e=ne.n(ze),Je=ne(21),it=ne.n(Je),ot=ne(3),at=ne.n(ot),st=ne(69),ct=ne.n(st),ut=ne(6),dt=ne.n(ut),ht=at()(dt.a).withConfig({displayName:"SliderStyles__StyledBox",componentId:"sc-16ooit4-0"})(["",";flex:1 1 auto;&[data-inline]{width:300px;}"],Re.mixins.reset("block")),ft=at.a.div.withConfig({displayName:"SliderStyles__StyledInput",componentId:"sc-16ooit4-1"})(["flex:1 0 0;vertical-align:middle;position:relative;cursor:default;height:",";max-width:100%;"],Re.variables.inputHeight),_t=function sliderBarLeftSideColor(G){var Z=G.$error;return Object(Re.pick)({enterprise:Re.variables.gray45,prisma:Z?Re.variables.accentColorNegative:Re.variables.contentColorActive})},yt=Object(Re.pick)({enterprise:{dark:Re.variables.gray20,light:Re.variables.gray96},prisma:Re.variables.neutral100}),vt=Object(Re.pick)({enterprise:Re.variables.gray80,prisma:Re.variables.interactiveColorBorder}),wt=at.a.div.withConfig({displayName:"SliderStyles__StyledSliderBar",componentId:"sc-16ooit4-2"})(["position:absolute;top:",";left:0;height:",";width:100%;border-radius:2.5px;",""],Object(Re.pick)({enterprise:"12px",prisma:"18px"}),Object(Re.pick)({enterprise:"5px",prisma:"4px"}),(function(G){var Z=G.$disabled,ne=G.$error,ie=G.$position,se=G.$stepMarksWidth;return Z?Object(ot.css)(["background-color:",";"],Object(Re.pick)({enterprise:Re.variables.gray92,prisma:Re.variables.contentColorDisabled})):function stepMarksBackground(G){var Z=G.$error,ne=G.$position,ie=G.$stepMarksWidth;return void 0!==ie?Object(ot.css)(["background-image:linear-gradient( to right,",","," ",",transparent ",",transparent 100% ),repeating-linear-gradient( to right,",","," ",",transparent ",",transparent ","% ),linear-gradient( to right,",","," ","%,"," ","%,"," );"],_t({$error:Z}),_t({$error:Z}),"1px","1px",yt,yt,"1px","1px",ie,_t({$error:Z}),_t({$error:Z}),ne,vt,ne,vt):Object(ot.css)(["background-image:linear-gradient( to right,",","," ","%,"," ","%,"," );"],_t({$error:Z}),_t({$error:Z}),ne,vt,ne,vt)}({$error:ne,$position:ie,$stepMarksWidth:se})})),Ct=Object(Re.pick)({enterprise:18,prisma:20}),St=at.a.button.withConfig({displayName:"SliderStyles__StyledSliderThumb",componentId:"sc-16ooit4-3"})(["",";display:block;position:absolute;cursor:pointer;width:","px;height:","px;border-radius:",";border-width:0;background-color:",";margin-left:-8px;top:",";left:","%;&:hover:not([disabled]){outline:0;z-index:1;","}&:focus:not([disabled]),&:active{outline:0;box-shadow:",";z-index:1;","}&[disabled]{cursor:not-allowed;background-color:",";}",""],Re.mixins.reset("inline"),Ct,Ct,Object(Re.pick)({enterprise:"9px",prisma:"10px"}),Object(Re.pick)({enterprise:Re.variables.gray45,prisma:Re.variables.contentColorActive}),Object(Re.pick)({enterprise:"6px",prisma:"10px"}),(function(G){return G.$position}),Object(Re.pick)({enterprise:Object(ot.css)(["box-shadow:",";"],Re.variables.focusShadow)}),Re.variables.focusShadow,Object(Re.pick)({prisma:Object(ot.css)(["background-color:",";"],Re.mixins.overlayColors(Re.variables.contentColorActive,Re.variables.interactiveColorOverlayActive)),enterprise:Object(ot.css)(["border-color:",";"],(function(G){return ct()(Re.variables.focusColor(G)).setAlpha(.8).toRgbString()}))}),Object(Re.pick)({enterprise:Re.variables.gray92,prisma:Re.variables.neutral400}),Object(Re.pick)({prisma:function prisma(G){return G.$error&&Object(ot.css)(["background-color:",";&:focus:not([disabled]),&:active{background-color:",";}"],Re.variables.accentColorNegative,Re.mixins.overlayColors(Re.variables.accentColorNegative,Re.variables.interactiveColorOverlayActive))}})),Mt=at.a.div.withConfig({displayName:"SliderStyles__StyledPopoverContent",componentId:"sc-16ooit4-4"})(["padding:",";font-size:",";line-height:",";"],Object(Re.pick)({enterprise:Re.variables.spacingHalf,prisma:"12px 16px"}),Object(Re.pick)({enterprise:Re.variables.fontSizeSmall,prisma:"14px"}),Object(Re.pick)({enterprise:"18px",prisma:"24px"})),kt=Object(ot.css)(["flex:0 0 auto;line-height:",";",""],Re.variables.inputHeight,(function(G){return G.$disabled&&Object(ot.css)(["color:",";"],Object(Re.pick)({enterprise:Re.variables.textDisabledColor,prisma:Re.variables.contentColorDisabled}))})),xt=at()(dt.a).withConfig({displayName:"SliderStyles__StyledMinLabelBox",componentId:"sc-16ooit4-5"})(["",";margin-right:",";text-align:right;"],kt,Object(Re.pick)({enterprise:"15px",prisma:"16px"})),Lt=at()(dt.a).withConfig({displayName:"SliderStyles__StyledMaxLabelBox",componentId:"sc-16ooit4-6"})(["",";margin-left:",";text-align:left;"],kt,Object(Re.pick)({enterprise:"15px",prisma:"16px"}));function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z100?100:G<0?0:G})),_defineProperty(_assertThisInitialized(ne),"checkValueBounds",(function(G){return G>ne.props.max?ne.props.max:Gge/2?this.stepWidthInPercentage():void 0}}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.describedBy,ie=Z.disabled,ce=Z.displayValue,fe=Z.elementRef,me=Z.error,ge=Z.inline,Ce=Z.labelledBy,Se=Z.max,Me=Z.maxLabel,xe=Z.min,Ie=Z.minLabel,Re=Z.required,ze=Z.stepMarks,Je=this.state,ot=Je.isFocused,at=Je.selected,st=Je.sliderBar,ct=this.getValue(),ut=this.valueToPosition(ct),dt=("focus"===ze&&ot||"always"===ze)&&st?this.stepMarksWidth():void 0,_t=De()(this.props,ke()(Slider.propTypes));return se.a.createElement(ht,_extends({"data-test":"slider","data-test-value":ct,elementRef:fe,flex:!0,inline:ge},_t),at&&se.a.createElement(se.a.Fragment,null,se.a.createElement($e.a,{target:window,eventType:"mouseup",listener:this.handleMouseUp}),se.a.createElement($e.a,{target:window,eventType:"mousemove",listener:this.handleMouseMove})),null!==Ie&&se.a.createElement(xt,{"data-test":"min-label",$disabled:ie},Ie||xe),se.a.createElement(ft,{onClick:ie?void 0:this.handleClick},se.a.createElement(wt,{"aria-required":Re,"data-test":"bar",$disabled:ie,ref:this.handleMount,$error:me,$position:ut,$stepMarksWidth:dt}),se.a.createElement(St,{"aria-describedby":ne,"aria-labelledby":Ce,"aria-invalid":me,"aria-valuemax":Se,"aria-valuemin":xe,"aria-valuenow":ct,"data-test":"handle",onBlur:this.handleBlur,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onKeyDown:ie?void 0:this.handleKeyDown,onMouseDown:ie?void 0:this.handleMouseDown,onFocus:this.handleFocus,ref:function ref(Z){G.sliderThumb=Z},role:"slider",disabled:ie,$error:me,$position:ut}),se.a.createElement(it.a,{open:this.state.showTooltip,anchor:this.sliderThumb,appearance:"inverted",align:"center"},se.a.createElement(Mt,null,ce||ct))),null!==Me&&se.a.createElement(Lt,{"data-test":"max-label",$disabled:ie},Me||Se))}}]),Slider}(ie.Component);_defineProperty(At,"propTypes",Tt),_defineProperty(At,"defaultProps",{disabled:!1,error:!1,inline:!1,min:1,max:5,step:1,stepMarks:"focus"});var Dt=Object(Re.withSplunkTheme)(At);Dt.propTypes=At.propTypes;var Et=Dt},3:function(G,Z){G.exports=ne(3)},5:function(G,Z){G.exports=ne(41)},6:function(G,Z){G.exports=ne(604)},69:function(G,Z){G.exports=ne(83)},7:function(G,Z){G.exports=ne(763)},9:function(G,Z){G.exports=ne(62)}})},7460:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},7461:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(17)},1:function(G,Z){G.exports=ne(18)},13:function(G,Z){G.exports=ne(124)},20:function(G,Z,ne){"use strict";var ie=ne(13),se=ne(0),ce=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.DslParser=void 0;var fe=ne(24),me=ne(25),ge=function(){function DslParser(){se(this,DslParser)}return ce(DslParser,null,[{key:"parse",value:function parse(G){if(DslParser.cache[G])return ie(DslParser.cache[G]);var Z=new fe.Parser(me);return Z.feed(G),Z.results.length>1&&console.warn("Ambiguous parse of '".concat(G,"'")),0===Z.results.length&&console.warn("No parsed results for '".concat(G,"'")),DslParser.cache[G]=ie(Z.results[0]),Z.results[0]}}]),DslParser}();Z.DslParser=ge,ge.cache={}},24:function(G,Z){G.exports=ne(1417)},25:function(G,Z,ne){var ie=ne(13);function _createForOfIteratorHelper(G,Z){var ne="undefined"!=typeof Symbol&&G[Symbol.iterator]||G["@@iterator"];if(!ne){if(Array.isArray(G)||(ne=function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G))||Z&&G&&"number"==typeof G.length){ne&&(G=ne);var ie=0,se=function F(){};return{s:se,n:function n(){return ie>=G.length?{done:!0}:{done:!1,value:G[ie++]}},e:function e(G){throw G},f:se}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ce,fe=!0,me=!1;return{s:function s(){ne=ne.call(G)},n:function n(){var G=ne.next();return fe=G.done,G},e:function e(G){me=!0,ce=G},f:function f(){try{fe||null==ne.return||ne.return()}finally{if(me)throw ce}}}}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&void 0!==arguments[1]?arguments[1]:1,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],se=_createForOfIteratorHelper(G);try{for(se.s();!(Z=se.n()).done;){var ce=Z.value;ce instanceof Array&&ne>0?flat(ce,ne-1,ie):ie.push(ce)}}catch(G){se.e(G)}finally{se.f()}return ie}(G,1/0).join("")}}},{name:"Literal",symbols:["jsonfloat"],postprocess:function postprocess(G){return{type:"number",v:G[0]}}},{name:"Literal",symbols:["dqstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Literal",symbols:["sqstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Literal",symbols:["btstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Letter",symbols:[/[a-zA-Z_]/],postprocess:function postprocess(G){return G[0]}},{name:"Digit",symbols:[/[0-9]/],postprocess:function postprocess(G){return G[0]}},{name:"Dot",symbols:[/[\.]/],postprocess:function postprocess(G){return G[0]}}],ParserStart:"Pipeline"};void 0!==G.exports?G.exports=Z:window.grammar=Z}()}})},7462:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=28)}({0:function(G,Z){G.exports=ne(17)},1:function(G,Z){G.exports=ne(18)},13:function(G,Z){G.exports=ne(124)},20:function(G,Z,ne){"use strict";var ie=ne(13),se=ne(0),ce=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.DslParser=void 0;var fe=ne(24),me=ne(25),ge=function(){function DslParser(){se(this,DslParser)}return ce(DslParser,null,[{key:"parse",value:function parse(G){if(DslParser.cache[G])return ie(DslParser.cache[G]);var Z=new fe.Parser(me);return Z.feed(G),Z.results.length>1&&console.warn("Ambiguous parse of '".concat(G,"'")),0===Z.results.length&&console.warn("No parsed results for '".concat(G,"'")),DslParser.cache[G]=ie(Z.results[0]),Z.results[0]}}]),DslParser}();Z.DslParser=ge,ge.cache={}},24:function(G,Z){G.exports=ne(1417)},25:function(G,Z,ne){var ie=ne(13);function _createForOfIteratorHelper(G,Z){var ne="undefined"!=typeof Symbol&&G[Symbol.iterator]||G["@@iterator"];if(!ne){if(Array.isArray(G)||(ne=function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G))||Z&&G&&"number"==typeof G.length){ne&&(G=ne);var ie=0,se=function F(){};return{s:se,n:function n(){return ie>=G.length?{done:!0}:{done:!1,value:G[ie++]}},e:function e(G){throw G},f:se}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ce,fe=!0,me=!1;return{s:function s(){ne=ne.call(G)},n:function n(){var G=ne.next();return fe=G.done,G},e:function e(G){me=!0,ce=G},f:function f(){try{fe||null==ne.return||ne.return()}finally{if(me)throw ce}}}}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne1&&void 0!==arguments[1]?arguments[1]:1,ie=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],se=_createForOfIteratorHelper(G);try{for(se.s();!(Z=se.n()).done;){var ce=Z.value;ce instanceof Array&&ne>0?flat(ce,ne-1,ie):ie.push(ce)}}catch(G){se.e(G)}finally{se.f()}return ie}(G,1/0).join("")}}},{name:"Literal",symbols:["jsonfloat"],postprocess:function postprocess(G){return{type:"number",v:G[0]}}},{name:"Literal",symbols:["dqstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Literal",symbols:["sqstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Literal",symbols:["btstring"],postprocess:function postprocess(G){return{type:"string",v:G[0]}}},{name:"Letter",symbols:[/[a-zA-Z_]/],postprocess:function postprocess(G){return G[0]}},{name:"Digit",symbols:[/[0-9]/],postprocess:function postprocess(G){return G[0]}},{name:"Dot",symbols:[/[\.]/],postprocess:function postprocess(G){return G[0]}}],ParserStart:"Pipeline"};void 0!==G.exports?G.exports=Z:window.grammar=Z}()},28:function(G,Z,ne){"use strict";var ie=ne(0),se=ne(1);Object.defineProperty(Z,"__esModule",{value:!0});var ce=ne(20),fe=function(){function EncodingParser(){ie(this,EncodingParser)}return se(EncodingParser,null,[{key:"parseOptions",value:function parseOptions(G){var Z={simpleOptions:{},expressions:{},context:G.context},ne=G.options;return Object.keys(ne).forEach((function(G){var ie=ne[G];EncodingParser.isDslString(ie)?Z.expressions[G]=ce.DslParser.parse(EncodingParser.withoutArrow(ie)):Z.simpleOptions[G]=ie})),Z}},{key:"isDslString",value:function isDslString(G){return!!G&&G.toString().trim().startsWith(">")}},{key:"withoutArrow",value:function withoutArrow(G){return G.toString().match(/\s*>\s*(.+$)/)[1].trim()}},{key:"parse",value:function parse(G){var Z=G.dimensions,ne={dimensions:{},context:G.context};return Object.keys(Z).forEach((function(G){var ie={value:[]},se=null;"string"==typeof Z[G]?se=Z[G]:se=Z[G].value;ie.value=ce.DslParser.parse(se),ne.dimensions[G]=ie})),ne}}]),EncodingParser}();Z.default=fe}})},7463:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=15)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1839)},15:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0),se=ne(1),ce=ne(2);Z.default=function EditIcon(G){return ie.createElement(ce.default,Object.assign({screenReaderText:se._("Edit"),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},G),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.52181 2.86485C10.5206 1.86451 12.1417 1.86474 13.1403 2.86538C14.1373 3.86453 14.1359 5.4827 13.137 6.48004L12.6242 6.99211L11.6821 6.04859L11.6822 6.0485L9.22506 3.58847L9.01185 3.37559L9.01214 3.3753L9.012 3.37516L9.01241 3.37503L9.52181 2.86485ZM2.2961 10.0997L8.07613 4.31412L9.01939 5.25648L9.01604 5.25983L11.6867 7.92415L11.6842 7.92503L11.6863 7.92713L5.9022 13.7058C5.71469 13.8931 5.46048 13.9983 5.19543 13.9983H3.00354C2.45126 13.9983 2.00354 13.5506 2.00354 12.9983V10.8064C2.00354 10.5414 2.10877 10.2872 2.2961 10.0997Z",fill:"#818D99"})),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"16",height:"16",fill:"white"}))))}},2:function(G,Z){G.exports=ne(1840)}})},7464:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=22)}([function(G,Z){G.exports=ne(0)},,,,function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0),se=function getEllipseIcon(G){return function EllipseIcon(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("path",Object.assign({d:"M107.5 32C107.5 40.5888 101.622 48.4531 91.9289 54.1973C82.2464 59.935 68.8377 63.5 54 63.5C39.1623 63.5 25.7536 59.935 16.0711 54.1973C6.37777 48.4531 0.5 40.5888 0.5 32C0.5 23.4112 6.37777 15.5469 16.0711 9.80273C25.7536 4.065 39.1623 0.5 54 0.5C68.8377 0.5 82.2464 4.065 91.9289 9.80273C101.622 15.5469 107.5 23.4112 107.5 32Z"},G)))}};Z.default={"ellipse.none":se({fill:"#F2F4F5",stroke:"#C3CBD4"}),"ellipse.fill":se({fill:"#00A4FD"}),"ellipse.stroke":se({fill:"#F2F4F5",stroke:"#00A4FD"}),"ellipse.fillAndStroke":se({fill:"#00A4FD",stroke:"#00A4FD"})}},function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0);Z.default={"fillerGauge.none":function NonePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M69.576 27.1135C68.63 27.1135 67.8807 26.7994 67.3282 26.1713C66.7757 25.5431 66.4995 24.6349 66.4995 23.4467C66.4995 22.6142 66.6471 21.8763 66.9423 21.233C67.2374 20.5897 67.6802 20.0864 68.2705 19.7231C68.8608 19.3523 69.6025 19.1668 70.4956 19.1668C70.9345 19.1668 71.3054 19.2122 71.6081 19.3031V20.5291H70.8361C69.9204 20.5291 69.2468 20.7259 68.8154 21.1194C68.384 21.513 68.1343 22.0731 68.0661 22.7996C68.2705 22.512 68.5392 22.2963 68.8722 22.1525C69.2052 22.0087 69.5495 21.9368 69.9052 21.9368C70.4047 21.9368 70.8399 22.039 71.2108 22.2433C71.5816 22.4477 71.8692 22.7353 72.0735 23.1061C72.2779 23.477 72.3801 23.9084 72.3801 24.4003C72.3801 24.9149 72.2703 25.3804 72.0508 25.7966C71.8314 26.2053 71.5097 26.527 71.0859 26.7616C70.6696 26.9962 70.1663 27.1135 69.576 27.1135ZM69.5306 25.7626C69.9317 25.7626 70.242 25.6453 70.4615 25.4107C70.6885 25.1685 70.8021 24.8506 70.8021 24.4571C70.8021 24.0786 70.6885 23.7721 70.4615 23.5375C70.2345 23.3029 69.9242 23.1856 69.5306 23.1856C69.1371 23.1856 68.8154 23.3029 68.5656 23.5375C68.3235 23.7721 68.2024 24.09 68.2024 24.4911C68.2024 24.862 68.3235 25.1685 68.5656 25.4107C68.8154 25.6453 69.1371 25.7626 69.5306 25.7626ZM76.576 27H75.0094V26.6708C75.0094 26.1032 75.0359 25.5961 75.0888 25.1496C75.1494 24.6955 75.244 24.2679 75.3727 23.8667C75.5013 23.458 75.6754 23.0494 75.8949 22.6407C76.1144 22.2244 76.3868 21.7741 76.7122 21.2897L77.155 20.6426H73.4882V19.2804H78.8806V20.654L78.1086 21.7892C77.8134 22.2206 77.5675 22.6255 77.3707 23.0039C77.1739 23.3748 77.015 23.7456 76.8939 24.1165C76.7804 24.4873 76.6971 24.8771 76.6441 25.2858C76.5987 25.6945 76.576 26.1561 76.576 26.6708V27Z",fill:"#C4CBD3"}),ie.createElement("rect",{x:"8",y:"33",width:"92",height:"15",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("rect",{x:"8",y:"33",width:"65",height:"15",fill:"#C4CBD3"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))},"fillerGauge.gauge":function GaugePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M69.576 27.1135C68.63 27.1135 67.8807 26.7994 67.3282 26.1713C66.7757 25.5431 66.4995 24.6349 66.4995 23.4467C66.4995 22.6142 66.6471 21.8763 66.9423 21.233C67.2374 20.5897 67.6802 20.0864 68.2705 19.7231C68.8608 19.3523 69.6025 19.1668 70.4956 19.1668C70.9345 19.1668 71.3054 19.2122 71.6081 19.3031V20.5291H70.8361C69.9204 20.5291 69.2468 20.7259 68.8154 21.1194C68.384 21.513 68.1343 22.0731 68.0661 22.7996C68.2705 22.512 68.5392 22.2963 68.8722 22.1525C69.2052 22.0087 69.5495 21.9368 69.9052 21.9368C70.4047 21.9368 70.8399 22.039 71.2108 22.2433C71.5816 22.4477 71.8692 22.7353 72.0735 23.1061C72.2779 23.477 72.3801 23.9084 72.3801 24.4003C72.3801 24.9149 72.2703 25.3804 72.0508 25.7966C71.8314 26.2053 71.5097 26.527 71.0859 26.7616C70.6696 26.9962 70.1663 27.1135 69.576 27.1135ZM69.5306 25.7626C69.9317 25.7626 70.242 25.6453 70.4615 25.4107C70.6885 25.1685 70.8021 24.8506 70.8021 24.4571C70.8021 24.0786 70.6885 23.7721 70.4615 23.5375C70.2345 23.3029 69.9242 23.1856 69.5306 23.1856C69.1371 23.1856 68.8154 23.3029 68.5656 23.5375C68.3235 23.7721 68.2024 24.09 68.2024 24.4911C68.2024 24.862 68.3235 25.1685 68.5656 25.4107C68.8154 25.6453 69.1371 25.7626 69.5306 25.7626ZM76.576 27H75.0094V26.6708C75.0094 26.1032 75.0359 25.5961 75.0888 25.1496C75.1494 24.6955 75.244 24.2679 75.3727 23.8667C75.5013 23.458 75.6754 23.0494 75.8949 22.6407C76.1144 22.2244 76.3868 21.7741 76.7122 21.2897L77.155 20.6426H73.4882V19.2804H78.8806V20.654L78.1086 21.7892C77.8134 22.2206 77.5675 22.6255 77.3707 23.0039C77.1739 23.3748 77.015 23.7456 76.8939 24.1165C76.7804 24.4873 76.6971 24.8771 76.6441 25.2858C76.5987 25.6945 76.576 26.1561 76.576 26.6708V27Z",fill:"#C4CBD3"}),ie.createElement("rect",{x:"8",y:"33",width:"92",height:"15",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("rect",{x:"8",y:"33",width:"65",height:"15",fill:"#00A4FD"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))}}},function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0);Z.default={"singleValue.none":function NonePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M37.34 38.052C37.34 39.492 36.944 40.764 36.152 41.868C35.384 42.948 34.28 43.8 32.84 44.424C31.424 45.048 29.744 45.36 27.8 45.36C24.896 45.36 22.58 44.712 20.852 43.416C19.124 42.12 18.26 40.344 18.26 38.088C18.26 36.72 18.62 35.508 19.34 34.452C20.06 33.396 21.104 32.664 22.472 32.256C21.392 31.776 20.54 31.08 19.916 30.168C19.292 29.256 18.98 28.164 18.98 26.892C18.98 25.668 19.316 24.552 19.988 23.544C20.66 22.512 21.656 21.696 22.976 21.096C24.296 20.472 25.904 20.16 27.8 20.16C29.768 20.16 31.4 20.46 32.696 21.06C33.992 21.636 34.964 22.44 35.612 23.472C36.284 24.48 36.62 25.62 36.62 26.892C36.62 28.164 36.308 29.256 35.684 30.168C35.06 31.08 34.208 31.776 33.128 32.256C34.472 32.664 35.504 33.396 36.224 34.452C36.968 35.508 37.34 36.708 37.34 38.052ZM23.948 27.324C23.948 28.284 24.284 29.052 24.956 29.628C25.652 30.18 26.612 30.456 27.836 30.456C29.036 30.456 29.972 30.168 30.644 29.592C31.316 29.016 31.652 28.248 31.652 27.288C31.652 26.304 31.304 25.536 30.608 24.984C29.936 24.432 28.988 24.156 27.764 24.156C26.564 24.156 25.628 24.444 24.956 25.02C24.284 25.572 23.948 26.34 23.948 27.324ZM23.3 37.872C23.3 38.976 23.696 39.84 24.488 40.464C25.28 41.064 26.372 41.364 27.764 41.364C29.204 41.364 30.32 41.064 31.112 40.464C31.904 39.864 32.3 39 32.3 37.872C32.3 36.744 31.904 35.868 31.112 35.244C30.32 34.62 29.216 34.308 27.8 34.308C26.408 34.308 25.304 34.62 24.488 35.244C23.696 35.868 23.3 36.744 23.3 37.872ZM49.4579 45H44.4899V43.956C44.4899 42.156 44.5739 40.548 44.7419 39.132C44.9339 37.692 45.2339 36.336 45.6419 35.064C46.0499 33.768 46.6019 32.472 47.2979 31.176C47.9939 29.856 48.8579 28.428 49.8899 26.892L51.2939 24.84H39.6659V20.52H56.7659V24.876L54.3179 28.476C53.3819 29.844 52.6019 31.128 51.9779 32.328C51.3539 33.504 50.8499 34.68 50.4659 35.856C50.1059 37.032 49.8419 38.268 49.6739 39.564C49.5299 40.86 49.4579 42.324 49.4579 43.956V45Z",fill:"#C3CBD4"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3674 38.7752C60.1071 39.0355 59.685 39.0355 59.4246 38.7752C59.1643 38.5148 59.1643 38.0927 59.4246 37.8324L63.2928 33.9643C63.6833 33.5738 64.3164 33.5738 64.7069 33.9643L68.575 37.8324C68.8354 38.0927 68.8354 38.5148 68.575 38.7752C68.3147 39.0355 67.8926 39.0355 67.6323 38.7752L64.6663 35.8092V43.6668C64.6663 44.035 64.3679 44.3335 63.9997 44.3335C63.6315 44.3335 63.333 44.035 63.333 43.6668V35.8095L60.3674 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M72.912 45V43.976C72.912 43.144 73.0613 42.4507 73.36 41.896C73.6693 41.3413 74.0853 40.8667 74.608 40.472C75.1307 40.0667 75.7173 39.6987 76.368 39.368C77.008 39.0373 77.488 38.728 77.808 38.44C78.128 38.1413 78.288 37.7467 78.288 37.256C78.288 36.8613 78.16 36.536 77.904 36.28C77.6587 36.0133 77.296 35.88 76.816 35.88C76.3573 35.88 75.984 36.0133 75.696 36.28C75.408 36.536 75.232 36.8933 75.168 37.352H73.024C73.0453 36.9467 73.136 36.5467 73.296 36.152C73.456 35.7573 73.6907 35.3947 74 35.064C74.3093 34.7227 74.7093 34.456 75.2 34.264C75.6907 34.0613 76.272 33.96 76.944 33.96C78.064 33.96 78.9493 34.248 79.6 34.824C80.2613 35.4 80.592 36.1787 80.592 37.16C80.592 38.0347 80.3093 38.76 79.744 39.336C79.1787 39.9013 78.3893 40.44 77.376 40.952C76.8213 41.2293 76.3573 41.528 75.984 41.848C75.6213 42.168 75.3813 42.5787 75.264 43.08H80.624V45H72.912ZM82.2018 41.8H84.3458C84.4418 42.312 84.6551 42.6853 84.9858 42.92C85.3164 43.144 85.7431 43.256 86.2658 43.256C86.8418 43.256 87.2898 43.1333 87.6098 42.888C87.9404 42.6427 88.1058 42.28 88.1058 41.8C88.1058 41.3093 87.9351 40.936 87.5938 40.68C87.2631 40.4133 86.7938 40.28 86.1858 40.28H84.8418V38.584H86.2018C86.7351 38.584 87.1404 38.4613 87.4178 38.216C87.7058 37.96 87.8498 37.6187 87.8498 37.192C87.8498 36.7867 87.7058 36.4667 87.4178 36.232C87.1404 35.9867 86.7618 35.864 86.2818 35.864C85.2791 35.864 84.7031 36.3227 84.5538 37.24H82.4578C82.4791 36.7067 82.6284 36.1893 82.9058 35.688C83.1831 35.1867 83.6044 34.776 84.1698 34.456C84.7351 34.1253 85.4658 33.96 86.3618 33.96C87.1724 33.96 87.8551 34.0933 88.4098 34.36C88.9644 34.616 89.3858 34.9733 89.6737 35.432C89.9724 35.88 90.1218 36.3867 90.1218 36.952C90.1218 37.528 89.9778 38.0187 89.6898 38.424C89.4124 38.8293 89.0444 39.1387 88.5858 39.352C89.1724 39.5333 89.6258 39.8587 89.9458 40.328C90.2658 40.7867 90.4258 41.3253 90.4258 41.944C90.4258 42.584 90.2551 43.144 89.9138 43.624C89.5831 44.104 89.1084 44.4827 88.4898 44.76C87.8711 45.0267 87.1351 45.16 86.2818 45.16C85.4284 45.16 84.7031 45.016 84.1058 44.728C83.5084 44.4293 83.0498 44.024 82.7298 43.512C82.4098 43 82.2338 42.4293 82.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(56 31)"}))))},"singleValue.majorValue":function MajorValuePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M37.34 38.052C37.34 39.492 36.944 40.764 36.152 41.868C35.384 42.948 34.28 43.8 32.84 44.424C31.424 45.048 29.744 45.36 27.8 45.36C24.896 45.36 22.58 44.712 20.852 43.416C19.124 42.12 18.26 40.344 18.26 38.088C18.26 36.72 18.62 35.508 19.34 34.452C20.06 33.396 21.104 32.664 22.472 32.256C21.392 31.776 20.54 31.08 19.916 30.168C19.292 29.256 18.98 28.164 18.98 26.892C18.98 25.668 19.316 24.552 19.988 23.544C20.66 22.512 21.656 21.696 22.976 21.096C24.296 20.472 25.904 20.16 27.8 20.16C29.768 20.16 31.4 20.46 32.696 21.06C33.992 21.636 34.964 22.44 35.612 23.472C36.284 24.48 36.62 25.62 36.62 26.892C36.62 28.164 36.308 29.256 35.684 30.168C35.06 31.08 34.208 31.776 33.128 32.256C34.472 32.664 35.504 33.396 36.224 34.452C36.968 35.508 37.34 36.708 37.34 38.052ZM23.948 27.324C23.948 28.284 24.284 29.052 24.956 29.628C25.652 30.18 26.612 30.456 27.836 30.456C29.036 30.456 29.972 30.168 30.644 29.592C31.316 29.016 31.652 28.248 31.652 27.288C31.652 26.304 31.304 25.536 30.608 24.984C29.936 24.432 28.988 24.156 27.764 24.156C26.564 24.156 25.628 24.444 24.956 25.02C24.284 25.572 23.948 26.34 23.948 27.324ZM23.3 37.872C23.3 38.976 23.696 39.84 24.488 40.464C25.28 41.064 26.372 41.364 27.764 41.364C29.204 41.364 30.32 41.064 31.112 40.464C31.904 39.864 32.3 39 32.3 37.872C32.3 36.744 31.904 35.868 31.112 35.244C30.32 34.62 29.216 34.308 27.8 34.308C26.408 34.308 25.304 34.62 24.488 35.244C23.696 35.868 23.3 36.744 23.3 37.872ZM49.4579 45H44.4899V43.956C44.4899 42.156 44.5739 40.548 44.7419 39.132C44.9339 37.692 45.2339 36.336 45.6419 35.064C46.0499 33.768 46.6019 32.472 47.2979 31.176C47.9939 29.856 48.8579 28.428 49.8899 26.892L51.2939 24.84H39.6659V20.52H56.7659V24.876L54.3179 28.476C53.3819 29.844 52.6019 31.128 51.9779 32.328C51.3539 33.504 50.8499 34.68 50.4659 35.856C50.1059 37.032 49.8419 38.268 49.6739 39.564C49.5299 40.86 49.4579 42.324 49.4579 43.956V45Z",fill:"#00A4FD"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3674 38.7752C60.1071 39.0355 59.685 39.0355 59.4246 38.7752C59.1643 38.5148 59.1643 38.0927 59.4246 37.8324L63.2928 33.9643C63.6833 33.5738 64.3164 33.5738 64.7069 33.9643L68.575 37.8324C68.8354 38.0927 68.8354 38.5148 68.575 38.7752C68.3147 39.0355 67.8926 39.0355 67.6323 38.7752L64.6663 35.8092V43.6668C64.6663 44.035 64.3679 44.3335 63.9997 44.3335C63.6315 44.3335 63.333 44.035 63.333 43.6668V35.8095L60.3674 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M72.912 45V43.976C72.912 43.144 73.0613 42.4507 73.36 41.896C73.6693 41.3413 74.0853 40.8667 74.608 40.472C75.1307 40.0667 75.7173 39.6987 76.368 39.368C77.008 39.0373 77.488 38.728 77.808 38.44C78.128 38.1413 78.288 37.7467 78.288 37.256C78.288 36.8613 78.16 36.536 77.904 36.28C77.6587 36.0133 77.296 35.88 76.816 35.88C76.3573 35.88 75.984 36.0133 75.696 36.28C75.408 36.536 75.232 36.8933 75.168 37.352H73.024C73.0453 36.9467 73.136 36.5467 73.296 36.152C73.456 35.7573 73.6907 35.3947 74 35.064C74.3093 34.7227 74.7093 34.456 75.2 34.264C75.6907 34.0613 76.272 33.96 76.944 33.96C78.064 33.96 78.9493 34.248 79.6 34.824C80.2613 35.4 80.592 36.1787 80.592 37.16C80.592 38.0347 80.3093 38.76 79.744 39.336C79.1787 39.9013 78.3893 40.44 77.376 40.952C76.8213 41.2293 76.3573 41.528 75.984 41.848C75.6213 42.168 75.3813 42.5787 75.264 43.08H80.624V45H72.912ZM82.2018 41.8H84.3458C84.4418 42.312 84.6551 42.6853 84.9858 42.92C85.3164 43.144 85.7431 43.256 86.2658 43.256C86.8418 43.256 87.2898 43.1333 87.6098 42.888C87.9404 42.6427 88.1058 42.28 88.1058 41.8C88.1058 41.3093 87.9351 40.936 87.5938 40.68C87.2631 40.4133 86.7938 40.28 86.1858 40.28H84.8418V38.584H86.2018C86.7351 38.584 87.1404 38.4613 87.4178 38.216C87.7058 37.96 87.8498 37.6187 87.8498 37.192C87.8498 36.7867 87.7058 36.4667 87.4178 36.232C87.1404 35.9867 86.7618 35.864 86.2818 35.864C85.2791 35.864 84.7031 36.3227 84.5538 37.24H82.4578C82.4791 36.7067 82.6284 36.1893 82.9058 35.688C83.1831 35.1867 83.6044 34.776 84.1698 34.456C84.7351 34.1253 85.4658 33.96 86.3618 33.96C87.1724 33.96 87.8551 34.0933 88.4098 34.36C88.9644 34.616 89.3858 34.9733 89.6737 35.432C89.9724 35.88 90.1218 36.3867 90.1218 36.952C90.1218 37.528 89.9778 38.0187 89.6898 38.424C89.4124 38.8293 89.0444 39.1387 88.5858 39.352C89.1724 39.5333 89.6258 39.8587 89.9458 40.328C90.2658 40.7867 90.4258 41.3253 90.4258 41.944C90.4258 42.584 90.2551 43.144 89.9138 43.624C89.5831 44.104 89.1084 44.4827 88.4898 44.76C87.8711 45.0267 87.1351 45.16 86.2818 45.16C85.4284 45.16 84.7031 45.016 84.1058 44.728C83.5084 44.4293 83.0498 44.024 82.7298 43.512C82.4098 43 82.2338 42.4293 82.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(56 31)"}))))},"singleValue.trend":function TrendPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M37.34 38.052C37.34 39.492 36.944 40.764 36.152 41.868C35.384 42.948 34.28 43.8 32.84 44.424C31.424 45.048 29.744 45.36 27.8 45.36C24.896 45.36 22.58 44.712 20.852 43.416C19.124 42.12 18.26 40.344 18.26 38.088C18.26 36.72 18.62 35.508 19.34 34.452C20.06 33.396 21.104 32.664 22.472 32.256C21.392 31.776 20.54 31.08 19.916 30.168C19.292 29.256 18.98 28.164 18.98 26.892C18.98 25.668 19.316 24.552 19.988 23.544C20.66 22.512 21.656 21.696 22.976 21.096C24.296 20.472 25.904 20.16 27.8 20.16C29.768 20.16 31.4 20.46 32.696 21.06C33.992 21.636 34.964 22.44 35.612 23.472C36.284 24.48 36.62 25.62 36.62 26.892C36.62 28.164 36.308 29.256 35.684 30.168C35.06 31.08 34.208 31.776 33.128 32.256C34.472 32.664 35.504 33.396 36.224 34.452C36.968 35.508 37.34 36.708 37.34 38.052ZM23.948 27.324C23.948 28.284 24.284 29.052 24.956 29.628C25.652 30.18 26.612 30.456 27.836 30.456C29.036 30.456 29.972 30.168 30.644 29.592C31.316 29.016 31.652 28.248 31.652 27.288C31.652 26.304 31.304 25.536 30.608 24.984C29.936 24.432 28.988 24.156 27.764 24.156C26.564 24.156 25.628 24.444 24.956 25.02C24.284 25.572 23.948 26.34 23.948 27.324ZM23.3 37.872C23.3 38.976 23.696 39.84 24.488 40.464C25.28 41.064 26.372 41.364 27.764 41.364C29.204 41.364 30.32 41.064 31.112 40.464C31.904 39.864 32.3 39 32.3 37.872C32.3 36.744 31.904 35.868 31.112 35.244C30.32 34.62 29.216 34.308 27.8 34.308C26.408 34.308 25.304 34.62 24.488 35.244C23.696 35.868 23.3 36.744 23.3 37.872ZM49.4579 45H44.4899V43.956C44.4899 42.156 44.5739 40.548 44.7419 39.132C44.9339 37.692 45.2339 36.336 45.6419 35.064C46.0499 33.768 46.6019 32.472 47.2979 31.176C47.9939 29.856 48.8579 28.428 49.8899 26.892L51.2939 24.84H39.6659V20.52H56.7659V24.876L54.3179 28.476C53.3819 29.844 52.6019 31.128 51.9779 32.328C51.3539 33.504 50.8499 34.68 50.4659 35.856C50.1059 37.032 49.8419 38.268 49.6739 39.564C49.5299 40.86 49.4579 42.324 49.4579 43.956V45Z",fill:"#C3CBD4"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3674 38.7752C60.1071 39.0355 59.685 39.0355 59.4246 38.7752C59.1643 38.5148 59.1643 38.0927 59.4246 37.8324L63.2928 33.9643C63.6833 33.5738 64.3164 33.5738 64.7069 33.9643L68.575 37.8324C68.8354 38.0927 68.8354 38.5148 68.575 38.7752C68.3147 39.0355 67.8926 39.0355 67.6323 38.7752L64.6663 35.8092V43.6668C64.6663 44.035 64.3679 44.3335 63.9997 44.3335C63.6315 44.3335 63.333 44.035 63.333 43.6668V35.8095L60.3674 38.7752Z",fill:"#53A051"})),ie.createElement("path",{d:"M72.912 45V43.976C72.912 43.144 73.0613 42.4507 73.36 41.896C73.6693 41.3413 74.0853 40.8667 74.608 40.472C75.1307 40.0667 75.7173 39.6987 76.368 39.368C77.008 39.0373 77.488 38.728 77.808 38.44C78.128 38.1413 78.288 37.7467 78.288 37.256C78.288 36.8613 78.16 36.536 77.904 36.28C77.6587 36.0133 77.296 35.88 76.816 35.88C76.3573 35.88 75.984 36.0133 75.696 36.28C75.408 36.536 75.232 36.8933 75.168 37.352H73.024C73.0453 36.9467 73.136 36.5467 73.296 36.152C73.456 35.7573 73.6907 35.3947 74 35.064C74.3093 34.7227 74.7093 34.456 75.2 34.264C75.6907 34.0613 76.272 33.96 76.944 33.96C78.064 33.96 78.9493 34.248 79.6 34.824C80.2613 35.4 80.592 36.1787 80.592 37.16C80.592 38.0347 80.3093 38.76 79.744 39.336C79.1787 39.9013 78.3893 40.44 77.376 40.952C76.8213 41.2293 76.3573 41.528 75.984 41.848C75.6213 42.168 75.3813 42.5787 75.264 43.08H80.624V45H72.912ZM82.2018 41.8H84.3458C84.4418 42.312 84.6551 42.6853 84.9858 42.92C85.3164 43.144 85.7431 43.256 86.2658 43.256C86.8418 43.256 87.2898 43.1333 87.6098 42.888C87.9404 42.6427 88.1058 42.28 88.1058 41.8C88.1058 41.3093 87.9351 40.936 87.5938 40.68C87.2631 40.4133 86.7938 40.28 86.1858 40.28H84.8418V38.584H86.2018C86.7351 38.584 87.1404 38.4613 87.4178 38.216C87.7058 37.96 87.8498 37.6187 87.8498 37.192C87.8498 36.7867 87.7058 36.4667 87.4178 36.232C87.1404 35.9867 86.7618 35.864 86.2818 35.864C85.2791 35.864 84.7031 36.3227 84.5538 37.24H82.4578C82.4791 36.7067 82.6284 36.1893 82.9058 35.688C83.1831 35.1867 83.6044 34.776 84.1698 34.456C84.7351 34.1253 85.4658 33.96 86.3618 33.96C87.1724 33.96 87.8551 34.0933 88.4098 34.36C88.9644 34.616 89.3858 34.9733 89.6737 35.432C89.9724 35.88 90.1218 36.3867 90.1218 36.952C90.1218 37.528 89.9778 38.0187 89.6898 38.424C89.4124 38.8293 89.0444 39.1387 88.5858 39.352C89.1724 39.5333 89.6258 39.8587 89.9458 40.328C90.2658 40.7867 90.4258 41.3253 90.4258 41.944C90.4258 42.584 90.2551 43.144 89.9138 43.624C89.5831 44.104 89.1084 44.4827 88.4898 44.76C87.8711 45.0267 87.1351 45.16 86.2818 45.16C85.4284 45.16 84.7031 45.016 84.1058 44.728C83.5084 44.4293 83.0498 44.024 82.7298 43.512C82.4098 43 82.2338 42.4293 82.2018 41.8Z",fill:"#53A051"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(56 31)"}))))},"singleValue.majorValueAndTrend":function MajorValueAndTrendPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M37.34 38.052C37.34 39.492 36.944 40.764 36.152 41.868C35.384 42.948 34.28 43.8 32.84 44.424C31.424 45.048 29.744 45.36 27.8 45.36C24.896 45.36 22.58 44.712 20.852 43.416C19.124 42.12 18.26 40.344 18.26 38.088C18.26 36.72 18.62 35.508 19.34 34.452C20.06 33.396 21.104 32.664 22.472 32.256C21.392 31.776 20.54 31.08 19.916 30.168C19.292 29.256 18.98 28.164 18.98 26.892C18.98 25.668 19.316 24.552 19.988 23.544C20.66 22.512 21.656 21.696 22.976 21.096C24.296 20.472 25.904 20.16 27.8 20.16C29.768 20.16 31.4 20.46 32.696 21.06C33.992 21.636 34.964 22.44 35.612 23.472C36.284 24.48 36.62 25.62 36.62 26.892C36.62 28.164 36.308 29.256 35.684 30.168C35.06 31.08 34.208 31.776 33.128 32.256C34.472 32.664 35.504 33.396 36.224 34.452C36.968 35.508 37.34 36.708 37.34 38.052ZM23.948 27.324C23.948 28.284 24.284 29.052 24.956 29.628C25.652 30.18 26.612 30.456 27.836 30.456C29.036 30.456 29.972 30.168 30.644 29.592C31.316 29.016 31.652 28.248 31.652 27.288C31.652 26.304 31.304 25.536 30.608 24.984C29.936 24.432 28.988 24.156 27.764 24.156C26.564 24.156 25.628 24.444 24.956 25.02C24.284 25.572 23.948 26.34 23.948 27.324ZM23.3 37.872C23.3 38.976 23.696 39.84 24.488 40.464C25.28 41.064 26.372 41.364 27.764 41.364C29.204 41.364 30.32 41.064 31.112 40.464C31.904 39.864 32.3 39 32.3 37.872C32.3 36.744 31.904 35.868 31.112 35.244C30.32 34.62 29.216 34.308 27.8 34.308C26.408 34.308 25.304 34.62 24.488 35.244C23.696 35.868 23.3 36.744 23.3 37.872ZM49.4579 45H44.4899V43.956C44.4899 42.156 44.5739 40.548 44.7419 39.132C44.9339 37.692 45.2339 36.336 45.6419 35.064C46.0499 33.768 46.6019 32.472 47.2979 31.176C47.9939 29.856 48.8579 28.428 49.8899 26.892L51.2939 24.84H39.6659V20.52H56.7659V24.876L54.3179 28.476C53.3819 29.844 52.6019 31.128 51.9779 32.328C51.3539 33.504 50.8499 34.68 50.4659 35.856C50.1059 37.032 49.8419 38.268 49.6739 39.564C49.5299 40.86 49.4579 42.324 49.4579 43.956V45Z",fill:"#00A4FD"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3674 38.7752C60.1071 39.0355 59.685 39.0355 59.4246 38.7752C59.1643 38.5148 59.1643 38.0927 59.4246 37.8324L63.2928 33.9643C63.6833 33.5738 64.3164 33.5738 64.7069 33.9643L68.575 37.8324C68.8354 38.0927 68.8354 38.5148 68.575 38.7752C68.3147 39.0355 67.8926 39.0355 67.6323 38.7752L64.6663 35.8092V43.6668C64.6663 44.035 64.3679 44.3335 63.9997 44.3335C63.6315 44.3335 63.333 44.035 63.333 43.6668V35.8095L60.3674 38.7752Z",fill:"#53A051"})),ie.createElement("path",{d:"M72.912 45V43.976C72.912 43.144 73.0613 42.4507 73.36 41.896C73.6693 41.3413 74.0853 40.8667 74.608 40.472C75.1307 40.0667 75.7173 39.6987 76.368 39.368C77.008 39.0373 77.488 38.728 77.808 38.44C78.128 38.1413 78.288 37.7467 78.288 37.256C78.288 36.8613 78.16 36.536 77.904 36.28C77.6587 36.0133 77.296 35.88 76.816 35.88C76.3573 35.88 75.984 36.0133 75.696 36.28C75.408 36.536 75.232 36.8933 75.168 37.352H73.024C73.0453 36.9467 73.136 36.5467 73.296 36.152C73.456 35.7573 73.6907 35.3947 74 35.064C74.3093 34.7227 74.7093 34.456 75.2 34.264C75.6907 34.0613 76.272 33.96 76.944 33.96C78.064 33.96 78.9493 34.248 79.6 34.824C80.2613 35.4 80.592 36.1787 80.592 37.16C80.592 38.0347 80.3093 38.76 79.744 39.336C79.1787 39.9013 78.3893 40.44 77.376 40.952C76.8213 41.2293 76.3573 41.528 75.984 41.848C75.6213 42.168 75.3813 42.5787 75.264 43.08H80.624V45H72.912ZM82.2018 41.8H84.3458C84.4418 42.312 84.6551 42.6853 84.9858 42.92C85.3164 43.144 85.7431 43.256 86.2658 43.256C86.8418 43.256 87.2898 43.1333 87.6098 42.888C87.9404 42.6427 88.1058 42.28 88.1058 41.8C88.1058 41.3093 87.9351 40.936 87.5938 40.68C87.2631 40.4133 86.7938 40.28 86.1858 40.28H84.8418V38.584H86.2018C86.7351 38.584 87.1404 38.4613 87.4178 38.216C87.7058 37.96 87.8498 37.6187 87.8498 37.192C87.8498 36.7867 87.7058 36.4667 87.4178 36.232C87.1404 35.9867 86.7618 35.864 86.2818 35.864C85.2791 35.864 84.7031 36.3227 84.5538 37.24H82.4578C82.4791 36.7067 82.6284 36.1893 82.9058 35.688C83.1831 35.1867 83.6044 34.776 84.1698 34.456C84.7351 34.1253 85.4658 33.96 86.3618 33.96C87.1724 33.96 87.8551 34.0933 88.4098 34.36C88.9644 34.616 89.3858 34.9733 89.6737 35.432C89.9724 35.88 90.1218 36.3867 90.1218 36.952C90.1218 37.528 89.9778 38.0187 89.6898 38.424C89.4124 38.8293 89.0444 39.1387 88.5858 39.352C89.1724 39.5333 89.6258 39.8587 89.9458 40.328C90.2658 40.7867 90.4258 41.3253 90.4258 41.944C90.4258 42.584 90.2551 43.144 89.9138 43.624C89.5831 44.104 89.1084 44.4827 88.4898 44.76C87.8711 45.0267 87.1351 45.16 86.2818 45.16C85.4284 45.16 84.7031 45.016 84.1058 44.728C83.5084 44.4293 83.0498 44.024 82.7298 43.512C82.4098 43 82.2338 42.4293 82.2018 41.8Z",fill:"#53A051"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(56 31)"}))))},"singleValue.background":function BackgroundPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#00A4FD"}),ie.createElement("path",{d:"M37.34 38.052C37.34 39.492 36.944 40.764 36.152 41.868C35.384 42.948 34.28 43.8 32.84 44.424C31.424 45.048 29.744 45.36 27.8 45.36C24.896 45.36 22.58 44.712 20.852 43.416C19.124 42.12 18.26 40.344 18.26 38.088C18.26 36.72 18.62 35.508 19.34 34.452C20.06 33.396 21.104 32.664 22.472 32.256C21.392 31.776 20.54 31.08 19.916 30.168C19.292 29.256 18.98 28.164 18.98 26.892C18.98 25.668 19.316 24.552 19.988 23.544C20.66 22.512 21.656 21.696 22.976 21.096C24.296 20.472 25.904 20.16 27.8 20.16C29.768 20.16 31.4 20.46 32.696 21.06C33.992 21.636 34.964 22.44 35.612 23.472C36.284 24.48 36.62 25.62 36.62 26.892C36.62 28.164 36.308 29.256 35.684 30.168C35.06 31.08 34.208 31.776 33.128 32.256C34.472 32.664 35.504 33.396 36.224 34.452C36.968 35.508 37.34 36.708 37.34 38.052ZM23.948 27.324C23.948 28.284 24.284 29.052 24.956 29.628C25.652 30.18 26.612 30.456 27.836 30.456C29.036 30.456 29.972 30.168 30.644 29.592C31.316 29.016 31.652 28.248 31.652 27.288C31.652 26.304 31.304 25.536 30.608 24.984C29.936 24.432 28.988 24.156 27.764 24.156C26.564 24.156 25.628 24.444 24.956 25.02C24.284 25.572 23.948 26.34 23.948 27.324ZM23.3 37.872C23.3 38.976 23.696 39.84 24.488 40.464C25.28 41.064 26.372 41.364 27.764 41.364C29.204 41.364 30.32 41.064 31.112 40.464C31.904 39.864 32.3 39 32.3 37.872C32.3 36.744 31.904 35.868 31.112 35.244C30.32 34.62 29.216 34.308 27.8 34.308C26.408 34.308 25.304 34.62 24.488 35.244C23.696 35.868 23.3 36.744 23.3 37.872ZM49.4579 45H44.4899V43.956C44.4899 42.156 44.5739 40.548 44.7419 39.132C44.9339 37.692 45.2339 36.336 45.6419 35.064C46.0499 33.768 46.6019 32.472 47.2979 31.176C47.9939 29.856 48.8579 28.428 49.8899 26.892L51.2939 24.84H39.6659V20.52H56.7659V24.876L54.3179 28.476C53.3819 29.844 52.6019 31.128 51.9779 32.328C51.3539 33.504 50.8499 34.68 50.4659 35.856C50.1059 37.032 49.8419 38.268 49.6739 39.564C49.5299 40.86 49.4579 42.324 49.4579 43.956V45Z",fill:"white"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M60.3674 38.7752C60.1071 39.0355 59.685 39.0355 59.4246 38.7752C59.1643 38.5148 59.1643 38.0927 59.4246 37.8324L63.2928 33.9643C63.6833 33.5738 64.3164 33.5738 64.7069 33.9643L68.575 37.8324C68.8354 38.0927 68.8354 38.5148 68.575 38.7752C68.3147 39.0355 67.8926 39.0355 67.6323 38.7752L64.6663 35.8092V43.6668C64.6663 44.035 64.3679 44.3335 63.9997 44.3335C63.6315 44.3335 63.333 44.035 63.333 43.6668V35.8095L60.3674 38.7752Z",fill:"white"})),ie.createElement("path",{d:"M72.912 45V43.976C72.912 43.144 73.0613 42.4507 73.36 41.896C73.6693 41.3413 74.0853 40.8667 74.608 40.472C75.1307 40.0667 75.7173 39.6987 76.368 39.368C77.008 39.0373 77.488 38.728 77.808 38.44C78.128 38.1413 78.288 37.7467 78.288 37.256C78.288 36.8613 78.16 36.536 77.904 36.28C77.6587 36.0133 77.296 35.88 76.816 35.88C76.3573 35.88 75.984 36.0133 75.696 36.28C75.408 36.536 75.232 36.8933 75.168 37.352H73.024C73.0453 36.9467 73.136 36.5467 73.296 36.152C73.456 35.7573 73.6907 35.3947 74 35.064C74.3093 34.7227 74.7093 34.456 75.2 34.264C75.6907 34.0613 76.272 33.96 76.944 33.96C78.064 33.96 78.9493 34.248 79.6 34.824C80.2613 35.4 80.592 36.1787 80.592 37.16C80.592 38.0347 80.3093 38.76 79.744 39.336C79.1787 39.9013 78.3893 40.44 77.376 40.952C76.8213 41.2293 76.3573 41.528 75.984 41.848C75.6213 42.168 75.3813 42.5787 75.264 43.08H80.624V45H72.912ZM82.2018 41.8H84.3458C84.4418 42.312 84.6551 42.6853 84.9858 42.92C85.3164 43.144 85.7431 43.256 86.2658 43.256C86.8418 43.256 87.2898 43.1333 87.6098 42.888C87.9404 42.6427 88.1058 42.28 88.1058 41.8C88.1058 41.3093 87.9351 40.936 87.5938 40.68C87.2631 40.4133 86.7938 40.28 86.1858 40.28H84.8418V38.584H86.2018C86.7351 38.584 87.1404 38.4613 87.4178 38.216C87.7058 37.96 87.8498 37.6187 87.8498 37.192C87.8498 36.7867 87.7058 36.4667 87.4178 36.232C87.1404 35.9867 86.7618 35.864 86.2818 35.864C85.2791 35.864 84.7031 36.3227 84.5538 37.24H82.4578C82.4791 36.7067 82.6284 36.1893 82.9058 35.688C83.1831 35.1867 83.6044 34.776 84.1698 34.456C84.7351 34.1253 85.4658 33.96 86.3618 33.96C87.1724 33.96 87.8551 34.0933 88.4098 34.36C88.9644 34.616 89.3858 34.9733 89.6737 35.432C89.9724 35.88 90.1218 36.3867 90.1218 36.952C90.1218 37.528 89.9778 38.0187 89.6898 38.424C89.4124 38.8293 89.0444 39.1387 88.5858 39.352C89.1724 39.5333 89.6258 39.8587 89.9458 40.328C90.2658 40.7867 90.4258 41.3253 90.4258 41.944C90.4258 42.584 90.2551 43.144 89.9138 43.624C89.5831 44.104 89.1084 44.4827 88.4898 44.76C87.8711 45.0267 87.1351 45.16 86.2818 45.16C85.4284 45.16 84.7031 45.016 84.1058 44.728C83.5084 44.4293 83.0498 44.024 82.7298 43.512C82.4098 43 82.2338 42.4293 82.2018 41.8Z",fill:"white"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(56 31)"}))))}}},function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0);Z.default={"singleValueIcon.none":function NonePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"#C3CBD4"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"#C3CBD4"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))},"singleValueIcon.icon":function IconPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"#C3CBD4"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"#00A4FD"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))},"singleValueIcon.majorValue":function MajorValuePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"#00A4FD"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"#C3CBD4"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))},"singleValueIcon.trend":function TrendPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"#C3CBD4"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"#53A051"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"#53A051"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"#C3CBD4"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))},"singleValueIcon.iconAndMajorValue":function IconAndMajorValuePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"#00A4FD"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"#C3CBD4"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"#C3CBD4"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"#00A4FD"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))},"singleValueIcon.background":function BackgroundPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#00A4FD"}),ie.createElement("path",{d:"M43.34 38.052C43.34 39.492 42.944 40.764 42.152 41.868C41.384 42.948 40.28 43.8 38.84 44.424C37.424 45.048 35.744 45.36 33.8 45.36C30.896 45.36 28.58 44.712 26.852 43.416C25.124 42.12 24.26 40.344 24.26 38.088C24.26 36.72 24.62 35.508 25.34 34.452C26.06 33.396 27.104 32.664 28.472 32.256C27.392 31.776 26.54 31.08 25.916 30.168C25.292 29.256 24.98 28.164 24.98 26.892C24.98 25.668 25.316 24.552 25.988 23.544C26.66 22.512 27.656 21.696 28.976 21.096C30.296 20.472 31.904 20.16 33.8 20.16C35.768 20.16 37.4 20.46 38.696 21.06C39.992 21.636 40.964 22.44 41.612 23.472C42.284 24.48 42.62 25.62 42.62 26.892C42.62 28.164 42.308 29.256 41.684 30.168C41.06 31.08 40.208 31.776 39.128 32.256C40.472 32.664 41.504 33.396 42.224 34.452C42.968 35.508 43.34 36.708 43.34 38.052ZM29.948 27.324C29.948 28.284 30.284 29.052 30.956 29.628C31.652 30.18 32.612 30.456 33.836 30.456C35.036 30.456 35.972 30.168 36.644 29.592C37.316 29.016 37.652 28.248 37.652 27.288C37.652 26.304 37.304 25.536 36.608 24.984C35.936 24.432 34.988 24.156 33.764 24.156C32.564 24.156 31.628 24.444 30.956 25.02C30.284 25.572 29.948 26.34 29.948 27.324ZM29.3 37.872C29.3 38.976 29.696 39.84 30.488 40.464C31.28 41.064 32.372 41.364 33.764 41.364C35.204 41.364 36.32 41.064 37.112 40.464C37.904 39.864 38.3 39 38.3 37.872C38.3 36.744 37.904 35.868 37.112 35.244C36.32 34.62 35.216 34.308 33.8 34.308C32.408 34.308 31.304 34.62 30.488 35.244C29.696 35.868 29.3 36.744 29.3 37.872ZM55.4579 45H50.4899V43.956C50.4899 42.156 50.5739 40.548 50.7419 39.132C50.9339 37.692 51.2339 36.336 51.6419 35.064C52.0499 33.768 52.6019 32.472 53.2979 31.176C53.9939 29.856 54.8579 28.428 55.8899 26.892L57.2939 24.84H45.6659V20.52H62.7659V24.876L60.3179 28.476C59.3819 29.844 58.6019 31.128 57.9779 32.328C57.3539 33.504 56.8499 34.68 56.4659 35.856C56.1059 37.032 55.8419 38.268 55.6739 39.564C55.5299 40.86 55.4579 42.324 55.4579 43.956V45Z",fill:"white"}),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M66.3675 38.7752C66.1072 39.0355 65.6851 39.0355 65.4247 38.7752C65.1644 38.5148 65.1644 38.0927 65.4247 37.8324L69.2929 33.9643C69.6834 33.5738 70.3165 33.5738 70.707 33.9643L74.5752 37.8324C74.8355 38.0927 74.8355 38.5148 74.5752 38.7752C74.3148 39.0355 73.8927 39.0355 73.6324 38.7752L70.6664 35.8092V43.6668C70.6664 44.035 70.368 44.3335 69.9998 44.3335C69.6316 44.3335 69.3332 44.035 69.3332 43.6668V35.8095L66.3675 38.7752Z",fill:"white"})),ie.createElement("path",{d:"M78.912 45V43.976C78.912 43.144 79.0613 42.4507 79.36 41.896C79.6693 41.3413 80.0853 40.8667 80.608 40.472C81.1307 40.0667 81.7173 39.6987 82.368 39.368C83.008 39.0373 83.488 38.728 83.808 38.44C84.128 38.1413 84.288 37.7467 84.288 37.256C84.288 36.8613 84.16 36.536 83.904 36.28C83.6587 36.0133 83.296 35.88 82.816 35.88C82.3573 35.88 81.984 36.0133 81.696 36.28C81.408 36.536 81.232 36.8933 81.168 37.352H79.024C79.0453 36.9467 79.136 36.5467 79.296 36.152C79.456 35.7573 79.6907 35.3947 80 35.064C80.3093 34.7227 80.7093 34.456 81.2 34.264C81.6907 34.0613 82.272 33.96 82.944 33.96C84.064 33.96 84.9493 34.248 85.6 34.824C86.2613 35.4 86.592 36.1787 86.592 37.16C86.592 38.0347 86.3093 38.76 85.744 39.336C85.1787 39.9013 84.3893 40.44 83.376 40.952C82.8213 41.2293 82.3573 41.528 81.984 41.848C81.6213 42.168 81.3813 42.5787 81.264 43.08H86.624V45H78.912ZM88.2018 41.8H90.3458C90.4418 42.312 90.6551 42.6853 90.9858 42.92C91.3164 43.144 91.7431 43.256 92.2658 43.256C92.8418 43.256 93.2898 43.1333 93.6098 42.888C93.9404 42.6427 94.1058 42.28 94.1058 41.8C94.1058 41.3093 93.9351 40.936 93.5938 40.68C93.2631 40.4133 92.7938 40.28 92.1858 40.28H90.8418V38.584H92.2018C92.7351 38.584 93.1404 38.4613 93.4178 38.216C93.7058 37.96 93.8498 37.6187 93.8498 37.192C93.8498 36.7867 93.7058 36.4667 93.4178 36.232C93.1404 35.9867 92.7618 35.864 92.2818 35.864C91.2791 35.864 90.7031 36.3227 90.5538 37.24H88.4578C88.4791 36.7067 88.6284 36.1893 88.9058 35.688C89.1831 35.1867 89.6044 34.776 90.1698 34.456C90.7351 34.1253 91.4658 33.96 92.3618 33.96C93.1724 33.96 93.8551 34.0933 94.4098 34.36C94.9644 34.616 95.3858 34.9733 95.6737 35.432C95.9724 35.88 96.1218 36.3867 96.1218 36.952C96.1218 37.528 95.9778 38.0187 95.6898 38.424C95.4124 38.8293 95.0444 39.1387 94.5858 39.352C95.1724 39.5333 95.6258 39.8587 95.9458 40.328C96.2658 40.7867 96.4258 41.3253 96.4258 41.944C96.4258 42.584 96.2551 43.144 95.9138 43.624C95.5831 44.104 95.1084 44.4827 94.4898 44.76C93.8711 45.0267 93.1351 45.16 92.2818 45.16C91.4284 45.16 90.7031 45.016 90.1058 44.728C89.5084 44.4293 89.0498 44.024 88.7298 43.512C88.4098 43 88.2338 42.4293 88.2018 41.8Z",fill:"white"}),ie.createElement("rect",{x:"10",y:"28",width:"8",height:"8",rx:"3",fill:"white"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"15.9993",height:"15.9993",fill:"white",transform:"translate(62 31)"}))))}}},function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0);Z.default={"singleValueRadial.none":function NonePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M8.47363 55.3796C8.47363 49.2734 9.64593 43.227 11.9236 37.5856C14.2013 31.9442 17.5397 26.8183 21.7483 22.5006C25.9569 18.1829 30.9532 14.7579 36.4519 12.4211C41.9507 10.0844 47.8443 8.88166 53.7961 8.88166C59.7479 8.88166 65.6415 10.0844 71.1402 12.4211C76.639 14.7579 81.6353 18.1829 85.8439 22.5006C90.0525 26.8183 93.3909 31.9442 95.6686 37.5856C97.9462 43.227 99.1185 49.2734 99.1185 55.3796L91.7374 55.3796C91.7373 50.2679 90.756 45.2062 88.8492 40.4836C86.9425 35.7609 84.1478 31.4698 80.6246 27.8553C77.1014 24.2407 72.9188 21.3735 68.3156 19.4173C63.7123 17.4611 58.7786 16.4543 53.7961 16.4543C48.8136 16.4543 43.8798 17.4611 39.2766 19.4173C34.6733 21.3735 30.4907 24.2407 26.9676 27.8553C23.4444 31.4698 20.6497 35.7609 18.7429 40.4835C16.8362 45.2062 15.8548 50.2679 15.8548 55.3796L8.47363 55.3796Z",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("path",{d:"M8.47363 55.3796C8.47363 48.1045 10.1376 40.9308 13.3317 34.4354C16.5259 27.9401 21.1611 22.3043 26.8646 17.9812C32.5681 13.6581 39.1808 10.7685 46.171 9.54447C53.1612 8.32048 60.3338 8.79637 67.1121 10.9339L53.7961 55.3796L8.47363 55.3796Z",fill:"#C4CBD3"}),ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.95117 55.9021L7.95117 55.3797C7.95117 48.0249 9.6333 40.7724 12.8629 34.2049C16.0925 27.6374 20.7798 21.9377 26.549 17.5649C32.3182 13.192 39.0081 10.2683 46.0809 9.02986C53.1537 7.7914 60.4111 8.27296 67.2692 10.4356L67.7603 10.5905L54.1849 55.9021L7.95117 55.9021ZM8.47648 54.8572C8.55419 47.7613 10.2141 40.7752 13.3317 34.4354C16.5259 27.9401 21.161 22.3043 26.8646 17.9812C32.5681 13.6582 39.1808 10.7685 46.171 9.54448C53.1612 8.32049 60.3338 8.79638 67.1121 10.9339L53.7961 55.3796L8.47362 55.3797C8.47362 55.2054 8.47457 55.0313 8.47648 54.8572Z",fill:"#F2F4F5"}),ie.createElement("path",{d:"M91.7353 55.3797C70 55.3797 74.7648 55.3797 53.8305 55.3797C32.8963 55.3797 48.5 55.3797 15.9258 55.3797C15.9258 33.8834 32.8963 16.4572 53.8305 16.4572C74.7648 16.4572 91.7353 33.8834 91.7353 55.3797Z",fill:"#F2F4F5"}),ie.createElement("path",{d:"M60.1005 50.4937C59.9157 50.6785 59.6162 50.6785 59.4315 50.4937C59.2468 50.309 59.2468 50.0095 59.4315 49.8248L62.1762 47.0801C62.4532 46.803 62.9025 46.803 63.1796 47.0801L65.9242 49.8248C66.109 50.0095 66.109 50.309 65.9242 50.4937C65.7395 50.6785 65.44 50.6785 65.2553 50.4937L63.1508 48.3892V53.9646C63.1508 54.2259 62.939 54.4377 62.6778 54.4377C62.4165 54.4377 62.2048 54.2259 62.2048 53.9646V48.3894L60.1005 50.4937Z",fill:"#C4CBD3"}),ie.createElement("path",{d:"M69.0006 54.9769V54.2503C69.0006 53.66 69.1066 53.168 69.3185 52.7745C69.538 52.3809 69.8331 52.0442 70.204 51.7641C70.5748 51.4765 70.9911 51.2154 71.4527 50.9808C71.9068 50.7462 72.2474 50.5267 72.4744 50.3224C72.7015 50.1105 72.815 49.8304 72.815 49.4823C72.815 49.2023 72.7242 48.9714 72.5426 48.7898C72.3685 48.6006 72.1112 48.506 71.7706 48.506C71.4452 48.506 71.1803 48.6006 70.9759 48.7898C70.7716 48.9714 70.6467 49.225 70.6013 49.5504H69.0801C69.0952 49.2628 69.1595 48.979 69.2731 48.699C69.3866 48.419 69.5531 48.1616 69.7726 47.927C69.992 47.6848 70.2759 47.4956 70.624 47.3594C70.9721 47.2156 71.3846 47.1437 71.8614 47.1437C72.6561 47.1437 73.2842 47.348 73.7459 47.7567C74.2151 48.1654 74.4498 48.7179 74.4498 49.4142C74.4498 50.0348 74.2492 50.5494 73.8481 50.9581C73.447 51.3592 72.8869 51.7414 72.1679 52.1047C71.7744 52.3015 71.4452 52.5134 71.1803 52.7404C70.9229 52.9675 70.7527 53.2589 70.6694 53.6146H74.4725V54.9769H69.0006ZM75.5919 52.7064H77.1131C77.1813 53.0697 77.3326 53.3346 77.5672 53.5011C77.8019 53.66 78.1046 53.7395 78.4754 53.7395C78.8841 53.7395 79.202 53.6524 79.429 53.4783C79.6637 53.3043 79.781 53.047 79.781 52.7064C79.781 52.3582 79.6599 52.0934 79.4177 51.9117C79.1831 51.7225 78.8501 51.6279 78.4187 51.6279H77.4651V50.4245H78.43C78.8084 50.4245 79.096 50.3375 79.2928 50.1634C79.4972 49.9818 79.5993 49.7396 79.5993 49.4369C79.5993 49.1493 79.4972 48.9222 79.2928 48.7557C79.096 48.5817 78.8274 48.4946 78.4868 48.4946C77.7754 48.4946 77.3667 48.8201 77.2607 49.4709H75.7736C75.7887 49.0925 75.8947 48.7255 76.0914 48.3698C76.2882 48.0141 76.5871 47.7227 76.9883 47.4956C77.3894 47.261 77.9078 47.1437 78.5435 47.1437C79.1187 47.1437 79.6031 47.2383 79.9967 47.4275C80.3902 47.6092 80.6892 47.8627 80.8935 48.1881C81.1054 48.506 81.2114 48.8655 81.2114 49.2666C81.2114 49.6753 81.1092 50.0234 80.9049 50.311C80.7081 50.5986 80.447 50.8181 80.1215 50.9695C80.5378 51.0981 80.8594 51.329 81.0865 51.662C81.3135 51.9874 81.4271 52.3696 81.4271 52.8086C81.4271 53.2627 81.306 53.66 81.0638 54.0006C80.8292 54.3411 80.4924 54.6098 80.0534 54.8066C79.6145 54.9958 79.0922 55.0904 78.4868 55.0904C77.8813 55.0904 77.3667 54.9882 76.9429 54.7839C76.519 54.572 76.1936 54.2844 75.9666 53.9211C75.7395 53.5578 75.6146 53.1529 75.5919 52.7064Z",fill:"#C4CBD3"}),ie.createElement("path",{d:"M40.99 49.7943C40.99 50.8462 40.7007 51.7753 40.1222 52.5817C39.5612 53.3706 38.7548 53.9929 37.703 54.4487C36.6687 54.9045 35.4415 55.1324 34.0216 55.1324C31.9004 55.1324 30.2087 54.6591 28.9465 53.7124C27.6843 52.7658 27.0532 51.4685 27.0532 49.8206C27.0532 48.8214 27.3161 47.9361 27.842 47.1648C28.368 46.3934 29.1305 45.8587 30.1298 45.5607C29.3409 45.2101 28.7186 44.7017 28.2628 44.0356C27.807 43.3694 27.5791 42.5717 27.5791 41.6426C27.5791 40.7486 27.8245 39.9334 28.3154 39.1971C28.8062 38.4433 29.5337 37.8473 30.4979 37.409C31.4621 36.9532 32.6367 36.7253 34.0216 36.7253C35.4591 36.7253 36.6512 36.9444 37.5978 37.3827C38.5445 37.8034 39.2544 38.3907 39.7278 39.1445C40.2186 39.8808 40.4641 40.7135 40.4641 41.6426C40.4641 42.5717 40.2362 43.3694 39.7804 44.0356C39.3246 44.7017 38.7022 45.2101 37.9134 45.5607C38.8951 45.8587 39.6489 46.3934 40.1748 47.1648C40.7182 47.9361 40.99 48.8126 40.99 49.7943ZM31.2079 41.9582C31.2079 42.6594 31.4533 43.2204 31.9442 43.6411C32.4526 44.0443 33.1538 44.2459 34.0479 44.2459C34.9244 44.2459 35.6081 44.0356 36.0989 43.6148C36.5898 43.1941 36.8352 42.6331 36.8352 41.9319C36.8352 41.2131 36.581 40.6522 36.0726 40.2489C35.5818 39.8457 34.8893 39.6441 33.9953 39.6441C33.1187 39.6441 32.4351 39.8545 31.9442 40.2752C31.4533 40.6784 31.2079 41.2394 31.2079 41.9582ZM30.7346 49.6629C30.7346 50.4693 31.0238 51.1004 31.6024 51.5562C32.1809 51.9944 32.9785 52.2136 33.9953 52.2136C35.0471 52.2136 35.8623 51.9944 36.4408 51.5562C37.0193 51.1179 37.3086 50.4868 37.3086 49.6629C37.3086 48.8389 37.0193 48.1991 36.4408 47.7433C35.8623 47.2875 35.0559 47.0596 34.0216 47.0596C33.0048 47.0596 32.1984 47.2875 31.6024 47.7433C31.0238 48.1991 30.7346 48.8389 30.7346 49.6629ZM49.8414 54.8694H46.2126V54.1069C46.2126 52.7921 46.2739 51.6175 46.3966 50.5832C46.5369 49.5314 46.756 48.5409 47.054 47.6118C47.3521 46.6651 47.7553 45.7185 48.2637 44.7718C48.772 43.8077 49.4031 42.7646 50.157 41.6426L51.1825 40.1438H42.6889V36.9883H55.1795V40.1701L53.3913 42.7996C52.7077 43.7989 52.1379 44.7368 51.6821 45.6133C51.2263 46.4723 50.8582 47.3313 50.5777 48.1903C50.3147 49.0493 50.1219 49.9521 49.9992 50.8988C49.894 51.8454 49.8414 52.9148 49.8414 54.1069V54.8694Z",fill:"#C4CBD3"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))},"singleValueRadial.majorValue":function MajorValuePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M8 55.498C8 49.3918 9.17229 43.3454 11.45 37.704C13.7276 32.0626 17.0661 26.9367 21.2746 22.619C25.4832 18.3013 30.4795 14.8762 35.9783 12.5395C41.4771 10.2028 47.3706 9.00005 53.3225 9.00005C59.2743 9.00005 65.1678 10.2028 70.6666 12.5395C76.1654 14.8762 81.1617 18.3013 85.3703 22.619C89.5788 26.9367 92.9173 32.0626 95.1949 37.704C97.4726 43.3454 98.6449 49.3918 98.6449 55.498L91.2637 55.498C91.2637 50.3863 90.2823 45.3246 88.3756 40.6019C86.4689 35.8793 83.6742 31.5882 80.151 27.9736C76.6278 24.3591 72.4452 21.4919 67.8419 19.5357C63.2387 17.5795 58.305 16.5727 53.3225 16.5727C48.3399 16.5727 43.4062 17.5795 38.803 19.5357C34.1997 21.4919 30.0171 24.3591 26.4939 27.9736C22.9707 31.5882 20.176 35.8793 18.2693 40.6019C16.3626 45.3246 15.3812 50.3863 15.3812 55.498L8 55.498Z",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("mask",{id:"path-3-outside-1_361:10973",maskUnits:"userSpaceOnUse",x:"6.99999",y:"7.99597",width:"61",height:"49",fill:"black"},ie.createElement("rect",{fill:"white",x:"6.99999",y:"7.99597",width:"61",height:"49"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z"})),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",fill:"#00A4FD"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",stroke:"#F2F4F5",strokeWidth:"1.0449",mask:"url(#path-3-outside-1_361:10973)"}),ie.createElement("path",{d:"M91.7353 55.3797C80.5 59.5 74.7648 59.5 53.8305 59.5C32.8963 59.5 24 61 15.9258 55.3797C15.9258 33.8834 32.8963 16.4572 53.8305 16.4572C74.7648 16.4572 91.7353 33.8834 91.7353 55.3797Z",fill:"#F2F4F5"}),ie.createElement("path",{d:"M60.1005 50.4937C59.9157 50.6785 59.6162 50.6785 59.4315 50.4937C59.2468 50.309 59.2468 50.0095 59.4315 49.8248L62.1762 47.0801C62.4532 46.803 62.9025 46.803 63.1796 47.0801L65.9242 49.8248C66.109 50.0095 66.109 50.309 65.9242 50.4937C65.7395 50.6785 65.44 50.6785 65.2553 50.4937L63.1508 48.3892V53.9646C63.1508 54.2259 62.939 54.4377 62.6778 54.4377C62.4165 54.4377 62.2048 54.2259 62.2048 53.9646V48.3894L60.1005 50.4937Z",fill:"#C4CBD3"}),ie.createElement("path",{d:"M69.0006 54.9769V54.2503C69.0006 53.66 69.1066 53.168 69.3185 52.7745C69.538 52.3809 69.8331 52.0442 70.204 51.7641C70.5748 51.4765 70.9911 51.2154 71.4527 50.9808C71.9068 50.7462 72.2474 50.5267 72.4744 50.3224C72.7015 50.1105 72.815 49.8304 72.815 49.4823C72.815 49.2023 72.7242 48.9714 72.5426 48.7898C72.3685 48.6006 72.1112 48.506 71.7706 48.506C71.4452 48.506 71.1803 48.6006 70.9759 48.7898C70.7716 48.9714 70.6467 49.225 70.6013 49.5504H69.0801C69.0952 49.2628 69.1595 48.979 69.2731 48.699C69.3866 48.419 69.5531 48.1616 69.7726 47.927C69.992 47.6848 70.2759 47.4956 70.624 47.3594C70.9721 47.2156 71.3846 47.1437 71.8614 47.1437C72.6561 47.1437 73.2842 47.348 73.7459 47.7567C74.2151 48.1654 74.4498 48.7179 74.4498 49.4142C74.4498 50.0348 74.2492 50.5494 73.8481 50.9581C73.447 51.3592 72.8869 51.7414 72.1679 52.1047C71.7744 52.3015 71.4452 52.5134 71.1803 52.7404C70.9229 52.9675 70.7527 53.2589 70.6694 53.6146H74.4725V54.9769H69.0006ZM75.5919 52.7064H77.1131C77.1813 53.0697 77.3326 53.3346 77.5672 53.5011C77.8019 53.66 78.1046 53.7395 78.4754 53.7395C78.8841 53.7395 79.202 53.6524 79.429 53.4783C79.6637 53.3043 79.781 53.047 79.781 52.7064C79.781 52.3582 79.6599 52.0934 79.4177 51.9117C79.1831 51.7225 78.8501 51.6279 78.4187 51.6279H77.4651V50.4245H78.43C78.8084 50.4245 79.096 50.3375 79.2928 50.1634C79.4972 49.9818 79.5993 49.7396 79.5993 49.4369C79.5993 49.1493 79.4972 48.9222 79.2928 48.7557C79.096 48.5817 78.8274 48.4946 78.4868 48.4946C77.7754 48.4946 77.3667 48.8201 77.2607 49.4709H75.7736C75.7887 49.0925 75.8947 48.7255 76.0914 48.3698C76.2882 48.0141 76.5871 47.7227 76.9883 47.4956C77.3894 47.261 77.9078 47.1437 78.5435 47.1437C79.1187 47.1437 79.6031 47.2383 79.9967 47.4275C80.3902 47.6092 80.6892 47.8627 80.8935 48.1881C81.1054 48.506 81.2114 48.8655 81.2114 49.2666C81.2114 49.6753 81.1092 50.0234 80.9049 50.311C80.7081 50.5986 80.447 50.8181 80.1215 50.9695C80.5378 51.0981 80.8594 51.329 81.0865 51.662C81.3135 51.9874 81.4271 52.3696 81.4271 52.8086C81.4271 53.2627 81.306 53.66 81.0638 54.0006C80.8292 54.3411 80.4924 54.6098 80.0534 54.8066C79.6145 54.9958 79.0922 55.0904 78.4868 55.0904C77.8813 55.0904 77.3667 54.9882 76.9429 54.7839C76.519 54.572 76.1936 54.2844 75.9666 53.9211C75.7395 53.5578 75.6146 53.1529 75.5919 52.7064Z",fill:"#C4CBD3"}),ie.createElement("path",{d:"M40.99 49.7943C40.99 50.8462 40.7007 51.7753 40.1222 52.5817C39.5612 53.3706 38.7548 53.9929 37.703 54.4487C36.6687 54.9045 35.4415 55.1324 34.0216 55.1324C31.9004 55.1324 30.2087 54.6591 28.9465 53.7124C27.6843 52.7658 27.0532 51.4685 27.0532 49.8206C27.0532 48.8214 27.3161 47.9361 27.842 47.1648C28.368 46.3934 29.1305 45.8587 30.1298 45.5607C29.3409 45.2101 28.7186 44.7017 28.2628 44.0356C27.807 43.3694 27.5791 42.5717 27.5791 41.6426C27.5791 40.7486 27.8245 39.9334 28.3154 39.1971C28.8062 38.4433 29.5337 37.8473 30.4979 37.409C31.4621 36.9532 32.6367 36.7253 34.0216 36.7253C35.4591 36.7253 36.6512 36.9444 37.5978 37.3827C38.5445 37.8034 39.2544 38.3907 39.7278 39.1445C40.2186 39.8808 40.4641 40.7135 40.4641 41.6426C40.4641 42.5717 40.2362 43.3694 39.7804 44.0356C39.3246 44.7017 38.7022 45.2101 37.9134 45.5607C38.8951 45.8587 39.6489 46.3934 40.1748 47.1648C40.7182 47.9361 40.99 48.8126 40.99 49.7943ZM31.2079 41.9582C31.2079 42.6594 31.4533 43.2204 31.9442 43.6411C32.4526 44.0443 33.1538 44.2459 34.0479 44.2459C34.9244 44.2459 35.6081 44.0356 36.0989 43.6148C36.5898 43.1941 36.8352 42.6331 36.8352 41.9319C36.8352 41.2131 36.581 40.6522 36.0726 40.2489C35.5818 39.8457 34.8893 39.6441 33.9953 39.6441C33.1187 39.6441 32.4351 39.8545 31.9442 40.2752C31.4533 40.6784 31.2079 41.2394 31.2079 41.9582ZM30.7346 49.6629C30.7346 50.4693 31.0238 51.1004 31.6024 51.5562C32.1809 51.9944 32.9785 52.2136 33.9953 52.2136C35.0471 52.2136 35.8623 51.9944 36.4408 51.5562C37.0193 51.1179 37.3086 50.4868 37.3086 49.6629C37.3086 48.8389 37.0193 48.1991 36.4408 47.7433C35.8623 47.2875 35.0559 47.0596 34.0216 47.0596C33.0048 47.0596 32.1984 47.2875 31.6024 47.7433C31.0238 48.1991 30.7346 48.8389 30.7346 49.6629ZM49.8414 54.8694H46.2126V54.1069C46.2126 52.7921 46.2739 51.6175 46.3966 50.5832C46.5369 49.5314 46.756 48.5409 47.054 47.6118C47.3521 46.6651 47.7553 45.7185 48.2637 44.7718C48.772 43.8077 49.4031 42.7646 50.157 41.6426L51.1825 40.1438H42.6889V36.9883H55.1795V40.1701L53.3913 42.7996C52.7077 43.7989 52.1379 44.7368 51.6821 45.6133C51.2263 46.4723 50.8582 47.3313 50.5777 48.1903C50.3147 49.0493 50.1219 49.9521 49.9992 50.8988C49.894 51.8454 49.8414 52.9148 49.8414 54.1069V54.8694Z",fill:"#00A4FD"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))},"singleValueRadial.trend":function TrendPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M8 55.498C8 49.3918 9.17229 43.3454 11.45 37.704C13.7276 32.0626 17.0661 26.9367 21.2746 22.619C25.4832 18.3013 30.4795 14.8762 35.9783 12.5395C41.4771 10.2028 47.3706 9.00005 53.3225 9.00005C59.2743 9.00005 65.1678 10.2028 70.6666 12.5395C76.1654 14.8762 81.1617 18.3013 85.3703 22.619C89.5788 26.9367 92.9173 32.0626 95.1949 37.704C97.4726 43.3454 98.6449 49.3918 98.6449 55.498L91.2637 55.498C91.2637 50.3863 90.2823 45.3246 88.3756 40.6019C86.4689 35.8793 83.6741 31.5882 80.151 27.9736C76.6278 24.3591 72.4452 21.4919 67.8419 19.5357C63.2387 17.5795 58.305 16.5727 53.3225 16.5727C48.3399 16.5727 43.4062 17.5795 38.803 19.5357C34.1997 21.4919 30.0171 24.3591 26.4939 27.9736C22.9707 31.5882 20.176 35.8793 18.2693 40.6019C16.3626 45.3246 15.3812 50.3863 15.3812 55.498L8 55.498Z",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("mask",{id:"path-3-outside-1_360:10760",maskUnits:"userSpaceOnUse",x:"6.99999",y:"7.99597",width:"61",height:"49",fill:"black"},ie.createElement("rect",{fill:"white",x:"6.99999",y:"7.99597",width:"61",height:"49"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z"})),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",fill:"#C4CBD3"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",stroke:"#F2F4F5",strokeWidth:"1.0449",mask:"url(#path-3-outside-1_360:10760)"}),ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M83.3698 58C85.6309 57.2371 88.3179 56.3663 91.7353 55.3797C91.7353 33.8834 74.7648 16.4572 53.8305 16.4572C32.8963 16.4572 15.9258 33.8834 15.9258 55.3797C19.3968 56.3473 22.2095 57.2219 24.6798 58H83.3698ZM68.1872 62H41.9984C45.4262 62.3311 49.5589 62.5 55 62.5C60.8904 62.5 64.9703 62.3417 68.1872 62Z",fill:"#F2F4F5"}),ie.createElement("path",{d:"M60.1005 50.4937C59.9157 50.6785 59.6162 50.6785 59.4315 50.4937C59.2468 50.309 59.2468 50.0095 59.4315 49.8248L62.1762 47.0801C62.4532 46.803 62.9025 46.803 63.1796 47.0801L65.9242 49.8248C66.109 50.0095 66.109 50.309 65.9242 50.4937C65.7395 50.6785 65.44 50.6785 65.2553 50.4937L63.1508 48.3892V53.9646C63.1508 54.2259 62.939 54.4377 62.6778 54.4377C62.4165 54.4377 62.2048 54.2259 62.2048 53.9646V48.3894L60.1005 50.4937Z",fill:"#53A051"}),ie.createElement("path",{d:"M69.0006 54.9769V54.2503C69.0006 53.66 69.1066 53.168 69.3185 52.7745C69.538 52.3809 69.8331 52.0442 70.204 51.7641C70.5748 51.4765 70.9911 51.2154 71.4527 50.9808C71.9068 50.7462 72.2474 50.5267 72.4744 50.3224C72.7015 50.1105 72.815 49.8304 72.815 49.4823C72.815 49.2023 72.7242 48.9714 72.5426 48.7898C72.3685 48.6006 72.1112 48.506 71.7706 48.506C71.4452 48.506 71.1803 48.6006 70.9759 48.7898C70.7716 48.9714 70.6467 49.225 70.6013 49.5504H69.0801C69.0952 49.2628 69.1595 48.979 69.2731 48.699C69.3866 48.419 69.5531 48.1616 69.7726 47.927C69.992 47.6848 70.2759 47.4956 70.624 47.3594C70.9721 47.2156 71.3846 47.1437 71.8614 47.1437C72.6561 47.1437 73.2842 47.348 73.7459 47.7567C74.2151 48.1654 74.4498 48.7179 74.4498 49.4142C74.4498 50.0348 74.2492 50.5494 73.8481 50.9581C73.447 51.3592 72.8869 51.7414 72.1679 52.1047C71.7744 52.3015 71.4452 52.5134 71.1803 52.7404C70.9229 52.9675 70.7527 53.2589 70.6694 53.6146H74.4725V54.9769H69.0006ZM75.5919 52.7064H77.1131C77.1813 53.0697 77.3326 53.3346 77.5672 53.5011C77.8019 53.66 78.1046 53.7395 78.4754 53.7395C78.8841 53.7395 79.202 53.6524 79.429 53.4783C79.6637 53.3043 79.781 53.047 79.781 52.7064C79.781 52.3582 79.6599 52.0934 79.4177 51.9117C79.1831 51.7225 78.8501 51.6279 78.4187 51.6279H77.4651V50.4245H78.43C78.8084 50.4245 79.096 50.3375 79.2928 50.1634C79.4972 49.9818 79.5993 49.7396 79.5993 49.4369C79.5993 49.1493 79.4972 48.9222 79.2928 48.7557C79.096 48.5817 78.8274 48.4946 78.4868 48.4946C77.7754 48.4946 77.3667 48.8201 77.2607 49.4709H75.7736C75.7887 49.0925 75.8947 48.7255 76.0914 48.3698C76.2882 48.0141 76.5871 47.7227 76.9883 47.4956C77.3894 47.261 77.9078 47.1437 78.5435 47.1437C79.1187 47.1437 79.6031 47.2383 79.9967 47.4275C80.3902 47.6092 80.6892 47.8627 80.8935 48.1881C81.1054 48.506 81.2114 48.8655 81.2114 49.2666C81.2114 49.6753 81.1092 50.0234 80.9049 50.311C80.7081 50.5986 80.447 50.8181 80.1215 50.9695C80.5378 51.0981 80.8594 51.329 81.0865 51.662C81.3135 51.9874 81.4271 52.3696 81.4271 52.8086C81.4271 53.2627 81.306 53.66 81.0638 54.0006C80.8292 54.3411 80.4924 54.6098 80.0534 54.8066C79.6145 54.9958 79.0922 55.0904 78.4868 55.0904C77.8813 55.0904 77.3667 54.9882 76.9429 54.7839C76.519 54.572 76.1936 54.2844 75.9666 53.9211C75.7395 53.5578 75.6146 53.1529 75.5919 52.7064Z",fill:"#53A051"}),ie.createElement("path",{d:"M40.99 49.7943C40.99 50.8462 40.7007 51.7753 40.1222 52.5817C39.5612 53.3706 38.7548 53.9929 37.703 54.4487C36.6687 54.9045 35.4415 55.1324 34.0216 55.1324C31.9004 55.1324 30.2087 54.6591 28.9465 53.7124C27.6843 52.7658 27.0532 51.4685 27.0532 49.8206C27.0532 48.8214 27.3161 47.9361 27.842 47.1648C28.368 46.3934 29.1305 45.8587 30.1298 45.5607C29.3409 45.2101 28.7186 44.7017 28.2628 44.0356C27.807 43.3694 27.5791 42.5717 27.5791 41.6426C27.5791 40.7486 27.8245 39.9334 28.3154 39.1971C28.8062 38.4433 29.5337 37.8473 30.4979 37.409C31.4621 36.9532 32.6367 36.7253 34.0216 36.7253C35.4591 36.7253 36.6512 36.9444 37.5978 37.3827C38.5445 37.8034 39.2544 38.3907 39.7278 39.1445C40.2186 39.8808 40.4641 40.7135 40.4641 41.6426C40.4641 42.5717 40.2362 43.3694 39.7804 44.0356C39.3246 44.7017 38.7022 45.2101 37.9134 45.5607C38.8951 45.8587 39.6489 46.3934 40.1748 47.1648C40.7182 47.9361 40.99 48.8126 40.99 49.7943ZM31.2079 41.9582C31.2079 42.6594 31.4533 43.2204 31.9442 43.6411C32.4526 44.0443 33.1538 44.2459 34.0479 44.2459C34.9244 44.2459 35.6081 44.0356 36.0989 43.6148C36.5898 43.1941 36.8352 42.6331 36.8352 41.9319C36.8352 41.2131 36.581 40.6522 36.0726 40.2489C35.5818 39.8457 34.8893 39.6441 33.9953 39.6441C33.1187 39.6441 32.4351 39.8545 31.9442 40.2752C31.4533 40.6784 31.2079 41.2394 31.2079 41.9582ZM30.7346 49.6629C30.7346 50.4693 31.0238 51.1004 31.6024 51.5562C32.1809 51.9944 32.9785 52.2136 33.9953 52.2136C35.0471 52.2136 35.8623 51.9944 36.4408 51.5562C37.0193 51.1179 37.3086 50.4868 37.3086 49.6629C37.3086 48.8389 37.0193 48.1991 36.4408 47.7433C35.8623 47.2875 35.0559 47.0596 34.0216 47.0596C33.0048 47.0596 32.1984 47.2875 31.6024 47.7433C31.0238 48.1991 30.7346 48.8389 30.7346 49.6629ZM49.8414 54.8694H46.2126V54.1069C46.2126 52.7921 46.2739 51.6175 46.3966 50.5832C46.5369 49.5314 46.756 48.5409 47.054 47.6118C47.3521 46.6651 47.7553 45.7185 48.2637 44.7718C48.772 43.8077 49.4031 42.7646 50.157 41.6426L51.1825 40.1438H42.6889V36.9883H55.1795V40.1701L53.3913 42.7996C52.7077 43.7989 52.1379 44.7368 51.6821 45.6133C51.2263 46.4723 50.8582 47.3313 50.5777 48.1903C50.3147 49.0493 50.1219 49.9521 49.9992 50.8988C49.894 51.8454 49.8414 52.9148 49.8414 54.1069V54.8694Z",fill:"#C4CBD3"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))},"singleValueRadial.background":function BackgroundPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#00A4FD"}),ie.createElement("path",{d:"M8 55.498C8 49.3918 9.17229 43.3454 11.45 37.704C13.7276 32.0626 17.0661 26.9367 21.2746 22.619C25.4832 18.3013 30.4795 14.8762 35.9783 12.5395C41.4771 10.2028 47.3706 9.00005 53.3225 9.00005C59.2743 9.00005 65.1678 10.2028 70.6666 12.5395C76.1654 14.8762 81.1617 18.3013 85.3703 22.619C89.5788 26.9367 92.9173 32.0626 95.1949 37.704C97.4726 43.3454 98.6449 49.3918 98.6449 55.498L91.2637 55.498C91.2637 50.3863 90.2823 45.3246 88.3756 40.6019C86.4689 35.8793 83.6741 31.5882 80.151 27.9736C76.6278 24.3591 72.4452 21.4919 67.8419 19.5357C63.2387 17.5795 58.305 16.5727 53.3225 16.5727C48.3399 16.5727 43.4062 17.5795 38.803 19.5357C34.1997 21.4919 30.0171 24.3591 26.4939 27.9736C22.9707 31.5882 20.176 35.8793 18.2693 40.6019C16.3626 45.3246 15.3812 50.3863 15.3812 55.498L8 55.498Z",fill:"white",fillOpacity:"0.3"}),ie.createElement("mask",{id:"path-3-outside-1_360:10389",maskUnits:"userSpaceOnUse",x:"6.99999",y:"7.99597",width:"61",height:"49",fill:"black"},ie.createElement("rect",{fill:"white",x:"6.99999",y:"7.99597",width:"61",height:"49"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z"})),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",fill:"white"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43886 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",stroke:"#00A4FD",strokeWidth:"1.0449",mask:"url(#path-3-outside-1_360:10389)"}),ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M91.7031 57C91.7245 56.4626 91.7353 55.9224 91.7353 55.3797C91.7353 33.8834 74.7648 16.4572 53.8305 16.4572C32.8963 16.4572 15.9258 33.8834 15.9258 55.3797C15.9258 55.9224 15.9366 56.4626 15.958 57H91.7031Z",fill:"#00A4FD"}),ie.createElement("path",{d:"M60.1005 50.4937C59.9157 50.6785 59.6162 50.6785 59.4315 50.4937C59.2468 50.309 59.2468 50.0095 59.4315 49.8248L62.1762 47.0801C62.4532 46.803 62.9025 46.803 63.1796 47.0801L65.9242 49.8248C66.109 50.0095 66.109 50.309 65.9242 50.4937C65.7395 50.6785 65.44 50.6785 65.2553 50.4937L63.1508 48.3892V53.9646C63.1508 54.2259 62.939 54.4377 62.6778 54.4377C62.4165 54.4377 62.2048 54.2259 62.2048 53.9646V48.3894L60.1005 50.4937Z",fill:"white"}),ie.createElement("path",{d:"M69.0006 54.9769V54.2503C69.0006 53.66 69.1066 53.168 69.3185 52.7745C69.538 52.3809 69.8331 52.0442 70.204 51.7641C70.5748 51.4765 70.9911 51.2154 71.4527 50.9808C71.9068 50.7462 72.2474 50.5267 72.4744 50.3224C72.7015 50.1105 72.815 49.8304 72.815 49.4823C72.815 49.2023 72.7242 48.9714 72.5426 48.7898C72.3685 48.6006 72.1112 48.506 71.7706 48.506C71.4452 48.506 71.1803 48.6006 70.9759 48.7898C70.7716 48.9714 70.6467 49.225 70.6013 49.5504H69.0801C69.0952 49.2628 69.1595 48.979 69.2731 48.699C69.3866 48.419 69.5531 48.1616 69.7726 47.927C69.992 47.6848 70.2759 47.4956 70.624 47.3594C70.9721 47.2156 71.3846 47.1437 71.8614 47.1437C72.6561 47.1437 73.2842 47.348 73.7459 47.7567C74.2151 48.1654 74.4498 48.7179 74.4498 49.4142C74.4498 50.0348 74.2492 50.5494 73.8481 50.9581C73.447 51.3592 72.8869 51.7414 72.1679 52.1047C71.7744 52.3015 71.4452 52.5134 71.1803 52.7404C70.9229 52.9675 70.7527 53.2589 70.6694 53.6146H74.4725V54.9769H69.0006ZM75.5919 52.7064H77.1131C77.1813 53.0697 77.3326 53.3346 77.5672 53.5011C77.8019 53.66 78.1046 53.7395 78.4754 53.7395C78.8841 53.7395 79.202 53.6524 79.429 53.4783C79.6637 53.3043 79.781 53.047 79.781 52.7064C79.781 52.3582 79.6599 52.0934 79.4177 51.9117C79.1831 51.7225 78.8501 51.6279 78.4187 51.6279H77.4651V50.4245H78.43C78.8084 50.4245 79.096 50.3375 79.2928 50.1634C79.4972 49.9818 79.5993 49.7396 79.5993 49.4369C79.5993 49.1493 79.4972 48.9222 79.2928 48.7557C79.096 48.5817 78.8274 48.4946 78.4868 48.4946C77.7754 48.4946 77.3667 48.8201 77.2607 49.4709H75.7736C75.7887 49.0925 75.8947 48.7255 76.0914 48.3698C76.2882 48.0141 76.5871 47.7227 76.9883 47.4956C77.3894 47.261 77.9078 47.1437 78.5435 47.1437C79.1187 47.1437 79.6031 47.2383 79.9967 47.4275C80.3902 47.6092 80.6892 47.8627 80.8935 48.1881C81.1054 48.506 81.2114 48.8655 81.2114 49.2666C81.2114 49.6753 81.1092 50.0234 80.9049 50.311C80.7081 50.5986 80.447 50.8181 80.1215 50.9695C80.5378 51.0981 80.8594 51.329 81.0865 51.662C81.3135 51.9874 81.4271 52.3696 81.4271 52.8086C81.4271 53.2627 81.306 53.66 81.0638 54.0006C80.8292 54.3411 80.4924 54.6098 80.0534 54.8066C79.6145 54.9958 79.0922 55.0904 78.4868 55.0904C77.8813 55.0904 77.3667 54.9882 76.9429 54.7839C76.519 54.572 76.1936 54.2844 75.9666 53.9211C75.7395 53.5578 75.6146 53.1529 75.5919 52.7064Z",fill:"white"}),ie.createElement("path",{d:"M40.99 49.7943C40.99 50.8462 40.7007 51.7753 40.1222 52.5817C39.5612 53.3706 38.7548 53.9929 37.703 54.4487C36.6687 54.9045 35.4415 55.1324 34.0216 55.1324C31.9004 55.1324 30.2087 54.6591 28.9465 53.7124C27.6843 52.7658 27.0532 51.4685 27.0532 49.8206C27.0532 48.8214 27.3161 47.9361 27.842 47.1648C28.368 46.3934 29.1305 45.8587 30.1298 45.5607C29.3409 45.2101 28.7186 44.7017 28.2628 44.0356C27.807 43.3694 27.5791 42.5717 27.5791 41.6426C27.5791 40.7486 27.8245 39.9334 28.3154 39.1971C28.8062 38.4433 29.5337 37.8473 30.4979 37.409C31.4621 36.9532 32.6367 36.7253 34.0216 36.7253C35.4591 36.7253 36.6512 36.9444 37.5978 37.3827C38.5445 37.8034 39.2544 38.3907 39.7278 39.1445C40.2186 39.8808 40.4641 40.7135 40.4641 41.6426C40.4641 42.5717 40.2362 43.3694 39.7804 44.0356C39.3246 44.7017 38.7022 45.2101 37.9134 45.5607C38.8951 45.8587 39.6489 46.3934 40.1748 47.1648C40.7182 47.9361 40.99 48.8126 40.99 49.7943ZM31.2079 41.9582C31.2079 42.6594 31.4533 43.2204 31.9442 43.6411C32.4526 44.0443 33.1538 44.2459 34.0479 44.2459C34.9244 44.2459 35.6081 44.0356 36.0989 43.6148C36.5898 43.1941 36.8352 42.6331 36.8352 41.9319C36.8352 41.2131 36.581 40.6522 36.0726 40.2489C35.5818 39.8457 34.8893 39.6441 33.9953 39.6441C33.1187 39.6441 32.4351 39.8545 31.9442 40.2752C31.4533 40.6784 31.2079 41.2394 31.2079 41.9582ZM30.7346 49.6629C30.7346 50.4693 31.0238 51.1004 31.6024 51.5562C32.1809 51.9944 32.9785 52.2136 33.9953 52.2136C35.0471 52.2136 35.8623 51.9944 36.4408 51.5562C37.0193 51.1179 37.3086 50.4868 37.3086 49.6629C37.3086 48.8389 37.0193 48.1991 36.4408 47.7433C35.8623 47.2875 35.0559 47.0596 34.0216 47.0596C33.0048 47.0596 32.1984 47.2875 31.6024 47.7433C31.0238 48.1991 30.7346 48.8389 30.7346 49.6629ZM49.8414 54.8694H46.2126V54.1069C46.2126 52.7921 46.2739 51.6175 46.3966 50.5832C46.5369 49.5314 46.756 48.5409 47.054 47.6118C47.3521 46.6651 47.7553 45.7185 48.2637 44.7718C48.772 43.8077 49.4031 42.7646 50.157 41.6426L51.1825 40.1438H42.6889V36.9883H55.1795V40.1701L53.3913 42.7996C52.7077 43.7989 52.1379 44.7368 51.6821 45.6133C51.2263 46.4723 50.8582 47.3313 50.5777 48.1903C50.3147 49.0493 50.1219 49.9521 49.9992 50.8988C49.894 51.8454 49.8414 52.9148 49.8414 54.1069V54.8694Z",fill:"white"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))},"singleValueRadial.majorValueAndTrend":function MajorValueAndTrendPreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",fill:"#F2F4F5"}),ie.createElement("path",{d:"M8 55.498C8 49.3918 9.17229 43.3454 11.45 37.704C13.7276 32.0626 17.0661 26.9367 21.2746 22.619C25.4832 18.3013 30.4795 14.8762 35.9783 12.5395C41.4771 10.2028 47.3706 9.00005 53.3225 9.00005C59.2743 9.00005 65.1678 10.2028 70.6666 12.5395C76.1654 14.8762 81.1617 18.3013 85.3703 22.619C89.5788 26.9367 92.9173 32.0626 95.1949 37.704C97.4726 43.3454 98.6449 49.3918 98.6449 55.498L91.2637 55.498C91.2637 50.3863 90.2823 45.3246 88.3756 40.6019C86.4689 35.8793 83.6742 31.5882 80.151 27.9736C76.6278 24.3591 72.4452 21.4919 67.8419 19.5357C63.2387 17.5795 58.305 16.5727 53.3225 16.5727C48.3399 16.5727 43.4062 17.5795 38.803 19.5357C34.1997 21.4919 30.0171 24.3591 26.4939 27.9736C22.9707 31.5882 20.176 35.8793 18.2693 40.6019C16.3626 45.3246 15.3812 50.3863 15.3812 55.498L8 55.498Z",fill:"#C4CBD3",fillOpacity:"0.3"}),ie.createElement("mask",{id:"path-3-outside-1_360:10722",maskUnits:"userSpaceOnUse",x:"6.99999",y:"7.99597",width:"61",height:"49",fill:"black"},ie.createElement("rect",{fill:"white",x:"6.99999",y:"7.99597",width:"61",height:"49"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z"})),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",fill:"#00A4FD"}),ie.createElement("path",{d:"M8 55.498C7.99999 48.2228 9.66396 41.0491 12.8581 34.5538C16.0522 28.0584 20.6874 22.4226 26.3909 18.0996C32.0945 13.7765 38.7072 10.8868 45.6974 9.66284C52.6875 8.43885 59.8601 8.91474 66.6384 11.0522L53.3224 55.498L8 55.498Z",stroke:"#F2F4F5",strokeWidth:"1.0449",mask:"url(#path-3-outside-1_360:10722)"}),ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M91.7031 57C91.7245 56.4626 91.7353 55.9224 91.7353 55.3797C91.7353 33.8834 74.7648 16.4572 53.8305 16.4572C32.8963 16.4572 15.9258 33.8834 15.9258 55.3797C15.9258 55.9224 15.9366 56.4626 15.958 57H91.7031Z",fill:"#F2F4F5"}),ie.createElement("path",{d:"M60.1005 50.4937C59.9157 50.6785 59.6162 50.6785 59.4315 50.4937C59.2468 50.309 59.2468 50.0095 59.4315 49.8248L62.1762 47.0801C62.4532 46.803 62.9025 46.803 63.1796 47.0801L65.9242 49.8248C66.109 50.0095 66.109 50.309 65.9242 50.4937C65.7395 50.6785 65.44 50.6785 65.2553 50.4937L63.1508 48.3892V53.9646C63.1508 54.2259 62.939 54.4377 62.6778 54.4377C62.4165 54.4377 62.2048 54.2259 62.2048 53.9646V48.3894L60.1005 50.4937Z",fill:"#53A051"}),ie.createElement("path",{d:"M69.0006 54.9769V54.2503C69.0006 53.66 69.1066 53.168 69.3185 52.7745C69.538 52.3809 69.8331 52.0442 70.204 51.7641C70.5748 51.4765 70.9911 51.2154 71.4527 50.9808C71.9068 50.7462 72.2474 50.5267 72.4744 50.3224C72.7015 50.1105 72.815 49.8304 72.815 49.4823C72.815 49.2023 72.7242 48.9714 72.5426 48.7898C72.3685 48.6006 72.1112 48.506 71.7706 48.506C71.4452 48.506 71.1803 48.6006 70.9759 48.7898C70.7716 48.9714 70.6467 49.225 70.6013 49.5504H69.0801C69.0952 49.2628 69.1595 48.979 69.2731 48.699C69.3866 48.419 69.5531 48.1616 69.7726 47.927C69.992 47.6848 70.2759 47.4956 70.624 47.3594C70.9721 47.2156 71.3846 47.1437 71.8614 47.1437C72.6561 47.1437 73.2842 47.348 73.7459 47.7567C74.2151 48.1654 74.4498 48.7179 74.4498 49.4142C74.4498 50.0348 74.2492 50.5494 73.8481 50.9581C73.447 51.3592 72.8869 51.7414 72.1679 52.1047C71.7744 52.3015 71.4452 52.5134 71.1803 52.7404C70.9229 52.9675 70.7527 53.2589 70.6694 53.6146H74.4725V54.9769H69.0006ZM75.5919 52.7064H77.1131C77.1813 53.0697 77.3326 53.3346 77.5672 53.5011C77.8019 53.66 78.1046 53.7395 78.4754 53.7395C78.8841 53.7395 79.202 53.6524 79.429 53.4783C79.6637 53.3043 79.781 53.047 79.781 52.7064C79.781 52.3582 79.6599 52.0934 79.4177 51.9117C79.1831 51.7225 78.8501 51.6279 78.4187 51.6279H77.4651V50.4245H78.43C78.8084 50.4245 79.096 50.3375 79.2928 50.1634C79.4972 49.9818 79.5993 49.7396 79.5993 49.4369C79.5993 49.1493 79.4972 48.9222 79.2928 48.7557C79.096 48.5817 78.8274 48.4946 78.4868 48.4946C77.7754 48.4946 77.3667 48.8201 77.2607 49.4709H75.7736C75.7887 49.0925 75.8947 48.7255 76.0914 48.3698C76.2882 48.0141 76.5871 47.7227 76.9883 47.4956C77.3894 47.261 77.9078 47.1437 78.5435 47.1437C79.1187 47.1437 79.6031 47.2383 79.9967 47.4275C80.3902 47.6092 80.6892 47.8627 80.8935 48.1881C81.1054 48.506 81.2114 48.8655 81.2114 49.2666C81.2114 49.6753 81.1092 50.0234 80.9049 50.311C80.7081 50.5986 80.447 50.8181 80.1215 50.9695C80.5378 51.0981 80.8594 51.329 81.0865 51.662C81.3135 51.9874 81.4271 52.3696 81.4271 52.8086C81.4271 53.2627 81.306 53.66 81.0638 54.0006C80.8292 54.3411 80.4924 54.6098 80.0534 54.8066C79.6145 54.9958 79.0922 55.0904 78.4868 55.0904C77.8813 55.0904 77.3667 54.9882 76.9429 54.7839C76.519 54.572 76.1936 54.2844 75.9666 53.9211C75.7395 53.5578 75.6146 53.1529 75.5919 52.7064Z",fill:"#53A051"}),ie.createElement("path",{d:"M40.99 49.7943C40.99 50.8462 40.7007 51.7753 40.1222 52.5817C39.5612 53.3706 38.7548 53.9929 37.703 54.4487C36.6687 54.9045 35.4415 55.1324 34.0216 55.1324C31.9004 55.1324 30.2087 54.6591 28.9465 53.7124C27.6843 52.7658 27.0532 51.4685 27.0532 49.8206C27.0532 48.8214 27.3161 47.9361 27.842 47.1648C28.368 46.3934 29.1305 45.8587 30.1298 45.5607C29.3409 45.2101 28.7186 44.7017 28.2628 44.0356C27.807 43.3694 27.5791 42.5717 27.5791 41.6426C27.5791 40.7486 27.8245 39.9334 28.3154 39.1971C28.8062 38.4433 29.5337 37.8473 30.4979 37.409C31.4621 36.9532 32.6367 36.7253 34.0216 36.7253C35.4591 36.7253 36.6512 36.9444 37.5978 37.3827C38.5445 37.8034 39.2544 38.3907 39.7278 39.1445C40.2186 39.8808 40.4641 40.7135 40.4641 41.6426C40.4641 42.5717 40.2362 43.3694 39.7804 44.0356C39.3246 44.7017 38.7022 45.2101 37.9134 45.5607C38.8951 45.8587 39.6489 46.3934 40.1748 47.1648C40.7182 47.9361 40.99 48.8126 40.99 49.7943ZM31.2079 41.9582C31.2079 42.6594 31.4533 43.2204 31.9442 43.6411C32.4526 44.0443 33.1538 44.2459 34.0479 44.2459C34.9244 44.2459 35.6081 44.0356 36.0989 43.6148C36.5898 43.1941 36.8352 42.6331 36.8352 41.9319C36.8352 41.2131 36.581 40.6522 36.0726 40.2489C35.5818 39.8457 34.8893 39.6441 33.9953 39.6441C33.1187 39.6441 32.4351 39.8545 31.9442 40.2752C31.4533 40.6784 31.2079 41.2394 31.2079 41.9582ZM30.7346 49.6629C30.7346 50.4693 31.0238 51.1004 31.6024 51.5562C32.1809 51.9944 32.9785 52.2136 33.9953 52.2136C35.0471 52.2136 35.8623 51.9944 36.4408 51.5562C37.0193 51.1179 37.3086 50.4868 37.3086 49.6629C37.3086 48.8389 37.0193 48.1991 36.4408 47.7433C35.8623 47.2875 35.0559 47.0596 34.0216 47.0596C33.0048 47.0596 32.1984 47.2875 31.6024 47.7433C31.0238 48.1991 30.7346 48.8389 30.7346 49.6629ZM49.8414 54.8694H46.2126V54.1069C46.2126 52.7921 46.2739 51.6175 46.3966 50.5832C46.5369 49.5314 46.756 48.5409 47.054 47.6118C47.3521 46.6651 47.7553 45.7185 48.2637 44.7718C48.772 43.8077 49.4031 42.7646 50.157 41.6426L51.1825 40.1438H42.6889V36.9883H55.1795V40.1701L53.3913 42.7996C52.7077 43.7989 52.1379 44.7368 51.6821 45.6133C51.2263 46.4723 50.8582 47.3313 50.5777 48.1903C50.3147 49.0493 50.1219 49.9521 49.9992 50.8988C49.894 51.8454 49.8414 52.9148 49.8414 54.1069V54.8694Z",fill:"#00A4FD"}),ie.createElement("rect",{x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5",stroke:"#C3CBD4"}))}}},function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0),se=function getRectangleIcon(G){return function NonePreset(){return ie.createElement("svg",{width:"108",height:"64",viewBox:"0 0 108 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("rect",Object.assign({x:"0.5",y:"0.5",width:"107",height:"63",rx:"2.5"},G)))}};Z.default={"rectangle.none":se({fill:"#F2F4F5",stroke:"#C3CBD4"}),"rectangle.fill":se({stroke:"#C3CBD4",fill:"#00A4FD"}),"rectangle.stroke":se({stroke:"#00A4FD",fill:"#F2F4F5"}),"rectangle.fillAndStroke":se({stroke:"#00A4FD",fill:"#00A4FD"})}},,,,,,,,,,,,,function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(6),se=ne(7),ce=ne(8),fe=ne(4),me=ne(9),ge=ne(5);Z.default=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fe.default),ge.default),ie.default),se.default),ce.default),me.default)}])},7465:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=24)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1839)},2:function(G,Z){G.exports=ne(1840)},24:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.RemoveIcon=void 0;var ie=ne(0),se=ne(1),ce=ne(2);Z.RemoveIcon=function RemoveIcon(G){return ie.createElement(ce.default,Object.assign({screenReaderText:se._("Remove"),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},G),ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66667 4.00016V2.66683H9.33333V4.00016H6.66667ZM11.3333 4.00016H10.6667V2.3335C10.6667 1.78121 10.219 1.3335 9.66667 1.3335H6.33333C5.78105 1.3335 5.33333 1.78121 5.33333 2.3335V4.00016H4.66667H3.33333H2.66667C2.29848 4.00016 2 4.29864 2 4.66683C2 5.03502 2.29848 5.3335 2.66667 5.3335H3.33333V13.6668C3.33333 14.2191 3.78105 14.6668 4.33333 14.6668H11.6667C12.219 14.6668 12.6667 14.2191 12.6667 13.6668V5.3335H13.3333C13.7015 5.3335 14 5.03502 14 4.66683C14 4.29864 13.7015 4.00016 13.3333 4.00016H12.6667H11.3333ZM8 8.39077L7.13807 7.52884C6.87772 7.26849 6.45561 7.26849 6.19526 7.52884C5.93491 7.78919 5.93491 8.2113 6.19526 8.47165L7.05719 9.33358L6.19526 10.1955C5.93491 10.4559 5.93491 10.878 6.19526 11.1383C6.45561 11.3987 6.87772 11.3987 7.13807 11.1383L8 10.2764L8.86193 11.1383C9.12228 11.3987 9.54439 11.3987 9.80474 11.1383C10.0651 10.878 10.0651 10.4559 9.80474 10.1955L8.94281 9.33358L9.80474 8.47165C10.0651 8.2113 10.0651 7.78919 9.80474 7.52884C9.54439 7.26849 9.12228 7.26849 8.86193 7.52884L8 8.39077Z",fill:"#818D99"})),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"16",height:"16",fill:"white"}))))},Z.default=Z.RemoveIcon}})},7466:function(G,Z,ne){ /*! * Copyright © 2018 Splunk Inc. * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or * in part without a valid written license from Splunk Inc. is PROHIBITED. */ G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=25)}({0:function(G,Z){G.exports=ne(0)},25:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});var ie=ne(0);Z.default=function ReverseRangeValuesIcon(){return ie.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ie.createElement("g",{clipPath:"url(#clip0)"},ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.83008 11.0587L2.90476 9.13335C2.64506 8.87365 2.224 8.87365 1.96431 9.13335C1.70461 9.39305 1.70461 9.8141 1.96431 10.0738L5.02385 13.1334C5.1542 13.2637 5.32519 13.3286 5.49603 13.3281C5.66687 13.3286 5.83787 13.2637 5.96821 13.1334L9.02776 10.0738C9.28746 9.8141 9.28746 9.39305 9.02776 9.13335C8.76806 8.87365 8.34701 8.87365 8.08731 9.13335L6.16008 11.0606L6.16008 3.33102C6.16008 2.96375 5.86235 2.66602 5.49508 2.66602C5.12781 2.66602 4.83008 2.96375 4.83008 3.33102L4.83008 11.0587Z",fill:"#3C444D"}),ie.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8306 4.93547L9.90525 6.86079C9.64555 7.12049 9.22449 7.12049 8.96479 6.86079C8.70509 6.60109 8.70509 6.18004 8.96479 5.92034L12.0243 2.86079C12.1547 2.73044 12.3257 2.66552 12.4965 2.66602C12.6674 2.66552 12.8384 2.73044 12.9687 2.86079L16.0282 5.92034C16.2879 6.18004 16.2879 6.60109 16.0282 6.86079C15.7685 7.12049 15.3475 7.12049 15.0878 6.86079L13.1606 4.93356L13.1606 12.6631C13.1606 13.0304 12.8628 13.3281 12.4956 13.3281C12.1283 13.3281 11.8306 13.0304 11.8306 12.6631L11.8306 4.93547Z",fill:"#3C444D"})),ie.createElement("defs",null,ie.createElement("clipPath",{id:"clip0"},ie.createElement("rect",{width:"16",height:"15.9993",fill:"white",transform:"matrix(1 0 0 -1 0 15.9994)"}))))}}})},7467:function(G,Z,ne){"use strict";var ie,se=this&&this.__extends||(ie=function(G,Z){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)},function(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=G}ie(G,Z),G.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.Preview=void 0;var ce=ne(0),fe=ne(1314),me=function(G){function Preview(Z){var ne=G.call(this,Z)||this;return ne.state={loading:!0},ne}return se(Preview,G),Preview.prototype.componentDidMount=function(){this.generatePreview()},Preview.prototype.componentDidUpdate=function(G,Z){this.props.markdown!==G.markdown&&this.generatePreview()},Preview.prototype.generatePreview=function(){var G=this,Z=this.props,ne=Z.markdown;(0,Z.generateMarkdownPreview)(ne).then((function(Z){G.setState({preview:Z,loading:!1})}))},Preview.prototype.render=function(){var G,Z=this.props,ne=Z.classes,ie=Z.minHeight,se=Z.loadingPreview,me=Z.refObject,ge=Z.heightUnits,Ce=this.state,Se=Ce.preview,Me=Ce.loading,ke=Me?se:Se;G="string"==typeof ke?ce.createElement("div",{className:"mde-preview-content",dangerouslySetInnerHTML:{__html:ke||"

     

    "},ref:me}):ce.createElement("div",{className:"mde-preview-content"},ke);var xe=ie&&ge?ie+10+ge:ie+10;return ce.createElement("div",{className:fe.classNames("mde-preview",ne,{loading:Me}),style:{minHeight:xe},"data-testid":"mde-preview"},G)},Preview}(ce.Component);Z.Preview=me},7468:function(G,Z,ne){"use strict";var ie,se=this&&this.__extends||(ie=function(G,Z){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)},function(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=G}ie(G,Z),G.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)}),ce=this&&this.__assign||function(){return(ce=Object.assign||function(G){for(var Z,ne=1,ie=arguments.length;neparseInt(me.height)&&(fe.overflowY="scroll"):fe.overflow="hidden",ne.textContent=G.value.substring(0,G.selectionStart),Z&&(ne.textContent+=Z);var ge=document.createElement("span");ge.textContent=G.value.substring(G.selectionEnd)||".",ne.appendChild(ge);var Ce={top:ge.offsetTop+parseInt(me.borderTopWidth),left:ge.offsetLeft+parseInt(me.borderLeftWidth),lineHeight:parseInt(me.lineHeight)};return document.body.removeChild(ne),Ce}},7470:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.mod=void 0,Z.mod=function mod(G,Z){return(G%Z+Z)%Z}},7471:function(G,Z,ne){"use strict";var ie,se=this&&this.__extends||(ie=function(G,Z){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Z){G.__proto__=Z}||function(G,Z){for(var ne in Z)Object.prototype.hasOwnProperty.call(Z,ne)&&(G[ne]=Z[ne])})(G,Z)},function(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function __(){this.constructor=G}ie(G,Z),G.prototype=null===Z?Object.create(Z):(__.prototype=Z.prototype,new __)}),ce=this&&this.__assign||function(){return(ce=Object.assign||function(G){for(var Z,ne=1,ie=arguments.length;ne0&&se[se.length-1])||6!==ce[0]&&2!==ce[0])){fe=0;continue}if(3===ce[0]&&(!se||ce[1]>se[0]&&ce[1] "+ce.selectedText+Ce);var Se=ce.selection.start+fe+2,Me=Se+ce.selectedText.length;ne.setSelectionRange({start:Se,end:Me})}}},7479:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.codeCommand=void 0;var ie=ne(765);Z.codeCommand={buttonProps:{"aria-label":"Insert code"},execute:function(G){var Z=G.initialState,ne=G.textApi,se=ie.selectWord({text:Z.text,selection:Z.selection}),ce=ne.setSelectionRange(se);if(-1!==ce.selectedText.indexOf("\n")){var fe=ie.getBreaksNeededForEmptyLineBefore(ce.text,ce.selection.start),me=Array(fe+1).join("\n"),ge=ie.getBreaksNeededForEmptyLineAfter(ce.text,ce.selection.end),Ce=Array(ge+1).join("\n");ne.replaceSelection(me+"```\n"+ce.selectedText+"\n```"+Ce);var Se=ce.selection.start+fe+4,Me=Se+ce.selectedText.length;ne.setSelectionRange({start:Se,end:Me})}else{ne.replaceSelection("`"+ce.selectedText+"`");var ke=ce.selection.start+1,xe=ke+ce.selectedText.length;ne.setSelectionRange({start:ke,end:xe})}}}},7480:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.checkedListCommand=Z.orderedListCommand=Z.unorderedListCommand=Z.makeList=Z.insertBeforeEachLine=void 0;var ie=ne(765);function insertBeforeEachLine(G,Z){var ne=G.split(/\n/),ie=0;return{modifiedText:ne.map((function(G,ne){if("string"==typeof Z)return ie+=Z.length,Z+G;if("function"==typeof Z){var se=Z(G,ne);return ie+=se.length,Z(G,ne)+G}throw Error("insertion is expected to be either a string or a function")})).join("\n"),insertionLength:ie}}Z.insertBeforeEachLine=insertBeforeEachLine;Z.makeList=function(G,Z,ne){var se=ie.selectWord({text:G.text,selection:G.selection}),ce=Z.setSelectionRange(se),fe=ie.getBreaksNeededForEmptyLineBefore(ce.text,ce.selection.start),me=Array(fe+1).join("\n"),ge=ie.getBreaksNeededForEmptyLineAfter(ce.text,ce.selection.end),Ce=Array(ge+1).join("\n"),Se=insertBeforeEachLine(ce.selectedText,ne);Z.replaceSelection(""+me+Se.modifiedText+Ce);var Me=-1===ce.selectedText.indexOf("\n")?Se.insertionLength:0,ke=ce.selection.start+fe+Me,xe=ke+Se.modifiedText.length-Me;Z.setSelectionRange({start:ke,end:xe})},Z.unorderedListCommand={buttonProps:{"aria-label":"Add unordered list"},execute:function(G){var ne=G.initialState,ie=G.textApi;Z.makeList(ne,ie,"- ")}},Z.orderedListCommand={buttonProps:{"aria-label":"Add ordered list"},execute:function(G){var ne=G.initialState,ie=G.textApi;Z.makeList(ne,ie,(function(G,Z){return Z+1+". "}))}},Z.checkedListCommand={buttonProps:{"aria-label":"Add checked list"},execute:function(G){var ne=G.initialState,ie=G.textApi;Z.makeList(ne,ie,(function(G,Z){return"- [ ] "}))}}},7481:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.imageCommand=void 0;var ie=ne(765);Z.imageCommand={buttonProps:{"aria-label":"Add image"},execute:function(G){var Z=G.initialState,ne=G.textApi,se=ne.setSelectionRange(ie.selectWord({text:Z.text,selection:Z.selection})),ce=se.selectedText||"https://example.com/your-image.png";ne.replaceSelection("![]("+ce+")"),ne.setSelectionRange({start:se.selection.start+4,end:se.selection.start+4+ce.length})}}},7482:function(G,Z,ne){"use strict";var ie=this&&this.__awaiter||function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))},se=this&&this.__generator||function(G,Z){var ne,ie,se,ce,fe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ce={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(ce[Symbol.iterator]=function(){return this}),ce;function verb(ce){return function(me){return function step(ce){if(ne)throw new TypeError("Generator is already executing.");for(;fe;)try{if(ne=1,ie&&(se=2&ce[0]?ie.return:ce[0]?ie.throw||((se=ie.return)&&se.call(ie),0):ie.next)&&!(se=se.call(ie,ce[1])).done)return se;switch(ie=0,se&&(ce=[2&ce[0],se.value]),ce[0]){case 0:case 1:se=ce;break;case 4:return fe.label++,{value:ce[1],done:!1};case 5:fe.label++,ie=ce[1],ce=[0];continue;case 7:ce=fe.ops.pop(),fe.trys.pop();continue;default:if(!(se=fe.trys,(se=se.length>0&&se[se.length-1])||6!==ce[0]&&2!==ce[0])){fe=0;continue}if(3===ce[0]&&(!se||ce[1]>se[0]&&ce[1]0&&se[se.length-1])||6!==ce[0]&&2!==ce[0])){fe=0;continue}if(3===ce[0]&&(!se||ce[1]>se[0]&&ce[1]0&&se[se.length-1])||6!==ce[0]&&2!==ce[0])){fe=0;continue}if(3===ce[0]&&(!se||ce[1]>se[0]&&ce[1] :first-child {\n margin-top: 0; }\n .mde-preview .mde-preview-content blockquote > :last-child {\n margin-bottom: 0; }\n .mde-preview .mde-preview-content code {\n padding: 0.2em 0 0.2em 0;\n margin: 0;\n font-size: 90%;\n background-color: rgba(0, 0, 0, 0.04);\n border-radius: 3px; }\n .mde-preview .mde-preview-content code::before, .mde-preview .mde-preview-content code::after {\n letter-spacing: -0.2em;\n content: "\\00a0"; }\n .mde-preview .mde-preview-content pre {\n padding: 16px;\n overflow: auto;\n font-size: 85%;\n line-height: 1.45;\n background-color: #f7f7f7;\n border-radius: 3px; }\n .mde-preview .mde-preview-content pre code {\n display: inline;\n padding: 0;\n margin: 0;\n overflow: visible;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0; }\n .mde-preview .mde-preview-content pre code::before, .mde-preview .mde-preview-content pre code::after {\n content: none; }\n .mde-preview .mde-preview-content pre > code {\n padding: 0;\n margin: 0;\n font-size: 100%;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0; }\n .mde-preview .mde-preview-content a {\n color: #4078c0;\n text-decoration: none; }\n .mde-preview .mde-preview-content a:hover {\n text-decoration: underline; }\n .mde-preview .mde-preview-content > *:first-child {\n margin-top: 0 !important; }\n .mde-preview .mde-preview-content > *:last-child {\n margin-bottom: 0 !important; }\n .mde-preview .mde-preview-content::after {\n display: table;\n clear: both;\n content: ""; }\n .mde-preview .mde-preview-content table {\n display: block;\n width: 100%;\n border-spacing: 0;\n border-collapse: collapse; }\n .mde-preview .mde-preview-content table thead th {\n font-weight: bold; }\n .mde-preview .mde-preview-content table th, .mde-preview .mde-preview-content table td {\n padding: 6px 13px;\n border: 1px solid #c8ccd0; }\n\n.react-mde {\n border: 1px solid #c8ccd0;\n border-radius: 2px; }\n .react-mde * {\n box-sizing: border-box; }\n .react-mde .invisible {\n display: none; }\n .react-mde .image-tip {\n user-select: none;\n display: flex !important;\n padding: 7px 10px;\n margin: 0;\n font-size: 13px;\n line-height: 16px;\n color: gray;\n background-color: #f9f9f9;\n border-top: 1px solid #c8ccd0;\n position: relative; }\n .react-mde .image-tip .image-input {\n min-height: 0;\n opacity: .01;\n width: 100% !important;\n position: absolute;\n top: 0;\n left: 0;\n padding: 5px;\n cursor: pointer; }\n\nul.mde-suggestions {\n position: absolute;\n min-width: 180px;\n padding: 0;\n margin: 20px 0 0;\n list-style: none;\n cursor: pointer;\n background: #fff;\n border: 1px solid #c8ccd0;\n border-radius: 3px;\n box-shadow: 0 1px 5px rgba(27, 31, 35, 0.15); }\n ul.mde-suggestions li {\n padding: 4px 8px;\n border-bottom: 1px solid #e1e4e8; }\n ul.mde-suggestions li:first-child {\n border-top-left-radius: 2px;\n border-top-right-radius: 2px; }\n ul.mde-suggestions li:last-child {\n border-bottom-right-radius: 2px;\n border-bottom-left-radius: 2px; }\n ul.mde-suggestions li:hover, ul.mde-suggestions li[aria-selected=true] {\n color: white;\n background-color: #0366d6; }\n',""]),G.exports=Z},7490:function(G,Z,ne){"use strict";ne.r(Z);ne(7491);var ie=ne(6),se=ne(128),ce=ne(1189),fe=ne(215),me=ne(316),ge=ne(10),Ce=ne(46),Se=ne(27),Me=ne(94),ke=ne(14),xe=ne(23),De=ne(2103),Ie=ne(26),Re=ne(60),ze=ne(175),$e=ne(306),Je=ne(13),it=ne(50),ot=ne(188),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const at=new Ie.c("accessibilityHelpWidgetVisible",!1);let st=class AccessibilityHelpController extends ge.a{constructor(G,Z){super(),this._editor=G,this._widget=this._register(Z.createInstance(ct,this._editor))}static get(G){return G.getContribution(AccessibilityHelpController.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};st.ID="editor.contrib.accessibilityHelpController",st=__decorate([__param(1,Re.a)],st);let ct=class AccessibilityHelpWidget extends me.a{constructor(G,Z,ne,ce){super(),this._contextKeyService=Z,this._keybindingService=ne,this._openerService=ce,this._editor=G,this._isVisibleKey=at.bindTo(this._contextKeyService),this._domNode=Object(se.b)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(se.b)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(ie.o(this._contentDomNode.domNode,"keydown",G=>{if(this._isVisible&&(G.equals(2083)&&(Object(fe.a)(ot.a.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),ie.t(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),G.preventDefault(),G.stopPropagation()),G.equals(2086))){Object(fe.a)(ot.a.openingDocs);let Z=this._editor.getRawOptions().accessibilityHelpUrl;void 0===Z&&(Z="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(Me.a.parse(Z)),G.preventDefault(),G.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return AccessibilityHelpWidget.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(G,Z,ne){let ie=this._keybindingService.lookupKeybinding(G);return ie?Se.w(Z,ie.getAriaLabel()):Se.w(ne,G)}_buildContent(){const G=this._editor.getOptions(),Z=this._editor.getSelections();let ne=0;if(Z){const G=this._editor.getModel();G&&Z.forEach(Z=>{ne+=G.getValueLengthInRange(Z)})}let ie=function getSelectionLabel(G,Z){return G&&0!==G.length?1===G.length?Z?Se.w(ot.a.singleSelectionRange,G[0].positionLineNumber,G[0].positionColumn,Z):Se.w(ot.a.singleSelection,G[0].positionLineNumber,G[0].positionColumn):Z?Se.w(ot.a.multiSelectionRange,G.length,Z):G.length>0?Se.w(ot.a.multiSelection,G.length):"":ot.a.noSelection}(Z,ne);G.get(52)?G.get(79)?ie+=ot.a.readonlyDiffEditor:ie+=ot.a.editableDiffEditor:G.get(79)?ie+=ot.a.readonlyEditor:ie+=ot.a.editableEditor;const se=Ce.f?ot.a.changeConfigToOnMac:ot.a.changeConfigToOnWinLinux;switch(G.get(2)){case 0:ie+="\n\n - "+se;break;case 2:ie+="\n\n - "+ot.a.auto_on;break;case 1:ie+="\n\n - "+ot.a.auto_off,ie+=" "+se}G.get(128)?ie+="\n\n - "+this._descriptionForCommand(De.ToggleTabFocusModeAction.ID,ot.a.tabFocusModeOnMsg,ot.a.tabFocusModeOnMsgNoKb):ie+="\n\n - "+this._descriptionForCommand(De.ToggleTabFocusModeAction.ID,ot.a.tabFocusModeOffMsg,ot.a.tabFocusModeOffMsgNoKb);ie+="\n\n - "+(Ce.f?ot.a.openDocMac:ot.a.openDocWinLinux),ie+="\n\n"+ot.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(ce.b)(ie)),this._contentDomNode.domNode.setAttribute("aria-label",ie)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,ie.t(this._contentDomNode.domNode),this._editor.focus())}_layout(){let G=this._editor.getLayoutInfo(),Z=Math.max(5,Math.min(AccessibilityHelpWidget.WIDTH,G.width-40)),ne=Math.max(5,Math.min(AccessibilityHelpWidget.HEIGHT,G.height-40));this._domNode.setWidth(Z),this._domNode.setHeight(ne);let ie=Math.round((G.height-ne)/2);this._domNode.setTop(ie);let se=Math.round((G.width-Z)/2);this._domNode.setLeft(se)}};ct.ID="editor.contrib.accessibilityHelpWidget",ct.WIDTH=500,ct.HEIGHT=300,ct=__decorate([__param(1,Ie.b),__param(2,ze.a),__param(3,$e.a)],ct);class ShowAccessibilityHelpAction extends ke.b{constructor(){super({id:"editor.action.showAccessibilityHelp",label:ot.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(G,Z){let ne=st.get(Z);ne&&ne.show()}}Object(ke.l)(st.ID,st),Object(ke.j)(ShowAccessibilityHelpAction);const ut=ke.c.bindToContribution(st.get);Object(ke.k)(new ut({id:"closeAccessibilityHelp",precondition:at,handler:G=>G.hide(),kbOpts:{weight:200,kbExpr:xe.a.focus,primary:9,secondary:[1033]}})),Object(it.f)((G,Z)=>{const ne=G.getColor(Je.Y);ne&&Z.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${ne}; }`);const ie=G.getColor(Je.ab);ie&&Z.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${ie}; }`);const se=G.getColor(Je.Mc);se&&Z.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${se}; }`);const ce=G.getColor(Je.h);ce&&Z.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${ce}; }`)})},7491:function(G,Z,ne){var ie=ne(7492);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7492:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .accessibilityHelpWidget {\r\n\tpadding: 10px;\r\n\tvertical-align: middle;\r\n\toverflow: scroll;\r\n}",""]),G.exports=Z},7493:function(G,Z,ne){var ie=ne(7494);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7494:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-aria-container {\r\n\tposition: absolute; /* try to hide from window but not from screen readers */\r\n\tleft:-999em;\r\n}",""]),G.exports=Z},7495:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"SelectionAnchorSet",(function(){return Me}));ne(7496);var ie=ne(14),se=ne(4),ce=ne(23),fe=ne(80),me=ne(165),ge=ne(26),Ce=ne(379),Se=ne(215),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const Me=new ge.c("selectionAnchorSet",!1);let ke=class SelectionAnchorController{constructor(G,Z){this.editor=G,this.selectionAnchorSetContextKey=Me.bindTo(Z),this.modelChangeListener=G.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(G){return G.getContribution(SelectionAnchorController.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const G=this.editor.getPosition(),Z=this.decorationId?[this.decorationId]:[],ne=this.editor.deltaDecorations(Z,[{range:fe.a.fromPositions(G,G),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new Ce.a).appendText(Object(se.a)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=ne[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(Se.a)(Object(se.a)("anchorSet","Anchor set at {0}:{1}",G.lineNumber,G.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const G=this.editor.getModel().getDecorationRange(this.decorationId);G&&this.editor.setPosition(G.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const G=this.editor.getModel().getDecorationRange(this.decorationId);if(G){const Z=this.editor.getPosition();this.editor.setSelection(fe.a.fromPositions(G.getStartPosition(),Z)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};ke.ID="editor.contrib.selectionAnchorController",ke=__decorate([__param(1,ge.b)],ke);class SetSelectionAnchor extends ie.b{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(se.a)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:ce.a.editorTextFocus,primary:Object(me.a)(2089,2080),weight:100}})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){ke.get(Z).setSelectionAnchor()}))}}class GoToSelectionAnchor extends ie.b{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(se.a)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Me})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){ke.get(Z).goToSelectionAnchor()}))}}class SelectFromAnchorToCursor extends ie.b{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(se.a)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Me,kbOpts:{kbExpr:ce.a.editorTextFocus,primary:Object(me.a)(2089,2089),weight:100}})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){ke.get(Z).selectFromAnchorToCursor()}))}}class CancelSelectionAnchor extends ie.b{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(se.a)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Me,kbOpts:{kbExpr:ce.a.editorTextFocus,primary:9,weight:100}})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){ke.get(Z).cancelSelectionAnchor()}))}}Object(ie.l)(ke.ID,ke),Object(ie.j)(SetSelectionAnchor),Object(ie.j)(GoToSelectionAnchor),Object(ie.j)(SelectFromAnchorToCursor),Object(ie.j)(CancelSelectionAnchor)},7496:function(G,Z,ne){var ie=ne(7497);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7497:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .selection-anchor {\r\n\tbackground-color: #007ACC;\r\n\twidth: 2px !important;\r\n}\r\n",""]),G.exports=Z},7498:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"BracketMatchingController",(function(){return BracketMatchingController}));ne(7499);var ie=ne(4),se=ne(57),ce=ne(10),fe=ne(14),me=ne(34),ge=ne(12),Ce=ne(80),Se=ne(23),Me=ne(194),ke=ne(117),xe=ne(168),De=ne(13),Ie=ne(50),Re=ne(92);const ze=Object(De.wc)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},ie.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class JumpToBracketAction extends fe.b{constructor(){super({id:"editor.action.jumpToBracket",label:ie.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:Se.a.editorTextFocus,primary:3160,weight:100}})}run(G,Z){let ne=BracketMatchingController.get(Z);ne&&ne.jumpToBracket()}}class SelectToBracketAction extends fe.b{constructor(){super({id:"editor.action.selectToBracket",label:ie.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(G,Z,ne){const ie=BracketMatchingController.get(Z);if(!ie)return;let se=!0;ne&&!1===ne.selectBrackets&&(se=!1),ie.selectToBracket(se)}}class BracketsData{constructor(G,Z,ne){this.position=G,this.brackets=Z,this.options=ne}}class BracketMatchingController extends ce.a{constructor(G){super(),this._editor=G,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new se.e(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(62),this._updateBracketsSoon.schedule(),this._register(G.onDidChangeCursorPosition(G=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()})),this._register(G.onDidChangeModelContent(G=>{this._updateBracketsSoon.schedule()})),this._register(G.onDidChangeModel(G=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(G.onDidChangeModelLanguageConfiguration(G=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(G.onDidChangeConfiguration(G=>{G.hasChanged(62)&&(this._matchBrackets=this._editor.getOption(62),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(G){return G.getContribution(BracketMatchingController.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const G=this._editor.getModel(),Z=this._editor.getSelections().map(Z=>{const ne=Z.getStartPosition(),ie=G.matchBracket(ne);let se=null;if(ie)ie[0].containsPosition(ne)?se=ie[1].getStartPosition():ie[1].containsPosition(ne)&&(se=ie[0].getStartPosition());else{const Z=G.findEnclosingBrackets(ne);if(Z)se=Z[0].getStartPosition();else{const Z=G.findNextBracket(ne);Z&&Z.range&&(se=Z.range.getStartPosition())}}return se?new Ce.a(se.lineNumber,se.column,se.lineNumber,se.column):new Ce.a(ne.lineNumber,ne.column,ne.lineNumber,ne.column)});this._editor.setSelections(Z),this._editor.revealRange(Z[0])}selectToBracket(G){if(!this._editor.hasModel())return;const Z=this._editor.getModel(),ne=[];this._editor.getSelections().forEach(ie=>{const se=ie.getStartPosition();let ce=Z.matchBracket(se);if(!ce&&(ce=Z.findEnclosingBrackets(se),!ce)){const G=Z.findNextBracket(se);G&&G.range&&(ce=Z.matchBracket(G.range.getStartPosition()))}let fe=null,me=null;if(ce){ce.sort(ge.a.compareRangesUsingStarts);const[Z,ne]=ce;fe=G?Z.getStartPosition():Z.getEndPosition(),me=G?ne.getEndPosition():ne.getStartPosition()}fe&&me&&ne.push(new Ce.a(fe.lineNumber,fe.column,me.lineNumber,me.column))}),ne.length>0&&(this._editor.setSelections(ne),this._editor.revealRange(ne[0]))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();let G=[],Z=0;for(const ne of this._lastBracketsData){let ie=ne.brackets;ie&&(G[Z++]={range:ie[0],options:ne.options},G[Z++]={range:ie[1],options:ne.options})}this._decorations=this._editor.deltaDecorations(this._decorations,G)}_recomputeBrackets(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);const G=this._editor.getSelections();if(G.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const Z=this._editor.getModel(),ne=Z.getVersionId();let ie=[];this._lastVersionId===ne&&(ie=this._lastBracketsData);let se=[],ce=0;for(let Z=0,ne=G.length;Z1&&se.sort(me.a.compare);let fe=[],ge=0,Ce=0,Se=ie.length;for(let G=0,ne=se.length;G{const ne=G.getColor(xe.c);ne&&Z.addRule(`.monaco-editor .bracket-match { background-color: ${ne}; }`);const ie=G.getColor(xe.d);ie&&Z.addRule(`.monaco-editor .bracket-match { border: 1px solid ${ie}; }`)}),Re.d.appendMenuItem(Re.b.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:ie.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},7499:function(G,Z,ne){var ie=ne(7500);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7500:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .bracket-match {\r\n\tbox-sizing: border-box;\r\n}\r\n",""]),G.exports=Z},7501:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CutAction",(function(){return Ie})),ne.d(Z,"CopyAction",(function(){return Re})),ne.d(Z,"PasteAction",(function(){return ze}));var ie=ne(4),se=ne(130),ce=ne(46),fe=ne(908),me=ne(14),ge=ne(127),Ce=ne(23),Se=ne(92),Me=ne(576),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const ke=ce.g||document.queryCommandSupported("cut"),xe=ce.g||document.queryCommandSupported("copy"),De=void 0!==navigator.clipboard&&!se.g||document.queryCommandSupported("paste");function registerCommand(G){return G.register(),G}const Ie=ke?registerCommand(new me.e({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:ce.g?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Se.b.MenubarEditMenu,group:"2_ccp",title:ie.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Se.b.EditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.cutLabel","Cut"),when:Ce.a.writable,order:1},{menuId:Se.b.CommandPalette,group:"",title:ie.a("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Se.b.SimpleEditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.cutLabel","Cut"),when:Ce.a.writable,order:1}]})):void 0,Re=xe?registerCommand(new me.e({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:ce.g?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Se.b.MenubarEditMenu,group:"2_ccp",title:ie.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Se.b.EditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Se.b.CommandPalette,group:"",title:ie.a("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Se.b.SimpleEditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Se.d.appendMenuItem(Se.b.MenubarEditMenu,{submenu:Se.b.MenubarCopy,title:{value:ie.a("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),Se.d.appendMenuItem(Se.b.EditorContext,{submenu:Se.b.EditorContextCopy,title:{value:ie.a("copy as","Copy As"),original:"Copy As"},group:"9_cutcopypaste",order:3});const ze=De?registerCommand(new me.e({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:ce.g?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Se.b.MenubarEditMenu,group:"2_ccp",title:ie.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Se.b.EditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.pasteLabel","Paste"),when:Ce.a.writable,order:4},{menuId:Se.b.CommandPalette,group:"",title:ie.a("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Se.b.SimpleEditorContext,group:"9_cutcopypaste",title:ie.a("actions.clipboard.pasteLabel","Paste"),when:Ce.a.writable,order:4}]})):void 0;class ExecCommandCopyWithSyntaxHighlightingAction extends me.b{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:ie.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:Ce.a.textInputFocus,primary:0,weight:100}})}run(G,Z){if(!Z.hasModel())return;!Z.getOption(30)&&Z.getSelection().isEmpty()||(fe.a.forceCopyWithSyntaxHighlighting=!0,Z.focus(),document.execCommand("copy"),fe.a.forceCopyWithSyntaxHighlighting=!1)}}function registerExecCommandImpl(G,Z){G&&(G.addImplementation(1e4,"code-editor",(G,ne)=>{const ie=G.get(ge.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus()){const G=ie.getOption(30),ne=ie.getSelection();return ne&&ne.isEmpty()&&!G||document.execCommand(Z),!0}return!1}),G.addImplementation(0,"generic-dom",(G,ne)=>(document.execCommand(Z),!0)))}registerExecCommandImpl(Ie,"cut"),registerExecCommandImpl(Re,"copy"),ze&&(ze.addImplementation(1e4,"code-editor",(G,Z)=>{const ne=G.get(ge.a),ie=G.get(Me.a),se=ne.getFocusedCodeEditor();if(se&&se.hasTextFocus()){return!(!document.execCommand("paste")&&ce.i)||(__awaiter(void 0,void 0,void 0,(function*(){const G=yield ie.readText();if(""!==G){const Z=fe.b.INSTANCE.get(G);let ne=!1,ie=null,ce=null;Z&&(ne=se.getOption(30)&&!!Z.isFromEmptySelection,ie=void 0!==Z.multicursorText?Z.multicursorText:null,ce=Z.mode),se.trigger("keyboard","paste",{text:G,pasteOnNewLine:ne,multicursorText:ie,mode:ce})}})),!0)}return!1}),ze.addImplementation(0,"generic-dom",(G,Z)=>(document.execCommand("paste"),!0))),xe&&Object(me.j)(ExecCommandCopyWithSyntaxHighlightingAction)},7502:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(14),se=ne(650);Object(ie.l)(se.f.ID,se.f),Object(ie.j)(se.e),Object(ie.j)(se.g),Object(ie.j)(se.h),Object(ie.j)(se.d),Object(ie.j)(se.a),Object(ie.j)(se.c),Object(ie.k)(new se.b)},7503:function(G,Z,ne){var ie=ne(7504);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7504:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .monaco-editor-overlaymessage {\r\n\tpadding-bottom: 8px;\r\n\tz-index: 10000;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage.below {\r\n\tpadding-bottom: 0;\r\n\tpadding-top: 8px;\r\n\tz-index: 10000;\r\n}\r\n\r\n@keyframes fadeIn {\r\n\tfrom { opacity: 0; }\r\n\tto { opacity: 1; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\r\n\tanimation: fadeIn 150ms ease-out;\r\n}\r\n\r\n@keyframes fadeOut {\r\n\tfrom { opacity: 1; }\r\n\tto { opacity: 0; }\r\n}\r\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\r\n\tanimation: fadeOut 100ms ease-out;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .message {\r\n\tpadding: 1px 4px;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage .anchor {\r\n\twidth: 0 !important;\r\n\theight: 0 !important;\r\n\tborder-color: transparent;\r\n\tborder-style: solid;\r\n\tz-index: 1000;\r\n\tborder-width: 8px;\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,\r\n.monaco-editor .monaco-editor-overlaymessage.below .anchor.below {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .monaco-editor-overlaymessage.below .anchor.top {\r\n\tdisplay: inherit;\r\n\ttop: -8px;\r\n}\r\n",""]),G.exports=Z},7505:function(G,Z,ne){var ie=ne(7506);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7506:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .contentWidgets .codicon-light-bulb,\r\n.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\r\n.monaco-editor .contentWidgets .codicon-light-bulb:hover,\r\n.monaco-editor .contentWidgets .codicon-lightbulb-autofix:hover {\r\n\tcursor: pointer;\r\n}\r\n",""]),G.exports=Z},7507:function(G,Z,ne){var ie=ne(7508);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7508:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .codelens-decoration {\r\n\toverflow: hidden;\r\n\tdisplay: inline-block;\r\n\ttext-overflow: ellipsis;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > span,\r\n.monaco-editor .codelens-decoration > a {\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\twhite-space: nowrap;\r\n\tvertical-align: sub;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a {\r\n\ttext-decoration: none;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a:hover {\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-editor .codelens-decoration .codicon {\r\n\tvertical-align: middle;\r\n\tcolor: currentColor !important;\r\n}\r\n\r\n.monaco-editor .codelens-decoration > a:hover .codicon::before {\r\n\tcursor: pointer;\r\n}\r\n\r\n@keyframes fadein {\r\n\t0% { opacity: 0; visibility: visible;}\r\n\t100% { opacity: 1; }\r\n}\r\n\r\n.monaco-editor .codelens-decoration.fadein {\r\n\tanimation: fadein 0.1s linear;\r\n}\r\n",""]),G.exports=Z},7509:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"ColorContribution",(function(){return ColorContribution}));ne(3117);var ie=ne(10),se=ne(14),ce=ne(3118),fe=ne(12);class ColorContribution extends ie.a{constructor(G){super(),this._editor=G,this._register(G.onMouseDown(G=>this.onMouseDown(G)))}dispose(){super.dispose()}onMouseDown(G){var Z;if(6!==G.target.type)return;if(![...(null===(Z=G.target.element)||void 0===Z?void 0:Z.classList.values())||[]].find(G=>G.startsWith("ced-colorBox")))return;if(!G.target.range)return;const ne=this._editor.getContribution(ce.ModesHoverController.ID);if(!ne.isColorPickerVisible()){const Z=new fe.a(G.target.range.startLineNumber,G.target.range.startColumn+1,G.target.range.endLineNumber,G.target.range.endColumn+1);ne.showContentHover(Z,0,!1)}}}ColorContribution.ID="editor.contrib.colorContribution",Object(se.l)(ColorContribution.ID,ColorContribution)},7510:function(G,Z,ne){var ie=ne(7511);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7511:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-hover {\r\n\tcursor: default;\r\n\tposition: absolute;\r\n\toverflow: hidden;\r\n\tz-index: 50;\r\n\tuser-select: text;\r\n\t-webkit-user-select: text;\r\n\t-ms-user-select: text;\r\n\tbox-sizing: initial;\r\n\tanimation: fadein 100ms linear;\r\n\tline-height: 1.5em;\r\n}\r\n\r\n.monaco-hover.hidden {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-hover .hover-contents {\r\n\tpadding: 4px 8px;\r\n}\r\n\r\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\r\n\tmax-width: 500px;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\r\n\tmin-width: 100%;\r\n}\r\n\r\n.monaco-hover p,\r\n.monaco-hover .code,\r\n.monaco-hover ul {\r\n\tmargin: 8px 0;\r\n}\r\n\r\n.monaco-hover code {\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-hover hr {\r\n\tbox-sizing: border-box;\r\n\tborder-left: 0px;\r\n\tborder-right: 0px;\r\n\tmargin-top: 4px;\r\n\tmargin-bottom: -4px;\r\n\tmargin-left: -8px;\r\n\tmargin-right: -8px;\r\n\theight: 1px;\r\n}\r\n\r\n.monaco-hover p:first-child,\r\n.monaco-hover .code:first-child,\r\n.monaco-hover ul:first-child {\r\n\tmargin-top: 0;\r\n}\r\n\r\n.monaco-hover p:last-child,\r\n.monaco-hover .code:last-child,\r\n.monaco-hover ul:last-child {\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n/* MarkupContent Layout */\r\n.monaco-hover ul {\r\n\tpadding-left: 20px;\r\n}\r\n.monaco-hover ol {\r\n\tpadding-left: 20px;\r\n}\r\n\r\n.monaco-hover li > p {\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.monaco-hover li > ul {\r\n\tmargin-top: 0;\r\n}\r\n\r\n.monaco-hover code {\r\n\tborder-radius: 3px;\r\n\tpadding: 0 0.4em;\r\n}\r\n\r\n.monaco-hover .monaco-tokenized-source {\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar {\r\n\tfont-size: 12px;\r\n\tline-height: 22px;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions {\r\n\tdisplay: flex;\r\n\tpadding: 0px 8px;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions .action-container {\r\n\tmargin-right: 16px;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\r\n\tpadding-right: 4px;\r\n}\r\n\r\n.monaco-hover .markdown-hover .hover-contents .codicon {\r\n\tcolor: inherit;\r\n\tfont-size: inherit;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link:hover,\r\n.monaco-hover .hover-contents a.code-link {\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link:before {\r\n\tcontent: '(';\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link:after {\r\n\tcontent: ')';\r\n}\r\n\r\n.monaco-hover .hover-contents a.code-link > span {\r\n\ttext-decoration: underline;\r\n\t/** Hack to force underline to show **/\r\n\tborder-bottom: 1px solid transparent;\r\n\ttext-underline-position: under;\r\n}\r\n\r\n/** Spans in markdown hovers need a margin-bottom to avoid looking cramped: https://github.com/microsoft/vscode/issues/101496 **/\r\n.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents) span {\r\n\tmargin-bottom: 4px;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-hover-content .action-container a {\r\n\t-webkit-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.monaco-hover-content .action-container.disabled {\r\n\tpointer-events: none;\r\n\topacity: 0.4;\r\n\tcursor: default;\r\n}\r\n",""]),G.exports=Z},7512:function(G,Z,ne){var ie=ne(7513);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7513:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Arrows */\r\n.monaco-scrollable-element > .scrollbar > .scra {\r\n\tcursor: pointer;\r\n\tfont-size: 11px !important;\r\n}\r\n\r\n.monaco-scrollable-element > .visible {\r\n\topacity: 1;\r\n\r\n\t/* Background rule added for IE9 - to allow clicks on dom node */\r\n\tbackground:rgba(0,0,0,0);\r\n\r\n\ttransition: opacity 100ms linear;\r\n}\r\n.monaco-scrollable-element > .invisible {\r\n\topacity: 0;\r\n\tpointer-events: none;\r\n}\r\n.monaco-scrollable-element > .invisible.fade {\r\n\ttransition: opacity 800ms linear;\r\n}\r\n\r\n/* Scrollable Content Inset Shadow */\r\n.monaco-scrollable-element > .shadow {\r\n\tposition: absolute;\r\n\tdisplay: none;\r\n}\r\n.monaco-scrollable-element > .shadow.top {\r\n\tdisplay: block;\r\n\ttop: 0;\r\n\tleft: 3px;\r\n\theight: 3px;\r\n\twidth: 100%;\r\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.left {\r\n\tdisplay: block;\r\n\ttop: 3px;\r\n\tleft: 0;\r\n\theight: 100%;\r\n\twidth: 3px;\r\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.top-left-corner {\r\n\tdisplay: block;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\theight: 3px;\r\n\twidth: 3px;\r\n}\r\n.monaco-scrollable-element > .shadow.top.left {\r\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\r\n}\r\n\r\n/* ---------- Default Style ---------- */\r\n\r\n.vs .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(100, 100, 100, .4);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(121, 121, 121, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(111, 195, 223, .6);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\tbackground: rgba(100, 100, 100, .7);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\tbackground: rgba(111, 195, 223, .8);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(0, 0, 0, .6);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(191, 191, 191, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(111, 195, 223, 1);\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.left {\r\n\tbox-shadow: #000 6px 0 6px -6px inset;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top.left {\r\n\tbox-shadow: #000 6px 6px 6px -6px inset;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.left {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top.left {\r\n\tbox-shadow: none;\r\n}\r\n",""]),G.exports=Z},7514:function(G,Z,ne){var ie=ne(7515);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7515:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* marker zone */\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .severity-icon {\r\n\tdisplay: inline-block;\r\n\tvertical-align: text-top;\r\n\tmargin-right: 4px;\r\n}\r\n\r\n.monaco-editor .marker-widget {\r\n\ttext-overflow: ellipsis;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .marker-widget > .stale {\r\n\topacity: 0.6;\r\n\tfont-style: italic;\r\n}\r\n\r\n.monaco-editor .marker-widget .title {\r\n\tdisplay: inline-block;\r\n\tpadding-right: 5px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer {\r\n\tposition: absolute;\r\n\twhite-space: pre;\r\n\tuser-select: text;\r\n\t-webkit-user-select: text;\r\n\t-ms-user-select: text;\r\n\tpadding: 8px 12px 0 20px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message .details {\r\n\tpadding-left: 6px;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message .source,\r\n.monaco-editor .marker-widget .descriptioncontainer .message span.code {\r\n\topacity: 0.6;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link {\r\n\topacity: 0.6;\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {\r\n\tcontent: '(';\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {\r\n\tcontent: ')';\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {\r\n\ttext-decoration: underline;\r\n\t/** Hack to force underline to show **/\r\n\tborder-bottom: 1px solid transparent;\r\n\ttext-underline-position: under;\r\n}\r\n\r\n.monaco-editor .marker-widget .descriptioncontainer .filename {\r\n\tcursor: pointer;\r\n}\r\n",""]),G.exports=Z},7516:function(G,Z,ne){var ie=ne(7517);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7517:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .peekview-widget .head {\r\n\tbox-sizing: border-box;\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tfont-size: 13px;\r\n\tmargin-left: 20px;\r\n\tcursor: pointer;\r\n\tmin-width: 0;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\r\n\tfont-size: 0.9em;\r\n\tmargin-left: 0.5em;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .meta {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .dirname {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .filename {\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before {\r\n\tcontent: '-';\r\n\tpadding: 0 0.3em;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions {\r\n\tflex: 1;\r\n\ttext-align: right;\r\n\tpadding-right: 2px;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\r\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-editor .peekview-widget > .body {\r\n\tborder-top: 1px solid;\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-editor .peekview-widget .head .peekview-title .codicon {\r\n\tmargin-right: 4px;\r\n}\r\n\r\n.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon {\r\n\tcolor: inherit !important;\r\n}\r\n",""]),G.exports=Z},7518:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-action-bar {\r\n\twhite-space: nowrap;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-action-bar .actions-container {\r\n\tdisplay: flex;\r\n\tmargin: 0 auto;\r\n\tpadding: 0;\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-action-bar.vertical .actions-container {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-action-bar .action-item {\r\n\tdisplay: block;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tcursor: pointer;\r\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled {\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-action-bar .action-item .icon,\r\n.monaco-action-bar .action-item .codicon {\r\n\tdisplay: block;\r\n}\r\n\r\n.monaco-action-bar .action-item .codicon {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}\r\n\r\n.monaco-action-bar .action-label {\r\n\tfont-size: 11px;\r\n\tpadding: 3px;\r\n\tborder-radius: 5px;\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled .action-label,\r\n.monaco-action-bar .action-item.disabled .action-label::before,\r\n.monaco-action-bar .action-item.disabled .action-label:hover {\r\n\topacity: 0.4;\r\n}\r\n\r\n/* Vertical actions */\r\n\r\n.monaco-action-bar.vertical {\r\n\ttext-align: left;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-item {\r\n\tdisplay: block;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-label.separator {\r\n\tdisplay: block;\r\n\tborder-bottom: 1px solid #bbb;\r\n\tpadding-top: 1px;\r\n\tmargin-left: .8em;\r\n\tmargin-right: .8em;\r\n}\r\n\r\n.monaco-action-bar .action-item .action-label.separator {\r\n\twidth: 1px;\r\n\theight: 16px;\r\n\tmargin: 5px 4px !important;\r\n\tcursor: default;\r\n\tmin-width: 1px;\r\n\tpadding: 0;\r\n\tbackground-color: #bbb;\r\n}\r\n\r\n.secondary-actions .monaco-action-bar .action-label {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n/* Action Items */\r\n.monaco-action-bar .action-item.select-container {\r\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\r\n\tflex: 1;\r\n\tmax-width: 170px;\r\n\tmin-width: 60px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tmargin-right: 10px;\r\n}\r\n\r\n.monaco-action-bar .action-item.action-dropdown-item {\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-action-bar .action-item.action-dropdown-item > .action-label {\r\n\tmargin-right: 1px;\r\n}\r\n",""]),G.exports=Z},7519:function(G,Z,ne){var ie=ne(7520);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7520:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* -------------------- IE10 remove auto clear button -------------------- */\r\n\r\n::-ms-clear {\r\n\tdisplay: none;\r\n}\r\n\r\n/* All widgets */\r\n/* I am not a big fan of this rule */\r\n.monaco-editor .editor-widget input {\r\n\tcolor: inherit;\r\n}\r\n\r\n/* -------------------- Editor -------------------- */\r\n\r\n.monaco-editor {\r\n\tposition: relative;\r\n\toverflow: visible;\r\n\t-webkit-text-size-adjust: 100%;\r\n}\r\n\r\n/* -------------------- Misc -------------------- */\r\n\r\n.monaco-editor .overflow-guard {\r\n\tposition: relative;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-editor .view-overlays {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}\r\n\r\n/*\r\n.monaco-editor .auto-closed-character {\r\n\topacity: 0.3;\r\n}\r\n*/\r\n",""]),G.exports=Z},7521:function(G,Z,ne){var ie=ne(7522);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7522:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .inputarea {\r\n\tmin-width: 0;\r\n\tmin-height: 0;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tposition: absolute;\r\n\toutline: none !important;\r\n\tresize: none;\r\n\tborder: none;\r\n\toverflow: hidden;\r\n\tcolor: transparent;\r\n\tbackground-color: transparent;\r\n}\r\n/*.monaco-editor .inputarea {\r\n\tposition: fixed !important;\r\n\twidth: 800px !important;\r\n\theight: 500px !important;\r\n\ttop: initial !important;\r\n\tleft: initial !important;\r\n\tbottom: 0 !important;\r\n\tright: 0 !important;\r\n\tcolor: black !important;\r\n\tbackground: white !important;\r\n\tline-height: 15px !important;\r\n\tfont-size: 14px !important;\r\n}*/\r\n.monaco-editor .inputarea.ime-input {\r\n\tz-index: 10;\r\n}\r\n",""]),G.exports=Z},7523:function(G,Z,ne){var ie=ne(7524);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7524:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers {\r\n\tfont-variant-numeric: tabular-nums;\r\n\tposition: absolute;\r\n\ttext-align: right;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tbox-sizing: border-box;\r\n\tcursor: default;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-editor .relative-current-line-number {\r\n\ttext-align: left;\r\n\tdisplay: inline-block;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\r\n\tmargin-top: 1px;\r\n}\r\n",""]),G.exports=Z},7525:function(G,Z,ne){var ie=ne(7526);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7526:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-mouse-cursor-text {\r\n\tcursor: text;\r\n}\r\n\r\n/* The following selector looks a bit funny, but that is needed to cover all the workbench and the editor!! */\r\n.vs-dark .mac .monaco-mouse-cursor-text, .hc-black .mac .monaco-mouse-cursor-text,\r\n.vs-dark.mac .monaco-mouse-cursor-text, .hc-black.mac .monaco-mouse-cursor-text {\r\n\tcursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text;\r\n}\r\n",""]),G.exports=Z},7527:function(G,Z,ne){var ie=ne(7528);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7528:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-overlays .current-line {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .current-line {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\r\n\tborder-right: 0;\r\n}\r\n",""]),G.exports=Z},7529:function(G,Z,ne){var ie=ne(7530);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7530:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcdr = core decorations rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cdr {\r\n\tposition: absolute;\r\n}",""]),G.exports=Z},7531:function(G,Z,ne){var ie=ne(7532);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7532:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .glyph-margin {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcgmr = core glyph margin rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cgmr {\r\n\tposition: absolute;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n",""]),G.exports=Z},7533:function(G,Z,ne){var ie=ne(7534);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7534:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcigr = core ident guides rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cigr {\r\n\tposition: absolute;\r\n}\r\n.monaco-editor .lines-content .cigra {\r\n\tposition: absolute;\r\n}\r\n",""]),G.exports=Z},7535:function(G,Z,ne){var ie=ne(7536);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7536:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Uncomment to see lines flashing when they're painted */\r\n/*.monaco-editor .view-lines > .view-line {\r\n\tbackground-color: none;\r\n\tanimation-name: flash-background;\r\n\tanimation-duration: 800ms;\r\n}\r\n@keyframes flash-background {\r\n\t0% { background-color: lightgreen; }\r\n\t100% { background-color: none }\r\n}*/\r\n\r\n.monaco-editor.no-user-select .lines-content,\r\n.monaco-editor.no-user-select .view-line,\r\n.monaco-editor.no-user-select .view-lines {\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n.monaco-editor .view-lines {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .view-line {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .mtkz {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n/* TODO@tokenization bootstrap fix */\r\n/*.monaco-editor .view-line > span > span {\r\n\tfloat: none;\r\n\tmin-height: inherit;\r\n\tmargin-left: inherit;\r\n}*/\r\n",""]),G.exports=Z},7537:function(G,Z,ne){var ie=ne(7538);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7538:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .lines-decorations {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tbackground: white;\r\n}\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcldr = core lines decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cldr {\r\n\tposition: absolute;\r\n\theight: 100%;\r\n}",""]),G.exports=Z},7539:function(G,Z,ne){var ie=ne(7540);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7540:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcmdr = core margin decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cmdr {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}",""]),G.exports=Z},7541:function(G,Z,ne){var ie=ne(7542);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7542:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* START cover the case that slider is visible on mouseover */\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\r\n\topacity: 0;\r\n\ttransition: opacity 100ms linear;\r\n}\r\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\r\n\topacity: 1;\r\n}\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\r\n\topacity: 1;\r\n}\r\n/* END cover the case that slider is visible on mouseover */\r\n\r\n.monaco-editor .minimap-shadow-hidden {\r\n\tposition: absolute;\r\n\twidth: 0;\r\n}\r\n.monaco-editor .minimap-shadow-visible {\r\n\tposition: absolute;\r\n\tleft: -6px;\r\n\twidth: 6px;\r\n}\r\n.monaco-editor.no-minimap-shadow .minimap-shadow-visible {\r\n\tposition: absolute;\r\n\tleft: -1px;\r\n\twidth: 1px;\r\n}\r\n",""]),G.exports=Z},7543:function(G,Z,ne){var ie=ne(7544);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7544:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .overlayWidgets {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft:0;\r\n}",""]),G.exports=Z},7545:function(G,Z,ne){var ie=ne(7546);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7546:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-ruler {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}",""]),G.exports=Z},7547:function(G,Z,ne){var ie=ne(7548);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7548:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .scroll-decoration {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\theight: 6px;\r\n}",""]),G.exports=Z},7549:function(G,Z,ne){var ie=ne(7550);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7550:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcslr = core selections layer rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cslr {\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-editor\t\t\t.top-left-radius\t\t{ border-top-left-radius: 3px; }\r\n.monaco-editor\t\t\t.bottom-left-radius\t\t{ border-bottom-left-radius: 3px; }\r\n.monaco-editor\t\t\t.top-right-radius\t\t{ border-top-right-radius: 3px; }\r\n.monaco-editor\t\t\t.bottom-right-radius\t{ border-bottom-right-radius: 3px; }\r\n\r\n.monaco-editor.hc-black .top-left-radius\t\t{ border-top-left-radius: 0; }\r\n.monaco-editor.hc-black .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\r\n.monaco-editor.hc-black .top-right-radius\t\t{ border-top-right-radius: 0; }\r\n.monaco-editor.hc-black .bottom-right-radius\t{ border-bottom-right-radius: 0; }\r\n",""]),G.exports=Z},7551:function(G,Z,ne){var ie=ne(7552);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7552:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .cursors-layer {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}\r\n\r\n.monaco-editor .cursors-layer > .cursor {\r\n\tposition: absolute;\r\n\toverflow: hidden;\r\n}\r\n\r\n/* -- smooth-caret-animation -- */\r\n.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor {\r\n\ttransition: all 80ms;\r\n}\r\n\r\n/* -- block-outline-style -- */\r\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\r\n\tbox-sizing: border-box;\r\n\tbackground: transparent !important;\r\n\tborder-style: solid;\r\n\tborder-width: 1px;\r\n}\r\n\r\n/* -- underline-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\r\n\tborder-bottom-width: 2px;\r\n\tborder-bottom-style: solid;\r\n\tbackground: transparent !important;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n/* -- underline-thin-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n\tbackground: transparent !important;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n@keyframes monaco-cursor-smooth {\r\n\t0%,\r\n\t20% {\r\n\t\topacity: 1;\r\n\t}\r\n\t60%,\r\n\t100% {\r\n\t\topacity: 0;\r\n\t}\r\n}\r\n\r\n@keyframes monaco-cursor-phase {\r\n\t0%,\r\n\t20% {\r\n\t\topacity: 1;\r\n\t}\r\n\t90%,\r\n\t100% {\r\n\t\topacity: 0;\r\n\t}\r\n}\r\n\r\n@keyframes monaco-cursor-expand {\r\n\t0%,\r\n\t20% {\r\n\t\ttransform: scaleY(1);\r\n\t}\r\n\t80%,\r\n\t100% {\r\n\t\ttransform: scaleY(0);\r\n\t}\r\n}\r\n\r\n.cursor-smooth {\r\n\tanimation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-phase {\r\n\tanimation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-expand > .cursor {\r\n\tanimation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n",""]),G.exports=Z},7553:function(G,Z,ne){var ie=ne(7554);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7554:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .zone-widget {\r\n\tposition: absolute;\r\n\tz-index: 10;\r\n}\r\n\r\n\r\n.monaco-editor .zone-widget .zone-widget-container {\r\n\tborder-top-style: solid;\r\n\tborder-bottom-style: solid;\r\n\tborder-top-width: 0;\r\n\tborder-bottom-width: 0;\r\n\tposition: relative;\r\n}\r\n",""]),G.exports=Z},7555:function(G,Z,ne){var ie=ne(7556);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7556:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n:root {\r\n\t--sash-size: 4px;\r\n}\r\n\r\n.monaco-sash {\r\n\tposition: absolute;\r\n\tz-index: 35;\r\n\ttouch-action: none;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n\tpointer-events: none;\r\n}\r\n\r\n.monaco-sash.mac.vertical {\r\n\tcursor: col-resize;\r\n}\r\n\r\n.monaco-sash.vertical.minimum {\r\n\tcursor: e-resize;\r\n}\r\n\r\n.monaco-sash.vertical.maximum {\r\n\tcursor: w-resize;\r\n}\r\n\r\n.monaco-sash.mac.horizontal {\r\n\tcursor: row-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.minimum {\r\n\tcursor: s-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.maximum {\r\n\tcursor: n-resize;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n\tcursor: default !important;\r\n\tpointer-events: none !important;\r\n}\r\n\r\n.monaco-sash.vertical {\r\n\tcursor: ew-resize;\r\n\ttop: 0;\r\n\twidth: var(--sash-size);\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-sash.horizontal {\r\n\tcursor: ns-resize;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: var(--sash-size);\r\n}\r\n\r\n.monaco-sash:not(.disabled) > .orthogonal-drag-handle {\r\n\tcontent: \" \";\r\n\theight: calc(var(--sash-size) * 2);\r\n\twidth: calc(var(--sash-size) * 2);\r\n\tz-index: 100;\r\n\tdisplay: block;\r\n\tcursor: all-scroll;\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\r\n\t> .orthogonal-drag-handle.start,\r\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\r\n\t> .orthogonal-drag-handle.end {\r\n\tcursor: nwse-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\r\n\t> .orthogonal-drag-handle.end,\r\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\r\n\t> .orthogonal-drag-handle.start {\r\n\tcursor: nesw-resize;\r\n}\r\n\r\n.monaco-sash.vertical > .orthogonal-drag-handle.start {\r\n\tleft: calc(var(--sash-size) * -0.5);\r\n\ttop: calc(var(--sash-size) * -1);\r\n}\r\n.monaco-sash.vertical > .orthogonal-drag-handle.end {\r\n\tleft: calc(var(--sash-size) * -0.5);\r\n\tbottom: calc(var(--sash-size) * -1);\r\n}\r\n.monaco-sash.horizontal > .orthogonal-drag-handle.start {\r\n\ttop: calc(var(--sash-size) * -0.5);\r\n\tleft: calc(var(--sash-size) * -1);\r\n}\r\n.monaco-sash.horizontal > .orthogonal-drag-handle.end {\r\n\ttop: calc(var(--sash-size) * -0.5);\r\n\tright: calc(var(--sash-size) * -1);\r\n}\r\n\r\n.monaco-sash:before {\r\n\tcontent: '';\r\n\tpointer-events: none;\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttransition: background-color 0.1s ease-out;\r\n\tbackground: transparent;\r\n}\r\n\r\n.monaco-sash.vertical:before {\r\n\twidth: var(--sash-hover-size);\r\n\tleft: calc(50% - (var(--sash-hover-size) / 2));\r\n}\r\n\r\n.monaco-sash.horizontal:before {\r\n\theight: var(--sash-hover-size);\r\n\ttop: calc(50% - (var(--sash-hover-size) / 2));\r\n}\r\n\r\n/** Debug **/\r\n\r\n.monaco-sash.debug {\r\n\tbackground: cyan;\r\n}\r\n\r\n.monaco-sash.debug.disabled {\r\n\tbackground: rgba(0, 255, 255, 0.2);\r\n}\r\n\r\n.monaco-sash.debug:not(.disabled) > .orthogonal-drag-handle {\r\n\tbackground: red;\r\n}\r\n",""]),G.exports=Z},7557:function(G,Z,ne){var ie=ne(7558);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7558:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-action-bar .action-item.menu-entry .action-label.icon {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 50%;\r\n\tbackground-size: 16px;\r\n}\r\n\r\n.monaco-action-bar .action-item.menu-entry .action-label {\r\n\tbackground-image: var(--menu-entry-icon-light);\r\n}\r\n\r\n.vs-dark .monaco-action-bar .action-item.menu-entry .action-label,\r\n.hc-black .monaco-action-bar .action-item.menu-entry .action-label {\r\n\tbackground-image: var(--menu-entry-icon-dark);\r\n}\r\n",""]),G.exports=Z},7559:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-dropdown {\r\n\theight: 100%;\r\n\tpadding: 0;\r\n}\r\n\r\n.monaco-dropdown > .dropdown-label {\r\n\tcursor: pointer;\r\n\theight: 100%;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\r\n.monaco-dropdown > .dropdown-label > .action-label.disabled {\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-dropdown-with-primary {\r\n\tdisplay: flex !important;\r\n\tflex-direction: row;\r\n\tborder-radius: 5px;\r\n}\r\n\r\n.monaco-dropdown-with-primary > .action-container > .action-label {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] {\r\n\tfont-size: 12px;\r\n\tpadding-left: 0px;\r\n\tpadding-right: 0px;\r\n\tline-height: 16px;\r\n\tmargin-left: -3px;\r\n}\r\n\r\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label {\r\n\tdisplay: block;\r\n\tbackground-size: 16px;\r\n\tbackground-position: center center;\r\n\tbackground-repeat: no-repeat;\r\n}\r\n",""]),G.exports=Z},756:function(G,Z,ne){const ie=ne(572);G.exports=(G,Z,ne)=>new ie(G,ne).compare(new ie(Z,ne))},7560:function(G,Z,ne){var ie=ne(7561);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7561:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .suggest-preview-additional-widget {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .suggest-preview-additional-widget .content-spacer {\r\n\tcolor: transparent;\r\n\twhite-space: pre;\r\n}\r\n\r\n.monaco-editor .suggest-preview-additional-widget .button {\r\n\tdisplay: inline-block;\r\n\tcursor: pointer;\r\n\ttext-decoration: underline;\r\n\ttext-underline-position: under;\r\n}\r\n\r\n.monaco-editor .ghost-text-hidden {\r\n\topacity: 0;\r\n\tfont-size: 0;\r\n}\r\n",""]),G.exports=Z},7562:function(G,Z,ne){var ie=ne(7563);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7563:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .snippet-placeholder {\r\n\tmin-width: 2px;\r\n\toutline-style: solid;\r\n\toutline-width: 1px;\r\n}\r\n\r\n.monaco-editor .finish-snippet-placeholder {\r\n\toutline-style: solid;\r\n\toutline-width: 1px;\r\n}\r\n",""]),G.exports=Z},7564:function(G,Z,ne){var ie=ne(7565);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7565:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Suggest widget*/\r\n\r\n.monaco-editor .suggest-widget {\r\n\twidth: 430px;\r\n\tz-index: 40;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n}\r\n\r\n.monaco-editor .suggest-widget.message {\r\n\tflex-direction: row;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-editor .suggest-widget,\r\n.monaco-editor .suggest-details {\r\n\tflex: 0 1 auto;\r\n\twidth: 100%;\r\n\tborder-style: solid;\r\n\tborder-width: 1px;\r\n}\r\n\r\n.monaco-editor.hc-black .suggest-widget,\r\n.monaco-editor.hc-black .suggest-details {\r\n\tborder-width: 2px;\r\n}\r\n\r\n/* Styles for status bar part */\r\n\r\n\r\n.monaco-editor .suggest-widget .suggest-status-bar {\r\n\tbox-sizing: border-box;\r\n\tdisplay: none;\r\n\tflex-flow: row nowrap;\r\n\tjustify-content: space-between;\r\n\twidth: 100%;\r\n\tfont-size: 80%;\r\n\tpadding: 0 4px 0 4px;\r\n\tborder-top: 1px solid transparent;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar {\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-editor .suggest-widget .suggest-status-bar .left {\r\n\tpadding-right: 8px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label {\r\n\topacity: 0.5;\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after {\r\n\tcontent: ', ';\r\n\tmargin-right: 0.3em;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,\r\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label {\r\n\twidth: 100%;\r\n}\r\n\r\n/* Styles for Message element for when widget is loading or is empty */\r\n\r\n.monaco-editor .suggest-widget>.message {\r\n\tpadding-left: 22px;\r\n}\r\n\r\n/** Styles for the list element **/\r\n\r\n.monaco-editor .suggest-widget>.tree {\r\n\theight: 100%;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list {\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n/** Styles for each row in the list element **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row {\r\n\tdisplay: flex;\r\n\t-mox-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tpadding-right: 10px;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 2px 2px;\r\n\twhite-space: nowrap;\r\n\tcursor: pointer;\r\n\ttouch-action: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents {\r\n\tflex: 1;\r\n\theight: 100%;\r\n\toverflow: hidden;\r\n\tpadding-left: 2px;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main {\r\n\tdisplay: flex;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\twhite-space: pre;\r\n\tjustify-content: space-between;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left, .monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right {\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight {\r\n\tfont-weight: bold;\r\n}\r\n\r\n/** ReadMore Icon styles **/\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore::before {\r\n\tcolor: inherit;\r\n\topacity: 1;\r\n\tfont-size: 14px;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close {\r\n\tposition: absolute;\r\n\ttop: 6px;\r\n\tright: 2px;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover {\r\n\topacity: 1;\r\n}\r\n\r\n/** signature, qualifier, type/details opacity **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label {\r\n\topacity: 0.7;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label {\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\topacity: 0.6;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label {\r\n\tmargin-left: 12px;\r\n\topacity: 0.4;\r\n\tfont-size: 85%;\r\n\tline-height: initial;\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\r\n\talign-self: center;\r\n}\r\n\r\n/** Type Info and icon next to the label in the focused completion item **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label {\r\n\tfont-size: 85%;\r\n\tmargin-left: 1.1em;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source {\r\n\tdisplay: inline;\r\n}\r\n\r\n/** Details: if using CompletionItem#details, show on focus **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label {\r\n\tdisplay: inline;\r\n}\r\n\r\n/** Details: if using CompletionItemLabel#details, always show **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label {\r\n\tdisplay: inline;\r\n}\r\n\r\n/** Ellipsis on hover **/\r\n\r\n.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label {\r\n\twidth: calc(100% - 26px);\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left {\r\n\tflex-shrink: 1;\r\n\tflex-grow: 1;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label {\r\n\tflex-shrink: 0;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label {\r\n\tmax-width: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label {\r\n\tflex-shrink: 1;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right {\r\n\toverflow: hidden;\r\n\tflex-shrink: 4;\r\n\tmax-width: 70%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore {\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\tright: 10px;\r\n\twidth: 18px;\r\n\theight: 18px;\r\n\tvisibility: hidden;\r\n}\r\n\r\n/** Do NOT display ReadMore when docs is side/below **/\r\n\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore, .monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore {\r\n\tdisplay: none !important;\r\n}\r\n\r\n/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore {\r\n\tdisplay: none;\r\n}\r\n\r\n/** Focused item can show ReadMore, but can't when docs is side/below **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,\r\n.monaco-editor .suggest-widget.docs-below .monaco-list .monaco-list-row>.contents>.main>.right>.readMore {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:hover>.contents>.main>.right>.readMore {\r\n\tvisibility: visible;\r\n}\r\n\r\n/** Styles for each row in the list **/\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated {\r\n\topacity: 0.66;\r\n\ttext-decoration: unset;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container {\r\n\ttext-decoration: line-through;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon {\r\n\tdisplay: block;\r\n\theight: 16px;\r\n\twidth: 16px;\r\n\tmargin-left: 2px;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-size: 80%;\r\n\tbackground-position: center;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tmargin-right: 4px;\r\n}\r\n\r\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon, .monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan {\r\n\tmargin: 0 0 0 0.3em;\r\n\tborder: 0.1em solid #000;\r\n\twidth: 0.7em;\r\n\theight: 0.7em;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n/** Styles for the docs of the completion item in focus **/\r\n\r\n.monaco-editor .suggest-details-container {\r\n\tz-index: 41;\r\n}\r\n\r\n.monaco-editor .suggest-details {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-editor .suggest-details.no-docs {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element {\r\n\tflex: 1;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body {\r\n\tbox-sizing: border-box;\r\n\theight: 100%;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type {\r\n\tflex: 2;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\topacity: 0.7;\r\n\twhite-space: pre;\r\n\tmargin: 0 24px 0 0;\r\n\tpadding: 4px 0 12px 5px;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap {\r\n\twhite-space: normal;\r\n\tword-break: break-all;\r\n}\r\n\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs {\r\n\tmargin: 0;\r\n\tpadding: 4px 5px;\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs {\r\n\tmargin-right: 24px;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs {\r\n\tpadding: 0;\r\n\twhite-space: initial;\r\n\tmin-height: calc(1rem + 8px);\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty) {\r\n\tpadding: 4px 5px;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child {\r\n\tmargin-top: 0;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child {\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code {\r\n\twhite-space: pre-wrap;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon {\r\n\tvertical-align: sub;\r\n}\r\n\r\n.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .suggest-details code {\r\n\tborder-radius: 3px;\r\n\tpadding: 0 0.4em;\r\n}\r\n\r\n.monaco-editor .suggest-details ul {\r\n\tpadding-left: 20px;\r\n}\r\n\r\n.monaco-editor .suggest-details ol {\r\n\tpadding-left: 20px;\r\n}\r\n\r\n.monaco-editor .suggest-details p code {\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n",""]),G.exports=Z},7566:function(G,Z,ne){var ie=ne(7567);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7567:function(G,Z,ne){var ie=ne(37),se=ne(7568),ce=ne(7569);Z=ie(!1);var fe=se(ce);Z.push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n@font-face {\r\n\tfont-family: "codicon";\r\n\tsrc: url('+fe+") format(\"truetype\");\r\n}\r\n\r\n.codicon[class*='codicon-'] {\r\n\tfont: normal normal normal 16px/1 codicon;\r\n\tdisplay: inline-block;\r\n\ttext-decoration: none;\r\n\ttext-rendering: auto;\r\n\ttext-align: center;\r\n\t-webkit-font-smoothing: antialiased;\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n/* icon rules are dynamically created in codiconStyles */\r\n",""]),G.exports=Z},7568:function(G,Z,ne){"use strict";G.exports=function(G,Z){return Z||(Z={}),"string"!=typeof(G=G&&G.__esModule?G.default:G)?G:(/^['"].*['"]$/.test(G)&&(G=G.slice(1,-1)),Z.hash&&(G+=Z.hash),/["'() \t\n]/.test(G)||Z.needQuotes?'"'.concat(G.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):G)}},7569:function(G,Z,ne){G.exports=ne.p+"../fonts/codicon.ttf"},757:function(G,Z,ne){class Range{constructor(G,Z){if(Z=se(Z),G instanceof Range)return G.loose===!!Z.loose&&G.includePrerelease===!!Z.includePrerelease?G:new Range(G.raw,Z);if(G instanceof ce)return this.raw=G.value,this.set=[[G]],this.format(),this;if(this.options=Z,this.loose=!!Z.loose,this.includePrerelease=!!Z.includePrerelease,this.raw=G.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(G=>this.parseRange(G.trim())).filter(G=>G.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){const G=this.set[0];if(this.set=this.set.filter(G=>!isNullSet(G[0])),0===this.set.length)this.set=[G];else if(this.set.length>1)for(const G of this.set)if(1===G.length&&isAny(G[0])){this.set=[G];break}}this.format()}format(){return this.range=this.set.map(G=>G.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(G){const Z=((this.options.includePrerelease&&xe)|(this.options.loose&&De))+":"+G,ne=ie.get(Z);if(ne)return ne;const se=this.options.loose,me=se?ge[Ce.HYPHENRANGELOOSE]:ge[Ce.HYPHENRANGE];G=G.replace(me,hyphenReplace(this.options.includePrerelease)),fe("hyphen replace",G),G=G.replace(ge[Ce.COMPARATORTRIM],Se),fe("comparator trim",G),G=G.replace(ge[Ce.TILDETRIM],Me),fe("tilde trim",G),G=G.replace(ge[Ce.CARETTRIM],ke),fe("caret trim",G);let Ie=G.split(" ").map(G=>parseComparator(G,this.options)).join(" ").split(/\s+/).map(G=>replaceGTE0(G,this.options));se&&(Ie=Ie.filter(G=>(fe("loose invalid filter",G,this.options),!!G.match(ge[Ce.COMPARATORLOOSE])))),fe("range list",Ie);const Re=new Map,ze=Ie.map(G=>new ce(G,this.options));for(const G of ze){if(isNullSet(G))return[G];Re.set(G.value,G)}Re.size>1&&Re.has("")&&Re.delete("");const $e=[...Re.values()];return ie.set(Z,$e),$e}intersects(G,Z){if(!(G instanceof Range))throw new TypeError("a Range is required");return this.set.some(ne=>isSatisfiable(ne,Z)&&G.set.some(G=>isSatisfiable(G,Z)&&ne.every(ne=>G.every(G=>ne.intersects(G,Z)))))}test(G){if(!G)return!1;if("string"==typeof G)try{G=new me(G,this.options)}catch(G){return!1}for(let Z=0;Z"<0.0.0-0"===G.value,isAny=G=>""===G.value,isSatisfiable=(G,Z)=>{let ne=!0;const ie=G.slice();let se=ie.pop();for(;ne&&ie.length;)ne=ie.every(G=>se.intersects(G,Z)),se=ie.pop();return ne},parseComparator=(G,Z)=>(fe("comp",G,Z),G=replaceCarets(G,Z),fe("caret",G),G=replaceTildes(G,Z),fe("tildes",G),G=replaceXRanges(G,Z),fe("xrange",G),G=replaceStars(G,Z),fe("stars",G),G),isX=G=>!G||"x"===G.toLowerCase()||"*"===G,replaceTildes=(G,Z)=>G.trim().split(/\s+/).map(G=>replaceTilde(G,Z)).join(" "),replaceTilde=(G,Z)=>{const ne=Z.loose?ge[Ce.TILDELOOSE]:ge[Ce.TILDE];return G.replace(ne,(Z,ne,ie,se,ce)=>{let me;return fe("tilde",G,Z,ne,ie,se,ce),isX(ne)?me="":isX(ie)?me=`>=${ne}.0.0 <${+ne+1}.0.0-0`:isX(se)?me=`>=${ne}.${ie}.0 <${ne}.${+ie+1}.0-0`:ce?(fe("replaceTilde pr",ce),me=`>=${ne}.${ie}.${se}-${ce} <${ne}.${+ie+1}.0-0`):me=`>=${ne}.${ie}.${se} <${ne}.${+ie+1}.0-0`,fe("tilde return",me),me})},replaceCarets=(G,Z)=>G.trim().split(/\s+/).map(G=>replaceCaret(G,Z)).join(" "),replaceCaret=(G,Z)=>{fe("caret",G,Z);const ne=Z.loose?ge[Ce.CARETLOOSE]:ge[Ce.CARET],ie=Z.includePrerelease?"-0":"";return G.replace(ne,(Z,ne,se,ce,me)=>{let ge;return fe("caret",G,Z,ne,se,ce,me),isX(ne)?ge="":isX(se)?ge=`>=${ne}.0.0${ie} <${+ne+1}.0.0-0`:isX(ce)?ge="0"===ne?`>=${ne}.${se}.0${ie} <${ne}.${+se+1}.0-0`:`>=${ne}.${se}.0${ie} <${+ne+1}.0.0-0`:me?(fe("replaceCaret pr",me),ge="0"===ne?"0"===se?`>=${ne}.${se}.${ce}-${me} <${ne}.${se}.${+ce+1}-0`:`>=${ne}.${se}.${ce}-${me} <${ne}.${+se+1}.0-0`:`>=${ne}.${se}.${ce}-${me} <${+ne+1}.0.0-0`):(fe("no pr"),ge="0"===ne?"0"===se?`>=${ne}.${se}.${ce}${ie} <${ne}.${se}.${+ce+1}-0`:`>=${ne}.${se}.${ce}${ie} <${ne}.${+se+1}.0-0`:`>=${ne}.${se}.${ce} <${+ne+1}.0.0-0`),fe("caret return",ge),ge})},replaceXRanges=(G,Z)=>(fe("replaceXRanges",G,Z),G.split(/\s+/).map(G=>replaceXRange(G,Z)).join(" ")),replaceXRange=(G,Z)=>{G=G.trim();const ne=Z.loose?ge[Ce.XRANGELOOSE]:ge[Ce.XRANGE];return G.replace(ne,(ne,ie,se,ce,me,ge)=>{fe("xRange",G,ne,ie,se,ce,me,ge);const Ce=isX(se),Se=Ce||isX(ce),Me=Se||isX(me),ke=Me;return"="===ie&&ke&&(ie=""),ge=Z.includePrerelease?"-0":"",Ce?ne=">"===ie||"<"===ie?"<0.0.0-0":"*":ie&&ke?(Se&&(ce=0),me=0,">"===ie?(ie=">=",Se?(se=+se+1,ce=0,me=0):(ce=+ce+1,me=0)):"<="===ie&&(ie="<",Se?se=+se+1:ce=+ce+1),"<"===ie&&(ge="-0"),ne=`${ie+se}.${ce}.${me}${ge}`):Se?ne=`>=${se}.0.0${ge} <${+se+1}.0.0-0`:Me&&(ne=`>=${se}.${ce}.0${ge} <${se}.${+ce+1}.0-0`),fe("xRange return",ne),ne})},replaceStars=(G,Z)=>(fe("replaceStars",G,Z),G.trim().replace(ge[Ce.STAR],"")),replaceGTE0=(G,Z)=>(fe("replaceGTE0",G,Z),G.trim().replace(ge[Z.includePrerelease?Ce.GTE0PRE:Ce.GTE0],"")),hyphenReplace=G=>(Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe)=>`${ne=isX(ie)?"":isX(se)?`>=${ie}.0.0${G?"-0":""}`:isX(ce)?`>=${ie}.${se}.0${G?"-0":""}`:fe?">="+ne:`>=${ne}${G?"-0":""}`} ${ge=isX(Ce)?"":isX(Se)?`<${+Ce+1}.0.0-0`:isX(Me)?`<${Ce}.${+Se+1}.0-0`:ke?`<=${Ce}.${Se}.${Me}-${ke}`:G?`<${Ce}.${Se}.${+Me+1}-0`:"<="+ge}`.trim(),testSet=(G,Z,ne)=>{for(let ne=0;ne0){const ie=G[ne].semver;if(ie.major===Z.major&&ie.minor===Z.minor&&ie.patch===Z.patch)return!0}return!1}return!0}},7570:function(G,Z,ne){var ie=ne(7571);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7571:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.codicon-wrench-subaction {\r\n\topacity: 0.5;\r\n}\r\n\r\n@keyframes codicon-spin {\r\n\t100% {\r\n\t\ttransform:rotate(360deg);\r\n\t}\r\n}\r\n\r\n.codicon-sync.codicon-modifier-spin,\r\n.codicon-loading.codicon-modifier-spin,\r\n.codicon-gear.codicon-modifier-spin,\r\n.codicon-notebook-state-executing.codicon-modifier-spin {\r\n\t/* Use steps to throttle FPS to reduce CPU usage */\r\n\tanimation: codicon-spin 1.5s steps(30) infinite;\r\n}\r\n\r\n.codicon-modifier-disabled {\r\n\topacity: 0.4;\r\n}\r\n\r\n/* custom speed & easing for loading icon */\r\n.codicon-loading,\r\n.codicon-tree-item-loading::before {\r\n\tanimation-duration: 1s !important;\r\n\tanimation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;\r\n}\r\n",""]),G.exports=Z},7572:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-list {\r\n\tposition: relative;\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-list.mouse-support {\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n.monaco-list > .monaco-scrollable-element {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-list-rows {\r\n\tposition: relative;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-list.horizontal-scrolling .monaco-list-rows {\r\n\twidth: auto;\r\n\tmin-width: 100%;\r\n}\r\n\r\n.monaco-list-row {\r\n\tposition: absolute;\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-list.mouse-support .monaco-list-row {\r\n\tcursor: pointer;\r\n\ttouch-action: none;\r\n}\r\n\r\n/* for OS X ballistic scrolling */\r\n.monaco-list-row.scrolling {\r\n\tdisplay: none !important;\r\n}\r\n\r\n/* Focus */\r\n.monaco-list.element-focused,\r\n.monaco-list.selection-single,\r\n.monaco-list.selection-multiple {\r\n\toutline: 0 !important;\r\n}\r\n\r\n/* Dnd */\r\n.monaco-drag-image {\r\n\tdisplay: inline-block;\r\n\tpadding: 1px 7px;\r\n\tborder-radius: 10px;\r\n\tfont-size: 12px;\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n}\r\n\r\n/* Type filter */\r\n\r\n.monaco-list-type-filter {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tposition: absolute;\r\n\tborder-radius: 2px;\r\n\tpadding: 0px 3px;\r\n\tmax-width: calc(100% - 10px);\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\r\n\ttext-align: right;\r\n\tbox-sizing: border-box;\r\n\tcursor: all-scroll;\r\n\tfont-size: 13px;\r\n\tline-height: 18px;\r\n\theight: 20px;\r\n\tz-index: 1;\r\n\ttop: 4px;\r\n}\r\n\r\n.monaco-list-type-filter.dragging {\r\n\ttransition: top 0.2s, left 0.2s;\r\n}\r\n\r\n.monaco-list-type-filter.ne {\r\n\tright: 4px;\r\n}\r\n\r\n.monaco-list-type-filter.nw {\r\n\tleft: 4px;\r\n}\r\n\r\n.monaco-list-type-filter > .controls {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tbox-sizing: border-box;\r\n\ttransition: width 0.2s;\r\n\twidth: 0;\r\n}\r\n\r\n.monaco-list-type-filter.dragging > .controls,\r\n.monaco-list-type-filter:hover > .controls {\r\n\twidth: 36px;\r\n}\r\n\r\n.monaco-list-type-filter > .controls > * {\r\n\tborder: none;\r\n\tbox-sizing: border-box;\r\n\t-webkit-appearance: none;\r\n\t-moz-appearance: none;\r\n\tbackground: none;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tflex-shrink: 0;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-list-type-filter > .controls > .filter {\r\n\tmargin-left: 4px;\r\n}\r\n\r\n.monaco-list-type-filter-message {\r\n\tposition: absolute;\r\n\tbox-sizing: border-box;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tpadding: 40px 1em 1em 1em;\r\n\ttext-align: center;\r\n\twhite-space: normal;\r\n\topacity: 0.7;\r\n\tpointer-events: none;\r\n}\r\n\r\n.monaco-list-type-filter-message:empty {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Electron */\r\n\r\n.monaco-list-type-filter {\r\n\tcursor: grab;\r\n}\r\n\r\n.monaco-list-type-filter.dragging {\r\n\tcursor: grabbing;\r\n}\r\n",""]),G.exports=Z},7573:function(G,Z,ne){var ie=ne(7574);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7574:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* ---------- Icon label ---------- */\r\n\r\n.monaco-icon-label {\r\n\tdisplay: flex; /* required for icons support :before rule */\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n.monaco-icon-label::before {\r\n\r\n\t/* svg icons rendered as background image */\r\n\tbackground-size: 16px;\r\n\tbackground-position: left center;\r\n\tbackground-repeat: no-repeat;\r\n\tpadding-right: 6px;\r\n\twidth: 16px;\r\n\theight: 22px;\r\n\tline-height: inherit !important;\r\n\tdisplay: inline-block;\r\n\r\n\t/* fonts icons */\r\n\t-webkit-font-smoothing: antialiased;\r\n\t-moz-osx-font-smoothing: grayscale;\r\n\tvertical-align: top;\r\n\r\n\tflex-shrink: 0; /* fix for https://github.com/microsoft/vscode/issues/13787 */\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container {\r\n\tmin-width: 0;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\tflex: 1;\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\r\n\tcolor: inherit;\r\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\r\n\tmargin: 0 2px;\r\n\topacity: 0.5;\r\n}\r\n\r\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n\topacity: .7;\r\n\tmargin-left: 0.5em;\r\n\tfont-size: 0.9em;\r\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\r\n}\r\n\r\n.monaco-icon-label.nowrap > .monaco-icon-label-container > .monaco-icon-description-container > .label-description{\r\n\twhite-space: nowrap\r\n}\r\n\r\n.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n\topacity: .95;\r\n}\r\n\r\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n\tfont-style: italic;\r\n}\r\n\r\n.monaco-icon-label.deprecated {\r\n\ttext-decoration: line-through;\r\n\topacity: 0.66;\r\n}\r\n\r\n/* make sure apply italic font style to decorations as well */\r\n.monaco-icon-label.italic::after {\r\n\tfont-style: italic;\r\n}\r\n\r\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\r\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\r\n\ttext-decoration: line-through;\r\n}\r\n\r\n.monaco-icon-label::after {\r\n\topacity: 0.75;\r\n\tfont-size: 90%;\r\n\tfont-weight: 600;\r\n\tmargin: 0 16px 0 5px;\r\n\ttext-align: center;\r\n}\r\n\r\n/* make sure selection color wins when a label is being selected */\r\n.monaco-list:focus .selected .monaco-icon-label, /* list */\r\n.monaco-list:focus .selected .monaco-icon-label::after\r\n{\r\n\tcolor: inherit !important;\r\n}\r\n\r\n.monaco-list-row.focused.selected .label-description,\r\n.monaco-list-row.selected .label-description {\r\n\topacity: .8;\r\n}\r\n",""]),G.exports=Z},7575:function(G,Z,ne){var ie=ne(7576);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7576:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.colorpicker-widget {\r\n\theight: 190px;\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n.monaco-editor .colorpicker-hover:focus {\r\n\toutline: none;\r\n}\r\n\r\n\r\n/* Header */\r\n\r\n.colorpicker-header {\r\n\tdisplay: flex;\r\n\theight: 24px;\r\n\tposition: relative;\r\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r\n\tbackground-size: 9px 9px;\r\n\timage-rendering: pixelated;\r\n}\r\n\r\n.colorpicker-header .picked-color {\r\n\twidth: 216px;\r\n\ttext-align: center;\r\n\tline-height: 24px;\r\n\tcursor: pointer;\r\n\tcolor: white;\r\n\tflex: 1;\r\n\ttext-align: center;\r\n}\r\n\r\n.colorpicker-header .picked-color.light {\r\n\tcolor: black;\r\n}\r\n\r\n.colorpicker-header .original-color {\r\n\twidth: 74px;\r\n\tz-index: inherit;\r\n\tcursor: pointer;\r\n}\r\n\r\n\r\n/* Body */\r\n\r\n.colorpicker-body {\r\n\tdisplay: flex;\r\n\tpadding: 8px;\r\n\tposition: relative;\r\n}\r\n\r\n.colorpicker-body .saturation-wrap {\r\n\toverflow: hidden;\r\n\theight: 150px;\r\n\tposition: relative;\r\n\tmin-width: 220px;\r\n\tflex: 1;\r\n}\r\n\r\n.colorpicker-body .saturation-box {\r\n\theight: 150px;\r\n\tposition: absolute;\r\n}\r\n\r\n.colorpicker-body .saturation-selection {\r\n\twidth: 9px;\r\n\theight: 9px;\r\n\tmargin: -5px 0 0 -5px;\r\n\tborder: 1px solid rgb(255, 255, 255);\r\n\tborder-radius: 100%;\r\n\tbox-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\r\n\tposition: absolute;\r\n}\r\n\r\n.colorpicker-body .strip {\r\n\twidth: 25px;\r\n\theight: 150px;\r\n}\r\n\r\n.colorpicker-body .hue-strip {\r\n\tposition: relative;\r\n\tmargin-left: 8px;\r\n\tcursor: grab;\r\n\tbackground: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\r\n}\r\n\r\n.colorpicker-body .opacity-strip {\r\n\tposition: relative;\r\n\tmargin-left: 8px;\r\n\tcursor: grab;\r\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\r\n\tbackground-size: 9px 9px;\r\n\timage-rendering: pixelated;\r\n}\r\n\r\n.colorpicker-body .strip.grabbing {\r\n\tcursor: grabbing;\r\n}\r\n\r\n.colorpicker-body .slider {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: -2px;\r\n\twidth: calc(100% + 4px);\r\n\theight: 4px;\r\n\tbox-sizing: border-box;\r\n\tborder: 1px solid rgba(255, 255, 255, 0.71);\r\n\tbox-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\r\n}\r\n\r\n.colorpicker-body .strip .overlay {\r\n\theight: 150px;\r\n\tpointer-events: none;\r\n}\r\n',""]),G.exports=Z},7577:function(G,Z,ne){var ie=ne(7578);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7578:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .goto-definition-link {\r\n\ttext-decoration: underline;\r\n\tcursor: pointer;\r\n}",""]),G.exports=Z},7579:function(G,Z,ne){var ie=ne(7580);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},758:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},198:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"isInternalLink",(function(){return at})),ne.d(Z,"NavigationContext",(function(){return ze})),ne.d(Z,"NavigationProvider",(function(){return NavigationProvider}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=(ne(11),ne(23)),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(22),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),De.variables.contentColorDisabled),Re={children:fe.a.node,onClick:fe.a.func,prefix:fe.a.string},ze=se.a.createContext({});function NavigationProvider(G){var Z=G.children,ne=G.onClick,ie=G.prefix;return se.a.createElement(ze.Provider,{value:{onClick:ne,prefix:ie}},Z)}NavigationProvider.propTypes=Re;var $e=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne .indent-guide {\r\n\tdisplay: inline-block;\r\n\tbox-sizing: border-box;\r\n\theight: 100%;\r\n\tborder-left: 1px solid transparent;\r\n}\r\n\r\n.monaco-tl-indent > .indent-guide {\r\n\ttransition: border-color 0.1s linear;\r\n}\r\n\r\n.monaco-tl-twistie,\r\n.monaco-tl-contents {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-tl-twistie {\r\n\tfont-size: 10px;\r\n\ttext-align: right;\r\n\tpadding-right: 6px;\r\n\tflex-shrink: 0;\r\n\twidth: 16px;\r\n\tdisplay: flex !important;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\ttransform: translateX(3px);\r\n}\r\n\r\n.monaco-tl-contents {\r\n\tflex: 1;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-tl-twistie::before {\r\n\tborder-radius: 20px;\r\n}\r\n\r\n.monaco-tl-twistie.collapsed::before {\r\n\ttransform: rotate(-90deg);\r\n}\r\n\r\n.monaco-tl-twistie.codicon-tree-item-loading::before {\r\n\t/* Use steps to throttle FPS to reduce CPU usage */\r\n\tanimation: codicon-spin 1.25s steps(30) infinite;\r\n}\r\n",""]),G.exports=Z},7585:function(G,Z,ne){var ie=ne(7586);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7586:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-table {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tposition: relative;\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-table > .monaco-split-view2 {\r\n\tborder-bottom: 1px solid transparent;\r\n}\r\n\r\n.monaco-table > .monaco-list {\r\n\tflex: 1;\r\n}\r\n\r\n.monaco-table-tr {\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-table-th {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tfont-weight: bold;\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n.monaco-table-th,\r\n.monaco-table-td {\r\n\tbox-sizing: border-box;\r\n\tflex-shrink: 0;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\r\n\tcontent: "";\r\n\tposition: absolute;\r\n\tleft: calc(var(--sash-size) / 2);\r\n\twidth: 0;\r\n\tborder-left: 1px solid transparent;\r\n}\r\n\r\n.monaco-table > .monaco-split-view2,\r\n.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\r\n\ttransition: border-color 0.2s ease-out;\r\n}\r\n/*\r\n.monaco-table:hover > .monaco-split-view2,\r\n.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\r\n\tborder-color: rgba(204, 204, 204, 0.2);\r\n} */\r\n',""]),G.exports=Z},7587:function(G,Z,ne){var ie=ne(7588);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7588:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-split-view2 {\r\n\tposition: relative;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-split-view2 > .sash-container {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tpointer-events: none;\r\n}\r\n\r\n.monaco-split-view2 > .sash-container > .monaco-sash {\r\n\tpointer-events: initial;\r\n}\r\n\r\n.monaco-split-view2 > .monaco-scrollable-element {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\twhite-space: nowrap;\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view {\r\n\twhite-space: initial;\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view:not(.visible) {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-split-view2.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view {\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-split-view2.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-split-view2.separator-border > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\r\n\tcontent: ' ';\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tz-index: 5;\r\n\tpointer-events: none;\r\n\tbackground-color: var(--separator-border);\r\n}\r\n\r\n.monaco-split-view2.separator-border.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\r\n\theight: 100%;\r\n\twidth: 1px;\r\n}\r\n\r\n.monaco-split-view2.separator-border.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\r\n\theight: 1px;\r\n\twidth: 100%;\r\n}\r\n",""]),G.exports=Z},7589:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"ContextMenuController",(function(){return Ie}));var ie=ne(4),se=ne(6),ce=ne(196),fe=ne(10),me=ne(14),ge=ne(23),Ce=ne(92),Se=ne(26),Me=ne(341),ke=ne(175),xe=ne(536),De=ne(46),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ie=class ContextMenuController{constructor(G,Z,ne,ie,ce,me){this._contextMenuService=Z,this._contextViewService=ne,this._contextKeyService=ie,this._keybindingService=ce,this._menuService=me,this._toDispose=new fe.b,this._contextMenuIsBeingShownCount=0,this._editor=G,this._toDispose.add(this._editor.onContextMenu(G=>this._onContextMenu(G))),this._toDispose.add(this._editor.onMouseWheel(G=>{if(this._contextMenuIsBeingShownCount>0){const Z=this._contextViewService.getContextViewElement(),ne=G.srcElement;ne.shadowRoot&&se.F(Z)===ne.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(G=>{58===G.keyCode&&(G.preventDefault(),G.stopPropagation(),this.showContextMenu())}))}static get(G){return G.getContribution(ContextMenuController.ID)}_onContextMenu(G){if(!this._editor.hasModel())return;if(!this._editor.getOption(18))return this._editor.focus(),void(G.target.position&&!this._editor.getSelection().containsPosition(G.target.position)&&this._editor.setPosition(G.target.position));if(12===G.target.type)return;if(G.event.preventDefault(),6!==G.target.type&&7!==G.target.type&&1!==G.target.type)return;if(this._editor.focus(),G.target.position){let Z=!1;for(const ne of this._editor.getSelections())if(ne.containsPosition(G.target.position)){Z=!0;break}Z||this._editor.setPosition(G.target.position)}let Z=null;1!==G.target.type&&(Z={x:G.event.posx-1,width:2,y:G.event.posy-1,height:2}),this.showContextMenu(Z)}showContextMenu(G){if(!this._editor.getOption(18))return;if(!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();const Z=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?Ce.b.SimpleEditorContext:Ce.b.EditorContext);Z.length>0&&this._doShowContextMenu(Z,G)}_getMenuActions(G,Z){const ne=[],ie=this._menuService.createMenu(Z,this._contextKeyService),se=ie.getActions({arg:G.uri});ie.dispose();for(let Z of se){const[,ie]=Z;let se=0;for(const Z of ie)if(Z instanceof Ce.e){const ie=this._getMenuActions(G,Z.item.submenu);ie.length>0&&(ne.push(new ce.e(Z.id,Z.label,ie)),se++)}else ne.push(Z),se++;se&&ne.push(new ce.d)}return ne.length&&ne.pop(),ne}_doShowContextMenu(G,Z=null){if(!this._editor.hasModel())return;const ne=this._editor.getOption(51);if(this._editor.updateOptions({hover:{enabled:!1}}),!Z){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const G=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),ne=se.D(this._editor.getDomNode()),ie=ne.left+G.left,ce=ne.top+G.top+G.height;Z={x:ie,y:ce}}const ie=this._editor.getOption(113)&&!De.c;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:ie?this._editor.getDomNode():void 0,getAnchor:()=>Z,getActions:()=>G,getActionViewItem:G=>{const Z=this._keybindingFor(G);if(Z)return new xe.a(G,G,{label:!0,keybinding:Z.getLabel(),isMenu:!0});const ne=G;return"function"==typeof ne.getActionViewItem?ne.getActionViewItem():new xe.a(G,G,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:G=>this._keybindingFor(G),onHide:G=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:ne})}})}_keybindingFor(G){return this._keybindingService.lookupKeybinding(G.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Ie.ID="editor.contrib.contextmenu",Ie=__decorate([__param(1,Me.a),__param(2,Me.b),__param(3,Se.b),__param(4,ke.a),__param(5,Ce.a)],Ie);class ShowContextMenu extends me.b{constructor(){super({id:"editor.action.showContextMenu",label:ie.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:ge.a.textInputFocus,primary:1092,weight:100}})}run(G,Z){Ie.get(Z).showContextMenu()}}Object(me.l)(Ie.ID,Ie),Object(me.j)(ShowContextMenu)},759:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(2009)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},7590:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CursorUndoRedoController",(function(){return CursorUndoRedoController})),ne.d(Z,"CursorUndo",(function(){return CursorUndo})),ne.d(Z,"CursorRedo",(function(){return CursorRedo}));var ie=ne(4),se=ne(10),ce=ne(14),fe=ne(23);class CursorState{constructor(G){this.selections=G}equals(G){const Z=this.selections.length;if(Z!==G.selections.length)return!1;for(let ne=0;ne{this._undoStack=[],this._redoStack=[]})),this._register(G.onDidChangeModelContent(G=>{this._undoStack=[],this._redoStack=[]})),this._register(G.onDidChangeCursorSelection(Z=>{if(this._isCursorUndoRedo)return;if(!Z.oldSelections)return;if(Z.oldModelVersionId!==Z.modelVersionId)return;const ne=new CursorState(Z.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(ne)||(this._undoStack.push(new StackElement(ne,G.getScrollTop(),G.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(G){return G.getContribution(CursorUndoRedoController.ID)}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new StackElement(new CursorState(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new StackElement(new CursorState(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(G){this._isCursorUndoRedo=!0,this._editor.setSelections(G.cursorState.selections),this._editor.setScrollPosition({scrollTop:G.scrollTop,scrollLeft:G.scrollLeft}),this._isCursorUndoRedo=!1}}CursorUndoRedoController.ID="editor.contrib.cursorUndoRedoController";class CursorUndo extends ce.b{constructor(){super({id:"cursorUndo",label:ie.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:fe.a.textInputFocus,primary:2099,weight:100}})}run(G,Z,ne){CursorUndoRedoController.get(Z).cursorUndo()}}class CursorRedo extends ce.b{constructor(){super({id:"cursorRedo",label:ie.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(G,Z,ne){CursorUndoRedoController.get(Z).cursorRedo()}}Object(ce.l)(CursorUndoRedoController.ID,CursorUndoRedoController),Object(ce.j)(CursorUndo),Object(ce.j)(CursorRedo)},7591:function(G,Z,ne){var ie=ne(7592);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7592:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor.vs .dnd-target {\r\n\tborder-right: 2px dotted black;\r\n\tcolor: white; /* opposite of black */\r\n}\r\n.monaco-editor.vs-dark .dnd-target {\r\n\tborder-right: 2px dotted #AEAFAD;\r\n\tcolor: #51504f; /* opposite of #AEAFAD */\r\n}\r\n.monaco-editor.hc-black .dnd-target {\r\n\tborder-right: 2px dotted #fff;\r\n\tcolor: #000; /* opposite of #fff */\r\n}\r\n\r\n.monaco-editor.mouse-default .view-lines,\r\n.monaco-editor.vs-dark.mac.mouse-default .view-lines,\r\n.monaco-editor.hc-black.mac.mouse-default .view-lines {\r\n\tcursor: default;\r\n}\r\n.monaco-editor.mouse-copy .view-lines,\r\n.monaco-editor.vs-dark.mac.mouse-copy .view-lines,\r\n.monaco-editor.hc-black.mac.mouse-copy .view-lines {\r\n\tcursor: copy;\r\n}",""]),G.exports=Z},7593:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"getDocumentSymbols",(function(){return getDocumentSymbols}));var ie=ne(94),se=ne(187),ce=ne(103),fe=ne(417),me=ne(2111),ge=ne(98),Ce=ne(54),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function getDocumentSymbols(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){const ie=yield me.a.create(G,ne);return Z?ie.asListOfDocumentSymbols():ie.getTopLevelSymbols()}))}ge.a.registerCommand("_executeDocumentSymbolProvider",(function(G,...Z){return __awaiter(this,void 0,void 0,(function*(){const[ne]=Z;Object(Ce.c)(ie.a.isUri(ne));const me=G.get(se.a).getModel(ne);if(me)return getDocumentSymbols(me,!1,ce.a.None);const ge=yield G.get(fe.a).createModelReference(ne);try{return yield getDocumentSymbols(ge.object.textEditorModel,!1,ce.a.None)}finally{ge.dispose()}}))}))},7594:function(G,Z,ne){var ie=ne(7595);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7595:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-custom-checkbox {\r\n\tmargin-left: 2px;\r\n\tfloat: left;\r\n\tcursor: pointer;\r\n\toverflow: hidden;\r\n\topacity: 0.7;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tborder: 1px solid transparent;\r\n\tpadding: 1px;\r\n\tbox-sizing:\tborder-box;\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n.monaco-custom-checkbox:hover,\r\n.monaco-custom-checkbox.checked {\r\n\topacity: 1;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox {\r\n\tbackground: none;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox:hover {\r\n\tbackground: none;\r\n}\r\n\r\n.monaco-custom-checkbox.monaco-simple-checkbox {\r\n\theight: 18px;\r\n\twidth: 18px;\r\n\tborder: 1px solid transparent;\r\n\tborder-radius: 3px;\r\n\tmargin-right: 9px;\r\n\tmargin-left: 0px;\r\n\tpadding: 0px;\r\n\topacity: 1;\r\n\tbackground-size: 16px !important;\r\n}\r\n\r\n/* hide check when unchecked */\r\n.monaco-custom-checkbox.monaco-simple-checkbox:not(.checked)::before {\r\n\tvisibility: hidden;\r\n}\r\n",""]),G.exports=Z},7596:function(G,Z,ne){var ie=ne(7597);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7597:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Find widget */\r\n.monaco-editor .find-widget {\r\n\tposition: absolute;\r\n\tz-index: 35;\r\n\theight: 33px;\r\n\toverflow: hidden;\r\n\tline-height: 19px;\r\n\ttransition: transform 200ms linear;\r\n\tpadding: 0 4px;\r\n\tbox-sizing: border-box;\r\n\ttransform: translateY(calc(-100% - 10px)); /* shadow (10px) */\r\n}\r\n\r\n.monaco-editor .find-widget textarea {\r\n\tmargin: 0px;\r\n}\r\n\r\n.monaco-editor .find-widget.hiddenEditor {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Find widget when replace is toggled on */\r\n.monaco-editor .find-widget.replaceToggled > .replace-part {\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-editor .find-widget.visible {\r\n\ttransform: translateY(0);\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {\r\n\toutline: 1px solid -webkit-focus-ring-color;\r\n\toutline-offset: -1px;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-inputbox .input {\r\n\tbackground-color: transparent;\r\n\tmin-height: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .input {\r\n\tfont-size: 13px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part,\r\n.monaco-editor .find-widget > .replace-part {\r\n\tmargin: 4px 0 0 17px;\r\n\tfont-size: 12px;\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\r\n\tmin-height: 25px;\r\n}\r\n\r\n\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {\r\n\tpadding-right: 22px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .input,\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .mirror,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .input,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {\r\n\tpadding-top: 2px;\r\n\tpadding-bottom: 2px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .find-actions {\r\n\theight: 25px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part .replace-actions {\r\n\theight: 25px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput {\r\n\tvertical-align: middle;\r\n\tdisplay: flex;\r\n\tflex:1;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {\r\n\t/* Make sure textarea inherits the width correctly */\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {\r\n\t/* Hide vertical scrollbar */\r\n\topacity: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .matchesCount {\r\n\tdisplay: flex;\r\n\tflex: initial;\r\n\tmargin: 0 0 0 3px;\r\n\tpadding: 2px 0 0 2px;\r\n\theight: 25px;\r\n\tvertical-align: middle;\r\n\tbox-sizing: border-box;\r\n\ttext-align: center;\r\n\tline-height: 23px;\r\n}\r\n\r\n.monaco-editor .find-widget .button {\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tdisplay: flex;\r\n\tflex: initial;\r\n\tmargin-left: 3px;\r\n\tbackground-position: center center;\r\n\tbackground-repeat: no-repeat;\r\n\tcursor: pointer;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}\r\n\r\n.monaco-editor .find-widget .button.left {\r\n\tmargin-left: 0;\r\n\tmargin-right: 3px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.wide {\r\n\twidth: auto;\r\n\tpadding: 1px 6px;\r\n\ttop: -1px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 3px;\r\n\twidth: 18px;\r\n\theight: 100%;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle.disabled {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .find-widget .disabled {\r\n\topacity: 0.3;\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part > .monaco-findInput {\r\n\tposition: relative;\r\n\tdisplay: flex;\r\n\tvertical-align: middle;\r\n\tflex: auto;\r\n\tflex-grow: 0;\r\n\tflex-shrink: 0;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {\r\n\tposition: absolute;\r\n\ttop: 3px;\r\n\tright: 2px;\r\n}\r\n\r\n/* REDUCED */\r\n.monaco-editor .find-widget.reduced-find-widget .matchesCount {\r\n\tdisplay:none;\r\n}\r\n\r\n/* NARROW (SMALLER THAN REDUCED) */\r\n.monaco-editor .find-widget.narrow-find-widget {\r\n\tmax-width: 257px !important;\r\n}\r\n\r\n/* COLLAPSED (SMALLER THAN NARROW) */\r\n.monaco-editor .find-widget.collapsed-find-widget {\r\n\tmax-width: 170px !important;\r\n}\r\n\r\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\r\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\r\n\tdisplay:none;\r\n}\r\n\r\n.monaco-editor .findMatch {\r\n\tanimation-duration: 0;\r\n\tanimation-name: inherit !important;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-sash {\r\n\tleft: 0 !important;\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .button:before {\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\tleft: 2px;\r\n}\r\n",""]),G.exports=Z},7598:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- Find input ---------- */\r\n\r\n.monaco-findInput {\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-findInput .monaco-inputbox {\r\n\tfont-size: 13px;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-findInput > .controls {\r\n\tposition: absolute;\r\n\ttop: 3px;\r\n\tright: 2px;\r\n}\r\n\r\n.vs .monaco-findInput.disabled {\r\n\tbackground-color: #E1E1E1;\r\n}\r\n\r\n/* Theming */\r\n.vs-dark .monaco-findInput.disabled {\r\n\tbackground-color: #333;\r\n}\r\n\r\n/* Highlighting */\r\n.monaco-findInput.highlight-0 .controls {\r\n\tanimation: monaco-findInput-highlight-0 100ms linear 0s;\r\n}\r\n.monaco-findInput.highlight-1 .controls {\r\n\tanimation: monaco-findInput-highlight-1 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-0 .controls,\r\n.vs-dark .monaco-findInput.highlight-0 .controls {\r\n\tanimation: monaco-findInput-highlight-dark-0 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-1 .controls,\r\n.vs-dark .monaco-findInput.highlight-1 .controls {\r\n\tanimation: monaco-findInput-highlight-dark-1 100ms linear 0s;\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-0 {\r\n\t0% { background: rgba(253, 255, 0, 0.8); }\r\n\t100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-1 {\r\n\t0% { background: rgba(253, 255, 0, 0.8); }\r\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n\t99% { background: transparent; }\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-dark-0 {\r\n\t0% { background: rgba(255, 255, 255, 0.44); }\r\n\t100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-dark-1 {\r\n\t0% { background: rgba(255, 255, 255, 0.44); }\r\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n\t99% { background: transparent; }\r\n}",""]),G.exports=Z},7599:function(G,Z,ne){var ie=ne(7600);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},760:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},7600:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-inputbox {\r\n\tposition: relative;\r\n\tdisplay: block;\r\n\tpadding: 0;\r\n\tbox-sizing:\tborder-box;\r\n\r\n\t/* Customizable */\r\n\tfont-size: inherit;\r\n}\r\n\r\n.monaco-inputbox.idle {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > .input,\r\n.monaco-inputbox > .ibwrapper > .mirror {\r\n\r\n\t/* Customizable */\r\n\tpadding: 4px;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper {\r\n\tposition: relative;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > .input {\r\n\tdisplay: inline-block;\r\n\tbox-sizing:\tborder-box;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tline-height: inherit;\r\n\tborder: none;\r\n\tfont-family: inherit;\r\n\tfont-size: inherit;\r\n\tresize: none;\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > input {\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > textarea.input {\r\n\tdisplay: block;\r\n\t-ms-overflow-style: none; /* IE 10+: hide scrollbars */\r\n\tscrollbar-width: none; /* Firefox: hide scrollbars */\r\n\toutline: none;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > textarea.input::-webkit-scrollbar {\r\n\tdisplay: none; /* Chrome + Safari: hide scrollbar */\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > textarea.input.empty {\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-inputbox > .ibwrapper > .mirror {\r\n\tposition: absolute;\r\n\tdisplay: inline-block;\r\n\twidth: 100%;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbox-sizing: border-box;\r\n\twhite-space: pre-wrap;\r\n\tvisibility: hidden;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n/* Context view */\r\n\r\n.monaco-inputbox-container {\r\n\ttext-align: right;\r\n}\r\n\r\n.monaco-inputbox-container .monaco-inputbox-message {\r\n\tdisplay: inline-block;\r\n\toverflow: hidden;\r\n\ttext-align: left;\r\n\twidth: 100%;\r\n\tbox-sizing:\tborder-box;\r\n\tpadding: 0.4em;\r\n\tfont-size: 12px;\r\n\tline-height: 17px;\r\n\tmargin-top: -1px;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n/* Action bar support */\r\n.monaco-inputbox .monaco-action-bar {\r\n\tposition: absolute;\r\n\tright: 2px;\r\n\ttop: 4px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item {\r\n\tmargin-left: 2px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item .codicon {\r\n\tbackground-repeat: no-repeat;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}\r\n",""]),G.exports=Z},7601:function(G,Z,ne){var ie=ne(7602);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7602:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .codicon-folding-expanded,\r\n.monaco-editor .margin-view-overlays .codicon-folding-collapsed {\r\n\tcursor: pointer;\r\n\topacity: 0;\r\n\ttransition: opacity 0.5s;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n\tfont-size: 140%;\r\n\tmargin-left: 2px;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays:hover .codicon,\r\n.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,\r\n.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons {\r\n\topacity: 1;\r\n}\r\n\r\n.monaco-editor .inline-folded:after {\r\n\tcolor: grey;\r\n\tmargin: 0.1em 0.2em 0 0.2em;\r\n\tcontent: "⋯";\r\n\tdisplay: inline;\r\n\tline-height: 1em;\r\n\tcursor: pointer;\r\n}\r\n',""]),G.exports=Z},7603:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(4),se=ne(14),ce=ne(648);class EditorFontZoomIn extends se.b{constructor(){super({id:"editor.action.fontZoomIn",label:ie.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(G,Z){ce.a.setZoomLevel(ce.a.getZoomLevel()+1)}}class EditorFontZoomOut extends se.b{constructor(){super({id:"editor.action.fontZoomOut",label:ie.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(G,Z){ce.a.setZoomLevel(ce.a.getZoomLevel()-1)}}class EditorFontZoomReset extends se.b{constructor(){super({id:"editor.action.fontZoomReset",label:ie.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(G,Z){ce.a.setZoomLevel(0)}}Object(se.j)(EditorFontZoomIn),Object(se.j)(EditorFontZoomOut),Object(se.j)(EditorFontZoomReset)},7604:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(69),se=ne(103),ce=ne(165),fe=ne(10),me=ne(14),ge=ne(127),Ce=ne(577),Se=ne(12),Me=ne(23),ke=ne(35),xe=ne(418),De=ne(1007),Ie=ne(1677),Re=ne(4),ze=ne(98),$e=ne(26),Je=ne(60),it=ne(51),ot=ne(331),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let at=class FormatOnType{constructor(G,Z){this._workerService=Z,this._callOnDispose=new fe.b,this._callOnModel=new fe.b,this._editor=G,this._callOnDispose.add(G.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(G.onDidChangeModel(()=>this._update())),this._callOnDispose.add(G.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(ke.x.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!this._editor.getOption(46))return;if(!this._editor.hasModel())return;const G=this._editor.getModel(),[Z]=ke.x.ordered(G);if(!Z||!Z.autoFormatTriggerCharacters)return;let ne=new Ce.b;for(let G of Z.autoFormatTriggerCharacters)ne.add(G.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(G=>{let Z=G.charCodeAt(G.length-1);ne.has(Z)&&this._trigger(String.fromCharCode(Z))}))}_trigger(G){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;const Z=this._editor.getModel(),ne=this._editor.getPosition();let se=!1;const ce=this._editor.onDidChangeModelContent(G=>{if(G.isFlush)return se=!0,void ce.dispose();for(let Z=0,ie=G.changes.length;Z{ce.dispose(),se||Object(ie.n)(G)&&(Ie.a.execute(this._editor,G,!0),Object(De.b)(G))},G=>{throw ce.dispose(),G})}};at.ID="editor.contrib.autoFormat",at=__decorate([__param(1,xe.a)],at);let st=class FormatOnPaste{constructor(G,Z){this.editor=G,this._instantiationService=Z,this._callOnDispose=new fe.b,this._callOnModel=new fe.b,this._callOnDispose.add(G.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(G.onDidChangeModel(()=>this._update())),this._callOnDispose.add(G.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(ke.j.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(45)&&this.editor.hasModel()&&ke.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:G})=>this._trigger(G)))}_trigger(G){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(De.c,this.editor,G,2,ot.b.None,se.a.None).catch(it.e))}};st.ID="editor.contrib.formatOnPaste",st=__decorate([__param(1,Je.a)],st);class FormatDocumentAction extends me.b{constructor(){super({id:"editor.action.formatDocument",label:Re.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:$e.a.and(Me.a.notInCompositeEditor,Me.a.writable,Me.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:Me.a.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(Z.hasModel()){const ne=G.get(Je.a),ie=G.get(ot.a);yield ie.showWhile(ne.invokeFunction(De.d,Z,1,ot.b.None,se.a.None),250)}}))}}class FormatSelectionAction extends me.b{constructor(){super({id:"editor.action.formatSelection",label:Re.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:$e.a.and(Me.a.writable,Me.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:Me.a.editorTextFocus,primary:Object(ce.a)(2089,2084),weight:100},contextMenuOpts:{when:Me.a.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(!Z.hasModel())return;const ne=G.get(Je.a),ie=Z.getModel(),ce=Z.getSelections().map(G=>G.isEmpty()?new Se.a(G.startLineNumber,1,G.startLineNumber,ie.getLineMaxColumn(G.startLineNumber)):G),fe=G.get(ot.a);yield fe.showWhile(ne.invokeFunction(De.c,Z,ce,1,ot.b.None,se.a.None),250)}))}}Object(me.l)(at.ID,at),Object(me.l)(st.ID,st),Object(me.j)(FormatDocumentAction),Object(me.j)(FormatSelectionAction),ze.a.registerCommand("editor.action.format",G=>__awaiter(void 0,void 0,void 0,(function*(){const Z=G.get(ge.a).getFocusedCodeEditor();if(!Z||!Z.hasModel())return;const ne=G.get(ze.b);Z.getSelection().isEmpty()?yield ne.executeCommand("editor.action.formatDocument"):yield ne.executeCommand("editor.action.formatSelection")})))},7605:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"IPadShowKeyboard",(function(){return IPadShowKeyboard}));ne(7606);var ie=ne(6),se=ne(10),ce=ne(14),fe=ne(46);class IPadShowKeyboard extends se.a{constructor(G){super(),this.editor=G,this.widget=null,fe.c&&(this._register(G.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const G=!this.editor.getOption(79);!this.widget&&G?this.widget=new ShowKeyboardWidget(this.editor):this.widget&&!G&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}IPadShowKeyboard.ID="editor.contrib.iPadShowKeyboard";class ShowKeyboardWidget extends se.a{constructor(G){super(),this.editor=G,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(ie.i(this._domNode,"touchstart",G=>{this.editor.focus()})),this._register(ie.i(this._domNode,"focus",G=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return ShowKeyboardWidget.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}ShowKeyboardWidget.ID="editor.contrib.ShowKeyboardWidget",Object(ce.l)(IPadShowKeyboard.ID,IPadShowKeyboard)},7606:function(G,Z,ne){var ie=ne(7607);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7607:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .iPadShowKeyboard {\r\n\twidth: 58px;\r\n\tmin-width: 0;\r\n\theight: 36px;\r\n\tmin-height: 0;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tposition: absolute;\r\n\tresize: none;\r\n\toverflow: hidden;\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiM0MjQyNDIiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r\n\tborder: 4px solid #F6F6F6;\r\n\tborder-radius: 4px;\r\n}\r\n\r\n.monaco-editor.vs-dark .iPadShowKeyboard {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00OC4wMzY0IDQuMDEwNDJINC4wMDc3OUw0LjAwNzc5IDMyLjAyODZINDguMDM2NFY0LjAxMDQyWk00LjAwNzc5IDAuMDA3ODEyNUMxLjc5NzIxIDAuMDA3ODEyNSAwLjAwNTE4Nzk5IDEuNzk5ODQgMC4wMDUxODc5OSA0LjAxMDQyVjMyLjAyODZDMC4wMDUxODc5OSAzNC4yMzkyIDEuNzk3MjEgMzYuMDMxMiA0LjAwNzc5IDM2LjAzMTJINDguMDM2NEM1MC4yNDcgMzYuMDMxMiA1Mi4wMzkgMzQuMjM5MiA1Mi4wMzkgMzIuMDI4NlY0LjAxMDQyQzUyLjAzOSAxLjc5OTg0IDUwLjI0NyAwLjAwNzgxMjUgNDguMDM2NCAwLjAwNzgxMjVINC4wMDc3OVpNOC4wMTA0MiA4LjAxMzAySDEyLjAxM1YxMi4wMTU2SDguMDEwNDJWOC4wMTMwMlpNMjAuMDE4MiA4LjAxMzAySDE2LjAxNTZWMTIuMDE1NkgyMC4wMTgyVjguMDEzMDJaTTI0LjAyMDggOC4wMTMwMkgyOC4wMjM0VjEyLjAxNTZIMjQuMDIwOFY4LjAxMzAyWk0zNi4wMjg2IDguMDEzMDJIMzIuMDI2VjEyLjAxNTZIMzYuMDI4NlY4LjAxMzAyWk00MC4wMzEyIDguMDEzMDJINDQuMDMzOVYxMi4wMTU2SDQwLjAzMTJWOC4wMTMwMlpNMTYuMDE1NiAxNi4wMTgySDguMDEwNDJWMjAuMDIwOEgxNi4wMTU2VjE2LjAxODJaTTIwLjAxODIgMTYuMDE4MkgyNC4wMjA4VjIwLjAyMDhIMjAuMDE4MlYxNi4wMTgyWk0zMi4wMjYgMTYuMDE4MkgyOC4wMjM0VjIwLjAyMDhIMzIuMDI2VjE2LjAxODJaTTQ0LjAzMzkgMTYuMDE4MlYyMC4wMjA4SDM2LjAyODZWMTYuMDE4Mkg0NC4wMzM5Wk0xMi4wMTMgMjQuMDIzNEg4LjAxMDQyVjI4LjAyNkgxMi4wMTNWMjQuMDIzNFpNMTYuMDE1NiAyNC4wMjM0SDM2LjAyODZWMjguMDI2SDE2LjAxNTZWMjQuMDIzNFpNNDQuMDMzOSAyNC4wMjM0SDQwLjAzMTJWMjguMDI2SDQ0LjAzMzlWMjQuMDIzNFoiIGZpbGw9IiNDNUM1QzUiLz4NCjwvZz4NCjxkZWZzPg0KPGNsaXBQYXRoIGlkPSJjbGlwMCI+DQo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+DQo8L2NsaXBQYXRoPg0KPC9kZWZzPg0KPC9zdmc+DQo=") center center no-repeat;\r\n\tborder: 4px solid #252526;\r\n}',""]),G.exports=Z},7608:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"getReindentEditOperations",(function(){return getReindentEditOperations})),ne.d(Z,"IndentationToSpacesAction",(function(){return IndentationToSpacesAction})),ne.d(Z,"IndentationToTabsAction",(function(){return IndentationToTabsAction})),ne.d(Z,"ChangeIndentationSizeAction",(function(){return ChangeIndentationSizeAction})),ne.d(Z,"IndentUsingTabs",(function(){return IndentUsingTabs})),ne.d(Z,"IndentUsingSpaces",(function(){return IndentUsingSpaces})),ne.d(Z,"DetectIndentation",(function(){return DetectIndentation})),ne.d(Z,"ReindentLinesAction",(function(){return ReindentLinesAction})),ne.d(Z,"ReindentSelectedLinesAction",(function(){return ReindentSelectedLinesAction})),ne.d(Z,"AutoIndentOnPasteCommand",(function(){return AutoIndentOnPasteCommand})),ne.d(Z,"AutoIndentOnPaste",(function(){return AutoIndentOnPaste})),ne.d(Z,"IndentationToSpacesCommand",(function(){return IndentationToSpacesCommand})),ne.d(Z,"IndentationToTabsCommand",(function(){return IndentationToTabsCommand}));var ie=ne(4),se=ne(10),ce=ne(27),fe=ne(14),me=ne(613),ge=ne(221),Ce=ne(12),Se=ne(80),Me=ne(23),ke=ne(117),xe=ne(122),De=ne(187),Ie=ne(382),Re=ne(493);function getReindentEditOperations(G,Z,ne,ie){if(1===G.getLineCount()&&1===G.getLineMaxColumn(1))return[];let se=xe.a.getIndentationRules(G.getLanguageIdentifier().id);if(!se)return[];for(ne=Math.min(ne,G.getLineCount());Z<=ne&&se.unIndentedLinePattern;){let ne=G.getLineContent(Z);if(!se.unIndentedLinePattern.test(ne))break;Z++}if(Z>ne-1)return[];const{tabSize:fe,indentSize:Ce,insertSpaces:Me}=G.getOptions(),shiftIndent=(G,Z)=>(Z=Z||1,me.a.shiftIndent(G,G.length+Z,fe,Ce,Me)),unshiftIndent=(G,Z)=>(Z=Z||1,me.a.unshiftIndent(G,G.length+Z,fe,Ce,Me));let De,Ie=[],Re=G.getLineContent(Z),ze=Re;if(null!=ie){De=ie;let G=ce.y(Re);ze=De+Re.substring(G.length),se.decreaseIndentPattern&&se.decreaseIndentPattern.test(ze)&&(De=unshiftIndent(De),ze=De+Re.substring(G.length)),Re!==ze&&Ie.push(ge.a.replaceMove(new Se.a(Z,1,Z,G.length+1),ke.b.normalizeIndentation(De,Ce,Me)))}else De=ce.y(Re);let $e=De;se.increaseIndentPattern&&se.increaseIndentPattern.test(ze)?($e=shiftIndent($e),De=shiftIndent(De)):se.indentNextLinePattern&&se.indentNextLinePattern.test(ze)&&($e=shiftIndent($e));for(let ie=++Z;ie<=ne;ie++){let Z=G.getLineContent(ie),ne=ce.y(Z),fe=$e+Z.substring(ne.length);se.decreaseIndentPattern&&se.decreaseIndentPattern.test(fe)&&($e=unshiftIndent($e),De=unshiftIndent(De)),ne!==$e&&Ie.push(ge.a.replaceMove(new Se.a(ie,1,ie,ne.length+1),ke.b.normalizeIndentation($e,Ce,Me))),se.unIndentedLinePattern&&se.unIndentedLinePattern.test(Z)||(se.increaseIndentPattern&&se.increaseIndentPattern.test(fe)?(De=shiftIndent(De),$e=De):$e=se.indentNextLinePattern&&se.indentNextLinePattern.test(fe)?shiftIndent($e):De)}return Ie}class IndentationToSpacesAction extends fe.b{constructor(){super({id:IndentationToSpacesAction.ID,label:ie.a("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:Me.a.writable})}run(G,Z){let ne=Z.getModel();if(!ne)return;let ie=ne.getOptions(),se=Z.getSelection();if(!se)return;const ce=new IndentationToSpacesCommand(se,ie.tabSize);Z.pushUndoStop(),Z.executeCommands(this.id,[ce]),Z.pushUndoStop(),ne.updateOptions({insertSpaces:!0})}}IndentationToSpacesAction.ID="editor.action.indentationToSpaces";class IndentationToTabsAction extends fe.b{constructor(){super({id:IndentationToTabsAction.ID,label:ie.a("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:Me.a.writable})}run(G,Z){let ne=Z.getModel();if(!ne)return;let ie=ne.getOptions(),se=Z.getSelection();if(!se)return;const ce=new IndentationToTabsCommand(se,ie.tabSize);Z.pushUndoStop(),Z.executeCommands(this.id,[ce]),Z.pushUndoStop(),ne.updateOptions({insertSpaces:!1})}}IndentationToTabsAction.ID="editor.action.indentationToTabs";class ChangeIndentationSizeAction extends fe.b{constructor(G,Z){super(Z),this.insertSpaces=G}run(G,Z){const ne=G.get(Re.a),se=G.get(De.a);let ce=Z.getModel();if(!ce)return;let fe=se.getCreationOptions(ce.getLanguageIdentifier().language,ce.uri,ce.isForSimpleWidget);const me=[1,2,3,4,5,6,7,8].map(G=>({id:G.toString(),label:G.toString(),description:G===fe.tabSize?ie.a("configuredTabSize","Configured Tab Size"):void 0})),ge=Math.min(ce.getOptions().tabSize-1,7);setTimeout(()=>{ne.pick(me,{placeHolder:ie.a({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:me[ge]}).then(G=>{G&&ce&&!ce.isDisposed()&&ce.updateOptions({tabSize:parseInt(G.label,10),insertSpaces:this.insertSpaces})})},50)}}class IndentUsingTabs extends ChangeIndentationSizeAction{constructor(){super(!1,{id:IndentUsingTabs.ID,label:ie.a("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}IndentUsingTabs.ID="editor.action.indentUsingTabs";class IndentUsingSpaces extends ChangeIndentationSizeAction{constructor(){super(!0,{id:IndentUsingSpaces.ID,label:ie.a("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}IndentUsingSpaces.ID="editor.action.indentUsingSpaces";class DetectIndentation extends fe.b{constructor(){super({id:DetectIndentation.ID,label:ie.a("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(G,Z){const ne=G.get(De.a);let ie=Z.getModel();if(!ie)return;let se=ne.getCreationOptions(ie.getLanguageIdentifier().language,ie.uri,ie.isForSimpleWidget);ie.detectIndentation(se.insertSpaces,se.tabSize)}}DetectIndentation.ID="editor.action.detectIndentation";class ReindentLinesAction extends fe.b{constructor(){super({id:"editor.action.reindentlines",label:ie.a("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:Me.a.writable})}run(G,Z){let ne=Z.getModel();if(!ne)return;let ie=getReindentEditOperations(ne,1,ne.getLineCount());ie.length>0&&(Z.pushUndoStop(),Z.executeEdits(this.id,ie),Z.pushUndoStop())}}class ReindentSelectedLinesAction extends fe.b{constructor(){super({id:"editor.action.reindentselectedlines",label:ie.a("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:Me.a.writable})}run(G,Z){let ne=Z.getModel();if(!ne)return;let ie=Z.getSelections();if(null===ie)return;let se=[];for(let G of ie){let Z=G.startLineNumber,ie=G.endLineNumber;if(Z!==ie&&1===G.endColumn&&ie--,1===Z){if(Z===ie)continue}else Z--;let ce=getReindentEditOperations(ne,Z,ie);se.push(...ce)}se.length>0&&(Z.pushUndoStop(),Z.executeEdits(this.id,se),Z.pushUndoStop())}}class AutoIndentOnPasteCommand{constructor(G,Z){this._initialSelection=Z,this._edits=[],this._selectionId=null;for(let Z of G)Z.range&&"string"==typeof Z.text&&this._edits.push(Z)}getEditOperations(G,Z){for(let G of this._edits)Z.addEditOperation(Ce.a.lift(G.range),G.text);let ne=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(ne=!0,this._selectionId=Z.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(ne=!0,this._selectionId=Z.trackSelection(this._initialSelection,!1))),ne||(this._selectionId=Z.trackSelection(this._initialSelection))}computeCursorState(G,Z){return Z.getTrackedSelection(this._selectionId)}}class AutoIndentOnPaste{constructor(G){this.callOnDispose=new se.b,this.callOnModel=new se.b,this.editor=G,this.callOnDispose.add(G.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(G.onDidChangeModel(()=>this.update())),this.callOnDispose.add(G.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(45)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:G})=>{this.trigger(G)}))}trigger(G){let Z=this.editor.getSelections();if(null===Z||Z.length>1)return;const ne=this.editor.getModel();if(!ne)return;if(!ne.isCheapToTokenize(G.getStartPosition().lineNumber))return;const ie=this.editor.getOption(9),{tabSize:se,indentSize:fe,insertSpaces:ge}=ne.getOptions();let Se=[],Me={shiftIndent:G=>me.a.shiftIndent(G,G.length+1,se,fe,ge),unshiftIndent:G=>me.a.unshiftIndent(G,G.length+1,se,fe,ge)},ke=G.startLineNumber;for(;ke<=G.endLineNumber&&this.shouldIgnoreLine(ne,ke);)ke++;if(ke>G.endLineNumber)return;let De=ne.getLineContent(ke);if(!/\S/.test(De.substring(0,G.startColumn-1))){let G=xe.a.getGoodIndentForLine(ie,ne,ne.getLanguageIdentifier().id,ke,Me);if(null!==G){let Z=ce.y(De),ie=Ie.b(G,se);if(ie!==Ie.b(Z,se)){let G=Ie.a(ie,se,ge);Se.push({range:new Ce.a(ke,1,ke,Z.length+1),text:G}),De=G+De.substr(Z.length)}else{let G=xe.a.getIndentMetadata(ne,ke);if(0===G||8===G)return}}}const Re=ke;for(;kene.getLineTokens(G),getLanguageIdentifier:()=>ne.getLanguageIdentifier(),getLanguageIdAtPosition:(G,Z)=>ne.getLanguageIdAtPosition(G,Z),getLineContent:G=>G===Re?De:ne.getLineContent(G)},fe=xe.a.getGoodIndentForLine(ie,Z,ne.getLanguageIdentifier().id,ke+1,Me);if(null!==fe){let Z=Ie.b(fe,se),ie=Ie.b(ce.y(ne.getLineContent(ke+1)),se);if(Z!==ie){let fe=Z-ie;for(let Z=ke+1;Z<=G.endLineNumber;Z++){let G=ne.getLineContent(Z),ie=ce.y(G),me=Ie.b(ie,se)+fe,Me=Ie.a(me,se,ge);Me!==ie&&Se.push({range:new Ce.a(Z,1,Z,ie.length+1),text:Me})}}}}if(Se.length>0){this.editor.pushUndoStop();let G=new AutoIndentOnPasteCommand(Se,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",G),this.editor.pushUndoStop()}}shouldIgnoreLine(G,Z){G.forceTokenization(Z);let ne=G.getLineFirstNonWhitespaceColumn(Z);if(0===ne)return!0;let ie=G.getLineTokens(Z);if(ie.getCount()>0){let G=ie.findTokenIndexAtOffset(ne);if(G>=0&&1===ie.getStandardTokenType(G))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function getIndentationEditOperations(G,Z,ne,ie){if(1===G.getLineCount()&&1===G.getLineMaxColumn(1))return;let se="";for(let G=0;G=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function getInlayHints(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){const ie=[],ce=Ce.r.ordered(G).reverse(),fe=Object(Se.k)(ce.map(ce=>Z.map(Z=>Promise.resolve(ce.provideInlayHints(G,Z,ne)).then(G=>{G&&ie.push({list:G,provider:ce})},G=>{Object(se.f)(G)}))));return yield Promise.all(fe),ie}))}let at=class InlayHintsController{constructor(G,Z,ne,ie){this._editor=G,this._codeEditorService=Z,this._themeService=ne,this._configurationService=ie,this._disposables=new fe.b,this._sessionDisposables=new fe.b,this._getInlayHintsDelays=new Ie.b(Ce.r,25,2500),this._decorationsTypeIds=[],this._decorationIds=[],this._disposables.add(Ce.r.onDidChange(()=>this._update())),this._disposables.add(ne.onDidColorThemeChange(()=>this._update())),this._disposables.add(G.onDidChangeModel(()=>this._update())),this._disposables.add(G.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(G.onDidChangeConfiguration(G=>{G.hasChanged(125)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(125).enabled)return void this._removeAllDecorations();const G=this._editor.getModel();if(!G||!Ce.r.has(G))return void this._removeAllDecorations();const Z=new ie.e(()=>__awaiter(this,void 0,void 0,(function*(){const ne=Date.now(),ie=new ke.b;this._sessionDisposables.add(Object(fe.i)(()=>ie.dispose(!0)));const se=this._editor.getVisibleRangesPlusViewportAboveBelow(),ce=yield getInlayHints(G,se,ie.token),me=this._getInlayHintsDelays.update(G,Date.now()-ne);Z.delay=me,this._updateHintsDecorators(ce)})),this._getInlayHintsDelays.get(G));this._sessionDisposables.add(Z),this._sessionDisposables.add(this._editor.onDidChangeModelContent(()=>Z.schedule())),this._disposables.add(this._editor.onDidScrollChange(()=>Z.schedule())),Z.schedule();const ne=new fe.b;this._sessionDisposables.add(ne);for(const ie of Ce.r.all(G))"function"==typeof ie.onDidChangeInlayHints&&ne.add(ie.onDidChangeInlayHints(()=>Z.schedule()))}_updateHintsDecorators(G){const{fontSize:Z,fontFamily:ne}=this._getLayoutInfo(),ie=this._themeService.getColorTheme().getColor(Me.N),se=this._themeService.getColorTheme().getColor(Me.O),fe=[],me=[];this._editor.getContainerDomNode().style.setProperty("--inlayHintsFontFamily",ne);const ge=this._configurationService.getValue("editor.useInjectedText"),Ce=void 0===ge||!!ge;for(const{list:ne}of G)for(let G=0;GZ)&&(ne=.9*Z|0);return{fontSize:ne,fontFamily:G.fontFamily||this._editor.getOption(40)}}_removeAllDecorations(){this._decorationIds=this._editor.deltaDecorations(this._decorationIds,[]),this._decorationsTypeIds.forEach(this._codeEditorService.removeDecorationType,this._codeEditorService),this._decorationsTypeIds=[]}};function fixSpace(G){return G.replace(/[ \t]/g," ")}at.ID="editor.contrib.InlayHints",at=__decorate([__param(1,ge.a),__param(2,xe.b),__param(3,ot.a)],at),Object(me.l)(at.ID,at),Re.a.registerCommand("_executeInlayHintProvider",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne,ie]=Z;Object($e.c)(ze.a.isUri(ne)),Object($e.c)(De.a.isIRange(ie));const se=yield G.get(Je.a).createModelReference(ne);try{const G=yield getInlayHints(se.object.textEditorModel,[De.a.lift(ie)],ke.a.None);return Object(Se.k)(G.map(G=>G.list)).sort((G,Z)=>it.a.compare(G.position,Z.position))}finally{se.dispose()}})))},761:function(G,Z){function _extends(){return G.exports=_extends=Object.assign||function(G){for(var Z=1;Z=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ie=class InspectTokensController extends ce.a{constructor(G,Z,ne){super(),this._editor=G,this._modeService=ne,this._widget=null,this._register(this._editor.onDidChangeModel(G=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(G=>this.stop())),this._register(me.F.onDidChange(G=>this.stop())),this._register(this._editor.onKeyUp(G=>9===G.keyCode&&this.stop()))}static get(G){return G.getContribution(InspectTokensController.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new InspectTokensWidget(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Ie.ID="editor.contrib.inspectTokens",Ie=__decorate([__param(1,Se.a),__param(2,Ce.a)],Ie);class InspectTokens extends fe.b{constructor(){super({id:"editor.action.inspectTokens",label:xe.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(G,Z){let ne=Ie.get(Z);ne&&ne.launch()}}class InspectTokensWidget extends ce.a{constructor(G,Z){super(),this.allowEditorOverflow=!0,this._editor=G,this._modeService=Z,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function getSafeTokenizationSupport(G){let Z=me.F.get(G.language);return Z||{getInitialState:()=>ge.c,tokenize:(Z,ne,ie,se)=>Object(ge.d)(G.language,Z,ie,se),tokenize2:(Z,ne,ie,se)=>Object(ge.e)(G.id,Z,ie,se)}}(this._model.getLanguageIdentifier()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(G=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return InspectTokensWidget._ID}_compute(G){let Z=this._getTokensAtLine(G.lineNumber),ne=0;for(let ie=Z.tokens1.length-1;ie>=0;ie--){let se=Z.tokens1[ie];if(G.column-1>=se.offset){ne=ie;break}}let ce=0;for(let ne=Z.tokens2.length>>>1;ne>=0;ne--)if(G.column-1>=Z.tokens2[ne<<1]){ce=ne;break}let fe=this._model.getLineContent(G.lineNumber),me="";if(ne{const ne=G.getColor(Me.F);if(ne){let ie=G.type===De.a.HIGH_CONTRAST?2:1;Z.addRule(`.monaco-editor .tokens-inspect-widget { border: ${ie}px solid ${ne}; }`),Z.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${ne}; }`)}const ie=G.getColor(Me.E);ie&&Z.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${ie}; }`);const se=G.getColor(Me.G);se&&Z.addRule(`.monaco-editor .tokens-inspect-widget { color: ${se}; }`)})},7611:function(G,Z,ne){var ie=ne(7612);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7612:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .tokens-inspect-widget {\r\n\tz-index: 50;\r\n\tuser-select: text;\r\n\t-webkit-user-select: text;\r\n\t-ms-user-select: text;\r\n\tpadding: 10px;\r\n}\r\n\r\n.tokens-inspect-separator {\r\n\theight: 1px;\r\n\tborder: 0;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token {\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token-length {\r\n\tfont-weight: normal;\r\n\tfont-size: 60%;\r\n\tfloat: right;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\r\n\tfont-family: var(--monaco-monospace-font);\r\n\ttext-align: right;\r\n}\r\n\r\n.monaco-editor .tokens-inspect-widget .tm-token-type {\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n",""]),G.exports=Z},7613:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE",(function(){return st})),ne.d(Z,"LinkedEditingContribution",(function(){return ct})),ne.d(Z,"LinkedEditingAction",(function(){return LinkedEditingAction})),ne.d(Z,"editorLinkedEditingBackground",(function(){return dt}));var ie=ne(4),se=ne(14),ce=ne(69),fe=ne(10),me=ne(34),ge=ne(103),Ce=ne(12),Se=ne(35),Me=ne(57),ke=ne(117),xe=ne(26),De=ne(23),Ie=ne(94),Re=ne(127),ze=ne(51),$e=ne(27),Je=ne(13),it=ne(50),ot=ne(44),at=ne(122),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const st=new xe.c("LinkedEditingInputVisible",!1);let ct=class LinkedEditingContribution extends fe.a{constructor(G,Z){super(),this._debounceDuration=200,this._localToDispose=this._register(new fe.b),this._editor=G,this._enabled=!1,this._visibleContextKey=st.bindTo(Z),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new fe.b),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(G=>{(G.hasChanged(60)||G.hasChanged(80))&&this.reinitialize(!1)})),this._register(Se.w.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}static get(G){return G.getContribution(LinkedEditingContribution.ID)}reinitialize(G){const Z=this._editor.getModel(),ne=null!==Z&&(this._editor.getOption(60)||this._editor.getOption(80))&&Se.w.has(Z);if(ne===this._enabled&&!G)return;if(this._enabled=ne,this.clearRanges(),this._localToDispose.clear(),!ne||null===Z)return;this._languageWordPattern=at.a.getWordDefinition(Z.getLanguageIdentifier().id),this._localToDispose.add(Z.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=at.a.getWordDefinition(Z.getLanguageIdentifier().id)}));const ie=new Me.a(this._debounceDuration),triggerRangeUpdate=()=>{this._rangeUpdateTriggerPromise=ie.trigger(()=>this.updateRanges(),this._debounceDuration)},se=new Me.a(0),triggerRangeSync=G=>{this._rangeSyncTriggerPromise=se.trigger(()=>this._syncRanges(G))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{triggerRangeUpdate()})),this._localToDispose.add(this._editor.onDidChangeModelContent(G=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const ne=Z.getDecorationRange(this._currentDecorations[0]);if(ne&&G.changes.every(G=>ne.intersectRanges(G.range)))return void triggerRangeSync(this._currentDecorations)}triggerRangeUpdate()})),this._localToDispose.add({dispose:()=>{ie.cancel(),se.cancel()}}),this.updateRanges()}_syncRanges(G){if(!this._editor.hasModel()||G!==this._currentDecorations||0===G.length)return;const Z=this._editor.getModel(),ne=Z.getDecorationRange(G[0]);if(!ne||ne.startLineNumber!==ne.endLineNumber)return this.clearRanges();const ie=Z.getValueInRange(ne);if(this._currentWordPattern){const G=ie.match(this._currentWordPattern);if((G?G[0].length:0)!==ie.length)return this.clearRanges()}let se=[];for(let ne=1,ce=G.length;ne1)return void this.clearRanges();const ne=this._editor.getModel(),ie=ne.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===ie){if(Z.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const G=ne.getDecorationRange(this._currentDecorations[0]);if(G&&G.containsPosition(Z))return}}this._currentRequestPosition=Z,this._currentRequestModelVersion=ie;const se=Object(Me.h)(G=>__awaiter(this,void 0,void 0,(function*(){try{const ce=yield getLinkedEditingRanges(ne,Z,G);if(se!==this._currentRequest)return;if(this._currentRequest=null,ie!==ne.getVersionId())return;let fe=[];(null==ce?void 0:ce.ranges)&&(fe=ce.ranges),this._currentWordPattern=(null==ce?void 0:ce.wordPattern)||this._languageWordPattern;let me=!1;for(let G=0,ne=fe.length;G({range:G,options:LinkedEditingContribution.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,ge)}catch(G){Object(ze.d)(G)||Object(ze.e)(G),this._currentRequest!==se&&this._currentRequest||this.clearRanges()}})));return this._currentRequest=se,se}))}};ct.ID="editor.contrib.linkedEditing",ct.DECORATION=ke.a.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),ct=__decorate([__param(1,xe.b)],ct);class LinkedEditingAction extends se.b{constructor(){super({id:"editor.action.linkedEditing",label:ie.a("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:xe.a.and(De.a.writable,De.a.hasRenameProvider),kbOpts:{kbExpr:De.a.editorTextFocus,primary:3132,weight:100}})}runCommand(G,Z){const ne=G.get(Re.a),[ie,se]=Array.isArray(Z)&&Z||[void 0,void 0];return Ie.a.isUri(ie)&&me.a.isIPosition(se)?ne.openCodeEditor({resource:ie},ne.getActiveCodeEditor()).then(G=>{G&&(G.setPosition(se),G.invokeWithinContext(Z=>(this.reportTelemetry(Z,G),this.run(Z,G))))},ze.e):super.runCommand(G,Z)}run(G,Z){const ne=ct.get(Z);return ne?Promise.resolve(ne.updateRanges(!0)):Promise.resolve()}}const ut=se.c.bindToContribution(ct.get);function getLinkedEditingRanges(G,Z,ne){const ie=Se.w.ordered(G);return Object(Me.j)(ie.map(ie=>()=>__awaiter(this,void 0,void 0,(function*(){try{return yield ie.provideLinkedEditingRanges(G,Z,ne)}catch(G){return void Object(ze.f)(G)}}))),G=>!!G&&ce.n(null==G?void 0:G.ranges))}Object(se.k)(new ut({id:"cancelLinkedEditingInput",precondition:st,handler:G=>G.clearRanges(),kbOpts:{kbExpr:De.a.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const dt=Object(Je.wc)("editor.linkedEditingBackground",{dark:ot.a.fromHex("#f00").transparent(.3),light:ot.a.fromHex("#f00").transparent(.3),hc:ot.a.fromHex("#f00").transparent(.3)},ie.a("editorLinkedEditingBackground","Background color when the editor auto renames on type."));Object(it.f)((G,Z)=>{const ne=G.getColor(dt);ne&&Z.addRule(`.monaco-editor .linked-editing-decoration { background: ${ne}; border-left-color: ${ne}; }`)}),Object(se.n)("_executeLinkedEditingProvider",(G,Z)=>getLinkedEditingRanges(G,Z,ge.a.None)),Object(se.l)(ct.ID,ct),Object(se.j)(LinkedEditingAction)},7614:function(G,Z,ne){var ie=ne(7615);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7615:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .detected-link,\r\n.monaco-editor .detected-link-active {\r\n\ttext-decoration: underline;\r\n\ttext-underline-position: under;\r\n}\r\n\r\n.monaco-editor .detected-link-active {\r\n\tcursor: pointer;\r\n}\r\n",""]),G.exports=Z},7616:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"InsertCursorAbove",(function(){return InsertCursorAbove})),ne.d(Z,"InsertCursorBelow",(function(){return InsertCursorBelow})),ne.d(Z,"MultiCursorSessionResult",(function(){return MultiCursorSessionResult})),ne.d(Z,"MultiCursorSession",(function(){return MultiCursorSession})),ne.d(Z,"MultiCursorSelectionController",(function(){return MultiCursorSelectionController})),ne.d(Z,"MultiCursorSelectionControllerAction",(function(){return MultiCursorSelectionControllerAction})),ne.d(Z,"AddSelectionToNextFindMatchAction",(function(){return AddSelectionToNextFindMatchAction})),ne.d(Z,"AddSelectionToPreviousFindMatchAction",(function(){return AddSelectionToPreviousFindMatchAction})),ne.d(Z,"MoveSelectionToNextFindMatchAction",(function(){return MoveSelectionToNextFindMatchAction})),ne.d(Z,"MoveSelectionToPreviousFindMatchAction",(function(){return MoveSelectionToPreviousFindMatchAction})),ne.d(Z,"SelectHighlightsAction",(function(){return SelectHighlightsAction})),ne.d(Z,"CompatChangeAll",(function(){return CompatChangeAll})),ne.d(Z,"SelectionHighlighter",(function(){return SelectionHighlighter}));var ie=ne(4),se=ne(57),ce=ne(165),fe=ne(10),me=ne(215),ge=ne(14),Ce=ne(342),Se=ne(12),Me=ne(80),ke=ne(23),xe=ne(194),De=ne(117),Ie=ne(35),Re=ne(1680),ze=ne(92),$e=ne(13),Je=ne(50),it=ne(26);function announceCursorChange(G,Z){const ne=Z.filter(Z=>!G.find(G=>G.equals(Z)));if(ne.length>=1){const G=ne.map(G=>`line ${G.viewState.position.lineNumber} column ${G.viewState.position.column}`).join(", "),Z=1===ne.length?ie.a("cursorAdded","Cursor added: {0}",G):ie.a("cursorsAdded","Cursors added: {0}",G);Object(me.c)(Z)}}class InsertCursorAbove extends ge.b{constructor(){super({id:"editor.action.insertCursorAbove",label:ie.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:ke.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(G,Z,ne){if(!Z.hasModel())return;const ie=ne&&!0===ne.logicalLine,se=Z._getViewModel();if(se.cursorConfig.readOnly)return;se.pushStackElement();const ce=se.getCursorStates();se.setCursorStates(ne.source,3,Ce.b.addCursorUp(se,ce,ie)),se.revealTopMostCursor(ne.source),announceCursorChange(ce,se.getCursorStates())}}class InsertCursorBelow extends ge.b{constructor(){super({id:"editor.action.insertCursorBelow",label:ie.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:ke.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(G,Z,ne){if(!Z.hasModel())return;const ie=ne&&!0===ne.logicalLine,se=Z._getViewModel();if(se.cursorConfig.readOnly)return;se.pushStackElement();const ce=se.getCursorStates();se.setCursorStates(ne.source,3,Ce.b.addCursorDown(se,ce,ie)),se.revealBottomMostCursor(ne.source),announceCursorChange(ce,se.getCursorStates())}}class InsertCursorAtEndOfEachLineSelected extends ge.b{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:ie.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:ke.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(G,Z,ne){if(!G.isEmpty()){for(let ie=G.startLineNumber;ie1&&ne.push(new Me.a(G.endLineNumber,G.endColumn,G.endLineNumber,G.endColumn))}}run(G,Z){if(!Z.hasModel())return;const ne=Z.getModel(),ie=Z.getSelections(),se=Z._getViewModel(),ce=se.getCursorStates();let fe=[];ie.forEach(G=>this.getCursorsForSelection(G,ne,fe)),fe.length>0&&Z.setSelections(fe),announceCursorChange(ce,se.getCursorStates())}}class InsertCursorAtEndOfLineSelected extends ge.b{constructor(){super({id:"editor.action.addCursorsToBottom",label:ie.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(G,Z){if(!Z.hasModel())return;const ne=Z.getSelections(),ie=Z.getModel().getLineCount();let se=[];for(let G=ne[0].startLineNumber;G<=ie;G++)se.push(new Me.a(G,ne[0].startColumn,G,ne[0].endColumn));const ce=Z._getViewModel(),fe=ce.getCursorStates();se.length>0&&Z.setSelections(se),announceCursorChange(fe,ce.getCursorStates())}}class InsertCursorAtTopOfLineSelected extends ge.b{constructor(){super({id:"editor.action.addCursorsToTop",label:ie.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(G,Z){if(!Z.hasModel())return;const ne=Z.getSelections();let ie=[];for(let G=ne[0].startLineNumber;G>=1;G--)ie.push(new Me.a(G,ne[0].startColumn,G,ne[0].endColumn));const se=Z._getViewModel(),ce=se.getCursorStates();ie.length>0&&Z.setSelections(ie),announceCursorChange(ce,se.getCursorStates())}}class MultiCursorSessionResult{constructor(G,Z,ne){this.selections=G,this.revealRange=Z,this.revealScrollType=ne}}class MultiCursorSession{constructor(G,Z,ne,ie,se,ce,fe){this._editor=G,this.findController=Z,this.isDisconnectedFromFindController=ne,this.searchText=ie,this.wholeWord=se,this.matchCase=ce,this.currentMatch=fe}static create(G,Z){if(!G.hasModel())return null;const ne=Z.getState();if(!G.hasTextFocus()&&ne.isRevealed&&ne.searchString.length>0)return new MultiCursorSession(G,Z,!1,ne.searchString,ne.wholeWord,ne.matchCase,null);let ie,se,ce=!1;const fe=G.getSelections();1===fe.length&&fe[0].isEmpty()?(ce=!0,ie=!0,se=!0):(ie=ne.wholeWord,se=ne.matchCase);const me=G.getSelection();let ge,Ce=null;if(me.isEmpty()){const Z=G.getConfiguredWordAtPosition(me.getStartPosition());if(!Z)return null;ge=Z.word,Ce=new Me.a(me.startLineNumber,Z.startColumn,me.startLineNumber,Z.endColumn)}else ge=G.getModel().getValueInRange(me).replace(/\r\n/g,"\n");return new MultiCursorSession(G,Z,ce,ge,ie,se,Ce)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const G=this._getNextMatch();if(!G)return null;const Z=this._editor.getSelections();return new MultiCursorSessionResult(Z.concat(G),G,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const G=this._getNextMatch();if(!G)return null;const Z=this._editor.getSelections();return new MultiCursorSessionResult(Z.slice(0,Z.length-1).concat(G),G,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const G=this.currentMatch;return this.currentMatch=null,G}this.findController.highlightFindOptions();const G=this._editor.getSelections(),Z=G[G.length-1],ne=this._editor.getModel().findNextMatch(this.searchText,Z.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1);return ne?new Me.a(ne.range.startLineNumber,ne.range.startColumn,ne.range.endLineNumber,ne.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const G=this._getPreviousMatch();if(!G)return null;const Z=this._editor.getSelections();return new MultiCursorSessionResult(Z.concat(G),G,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const G=this._getPreviousMatch();if(!G)return null;const Z=this._editor.getSelections();return new MultiCursorSessionResult(Z.slice(0,Z.length-1).concat(G),G,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const G=this.currentMatch;return this.currentMatch=null,G}this.findController.highlightFindOptions();const G=this._editor.getSelections(),Z=G[G.length-1],ne=this._editor.getModel().findPreviousMatch(this.searchText,Z.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1);return ne?new Me.a(ne.range.startLineNumber,ne.range.startColumn,ne.range.endLineNumber,ne.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1,1073741824)):[]}}class MultiCursorSelectionController extends fe.a{constructor(G){super(),this._sessionDispose=this._register(new fe.b),this._editor=G,this._ignoreSelectionChange=!1,this._session=null}static get(G){return G.getContribution(MultiCursorSelectionController.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(G){if(!this._session){const Z=MultiCursorSession.create(this._editor,G);if(!Z)return;this._session=Z;const ne={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ne.wholeWordOverride=1,ne.matchCaseOverride=1,ne.isRegexOverride=2),G.getState().change(ne,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(G=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(G.getState().onFindReplaceStateChange(G=>{(G.matchCase||G.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const G={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(G,!1)}this._session=null}_setSelections(G){this._ignoreSelectionChange=!0,this._editor.setSelections(G),this._ignoreSelectionChange=!1}_expandEmptyToWord(G,Z){if(!Z.isEmpty())return Z;const ne=this._editor.getConfiguredWordAtPosition(Z.getStartPosition());return ne?new Me.a(Z.startLineNumber,ne.startColumn,Z.startLineNumber,ne.endColumn):Z}_applySessionResult(G){G&&(this._setSelections(G.selections),G.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(G.revealRange,G.revealScrollType))}getSession(G){return this._session}addSelectionToNextFindMatch(G){if(this._editor.hasModel()){if(!this._session){const Z=this._editor.getSelections();if(Z.length>1){const ne=G.getState().matchCase;if(!modelRangesContainSameText(this._editor.getModel(),Z,ne)){const G=this._editor.getModel();let ne=[];for(let ie=0,se=Z.length;ie0&&ne.isRegex)Z=this._editor.getModel().findMatches(ne.searchString,!0,ne.isRegex,ne.matchCase,ne.wholeWord?this._editor.getOption(115):null,!1,1073741824);else{if(this._beginSessionIfNeeded(G),!this._session)return;Z=this._session.selectAll()}if(ne.searchScope){const G=ne.searchScope;let ie=[];Z.forEach(Z=>{G.forEach(G=>{Z.range.endLineNumber<=G.endLineNumber&&Z.range.startLineNumber>=G.startLineNumber&&ie.push(Z)})}),Z=ie}if(Z.length>0){const G=this._editor.getSelection();for(let ne=0,ie=Z.length;nenew Me.a(G.range.startLineNumber,G.range.startColumn,G.range.endLineNumber,G.range.endColumn)))}}}MultiCursorSelectionController.ID="editor.contrib.multiCursorController";class MultiCursorSelectionControllerAction extends ge.b{run(G,Z){const ne=MultiCursorSelectionController.get(Z);if(!ne)return;const ie=Re.CommonFindController.get(Z);if(!ie)return;const se=Z._getViewModel();if(se){const G=se.getCursorStates();this._run(ne,ie),announceCursorChange(G,se.getCursorStates())}}}class AddSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:ie.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:ke.a.focus,primary:2082,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(G,Z){G.addSelectionToNextFindMatch(Z)}}class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:ie.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(G,Z){G.addSelectionToPreviousFindMatch(Z)}}class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:ie.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:ke.a.focus,primary:Object(ce.a)(2089,2082),weight:100}})}_run(G,Z){G.moveSelectionToNextFindMatch(Z)}}class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:ie.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(G,Z){G.moveSelectionToPreviousFindMatch(Z)}}class SelectHighlightsAction extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.selectHighlights",label:ie.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:ke.a.focus,primary:3114,weight:100},menuOpts:{menuId:ze.b.MenubarSelectionMenu,group:"3_multi",title:ie.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(G,Z){G.selectAll(Z)}}class CompatChangeAll extends MultiCursorSelectionControllerAction{constructor(){super({id:"editor.action.changeAll",label:ie.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:it.a.and(ke.a.writable,ke.a.editorTextFocus),kbOpts:{kbExpr:ke.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(G,Z){G.selectAll(Z)}}class SelectionHighlighterState{constructor(G,Z,ne,ie){this.searchText=G,this.matchCase=Z,this.wordSeparators=ne,this.modelVersionId=ie}static softEquals(G,Z){return!G&&!Z||!(!G||!Z)&&(G.searchText===Z.searchText&&G.matchCase===Z.matchCase&&G.wordSeparators===Z.wordSeparators&&G.modelVersionId===Z.modelVersionId)}}class SelectionHighlighter extends fe.a{constructor(G){super(),this.editor=G,this._isEnabled=G.getOption(96),this.decorations=[],this.updateSoon=this._register(new se.e(()=>this._update(),300)),this.state=null,this._register(G.onDidChangeConfiguration(Z=>{this._isEnabled=G.getOption(96)})),this._register(G.onDidChangeCursorSelection(G=>{this._isEnabled&&(G.selection.isEmpty()?3===G.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(G.onDidChangeModel(G=>{this._setState(null)})),this._register(G.onDidChangeModelContent(G=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(Re.CommonFindController.get(G).getState().onFindReplaceStateChange(G=>{this._update()}))}_update(){this._setState(SelectionHighlighter._createState(this._isEnabled,this.editor))}static _createState(G,Z){if(!G)return null;if(!Z.hasModel())return null;const ne=Z.getSelection();if(ne.startLineNumber!==ne.endLineNumber)return null;const ie=MultiCursorSelectionController.get(Z);if(!ie)return null;const se=Re.CommonFindController.get(Z);if(!se)return null;let ce=ie.getSession(se);if(!ce){const G=Z.getSelections();if(G.length>1){const ne=se.getState().matchCase;if(!modelRangesContainSameText(Z.getModel(),G,ne))return null}ce=MultiCursorSession.create(Z,se)}if(!ce)return null;if(ce.currentMatch)return null;if(/^[ \t]+$/.test(ce.searchText))return null;if(ce.searchText.length>200)return null;const fe=se.getState(),me=fe.matchCase;if(fe.isRevealed){let G=fe.searchString;me||(G=G.toLowerCase());let Z=ce.searchText;if(me||(Z=Z.toLowerCase()),G===Z&&ce.matchCase===fe.matchCase&&ce.wholeWord===fe.wholeWord&&!fe.isRegex)return null}return new SelectionHighlighterState(ce.searchText,ce.matchCase,ce.wholeWord?Z.getOption(115):null,Z.getModel().getVersionId())}_setState(G){if(SelectionHighlighterState.softEquals(this.state,G))return void(this.state=G);if(this.state=G,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;const Z=this.editor.getModel();if(Z.isTooLargeForTokenization())return;const ne=Ie.i.has(Z)&&this.editor.getOption(70);let ie=Z.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(G=>G.range);ie.sort(Se.a.compareRangesUsingStarts);let se=this.editor.getSelections();se.sort(Se.a.compareRangesUsingStarts);let ce=[];for(let G=0,Z=0,ne=ie.length,fe=se.length;G=fe)ce.push(ne),G++;else{const ie=Se.a.compareRangesUsingStarts(ne,se[Z]);ie<0?(!se[Z].isEmpty()&&Se.a.areIntersecting(ne,se[Z])||ce.push(ne),G++):(ie>0||G++,Z++)}}const fe=ce.map(G=>({range:G,options:ne?SelectionHighlighter._SELECTION_HIGHLIGHT:SelectionHighlighter._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,fe)}dispose(){this._setState(null),super.dispose()}}function modelRangesContainSameText(G,Z,ne){const ie=getValueInRange(G,Z[0],!ne);for(let se=1,ce=Z.length;se .phwrapper {\r\n\tmax-width: 440px;\r\n\tdisplay: flex;\r\n\tflex-direction: row;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple {\r\n\tmin-height: 3.3em;\r\n\tpadding: 0;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.visible {\r\n\ttransition: left .05s ease-in-out;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget p,\r\n.monaco-editor .parameter-hints-widget ul {\r\n\tmargin: 8px 0;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\r\n.monaco-editor .parameter-hints-widget .body {\r\n\tdisplay: flex;\r\n\tflex: 1;\r\n\tflex-direction: column;\r\n\tmin-height: 100%;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .signature {\r\n\tpadding: 4px 5px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs {\r\n\tpadding: 0 10px 0 5px;\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs.empty {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .markdown-docs {\r\n\twhite-space: initial;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .markdown-docs code {\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs .code {\r\n\twhite-space: pre-wrap;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .docs code {\r\n\tborder-radius: 3px;\r\n\tpadding: 0 0.4em;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .controls {\r\n\tdisplay: none;\r\n\tflex-direction: column;\r\n\talign-items: center;\r\n\tmin-width: 22px;\r\n\tjustify-content: flex-end;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple .controls {\r\n\tdisplay: flex;\r\n\tpadding: 0 2px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget.multiple .button {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tbackground-repeat: no-repeat;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .button.previous {\r\n\tbottom: 24px;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .overloads {\r\n\ttext-align: center;\r\n\theight: 12px;\r\n\tline-height: 12px;\r\n\topacity: 0.5;\r\n\tfont-family: var(--monaco-monospace-font);\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\r\n\tfont-weight: bold;\r\n\ttext-decoration: underline;\r\n}\r\n\r\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\r\n\tfont-weight: bold;\r\n\tmargin-right: 0.5em;\r\n}\r\n",""]),G.exports=Z},7619:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"StandaloneReferencesController",(function(){return Me}));var ie=ne(14),se=ne(127),ce=ne(1366),fe=ne(156),me=ne(26),ge=ne(60),Ce=ne(193),Se=ne(375),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Me=class StandaloneReferencesController extends ce.a{constructor(G,Z,ne,ie,se,ce,fe){super(!0,G,Z,ne,ie,se,ce,fe)}};Me=__decorate([__param(1,me.b),__param(2,se.a),__param(3,Ce.a),__param(4,ge.a),__param(5,Se.a),__param(6,fe.a)],Me),Object(ie.l)(ce.a.ID,Me)},762:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=194)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},126:function(G,Z){G.exports=ne(7423)},194:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Mt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(23),ge=ne.n(me),Ce=ne(22),Se=ne(41),Me=ne(3),ke=ne.n(Me),xe=ne(64),De=ne.n(xe),Ie=ne(0),Re=ke.a.span.withConfig({displayName:"ButtonStyles__StyledIcon",componentId:"eqxqs2-0"})(["display:flex;align-items:center;flex-shrink:0;font-size:",";",";"],Object(Ie.pick)({enterprise:"inherit",prisma:{comfortable:"21px",compact:"16px"}}),Object(Ie.pickVariant)("$isIconOnly",{false:{enterprise:Object(Me.css)(["padding-right:3px;"]),prisma:Object(Me.css)(["padding-right:8px;"])}})),ze=ke()(De.a).withConfig({displayName:"ButtonStyles__StyledButtonSimple",componentId:"eqxqs2-1"})(["text-align:center;vertical-align:middle;text-decoration:none;white-space:nowrap;flex-grow:1;min-width:0;max-width:100%;line-height:",";min-height:",";padding:",";"," "," &[data-inline]{display:inline-block;vertical-align:middle;","}[data-inline] + &&[data-inline]{margin-bottom:0;","}"],Ie.variables.lineHeight,Ie.variables.inputHeight,Object(Ie.pick)({enterprise:{comfortable:"5px 14px",compact:"2px 14px"},prisma:{comfortable:function comfortable(G){return G.$hasPrismaIcon?"7px 18px":"9px 18px"},compact:function compact(G){return G.$isMenu?"5px 8px 5px 16px":"5px 16px"}}}),(function(G){var Z=G.$inline,ne=G.append,ie=G.prepend;return!Z&&!ne&&!ie&&Object(Me.css)(["width:100%;"])}),(function(G){return G.$isIconOnly&&Object(Me.css)(["box-sizing:border-box;padding:",";width:",";min-width:",";"],Object(Ie.pick)({enterprise:{comfortable:"0 5px",compact:"0 2px"},prisma:{comfortable:Object(Me.css)(["0px calc("," / 2 - 1px)"],Ie.variables.inputHeight),compact:Object(Me.css)(["0px calc("," / 2 - 1px)"],Ie.variables.inputHeight)}}),Ie.variables.inputHeight,Ie.variables.inputHeight)}),(function(G){return G.$isIconOnly?null:Object(Me.css)(["width:auto;"])}),(function(G){return!G.prepend&&Object(Me.css)(["margin-left:",";"],Object(Ie.pick)({enterprise:Ie.variables.spacingHalf,prisma:Ie.variables.spacingSmall}))})),$e=ke.a.span.withConfig({displayName:"ButtonStyles__StyledContentWrapper",componentId:"eqxqs2-2"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;max-width:100%;padding:",";"],Object(Ie.pick)({enterprise:function enterprise(G){return G.$error?"1px":Object(Ie.pickVariant)("$appearance",{default:"0",secondary:"0",destructive:"1px",primary:"1px",pill:"0",toggle:"0",flat:"0"})},prisma:Object(Ie.pickVariant)("$appearance",{default:0,secondary:"1px 0",primary:"1px 0",destructive:"1px 0",pill:"1px 0",toggle:"0",flat:"1px 0"})})),Je=ke.a.span.withConfig({displayName:"ButtonStyles__StyledLabel",componentId:"eqxqs2-3"})(["text-overflow:ellipsis;overflow:hidden;flex:0 1 auto;&:not(:last-child){padding-right:",";}",""],Object(Ie.pick)({enterprise:"3px",prisma:"10px"}),(function(G){return G.$isMenu&&Object(Me.css)(["flex:1 1 auto;text-align:left;"])})),it=ke.a.span.withConfig({displayName:"ButtonStyles__StyledCaretWrapper",componentId:"eqxqs2-4"})(["display:inline-flex;",""],Object(Ie.pickVariant)("$disabled",{false:{prisma:Object(Ie.pickVariant)("$primary",{true:Object(Me.css)(["color:",";"],Ie.variables.contentColorInverted),false:Object(Me.css)(["color:",";",":hover > * > &,",":active > * > &,{color:",";}"],Ie.variables.contentColorDefault,ze,ze,Ie.variables.contentColorDefault)})}})),ot=ne(56),at=ne.n(ot),st=ne(57),ct=ne.n(st),ut=function CaretSmallDown(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(ct.a,{screenReaderText:null,hideDefaultTooltip:!0,size:.5}):se.a.createElement(at.a,{height:ne,width:ne})},dt=ne(126),ht=ne.n(dt),ft=ne(65),_t=ne.n(ft),yt=ne(4),vt=Object(yt._)("Open externally");var wt=function External(){var G=Object(Ie.useSplunkTheme)(),Z=G.isEnterprise,ne=G.isCompact?"20px":"24px";return Z?se.a.createElement(_t.a,{screenReaderText:vt,size:.8,style:{verticalAlign:"baseline"}}):se.a.createElement(ht.a,{"aria-label":vt,height:ne,width:ne},se.a.createElement("title",null,vt))};function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z0&&(Z.pushUndoStop(),Z.executeCommands(this.id,ie),Z.pushUndoStop())}}Object(se.j)(TransposeLettersAction)},7624:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"UnusualLineTerminatorsDetector",(function(){return Ce}));var ie=ne(4),se=ne(10),ce=ne(14),fe=ne(127),me=ne(821),ge=ne(181),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let Ce=class UnusualLineTerminatorsDetector extends se.a{constructor(G,Z,ne){super(),this._editor=G,this._dialogService=Z,this._codeEditorService=ne,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(G=>{G.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return __awaiter(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const G=this._editor.getModel();if(!G.mightContainUnusualLineTerminators())return;if(!0===function readIgnoreState(G,Z){return G.getModelProperty(Z.uri,"ignoreUnusualLineTerminators")}(this._codeEditorService,G))return;if(this._editor.getOption(79))return;if("auto"===this._config)return void G.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:ie.a("unusualLineTerminators.title","Unusual Line Terminators"),message:ie.a("unusualLineTerminators.message","Detected unusual line terminators"),detail:ie.a("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Object(ge.b)(G.uri)),primaryButton:ie.a("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:ie.a("unusualLineTerminators.ignore","Ignore")})).confirmed?G.removeUnusualLineTerminators(this._editor.getSelections()):function writeIgnoreState(G,Z,ne){G.setModelProperty(Z.uri,"ignoreUnusualLineTerminators",ne)}(this._codeEditorService,G,!0)}))}};Ce.ID="editor.contrib.unusualLineTerminatorsDetector",Ce=__decorate([__param(1,me.a),__param(2,fe.a)],Ce),Object(ce.l)(Ce.ID,Ce)},7625:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(57),se=ne(10),ce=ne(14),fe=ne(35),me=ne(187),ge=ne(1678),Ce=ne(50),Se=ne(156),Me=ne(1679),ke=ne(1367),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let xe=class ViewportSemanticTokensContribution extends se.a{constructor(G,Z,ne,se){super(),this._modelService=Z,this._themeService=ne,this._configurationService=se,this._editor=G,this._tokenizeViewport=new ie.e(()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(G=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(fe.k.onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(G=>{G.affectsConfiguration(Me.b)&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}_cancelAll(){for(const G of this._outstandingRequests)G.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(G){for(let Z=0,ne=this._outstandingRequests.length;Zthis._requestRange(G,ie,Z,ne)))}_requestRange(G,Z,ne,se){const ce=G.getVersionId(),fe=Object(ie.h)(ie=>Promise.resolve(ne.provideDocumentRangeSemanticTokens(G,Z,ie)));return fe.then(ne=>{ne&&!G.isDisposed()&&G.getVersionId()===ce&&G.setPartialSemanticTokens(Z,Object(ge.b)(ne,se,G.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(fe),()=>this._removeOutstandingRequest(fe)),fe}};xe.ID="editor.contrib.viewportSemanticTokens",xe=__decorate([__param(1,me.a),__param(2,Ce.b),__param(3,Se.a)],xe),Object(ce.l)(xe.ID,xe)},7626:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"getOccurrencesAtPosition",(function(){return getOccurrencesAtPosition}));var ie=ne(4),se=ne(69),ce=ne(57),fe=ne(103),me=ne(51),ge=ne(10),Ce=ne(14),Se=ne(12),Me=ne(23),ke=ne(194),xe=ne(117),De=ne(35),Ie=ne(26),Re=ne(13),ze=ne(50),$e=ne(215),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const Je=Object(Re.wc)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},ie.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),it=Object(Re.wc)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},ie.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),ot=Object(Re.wc)("editor.wordHighlightBorder",{light:null,dark:null,hc:Re.b},ie.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),at=Object(Re.wc)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Re.b},ie.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),st=Object(Re.wc)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},ie.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ct=Object(Re.wc)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},ie.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),ut=new Ie.c("hasWordHighlights",!1);function getOccurrencesAtPosition(G,Z,ne){const ie=De.i.ordered(G);return Object(ce.j)(ie.map(ie=>()=>Promise.resolve(ie.provideDocumentHighlights(G,Z,ne)).then(void 0,me.f)),se.n)}class OccurenceAtPositionRequest{constructor(G,Z,ne){this._wordRange=this._getCurrentWordRange(G,Z),this.result=Object(ce.h)(ie=>this._compute(G,Z,ne,ie))}_getCurrentWordRange(G,Z){const ne=G.getWordAtPosition(Z.getPosition());return ne?new Se.a(Z.startLineNumber,ne.startColumn,Z.startLineNumber,ne.endColumn):null}isValid(G,Z,ne){const ie=Z.startLineNumber,se=Z.startColumn,ce=Z.endColumn,fe=this._getCurrentWordRange(G,Z);let me=Boolean(this._wordRange&&this._wordRange.equalsRange(fe));for(let Z=0,fe=ne.length;!me&&Z=ce&&(me=!0)}return me}cancel(){this.result.cancel()}}class SemanticOccurenceAtPositionRequest extends OccurenceAtPositionRequest{_compute(G,Z,ne,ie){return getOccurrencesAtPosition(G,Z.getPosition(),ie).then(G=>G||[])}}class TextualOccurenceAtPositionRequest extends OccurenceAtPositionRequest{constructor(G,Z,ne){super(G,Z,ne),this._selectionIsEmpty=Z.isEmpty()}_compute(G,Z,ne,ie){return Object(ce.n)(250,ie).then(()=>{if(!Z.isEmpty())return[];const ie=G.getWordAtPosition(Z.getPosition());if(!ie||ie.word.length>1e3)return[];return G.findMatches(ie.word,!0,!1,!0,ne,!1).map(G=>({range:G.range,kind:De.h.Text}))})}isValid(G,Z,ne){const ie=Z.isEmpty();return this._selectionIsEmpty===ie&&super.isValid(G,Z,ne)}}Object(Ce.n)("_executeDocumentHighlights",(G,Z)=>getOccurrencesAtPosition(G,Z,fe.a.None));class WordHighlighter{constructor(G,Z){this.toUnhook=new ge.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=G,this._hasWordHighlights=ut.bindTo(Z),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(70),this.model=this.editor.getModel(),this.toUnhook.add(G.onDidChangeCursorPosition(G=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(G)})),this.toUnhook.add(G.onDidChangeModelContent(G=>{this._stopAll()})),this.toUnhook.add(G.onDidChangeConfiguration(G=>{let Z=this.editor.getOption(70);this.occurrencesHighlight!==Z&&(this.occurrencesHighlight=Z,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this._decorationIds.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return se.e(this._decorationIds.map(G=>this.model.getDecorationRange(G)).sort(Se.a.compareRangesUsingStarts))}moveNext(){let G=this._getSortedHighlights(),Z=(G.findIndex(G=>G.containsPosition(this.editor.getPosition()))+1)%G.length,ne=G[Z];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ne.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ne);const ie=this._getWord();if(ie){const se=this.editor.getModel().getLineContent(ne.startLineNumber);Object($e.a)(`${se}, ${Z+1} of ${G.length} for '${ie.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let G=this._getSortedHighlights(),Z=(G.findIndex(G=>G.containsPosition(this.editor.getPosition()))-1+G.length)%G.length,ne=G[Z];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ne.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ne);const ie=this._getWord();if(ie){const se=this.editor.getModel().getLineContent(ne.startLineNumber);Object($e.a)(`${se}, ${Z+1} of ${G.length} for '${ie.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(G){this.occurrencesHighlight&&3===G.reason?this._run():this._stopAll()}_getWord(){let G=this.editor.getSelection(),Z=G.startLineNumber,ne=G.startColumn;return this.model.getWordAtPosition({lineNumber:Z,column:ne})}_run(){let G=this.editor.getSelection();if(G.startLineNumber!==G.endLineNumber)return void this._stopAll();let Z=G.startColumn,ne=G.endColumn;const ie=this._getWord();if(!ie||ie.startColumn>Z||ie.endColumn{G===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=Z||[],this._beginRenderDecorations())},me.e)}}_beginRenderDecorations(){let G=(new Date).getTime(),Z=this.lastCursorPositionChangeTime+250;G>=Z?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},Z-G)}renderDecorations(){this.renderDecorationsTimer=-1;let G=[];for(const Z of this.workerRequestValue)Z.range&&G.push({range:Z.range,options:WordHighlighter._getDecorationOptions(Z.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,G),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(G){return G===De.h.Write?this._WRITE_OPTIONS:G===De.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}WordHighlighter._WRITE_OPTIONS=xe.a.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(ze.g)(ct),position:ke.d.Center}}),WordHighlighter._TEXT_OPTIONS=xe.a.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(ze.g)(Re.jc),position:ke.d.Center}}),WordHighlighter._REGULAR_OPTIONS=xe.a.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(ze.g)(st),position:ke.d.Center}});let dt=class WordHighlighterContribution extends ge.a{constructor(G,Z){super(),this.wordHighlighter=null;const createWordHighlighterIfPossible=()=>{G.hasModel()&&(this.wordHighlighter=new WordHighlighter(G,Z))};this._register(G.onDidChangeModel(G=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),createWordHighlighterIfPossible()})),createWordHighlighterIfPossible()}static get(G){return G.getContribution(WordHighlighterContribution.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(G){this.wordHighlighter&&G&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};dt.ID="editor.contrib.wordHighlighter",dt=__decorate([__param(1,Ie.b)],dt);class WordHighlightNavigationAction extends Ce.b{constructor(G,Z){super(Z),this._isNext=G}run(G,Z){const ne=dt.get(Z);ne&&(this._isNext?ne.moveNext():ne.moveBack())}}class TriggerWordHighlightAction extends Ce.b{constructor(){super({id:"editor.action.wordHighlight.trigger",label:ie.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:ut.toNegated(),kbOpts:{kbExpr:Me.a.editorTextFocus,primary:0,weight:100}})}run(G,Z,ne){const ie=dt.get(Z);ie&&ie.restoreViewState(!0)}}Object(Ce.l)(dt.ID,dt),Object(Ce.j)(class NextWordHighlightAction extends WordHighlightNavigationAction{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:ie.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:ut,kbOpts:{kbExpr:Me.a.editorTextFocus,primary:65,weight:100}})}}),Object(Ce.j)(class PrevWordHighlightAction extends WordHighlightNavigationAction{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:ie.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:ut,kbOpts:{kbExpr:Me.a.editorTextFocus,primary:1089,weight:100}})}}),Object(Ce.j)(TriggerWordHighlightAction),Object(ze.f)((G,Z)=>{const ne=G.getColor(Re.T);ne&&(Z.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${ne}; }`),Z.addRule(`.monaco-editor .selectionHighlight { background-color: ${ne.transparent(.5)}; }`));const ie=G.getColor(Je);ie&&Z.addRule(`.monaco-editor .wordHighlight { background-color: ${ie}; }`);const se=G.getColor(it);se&&Z.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${se}; }`);const ce=G.getColor(Re.U);ce&&Z.addRule(`.monaco-editor .selectionHighlight { border: 1px ${"hc"===G.type?"dotted":"solid"} ${ce}; box-sizing: border-box; }`);const fe=G.getColor(ot);fe&&Z.addRule(`.monaco-editor .wordHighlight { border: 1px ${"hc"===G.type?"dashed":"solid"} ${fe}; box-sizing: border-box; }`);const me=G.getColor(at);me&&Z.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${"hc"===G.type?"dashed":"solid"} ${me}; box-sizing: border-box; }`)})},7627:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"DeleteWordPartLeft",(function(){return DeleteWordPartLeft})),ne.d(Z,"DeleteWordPartRight",(function(){return DeleteWordPartRight})),ne.d(Z,"WordPartLeftCommand",(function(){return WordPartLeftCommand})),ne.d(Z,"CursorWordPartLeft",(function(){return CursorWordPartLeft})),ne.d(Z,"CursorWordPartLeftSelect",(function(){return CursorWordPartLeftSelect})),ne.d(Z,"WordPartRightCommand",(function(){return WordPartRightCommand})),ne.d(Z,"CursorWordPartRight",(function(){return CursorWordPartRight})),ne.d(Z,"CursorWordPartRightSelect",(function(){return CursorWordPartRightSelect}));var ie=ne(14),se=ne(580),ce=ne(12),fe=ne(23),me=ne(1364),ge=ne(98);class DeleteWordPartLeft extends me.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:fe.a.writable,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(G,Z){let ne=se.b.deleteWordPartLeft(G);return ne||new ce.a(1,1,1,1)}}class DeleteWordPartRight extends me.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:fe.a.writable,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(G,Z){let ne=se.b.deleteWordPartRight(G);if(ne)return ne;const ie=G.model.getLineCount(),fe=G.model.getLineMaxColumn(ie);return new ce.a(ie,fe,ie,fe)}}class WordPartLeftCommand extends me.MoveWordCommand{_move(G,Z,ne,ie){return se.b.moveWordPartLeft(G,Z,ne)}}class CursorWordPartLeft extends WordPartLeftCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}ge.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class CursorWordPartLeftSelect extends WordPartLeftCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}ge.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class WordPartRightCommand extends me.MoveWordCommand{_move(G,Z,ne,ie){return se.b.moveWordPartRight(G,Z,ne)}}class CursorWordPartRight extends WordPartRightCommand{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class CursorWordPartRightSelect extends WordPartRightCommand{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:fe.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}Object(ie.k)(new DeleteWordPartLeft),Object(ie.k)(new DeleteWordPartRight),Object(ie.k)(new CursorWordPartLeft),Object(ie.k)(new CursorWordPartLeftSelect),Object(ie.k)(new CursorWordPartRight),Object(ie.k)(new CursorWordPartRightSelect)},7628:function(G,Z,ne){var ie=ne(7629);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7629:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n\r\n/* Default standalone editor fonts */\r\n.monaco-editor {\r\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\r\n\t--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-hover p {\r\n\tmargin: 0;\r\n}\r\n\r\n/* See https://github.com/microsoft/monaco-editor/issues/2168#issuecomment-780078600 */\r\n.monaco-aria-container {\r\n\tposition: absolute !important;\r\n\ttop: 0; /* avoid being placed underneath a sibling element */\r\n\theight: 1px;\r\n\twidth: 1px;\r\n\tmargin: -1px;\r\n\toverflow: hidden;\r\n\tpadding: 0;\r\n\tclip: rect(1px, 1px, 1px, 1px);\r\n\tclip-path: inset(50%);\r\n}\r\n\r\n/* The hc-black theme is already high contrast optimized */\r\n.monaco-editor.hc-black {\r\n\t-ms-high-contrast-adjust: none;\r\n}\r\n/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\r\n@media screen and (-ms-high-contrast:active) {\r\n\r\n\t/* current line highlight */\r\n\t.monaco-editor.vs .view-overlays .current-line,\r\n\t.monaco-editor.vs-dark .view-overlays .current-line {\r\n\t\tborder-color: windowtext !important;\r\n\t\tborder-left: 0;\r\n\t\tborder-right: 0;\r\n\t}\r\n\r\n\t/* view cursors */\r\n\t.monaco-editor.vs .cursor,\r\n\t.monaco-editor.vs-dark .cursor {\r\n\t\tbackground-color: windowtext !important;\r\n\t}\r\n\t/* dnd target */\r\n\t.monaco-editor.vs .dnd-target,\r\n\t.monaco-editor.vs-dark .dnd-target {\r\n\t\tborder-color: windowtext !important;\r\n\t}\r\n\r\n\t/* selected text background */\r\n\t.monaco-editor.vs .selected-text,\r\n\t.monaco-editor.vs-dark .selected-text {\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\r\n\t/* allow the text to have a transparent background. */\r\n\t.monaco-editor.vs .view-line,\r\n\t.monaco-editor.vs-dark .view-line {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* text color */\r\n\t.monaco-editor.vs .view-line span,\r\n\t.monaco-editor.vs-dark .view-line span {\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t/* selected text color */\r\n\t.monaco-editor.vs .view-line span.inline-selected-text,\r\n\t.monaco-editor.vs-dark .view-line span.inline-selected-text {\r\n\t\tcolor: highlighttext !important;\r\n\t}\r\n\r\n\t/* allow decorations */\r\n\t.monaco-editor.vs .view-overlays,\r\n\t.monaco-editor.vs-dark .view-overlays {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* various decorations */\r\n\t.monaco-editor.vs .selectionHighlight,\r\n\t.monaco-editor.vs-dark .selectionHighlight,\r\n\t.monaco-editor.vs .wordHighlight,\r\n\t.monaco-editor.vs-dark .wordHighlight,\r\n\t.monaco-editor.vs .wordHighlightStrong,\r\n\t.monaco-editor.vs-dark .wordHighlightStrong,\r\n\t.monaco-editor.vs .reference-decoration,\r\n\t.monaco-editor.vs-dark .reference-decoration {\r\n\t\tborder: 2px dotted highlight !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .rangeHighlight,\r\n\t.monaco-editor.vs-dark .rangeHighlight {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px dotted activeborder !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .bracket-match,\r\n\t.monaco-editor.vs-dark .bracket-match {\r\n\t\tborder-color: windowtext !important;\r\n\t\tbackground: transparent !important;\r\n\t}\r\n\r\n\t/* find widget */\r\n\t.monaco-editor.vs .findMatch,\r\n\t.monaco-editor.vs-dark .findMatch,\r\n\t.monaco-editor.vs .currentFindMatch,\r\n\t.monaco-editor.vs-dark .currentFindMatch {\r\n\t\tborder: 2px dotted activeborder !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .find-widget,\r\n\t.monaco-editor.vs-dark .find-widget {\r\n\t\tborder: 1px solid windowtext;\r\n\t}\r\n\r\n\t/* list - used by suggest widget */\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row.focused,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row:hover,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* scrollbars */\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: background !important;\r\n\t\tborder: 1px solid windowtext;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n\t\tbackground: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\r\n\t/* overview ruler */\r\n\t.monaco-editor.vs .decorationsOverviewRuler,\r\n\t.monaco-editor.vs-dark .decorationsOverviewRuler {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t/* minimap */\r\n\t.monaco-editor.vs .minimap,\r\n\t.monaco-editor.vs-dark .minimap {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t/* squiggles */\r\n\t.monaco-editor.vs .squiggly-d-error,\r\n\t.monaco-editor.vs-dark .squiggly-d-error {\r\n\t\tbackground: transparent !important;\r\n\t\tborder-bottom: 4px double #E47777;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-c-warning,\r\n\t.monaco-editor.vs-dark .squiggly-c-warning {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-b-info,\r\n\t.monaco-editor.vs-dark .squiggly-b-info {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-a-hint,\r\n\t.monaco-editor.vs-dark .squiggly-a-hint {\r\n\t\tborder-bottom: 4px double #6c6c6c;\r\n\t}\r\n\r\n\t/* contextmenu */\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* diff editor */\r\n\t.monaco-diff-editor.vs .diffOverviewRuler,\r\n\t.monaco-diff-editor.vs-dark .diffOverviewRuler {\r\n\t\tdisplay: none;\r\n\t}\r\n\t.monaco-editor.vs .line-insert,\r\n\t.monaco-editor.vs-dark .line-insert,\r\n\t.monaco-editor.vs .line-delete,\r\n\t.monaco-editor.vs-dark .line-delete {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .char-insert,\r\n\t.monaco-editor.vs-dark .char-insert,\r\n\t.monaco-editor.vs .char-delete,\r\n\t.monaco-editor.vs-dark .char-delete {\r\n\t\tbackground: transparent !important;\r\n\t}\r\n}\r\n\r\n/*.monaco-editor.vs [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}\r\n\r\n.monaco-editor.vs-dark [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}*/\r\n',""]),G.exports=Z},763:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},7630:function(G,Z,ne){var ie=ne(7631);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7631:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- DiffEditor ---------- */\r\n\r\n.monaco-diff-editor .diffOverview {\r\n\tz-index: 9;\r\n}\r\n\r\n.monaco-diff-editor .diffOverview .diffViewport {\r\n\tz-index: 10;\r\n}\r\n\r\n/* colors not externalized: using transparancy on background */\r\n.monaco-diff-editor.vs\t\t\t.diffOverview { background: rgba(0, 0, 0, 0.03); }\r\n.monaco-diff-editor.vs-dark\t\t.diffOverview { background: rgba(255, 255, 255, 0.01); }\r\n\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs\t\t.scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark\t.scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black\t.scrollbar { background: none; }\r\n\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\r\n\tz-index: 10;\r\n}\r\n.modified-in-monaco-diff-editor\t\t\t\t.slider.active { background: rgba(171, 171, 171, .4); }\r\n.modified-in-monaco-diff-editor.hc-black\t.slider.active { background: none; }\r\n\r\n/* ---------- Diff ---------- */\r\n\r\n.monaco-editor .insert-sign,\r\n.monaco-diff-editor .insert-sign,\r\n.monaco-editor .delete-sign,\r\n.monaco-diff-editor .delete-sign {\r\n\tfont-size: 11px !important;\r\n\topacity: 0.7 !important;\r\n\tdisplay: flex !important;\r\n\talign-items: center;\r\n}\r\n.monaco-editor.hc-black .insert-sign,\r\n.monaco-diff-editor.hc-black .insert-sign,\r\n.monaco-editor.hc-black .delete-sign,\r\n.monaco-diff-editor.hc-black .delete-sign {\r\n\topacity: 1;\r\n}\r\n\r\n.monaco-editor .inline-deleted-margin-view-zone {\r\n\ttext-align: right;\r\n}\r\n.monaco-editor .inline-added-margin-view-zone {\r\n\ttext-align: right;\r\n}\r\n\r\n/* ---------- Inline Diff ---------- */\r\n\r\n.monaco-editor .view-zones .view-lines .view-line span {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-editor .margin-view-zones .lightbulb-glyph:hover {\r\n\tcursor: pointer;\r\n}\r\n",""]),G.exports=Z},7632:function(G,Z,ne){var ie=ne(7633);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7633:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-diff-editor .diff-review-line-number {\r\n\ttext-align: right;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-diff-editor .diff-review {\r\n\tposition: absolute;\r\n\tuser-select: none;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-summary {\r\n\tpadding-left: 10px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-shadow {\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n\twhite-space: pre;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-table {\r\n\tdisplay: table;\r\n\tmin-width: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n\tdisplay: table-row;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-spacer {\r\n\tdisplay: inline-block;\r\n\twidth: 10px;\r\n\tvertical-align: middle;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-spacer > .codicon {\r\n\tfont-size: 9px !important;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions {\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\tright: 10px;\r\n\ttop: 2px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions .action-label {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tmargin: 2px 0;\r\n}\r\n",""]),G.exports=Z},7634:function(G,Z,ne){var ie=ne(7635);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7635:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view .monaco-menu {\r\n\tmin-width: 130px;\r\n}\r\n\r\n",""]),G.exports=Z},7636:function(G,Z,ne){var ie=ne(7637);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7637:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view {\r\n\tposition: absolute;\r\n\tz-index: 2500;\r\n}\r\n\r\n.context-view.fixed {\r\n\tall: initial;\r\n\tfont-family: inherit;\r\n\tfont-size: 13px;\r\n\tposition: fixed;\r\n\tz-index: 2500;\r\n\tcolor: inherit;\r\n}\r\n",""]),G.exports=Z},7638:function(G,Z,ne){var ie=ne(7639);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7639:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.quick-input-widget {\r\n\tfont-size: 13px;\r\n}\r\n\r\n.quick-input-widget .monaco-highlighted-label .highlight,\r\n.quick-input-widget .monaco-highlighted-label .highlight {\r\n\tcolor: #0066BF;\r\n}\r\n\r\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,\r\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight {\r\n\tcolor: #9DDDFF;\r\n}\r\n\r\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\r\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\r\n\tcolor: #0097fb;\r\n}\r\n\r\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\r\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\r\n\tcolor: #F38518;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key {\r\n\tbackground-color: rgba(221, 221, 221, 0.4);\r\n\tborder: solid 1px rgba(204, 204, 204, 0.4);\r\n\tborder-bottom-color: rgba(187, 187, 187, 0.4);\r\n\tbox-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\r\n\tcolor: #555;\r\n}\r\n\r\n.hc-black .monaco-keybinding > .monaco-keybinding-key {\r\n\tbackground-color: transparent;\r\n\tborder: solid 1px rgb(111, 195, 223);\r\n\tbox-shadow: none;\r\n\tcolor: #fff;\r\n}\r\n\r\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\r\n\tbackground-color: rgba(128, 128, 128, 0.17);\r\n\tborder: solid 1px rgba(51, 51, 51, 0.6);\r\n\tborder-bottom-color: rgba(68, 68, 68, 0.6);\r\n\tbox-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\r\n\tcolor: #ccc;\r\n}\r\n",""]),G.exports=Z},764:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(1623)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},7640:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.quick-input-widget {\r\n\tposition: absolute;\r\n\twidth: 600px;\r\n\tz-index: 2000;\r\n\tpadding: 0 1px 6px 1px;\r\n\tleft: 50%;\r\n\tmargin-left: -300px;\r\n}\r\n\r\n.quick-input-titlebar {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n\r\n.quick-input-left-action-bar {\r\n\tdisplay: flex;\r\n\tmargin-left: 4px;\r\n\tflex: 1;\r\n}\r\n\r\n.quick-input-title {\r\n\tpadding: 3px 0px;\r\n\ttext-align: center;\r\n}\r\n\r\n.quick-input-right-action-bar {\r\n\tdisplay: flex;\r\n\tmargin-right: 4px;\r\n\tflex: 1;\r\n}\r\n\r\n.quick-input-right-action-bar > .actions-container {\r\n\tjustify-content: flex-end;\r\n}\r\n\r\n.quick-input-titlebar .monaco-action-bar .action-label.codicon {\r\n\tbackground-position: center;\r\n\tbackground-repeat: no-repeat;\r\n\tpadding: 2px;\r\n}\r\n\r\n.quick-input-description {\r\n\tmargin: 6px;\r\n}\r\n\r\n.quick-input-header .quick-input-description {\r\n\tmargin: 4px 2px;\r\n}\r\n\r\n.quick-input-header {\r\n\tdisplay: flex;\r\n\tpadding: 6px 6px 0px 6px;\r\n\tmargin-bottom: -2px;\r\n}\r\n\r\n.quick-input-widget.hidden-input .quick-input-header {\r\n\t/* reduce margins and paddings when input box hidden */\r\n\tpadding: 0;\r\n\tmargin-bottom: 0;\r\n}\r\n\r\n.quick-input-and-message {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\tflex-grow: 1;\r\n\tposition: relative;\r\n}\r\n\r\n.quick-input-check-all {\r\n\talign-self: center;\r\n\tmargin: 0;\r\n}\r\n\r\n.quick-input-filter {\r\n\tflex-grow: 1;\r\n\tdisplay: flex;\r\n\tposition: relative;\r\n}\r\n\r\n.quick-input-box {\r\n\tflex-grow: 1;\r\n}\r\n\r\n.quick-input-widget.show-checkboxes .quick-input-box,\r\n.quick-input-widget.show-checkboxes .quick-input-message {\r\n\tmargin-left: 5px;\r\n}\r\n\r\n.quick-input-visible-count {\r\n\tposition: absolute;\r\n\tleft: -10000px;\r\n}\r\n\r\n.quick-input-count {\r\n\talign-self: center;\r\n\tposition: absolute;\r\n\tright: 4px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n\r\n.quick-input-count .monaco-count-badge {\r\n\tvertical-align: middle;\r\n\tpadding: 2px 4px;\r\n\tborder-radius: 2px;\r\n\tmin-height: auto;\r\n\tline-height: normal;\r\n}\r\n\r\n.quick-input-action {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n.quick-input-action .monaco-text-button {\r\n\tfont-size: 11px;\r\n\tpadding: 0 6px;\r\n\tdisplay: flex;\r\n\theight: 27.5px;\r\n\talign-items: center;\r\n}\r\n\r\n.quick-input-message {\r\n\tmargin-top: -1px;\r\n\tpadding: 5px 5px 2px 5px;\r\n}\r\n\r\n.quick-input-message > .codicon {\r\n\tmargin: 0 0.2em;\r\n\tvertical-align: text-bottom;\r\n}\r\n\r\n.quick-input-progress.monaco-progress-container {\r\n\tposition: relative;\r\n}\r\n\r\n.quick-input-progress.monaco-progress-container,\r\n.quick-input-progress.monaco-progress-container .progress-bit {\r\n\theight: 2px;\r\n}\r\n\r\n.quick-input-list {\r\n\tline-height: 22px;\r\n\tmargin-top: 6px;\r\n}\r\n\r\n.quick-input-widget.hidden-input .quick-input-list {\r\n\tmargin-top: 0; /* reduce margins when input box hidden */\r\n}\r\n\r\n.quick-input-list .monaco-list {\r\n\toverflow: hidden;\r\n\tmax-height: calc(20 * 22px);\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry {\r\n\tbox-sizing: border-box;\r\n\toverflow: hidden;\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n\tpadding: 0 6px;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry.quick-input-list-separator-border {\r\n\tborder-top-width: 1px;\r\n\tborder-top-style: solid;\r\n}\r\n\r\n.quick-input-list .monaco-list-row[data-index=\"0\"] .quick-input-list-entry.quick-input-list-separator-border {\r\n\tborder-top-style: none;\r\n}\r\n\r\n.quick-input-list .quick-input-list-label {\r\n\toverflow: hidden;\r\n\tdisplay: flex;\r\n\theight: 100%;\r\n\tflex: 1;\r\n}\r\n\r\n.quick-input-list .quick-input-list-checkbox {\r\n\talign-self: center;\r\n\tmargin: 0;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows {\r\n\toverflow: hidden;\r\n\ttext-overflow: ellipsis;\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\theight: 100%;\r\n\tflex: 1;\r\n\tmargin-left: 5px;\r\n}\r\n\r\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows {\r\n\tmargin-left: 10px;\r\n}\r\n\r\n.quick-input-widget .quick-input-list .quick-input-list-checkbox {\r\n\tdisplay: none;\r\n}\r\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox {\r\n\tdisplay: inline;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label,\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container {\r\n\tflex: 1; /* make sure the icon label grows within the row */\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] {\r\n\tvertical-align: text-bottom;\r\n}\r\n\r\n.quick-input-list .quick-input-list-rows .monaco-highlighted-label span {\r\n\topacity: 1;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {\r\n\tmargin-right: 8px; /* separate from the separator label or scrollbar if any */\r\n}\r\n\r\n.quick-input-list .quick-input-list-label-meta {\r\n\topacity: 0.7;\r\n\tline-height: normal;\r\n\ttext-overflow: ellipsis;\r\n\toverflow: hidden;\r\n}\r\n\r\n.quick-input-list .monaco-highlighted-label .highlight {\r\n\tfont-weight: bold;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-separator {\r\n\tmargin-right: 8px; /* separate from keybindings or actions */\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n\tdisplay: flex;\r\n\tflex: 0;\r\n\toverflow: visible;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar .action-label {\r\n\t/*\r\n\t * By default, actions in the quick input action bar are hidden\r\n\t * until hovered over them or selected.\r\n\t */\r\n\tdisplay: none;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\r\n\tmargin-right: 4px;\r\n\tpadding: 0px 2px 2px 2px;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n\tmargin-top: 1px;\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry-action-bar {\r\n\tmargin-right: 4px; /* separate from scrollbar */\r\n}\r\n\r\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,\r\n.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,\r\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label {\r\n\tdisplay: flex;\r\n}\r\n\r\n/* focused items in quick pick */\r\n.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,\r\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator {\r\n\tcolor: inherit\r\n}\r\n.quick-input-list .monaco-list-row.focused .monaco-keybinding-key {\r\n\tbackground: none;\r\n}\r\n",""]),G.exports=Z},7641:function(G,Z,ne){var ie=ne(7642);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7642:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-keybinding {\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tline-height: 10px;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key {\r\n\tdisplay: inline-block;\r\n\tborder-style: solid;\r\n\tborder-width: 1px;\r\n\tborder-radius: 3px;\r\n\tvertical-align: middle;\r\n\tfont-size: 11px;\r\n\tpadding: 3px 5px;\r\n\tmargin: 0 2px;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key:first-child {\r\n\tmargin-left: 0;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key:last-child {\r\n\tmargin-right: 0;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key-separator {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\r\n\twidth: 6px;\r\n}\r\n",""]),G.exports=Z},7643:function(G,Z,ne){var ie=ne(7644);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7644:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-progress-container {\r\n\twidth: 100%;\r\n\theight: 5px;\r\n\toverflow: hidden; /* keep progress bit in bounds */\r\n}\r\n\r\n.monaco-progress-container .progress-bit {\r\n\twidth: 2%;\r\n\theight: 5px;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-progress-container.active .progress-bit {\r\n\tdisplay: inherit;\r\n}\r\n\r\n.monaco-progress-container.discrete .progress-bit {\r\n\tleft: 0;\r\n\ttransition: width 100ms linear;\r\n}\r\n\r\n.monaco-progress-container.discrete.done .progress-bit {\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-progress-container.infinite .progress-bit {\r\n\tanimation-name: progress;\r\n\tanimation-duration: 4s;\r\n\tanimation-iteration-count: infinite;\r\n\tanimation-timing-function: linear;\r\n\ttransform: translate3d(0px, 0px, 0px);\r\n}\r\n\r\n/**\r\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\r\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\r\n * its relative size to the parent container:\r\n * parent width: 5000%\r\n * bit width: 100%\r\n * translateX should be as follow:\r\n * 50%: 5000% * 50% - 50% (set to center) = 2450%\r\n * 100%: 5000% * 100% - 100% (do not overflow) = 4900%\r\n */\r\n@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4900%) scaleX(1) } }\r\n",""]),G.exports=Z},7645:function(G,Z,ne){var ie=ne(7646);"string"==typeof ie&&(ie=[[G.i,ie,""]]);var se={hmr:!0,transform:void 0,insertInto:void 0};ne(38)(ie,se);ie.locals&&(G.exports=ie.locals)},7646:function(G,Z,ne){(Z=ne(37)(!1)).push([G.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-text-button {\r\n\tbox-sizing: border-box;\r\n\tdisplay: flex;\r\n\twidth: 100%;\r\n\tpadding: 4px;\r\n\ttext-align: center;\r\n\tcursor: pointer;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-text-button:focus {\r\n\toutline-offset: 2px !important;\r\n}\r\n\r\n.monaco-text-button:hover {\r\n\ttext-decoration: none !important;\r\n}\r\n\r\n.monaco-button.disabled:focus,\r\n.monaco-button.disabled {\r\n\topacity: 0.4 !important;\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-text-button > .codicon {\r\n\tmargin: 0 0.2em;\r\n\tcolor: inherit !important;\r\n}\r\n\r\n.monaco-button-dropdown {\r\n\tdisplay: flex;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-button-dropdown > .monaco-dropdown-button {\r\n\tmargin-left: 1px;\r\n}\r\n\r\n.monaco-description-button {\r\n\tflex-direction: column;\r\n}\r\n\r\n.monaco-description-button .monaco-button-label {\r\n\tfont-weight: 500;\r\n}\r\n\r\n.monaco-description-button .monaco-button-description {\r\n\tfont-style: italic;\r\n}\r\n",""]),G.exports=Z},7647:function(G,Z){(function(Z){G.exports=Z}).call(this,{})},7648:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"jsonDefaults",(function(){return se}));ne(419);var ie=ne(1663),se=new(function(){function LanguageServiceDefaultsImpl(G,Z,ne){this._onDidChange=new ie.Emitter,this._languageId=G,this.setDiagnosticsOptions(Z),this.setModeConfiguration(ne)}return Object.defineProperty(LanguageServiceDefaultsImpl.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(LanguageServiceDefaultsImpl.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(LanguageServiceDefaultsImpl.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(LanguageServiceDefaultsImpl.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),LanguageServiceDefaultsImpl.prototype.setDiagnosticsOptions=function(G){this._diagnosticsOptions=G||Object.create(null),this._onDidChange.fire(this)},LanguageServiceDefaultsImpl.prototype.setModeConfiguration=function(G){this._modeConfiguration=G||Object.create(null),this._onDidChange.fire(this)},LanguageServiceDefaultsImpl}())("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});ie.languages.json={jsonDefaults:se},ie.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),ie.languages.onLanguage("json",(function(){(function getMode(){return ne.e(35).then(ne.bind(null,8433))})().then((function(G){return G.setupMode(se)}))}))},7649:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.CodeGen=Z.Name=Z.nil=Z.stringify=Z.str=Z._=Z.KeywordCxt=void 0;var ie=ne(2026);Object.defineProperty(Z,"KeywordCxt",{enumerable:!0,get:function(){return ie.KeywordCxt}});var se=ne(233);Object.defineProperty(Z,"_",{enumerable:!0,get:function(){return se._}}),Object.defineProperty(Z,"str",{enumerable:!0,get:function(){return se.str}}),Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return se.stringify}}),Object.defineProperty(Z,"nil",{enumerable:!0,get:function(){return se.nil}}),Object.defineProperty(Z,"Name",{enumerable:!0,get:function(){return se.Name}}),Object.defineProperty(Z,"CodeGen",{enumerable:!0,get:function(){return se.CodeGen}});const ce=ne(4157),fe=ne(4158),me=ne(4155),ge=ne(4159),Ce=ne(233),Se=ne(2030),Me=ne(2029),ke=ne(286),xe=ne(7655),De=["removeAdditional","useDefaults","coerceTypes"],Ie=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Re={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},ze={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function requiredOptions(G){var Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze,$e,Je,it,ot,at;const st=G.strict,ct=null===(Z=G.code)||void 0===Z?void 0:Z.optimize,ut=!0===ct||void 0===ct?1:ct||0;return{strictSchema:null===(ie=null!==(ne=G.strictSchema)&&void 0!==ne?ne:st)||void 0===ie||ie,strictNumbers:null===(ce=null!==(se=G.strictNumbers)&&void 0!==se?se:st)||void 0===ce||ce,strictTypes:null!==(me=null!==(fe=G.strictTypes)&&void 0!==fe?fe:st)&&void 0!==me?me:"log",strictTuples:null!==(Ce=null!==(ge=G.strictTuples)&&void 0!==ge?ge:st)&&void 0!==Ce?Ce:"log",strictRequired:null!==(Me=null!==(Se=G.strictRequired)&&void 0!==Se?Se:st)&&void 0!==Me&&Me,code:G.code?{...G.code,optimize:ut}:{optimize:ut},loopRequired:null!==(ke=G.loopRequired)&&void 0!==ke?ke:200,loopEnum:null!==(xe=G.loopEnum)&&void 0!==xe?xe:200,meta:null===(De=G.meta)||void 0===De||De,messages:null===(Ie=G.messages)||void 0===Ie||Ie,inlineRefs:null===(Re=G.inlineRefs)||void 0===Re||Re,schemaId:null!==(ze=G.schemaId)&&void 0!==ze?ze:"$id",addUsedSchema:null===($e=G.addUsedSchema)||void 0===$e||$e,validateSchema:null===(Je=G.validateSchema)||void 0===Je||Je,validateFormats:null===(it=G.validateFormats)||void 0===it||it,unicodeRegExp:null===(ot=G.unicodeRegExp)||void 0===ot||ot,int32range:null===(at=G.int32range)||void 0===at||at}}class Ajv{constructor(G={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,G=this.opts={...G,...requiredOptions(G)};const{es5:Z,lines:ne}=this.opts.code;this.scope=new Ce.ValueScope({scope:{},prefixes:Ie,es5:Z,lines:ne}),this.logger=function getLogger(G){if(!1===G)return $e;if(void 0===G)return console;if(G.log&&G.warn&&G.error)return G;throw new Error("logger must implement log, warn and error methods")}(G.logger);const ie=G.validateFormats;G.validateFormats=!1,this.RULES=(0,me.getRules)(),checkOptions.call(this,Re,G,"NOT SUPPORTED"),checkOptions.call(this,ze,G,"DEPRECATED","warn"),this._metaOpts=getMetaSchemaOptions.call(this),G.formats&&addInitialFormats.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),G.keywords&&addInitialKeywords.call(this,G.keywords),"object"==typeof G.meta&&this.addMetaSchema(G.meta),addInitialSchemas.call(this),G.validateFormats=ie}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:G,meta:Z,schemaId:ne}=this.opts;let ie=xe;"id"===ne&&(ie={...xe},ie.id=ie.$id,delete ie.$id),Z&&G&&this.addMetaSchema(ie,ie[ne],!1)}defaultMeta(){const{meta:G,schemaId:Z}=this.opts;return this.opts.defaultMeta="object"==typeof G?G[Z]||G:void 0}validate(G,Z){let ne;if("string"==typeof G){if(ne=this.getSchema(G),!ne)throw new Error(`no schema with key or ref "${G}"`)}else ne=this.compile(G);const ie=ne(Z);return"$async"in ne||(this.errors=ne.errors),ie}compile(G,Z){const ne=this._addSchema(G,Z);return ne.validate||this._compileSchemaEnv(ne)}compileAsync(G,Z){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:ne}=this.opts;return runCompileAsync.call(this,G,Z);async function runCompileAsync(G,Z){await loadMetaSchema.call(this,G.$schema);const ne=this._addSchema(G,Z);return ne.validate||_compileAsync.call(this,ne)}async function loadMetaSchema(G){G&&!this.getSchema(G)&&await runCompileAsync.call(this,{$ref:G},!0)}async function _compileAsync(G){try{return this._compileSchemaEnv(G)}catch(Z){if(!(Z instanceof fe.default))throw Z;return checkLoaded.call(this,Z),await loadMissingSchema.call(this,Z.missingSchema),_compileAsync.call(this,G)}}function checkLoaded({missingSchema:G,missingRef:Z}){if(this.refs[G])throw new Error(`AnySchema ${G} is loaded but ${Z} cannot be resolved`)}async function loadMissingSchema(G){const ne=await _loadSchema.call(this,G);this.refs[G]||await loadMetaSchema.call(this,ne.$schema),this.refs[G]||this.addSchema(ne,G,Z)}async function _loadSchema(G){const Z=this._loading[G];if(Z)return Z;try{return await(this._loading[G]=ne(G))}finally{delete this._loading[G]}}}addSchema(G,Z,ne,ie=this.opts.validateSchema){if(Array.isArray(G)){for(const Z of G)this.addSchema(Z,void 0,ne,ie);return this}let se;if("object"==typeof G){const{schemaId:Z}=this.opts;if(se=G[Z],void 0!==se&&"string"!=typeof se)throw new Error(`schema ${Z} must be string`)}return Z=(0,Se.normalizeId)(Z||se),this._checkUnique(Z),this.schemas[Z]=this._addSchema(G,ne,Z,ie,!0),this}addMetaSchema(G,Z,ne=this.opts.validateSchema){return this.addSchema(G,Z,!0,ne),this}validateSchema(G,Z){if("boolean"==typeof G)return!0;let ne;if(ne=G.$schema,void 0!==ne&&"string"!=typeof ne)throw new Error("$schema must be a string");if(ne=ne||this.opts.defaultMeta||this.defaultMeta(),!ne)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const ie=this.validate(ne,G);if(!ie&&Z){const G="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(G);this.logger.error(G)}return ie}getSchema(G){let Z;for(;"string"==typeof(Z=getSchEnv.call(this,G));)G=Z;if(void 0===Z){const{schemaId:ne}=this.opts,ie=new ge.SchemaEnv({schema:{},schemaId:ne});if(Z=ge.resolveSchema.call(this,ie,G),!Z)return;this.refs[G]=Z}return Z.validate||this._compileSchemaEnv(Z)}removeSchema(G){if(G instanceof RegExp)return this._removeAllSchemas(this.schemas,G),this._removeAllSchemas(this.refs,G),this;switch(typeof G){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const Z=getSchEnv.call(this,G);return"object"==typeof Z&&this._cache.delete(Z.schema),delete this.schemas[G],delete this.refs[G],this}case"object":{const Z=G;this._cache.delete(Z);let ne=G[this.opts.schemaId];return ne&&(ne=(0,Se.normalizeId)(ne),delete this.schemas[ne],delete this.refs[ne]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(G){for(const Z of G)this.addKeyword(Z);return this}addKeyword(G,Z){let ne;if("string"==typeof G)ne=G,"object"==typeof Z&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Z.keyword=ne);else{if("object"!=typeof G||void 0!==Z)throw new Error("invalid addKeywords parameters");if(ne=(Z=G).keyword,Array.isArray(ne)&&!ne.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(checkKeyword.call(this,ne,Z),!Z)return(0,ke.eachItem)(ne,G=>addRule.call(this,G)),this;keywordMetaschema.call(this,Z);const ie={...Z,type:(0,Me.getJSONTypes)(Z.type),schemaType:(0,Me.getJSONTypes)(Z.schemaType)};return(0,ke.eachItem)(ne,0===ie.type.length?G=>addRule.call(this,G,ie):G=>ie.type.forEach(Z=>addRule.call(this,G,ie,Z))),this}getKeyword(G){const Z=this.RULES.all[G];return"object"==typeof Z?Z.definition:!!Z}removeKeyword(G){const{RULES:Z}=this;delete Z.keywords[G],delete Z.all[G];for(const ne of Z.rules){const Z=ne.rules.findIndex(Z=>Z.keyword===G);Z>=0&&ne.rules.splice(Z,1)}return this}addFormat(G,Z){return"string"==typeof Z&&(Z=new RegExp(Z)),this.formats[G]=Z,this}errorsText(G=this.errors,{separator:Z=", ",dataVar:ne="data"}={}){return G&&0!==G.length?G.map(G=>`${ne}${G.instancePath} ${G.message}`).reduce((G,ne)=>G+Z+ne):"No errors"}$dataMetaSchema(G,Z){const ne=this.RULES.all;G=JSON.parse(JSON.stringify(G));for(const ie of Z){const Z=ie.split("/").slice(1);let se=G;for(const G of Z)se=se[G];for(const G in ne){const Z=ne[G];if("object"!=typeof Z)continue;const{$data:ie}=Z.definition,ce=se[G];ie&&ce&&(se[G]=schemaOrData(ce))}}return G}_removeAllSchemas(G,Z){for(const ne in G){const ie=G[ne];Z&&!Z.test(ne)||("string"==typeof ie?delete G[ne]:ie&&!ie.meta&&(this._cache.delete(ie.schema),delete G[ne]))}}_addSchema(G,Z,ne,ie=this.opts.validateSchema,se=this.opts.addUsedSchema){let ce;const{schemaId:fe}=this.opts;if("object"==typeof G)ce=G[fe];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof G)throw new Error("schema must be object or boolean")}let me=this._cache.get(G);if(void 0!==me)return me;ne=(0,Se.normalizeId)(ce||ne);const Ce=Se.getSchemaRefs.call(this,G,ne);return me=new ge.SchemaEnv({schema:G,schemaId:fe,meta:Z,baseId:ne,localRefs:Ce}),this._cache.set(me.schema,me),se&&!ne.startsWith("#")&&(ne&&this._checkUnique(ne),this.refs[ne]=me),ie&&this.validateSchema(G,!0),me}_checkUnique(G){if(this.schemas[G]||this.refs[G])throw new Error(`schema with key or id "${G}" already exists`)}_compileSchemaEnv(G){if(G.meta?this._compileMetaSchema(G):ge.compileSchema.call(this,G),!G.validate)throw new Error("ajv implementation error");return G.validate}_compileMetaSchema(G){const Z=this.opts;this.opts=this._metaOpts;try{ge.compileSchema.call(this,G)}finally{this.opts=Z}}}function checkOptions(G,Z,ne,ie="error"){for(const se in G){const ce=se;ce in Z&&this.logger[ie](`${ne}: option ${se}. ${G[ce]}`)}}function getSchEnv(G){return G=(0,Se.normalizeId)(G),this.schemas[G]||this.refs[G]}function addInitialSchemas(){const G=this.opts.schemas;if(G)if(Array.isArray(G))this.addSchema(G);else for(const Z in G)this.addSchema(G[Z],Z)}function addInitialFormats(){for(const G in this.opts.formats){const Z=this.opts.formats[G];Z&&this.addFormat(G,Z)}}function addInitialKeywords(G){if(Array.isArray(G))this.addVocabulary(G);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const Z in G){const ne=G[Z];ne.keyword||(ne.keyword=Z),this.addKeyword(ne)}}}function getMetaSchemaOptions(){const G={...this.opts};for(const Z of De)delete G[Z];return G}Z.default=Ajv,Ajv.ValidationError=ce.default,Ajv.MissingRefError=fe.default;const $e={log(){},warn(){},error(){}};const Je=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(G,Z){const{RULES:ne}=this;if((0,ke.eachItem)(G,G=>{if(ne.keywords[G])throw new Error(`Keyword ${G} is already defined`);if(!Je.test(G))throw new Error(`Keyword ${G} has invalid name`)}),Z&&Z.$data&&!("code"in Z)&&!("validate"in Z))throw new Error('$data keyword must have "code" or "validate" function')}function addRule(G,Z,ne){var ie;const se=null==Z?void 0:Z.post;if(ne&&se)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:ce}=this;let fe=se?ce.post:ce.rules.find(({type:G})=>G===ne);if(fe||(fe={type:ne,rules:[]},ce.rules.push(fe)),ce.keywords[G]=!0,!Z)return;const me={keyword:G,definition:{...Z,type:(0,Me.getJSONTypes)(Z.type),schemaType:(0,Me.getJSONTypes)(Z.schemaType)}};Z.before?addBeforeRule.call(this,fe,me,Z.before):fe.rules.push(me),ce.all[G]=me,null===(ie=Z.implements)||void 0===ie||ie.forEach(G=>this.addKeyword(G))}function addBeforeRule(G,Z,ne){const ie=G.rules.findIndex(G=>G.keyword===ne);ie>=0?G.rules.splice(ie,0,Z):(G.rules.push(Z),this.logger.warn(`rule ${ne} is not defined`))}function keywordMetaschema(G){let{metaSchema:Z}=G;void 0!==Z&&(G.$data&&this.opts.$data&&(Z=schemaOrData(Z)),G.validateSchema=this.compile(Z,!0))}const it={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(G){return{anyOf:[G,it]}}},765:function(G,Z,ne){"use strict";function getSurroundingWord(G,Z){if(!G)throw Error("Argument 'text' should be truthy");for(var isWordDelimiter=function(G){return" "===G||10===G.charCodeAt(0)},ne=0,ie=G.length,se=Z;se-1>-1;se--)if(isWordDelimiter(G[se-1])){ne=se;break}for(se=Z;se=0&&ne>=0;se--)switch(G.charCodeAt(se)){case 32:continue;case 10:ne--,ie=!1;break;default:return ne}return ie?0:ne},Z.getBreaksNeededForEmptyLineAfter=function getBreaksNeededForEmptyLineAfter(G,Z){if(void 0===G&&(G=""),Z===G.length-1)return 0;for(var ne=2,ie=!0,se=Z;se=0;se++)switch(G.charCodeAt(se)){case 32:continue;case 10:ne--,ie=!1;break;default:return ne}return ie?0:ne}},7650:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.boolOrEmptySchema=Z.topBoolOrEmptySchema=void 0;const ie=ne(2027),se=ne(233),ce=ne(981),fe={message:"boolean schema is false"};function falseSchemaError(G,Z){const{gen:ne,data:se}=G,ce={gen:ne,keyword:"false schema",data:se,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:G};(0,ie.reportError)(ce,fe,void 0,Z)}Z.topBoolOrEmptySchema=function topBoolOrEmptySchema(G){const{gen:Z,schema:ne,validateName:ie}=G;!1===ne?falseSchemaError(G,!1):"object"==typeof ne&&!0===ne.$async?Z.return(ce.default.data):(Z.assign(se._`${ie}.errors`,null),Z.return(!0))},Z.boolOrEmptySchema=function boolOrEmptySchema(G,Z){const{gen:ne,schema:ie}=G;!1===ie?(ne.var(Z,!1),falseSchemaError(G)):ne.var(Z,!0)}},7651:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.assignDefaults=void 0;const ie=ne(233),se=ne(286);function assignDefault(G,Z,ne){const{gen:ce,compositeRule:fe,data:me,opts:ge}=G;if(void 0===ne)return;const Ce=ie._`${me}${(0,ie.getProperty)(Z)}`;if(fe)return void(0,se.checkStrictMode)(G,"default is ignored for: "+Ce);let Se=ie._`${Ce} === undefined`;"empty"===ge.useDefaults&&(Se=ie._`${Se} || ${Ce} === null || ${Ce} === ""`),ce.if(Se,ie._`${Ce} = ${(0,ie.stringify)(ne)}`)}Z.assignDefaults=function assignDefaults(G,Z){const{properties:ne,items:ie}=G.schema;if("object"===Z&&ne)for(const Z in ne)assignDefault(G,Z,ne[Z].default);else"array"===Z&&Array.isArray(ie)&&ie.forEach((Z,ne)=>assignDefault(G,ne,Z.default))}},7652:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateKeywordUsage=Z.validSchemaType=Z.funcKeywordCode=Z.macroKeywordCode=void 0;const ie=ne(233),se=ne(981),ce=ne(766),fe=ne(2027);function modifyData(G){const{gen:Z,data:ne,it:se}=G;Z.if(se.parentData,()=>Z.assign(ne,ie._`${se.parentData}[${se.parentDataProperty}]`))}function useKeyword(G,Z,ne){if(void 0===ne)throw new Error(`keyword "${Z}" failed to compile`);return G.scopeValue("keyword","function"==typeof ne?{ref:ne}:{ref:ne,code:(0,ie.stringify)(ne)})}Z.macroKeywordCode=function macroKeywordCode(G,Z){const{gen:ne,keyword:se,schema:ce,parentSchema:fe,it:me}=G,ge=Z.macro.call(me.self,ce,fe,me),Ce=useKeyword(ne,se,ge);!1!==me.opts.validateSchema&&me.self.validateSchema(ge,!0);const Se=ne.name("valid");G.subschema({schema:ge,schemaPath:ie.nil,errSchemaPath:`${me.errSchemaPath}/${se}`,topSchemaRef:Ce,compositeRule:!0},Se),G.pass(Se,()=>G.error(!0))},Z.funcKeywordCode=function funcKeywordCode(G,Z){var ne;const{gen:me,keyword:ge,schema:Ce,parentSchema:Se,$data:Me,it:ke}=G;!function checkAsyncKeyword({schemaEnv:G},Z){if(Z.async&&!G.$async)throw new Error("async keyword in sync schema")}(ke,Z);const xe=!Me&&Z.compile?Z.compile.call(ke.self,Ce,Se,ke):Z.validate,De=useKeyword(me,ge,xe),Ie=me.let("valid");function assignValid(ne=(Z.async?ie._`await `:ie.nil)){const fe=ke.opts.passContext?se.default.this:se.default.self,ge=!("compile"in Z&&!Me||!1===Z.schema);me.assign(Ie,ie._`${ne}${(0,ce.callValidateCode)(G,De,fe,ge)}`,Z.modifying)}function reportErrs(G){var ne;me.if((0,ie.not)(null!==(ne=Z.valid)&&void 0!==ne?ne:Ie),G)}G.block$data(Ie,(function validateKeyword(){if(!1===Z.errors)assignValid(),Z.modifying&&modifyData(G),reportErrs(()=>G.error());else{const ne=Z.async?function validateAsync(){const G=me.let("ruleErrs",null);return me.try(()=>assignValid(ie._`await `),Z=>me.assign(Ie,!1).if(ie._`${Z} instanceof ${ke.ValidationError}`,()=>me.assign(G,ie._`${Z}.errors`),()=>me.throw(Z))),G}():function validateSync(){const G=ie._`${De}.errors`;return me.assign(G,null),assignValid(ie.nil),G}();Z.modifying&&modifyData(G),reportErrs(()=>function addErrs(G,Z){const{gen:ne}=G;ne.if(ie._`Array.isArray(${Z})`,()=>{ne.assign(se.default.vErrors,ie._`${se.default.vErrors} === null ? ${Z} : ${se.default.vErrors}.concat(${Z})`).assign(se.default.errors,ie._`${se.default.vErrors}.length`),(0,fe.extendErrors)(G)},()=>G.error())}(G,ne))}})),G.ok(null!==(ne=Z.valid)&&void 0!==ne?ne:Ie)},Z.validSchemaType=function validSchemaType(G,Z,ne=!1){return!Z.length||Z.some(Z=>"array"===Z?Array.isArray(G):"object"===Z?G&&"object"==typeof G&&!Array.isArray(G):typeof G==Z||ne&&void 0===G)},Z.validateKeywordUsage=function validateKeywordUsage({schema:G,opts:Z,self:ne,errSchemaPath:ie},se,ce){if(Array.isArray(se.keyword)?!se.keyword.includes(ce):se.keyword!==ce)throw new Error("ajv implementation error");const fe=se.dependencies;if(null==fe?void 0:fe.some(Z=>!Object.prototype.hasOwnProperty.call(G,Z)))throw new Error(`parent schema must have dependencies of ${ce}: ${fe.join(",")}`);if(se.validateSchema){if(!se.validateSchema(G[ce])){const G=`keyword "${ce}" value is invalid at path "${ie}": `+ne.errorsText(se.validateSchema.errors);if("log"!==Z.validateSchema)throw new Error(G);ne.logger.error(G)}}}},7653:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.extendSubschemaMode=Z.extendSubschemaData=Z.getSubschema=void 0;const ie=ne(233),se=ne(286);Z.getSubschema=function getSubschema(G,{keyword:Z,schemaProp:ne,schema:ce,schemaPath:fe,errSchemaPath:me,topSchemaRef:ge}){if(void 0!==Z&&void 0!==ce)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==Z){const ce=G.schema[Z];return void 0===ne?{schema:ce,schemaPath:ie._`${G.schemaPath}${(0,ie.getProperty)(Z)}`,errSchemaPath:`${G.errSchemaPath}/${Z}`}:{schema:ce[ne],schemaPath:ie._`${G.schemaPath}${(0,ie.getProperty)(Z)}${(0,ie.getProperty)(ne)}`,errSchemaPath:`${G.errSchemaPath}/${Z}/${(0,se.escapeFragment)(ne)}`}}if(void 0!==ce){if(void 0===fe||void 0===me||void 0===ge)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:ce,schemaPath:fe,topSchemaRef:ge,errSchemaPath:me}}throw new Error('either "keyword" or "schema" must be passed')},Z.extendSubschemaData=function extendSubschemaData(G,Z,{dataProp:ne,dataPropType:ce,data:fe,dataTypes:me,propertyName:ge}){if(void 0!==fe&&void 0!==ne)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:Ce}=Z;if(void 0!==ne){const{errorPath:fe,dataPathArr:me,opts:ge}=Z;dataContextProps(Ce.let("data",ie._`${Z.data}${(0,ie.getProperty)(ne)}`,!0)),G.errorPath=ie.str`${fe}${(0,se.getErrorPath)(ne,ce,ge.jsPropertySyntax)}`,G.parentDataProperty=ie._`${ne}`,G.dataPathArr=[...me,G.parentDataProperty]}if(void 0!==fe){dataContextProps(fe instanceof ie.Name?fe:Ce.let("data",fe,!0)),void 0!==ge&&(G.propertyName=ge)}function dataContextProps(ne){G.data=ne,G.dataLevel=Z.dataLevel+1,G.dataTypes=[],Z.definedProperties=new Set,G.parentData=Z.data,G.dataNames=[...Z.dataNames,ne]}me&&(G.dataTypes=me)},Z.extendSubschemaMode=function extendSubschemaMode(G,{jtdDiscriminator:Z,jtdMetadata:ne,compositeRule:ie,createErrors:se,allErrors:ce}){void 0!==ie&&(G.compositeRule=ie),void 0!==se&&(G.createErrors=se),void 0!==ce&&(G.allErrors=ce),G.jtdDiscriminator=Z,G.jtdMetadata=ne}},7654:function(G,Z,ne){"use strict";var ie=G.exports=function(G,Z,ne){"function"==typeof Z&&(ne=Z,Z={}),function _traverse(G,Z,ne,se,ce,fe,me,ge,Ce,Se){if(se&&"object"==typeof se&&!Array.isArray(se)){for(var Me in Z(se,ce,fe,me,ge,Ce,Se),se){var ke=se[Me];if(Array.isArray(ke)){if(Me in ie.arrayKeywords)for(var xe=0;xe{me.code(ce._`await ${(0,se.callValidateCode)(G,Z,xe)}`),addEvaluatedFrom(Z),Se||me.assign(ne,!0)},G=>{me.if(ce._`!(${G} instanceof ${Ce.ValidationError})`,()=>me.throw(G)),addErrorsFrom(G),Se||me.assign(ne,!1)}),G.ok(ne)}():function callSyncRef(){G.result((0,se.callValidateCode)(G,Z,xe),()=>addEvaluatedFrom(Z),()=>addErrorsFrom(Z))}()}Z.getValidate=getValidate,Z.callRef=callRef,Z.default=Ce},766:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateUnion=Z.validateArray=Z.usePattern=Z.callValidateCode=Z.schemaProperties=Z.allSchemaProperties=Z.noPropertyInData=Z.propertyInData=Z.isOwnProperty=Z.hasPropFunc=Z.reportMissingProp=Z.checkMissingProp=Z.checkReportMissingProp=void 0;const ie=ne(233),se=ne(286),ce=ne(981);function hasPropFunc(G){return G.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:ie._`Object.prototype.hasOwnProperty`})}function isOwnProperty(G,Z,ne){return ie._`${hasPropFunc(G)}.call(${Z}, ${ne})`}function noPropertyInData(G,Z,ne,se){const ce=ie._`${Z}${(0,ie.getProperty)(ne)} === undefined`;return se?(0,ie.or)(ce,(0,ie.not)(isOwnProperty(G,Z,ne))):ce}function allSchemaProperties(G){return G?Object.keys(G).filter(G=>"__proto__"!==G):[]}Z.checkReportMissingProp=function checkReportMissingProp(G,Z){const{gen:ne,data:se,it:ce}=G;ne.if(noPropertyInData(ne,se,Z,ce.opts.ownProperties),()=>{G.setParams({missingProperty:ie._`${Z}`},!0),G.error()})},Z.checkMissingProp=function checkMissingProp({gen:G,data:Z,it:{opts:ne}},se,ce){return(0,ie.or)(...se.map(se=>(0,ie.and)(noPropertyInData(G,Z,se,ne.ownProperties),ie._`${ce} = ${se}`)))},Z.reportMissingProp=function reportMissingProp(G,Z){G.setParams({missingProperty:Z},!0),G.error()},Z.hasPropFunc=hasPropFunc,Z.isOwnProperty=isOwnProperty,Z.propertyInData=function propertyInData(G,Z,ne,se){const ce=ie._`${Z}${(0,ie.getProperty)(ne)} !== undefined`;return se?ie._`${ce} && ${isOwnProperty(G,Z,ne)}`:ce},Z.noPropertyInData=noPropertyInData,Z.allSchemaProperties=allSchemaProperties,Z.schemaProperties=function schemaProperties(G,Z){return allSchemaProperties(Z).filter(ne=>!(0,se.alwaysValidSchema)(G,Z[ne]))},Z.callValidateCode=function callValidateCode({schemaCode:G,data:Z,it:{gen:ne,topSchemaRef:se,schemaPath:fe,errorPath:me},it:ge},Ce,Se,Me){const ke=Me?ie._`${G}, ${Z}, ${se}${fe}`:Z,xe=[[ce.default.instancePath,(0,ie.strConcat)(ce.default.instancePath,me)],[ce.default.parentData,ge.parentData],[ce.default.parentDataProperty,ge.parentDataProperty],[ce.default.rootData,ce.default.rootData]];ge.opts.dynamicRef&&xe.push([ce.default.dynamicAnchors,ce.default.dynamicAnchors]);const De=ie._`${ke}, ${ne.object(...xe)}`;return Se!==ie.nil?ie._`${Ce}.call(${Se}, ${De})`:ie._`${Ce}(${De})`},Z.usePattern=function usePattern({gen:G,it:{opts:Z}},ne){const se=Z.unicodeRegExp?"u":"";return G.scopeValue("pattern",{key:ne,ref:new RegExp(ne,se),code:ie._`new RegExp(${ne}, ${se})`})},Z.validateArray=function validateArray(G){const{gen:Z,data:ne,keyword:ce,it:fe}=G,me=Z.name("valid");if(fe.allErrors){const G=Z.let("valid",!0);return validateItems(()=>Z.assign(G,!1)),G}return Z.var(me,!0),validateItems(()=>Z.break()),me;function validateItems(fe){const ge=Z.const("len",ie._`${ne}.length`);Z.forRange("i",0,ge,ne=>{G.subschema({keyword:ce,dataProp:ne,dataPropType:se.Type.Num},me),Z.if((0,ie.not)(me),fe)})}},Z.validateUnion=function validateUnion(G){const{gen:Z,schema:ne,keyword:ce,it:fe}=G;if(!Array.isArray(ne))throw new Error("ajv implementation error");if(ne.some(G=>(0,se.alwaysValidSchema)(fe,G))&&!fe.opts.unevaluated)return;const me=Z.let("valid",!1),ge=Z.name("_valid");Z.block(()=>ne.forEach((ne,se)=>{const fe=G.subschema({keyword:ce,schemaProp:se,compositeRule:!0},ge);Z.assign(me,ie._`${me} || ${ge}`);G.mergeValidEvaluated(fe,ge)||Z.if((0,ie.not)(me))})),G.result(me,()=>G.reset(),()=>G.error(!0))}},7660:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(7661),se=ne(7662),ce=ne(7663),fe=ne(7665),me=ne(7666),ge=ne(7667),Ce=ne(7668),Se=ne(7669),Me=ne(7670),ke=ne(7671),xe=[ie.default,se.default,ce.default,fe.default,me.default,ge.default,Ce.default,Se.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Me.default,ke.default];Z.default=xe},7661:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ie.operators,ce={maximum:{okStr:"<=",ok:se.LTE,fail:se.GT},minimum:{okStr:">=",ok:se.GTE,fail:se.LT},exclusiveMaximum:{okStr:"<",ok:se.LT,fail:se.GTE},exclusiveMinimum:{okStr:">",ok:se.GT,fail:se.LTE}},fe={message:({keyword:G,schemaCode:Z})=>ie.str`must be ${ce[G].okStr} ${Z}`,params:({keyword:G,schemaCode:Z})=>ie._`{comparison: ${ce[G].okStr}, limit: ${Z}}`},me={keyword:Object.keys(ce),type:"number",schemaType:"number",$data:!0,error:fe,code(G){const{keyword:Z,data:ne,schemaCode:se}=G;G.fail$data(ie._`${ne} ${ce[Z].fail} ${se} || isNaN(${ne})`)}};Z.default=me},7662:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:G})=>ie.str`must be multiple of ${G}`,params:({schemaCode:G})=>ie._`{multipleOf: ${G}}`},code(G){const{gen:Z,data:ne,schemaCode:se,it:ce}=G,fe=ce.opts.multipleOfPrecision,me=Z.let("res"),ge=fe?ie._`Math.abs(Math.round(${me}) - ${me}) > 1e-${fe}`:ie._`${me} !== parseInt(${me})`;G.fail$data(ie._`(${se} === 0 || (${me} = ${ne}/${se}, ${ge}))`)}};Z.default=se},7663:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce=ne(7664),fe={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:G,schemaCode:Z}){const ne="maxLength"===G?"more":"fewer";return ie.str`must NOT have ${ne} than ${Z} characters`},params:({schemaCode:G})=>ie._`{limit: ${G}}`},code(G){const{keyword:Z,data:ne,schemaCode:fe,it:me}=G,ge="maxLength"===Z?ie.operators.GT:ie.operators.LT,Ce=!1===me.opts.unicode?ie._`${ne}.length`:ie._`${(0,se.useFunc)(G.gen,ce.default)}(${ne})`;G.fail$data(ie._`${Ce} ${ge} ${fe}`)}};Z.default=fe},7664:function(G,Z,ne){"use strict";function ucs2length(G){const Z=G.length;let ne,ie=0,se=0;for(;se=55296&&ne<=56319&&sese.str`must match pattern "${G}"`,params:({schemaCode:G})=>se._`{pattern: ${G}}`},code(G){const{data:Z,$data:ne,schema:ce,schemaCode:fe,it:me}=G,ge=me.opts.unicodeRegExp?"u":"",Ce=ne?se._`(new RegExp(${fe}, ${ge}))`:(0,ie.usePattern)(G,ce);G.fail$data(se._`!${Ce}.test(${Z})`)}};Z.default=ce},7666:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:G,schemaCode:Z}){const ne="maxProperties"===G?"more":"fewer";return ie.str`must NOT have ${ne} than ${Z} items`},params:({schemaCode:G})=>ie._`{limit: ${G}}`},code(G){const{keyword:Z,data:ne,schemaCode:se}=G,ce="maxProperties"===Z?ie.operators.GT:ie.operators.LT;G.fail$data(ie._`Object.keys(${ne}).length ${ce} ${se}`)}};Z.default=se},7667:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(766),se=ne(233),ce=ne(286),fe={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:G}})=>se.str`must have required property '${G}'`,params:({params:{missingProperty:G}})=>se._`{missingProperty: ${G}}`},code(G){const{gen:Z,schema:ne,schemaCode:fe,data:me,$data:ge,it:Ce}=G,{opts:Se}=Ce;if(!ge&&0===ne.length)return;const Me=ne.length>=Se.loopRequired;if(Ce.allErrors?function allErrorsMode(){if(Me||ge)G.block$data(se.nil,loopAllRequired);else for(const Z of ne)(0,ie.checkReportMissingProp)(G,Z)}():function exitOnErrorMode(){const ce=Z.let("missing");if(Me||ge){const ne=Z.let("valid",!0);G.block$data(ne,()=>function loopUntilMissing(ne,ce){G.setParams({missingProperty:ne}),Z.forOf(ne,fe,()=>{Z.assign(ce,(0,ie.propertyInData)(Z,me,ne,Se.ownProperties)),Z.if((0,se.not)(ce),()=>{G.error(),Z.break()})},se.nil)}(ce,ne)),G.ok(ne)}else Z.if((0,ie.checkMissingProp)(G,ne,ce)),(0,ie.reportMissingProp)(G,ce),Z.else()}(),Se.strictRequired){const Z=G.parentSchema.properties,{definedProperties:ie}=G.it;for(const G of ne)if(void 0===(null==Z?void 0:Z[G])&&!ie.has(G)){const Z=`required property "${G}" is not defined at "${Ce.schemaEnv.baseId+Ce.errSchemaPath}" (strictRequired)`;(0,ce.checkStrictMode)(Ce,Z,Ce.opts.strictRequired)}}function loopAllRequired(){Z.forOf("prop",fe,ne=>{G.setParams({missingProperty:ne}),Z.if((0,ie.noPropertyInData)(Z,me,ne,Se.ownProperties),()=>G.error())})}}};Z.default=fe},7668:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:G,schemaCode:Z}){const ne="maxItems"===G?"more":"fewer";return ie.str`must NOT have ${ne} than ${Z} items`},params:({schemaCode:G})=>ie._`{limit: ${G}}`},code(G){const{keyword:Z,data:ne,schemaCode:se}=G,ce="maxItems"===Z?ie.operators.GT:ie.operators.LT;G.fail$data(ie._`${ne}.length ${ce} ${se}`)}};Z.default=se},7669:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(2029),se=ne(233),ce=ne(286),fe=ne(2884),me={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:G,j:Z}})=>se.str`must NOT have duplicate items (items ## ${Z} and ${G} are identical)`,params:({params:{i:G,j:Z}})=>se._`{i: ${G}, j: ${Z}}`},code(G){const{gen:Z,data:ne,$data:me,schema:ge,parentSchema:Ce,schemaCode:Se,it:Me}=G;if(!me&&!ge)return;const ke=Z.let("valid"),xe=Ce.items?(0,ie.getSchemaTypes)(Ce.items):[];function loopN(ce,fe){const me=Z.name("item"),ge=(0,ie.checkDataTypes)(xe,me,Me.opts.strictNumbers,ie.DataType.Wrong),Ce=Z.const("indices",se._`{}`);Z.for(se._`;${ce}--;`,()=>{Z.let(me,se._`${ne}[${ce}]`),Z.if(ge,se._`continue`),xe.length>1&&Z.if(se._`typeof ${me} == "string"`,se._`${me} += "_"`),Z.if(se._`typeof ${Ce}[${me}] == "number"`,()=>{Z.assign(fe,se._`${Ce}[${me}]`),G.error(),Z.assign(ke,!1).break()}).code(se._`${Ce}[${me}] = ${ce}`)})}function loopN2(ie,me){const ge=(0,ce.useFunc)(Z,fe.default),Ce=Z.name("outer");Z.label(Ce).for(se._`;${ie}--;`,()=>Z.for(se._`${me} = ${ie}; ${me}--;`,()=>Z.if(se._`${ge}(${ne}[${ie}], ${ne}[${me}])`,()=>{G.error(),Z.assign(ke,!1).break(Ce)})))}G.block$data(ke,(function validateUniqueItems(){const ie=Z.let("i",se._`${ne}.length`),ce=Z.let("j");G.setParams({i:ie,j:ce}),Z.assign(ke,!0),Z.if(se._`${ie} > 1`,()=>(function canOptimize(){return xe.length>0&&!xe.some(G=>"object"===G||"array"===G)}()?loopN:loopN2)(ie,ce))}),se._`${Se} === false`),G.ok(ke)}};Z.default=me},767:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},198:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ut})),ne.d(Z,"isInternalLink",(function(){return at})),ne.d(Z,"NavigationContext",(function(){return ze})),ne.d(Z,"NavigationProvider",(function(){return NavigationProvider}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=(ne(11),ne(23)),ge=ne.n(me),Ce=ne(5),Se=ne.n(Ce),Me=ne(22),ke=ne(3),xe=ne.n(ke),De=ne(0),Ie=xe.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled],&[aria-disabled='true']{color:",";}&::-moz-focus-inner{border:0;padding:0;}"],De.mixins.reset("inline"),De.variables.contentColorDisabled),Re={children:fe.a.node,onClick:fe.a.func,prefix:fe.a.string},ze=se.a.createContext({});function NavigationProvider(G){var Z=G.children,ne=G.onClick,ie=G.prefix;return se.a.createElement(ze.Provider,{value:{onClick:ne,prefix:ie}},Z)}NavigationProvider.propTypes=Re;var $e=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;neie._`{allowedValue: ${G}}`},code(G){const{gen:Z,data:ne,$data:fe,schemaCode:me,schema:ge}=G;fe||ge&&"object"==typeof ge?G.fail$data(ie._`!${(0,se.useFunc)(Z,ce.default)}(${ne}, ${me})`):G.fail(ie._`${ge} !== ${ne}`)}};Z.default=fe},7671:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce=ne(2884),fe={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:G})=>ie._`{allowedValues: ${G}}`},code(G){const{gen:Z,data:ne,$data:fe,schema:me,schemaCode:ge,it:Ce}=G;if(!fe&&0===me.length)throw new Error("enum must have non-empty array");const Se=me.length>=Ce.opts.loopEnum,Me=(0,se.useFunc)(Z,ce.default);let ke;if(Se||fe)ke=Z.let("valid"),G.block$data(ke,(function loopEnum(){Z.assign(ke,!1),Z.forOf("v",ge,G=>Z.if(ie._`${Me}(${ne}, ${G})`,()=>Z.assign(ke,!0).break()))}));else{if(!Array.isArray(me))throw new Error("ajv implementation error");const G=Z.const("vSchema",ge);ke=(0,ie.or)(...me.map((Z,se)=>function equalCode(G,Z){const se=me[Z];return"object"==typeof se&&null!==se?ie._`${Me}(${ne}, ${G}[${Z}])`:ie._`${ne} === ${se}`}(G,se)))}G.pass(ke)}};Z.default=fe},7672:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(4160),se=ne(7673),ce=ne(4161),fe=ne(7674),me=ne(7675),ge=ne(7676),Ce=ne(7677),Se=ne(4162),Me=ne(7678),ke=ne(7679),xe=ne(7680),De=ne(7681),Ie=ne(7682),Re=ne(7683),ze=ne(7684),$e=ne(7685);Z.default=function getApplicator(G=!1){const Z=[xe.default,De.default,Ie.default,Re.default,ze.default,$e.default,Ce.default,Se.default,ge.default,Me.default,ke.default];return G?Z.push(se.default,fe.default):Z.push(ie.default,ce.default),Z.push(me.default),Z}},7673:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(4161),se={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:G=>(0,ie.validateTuple)(G,"items")};Z.default=se},7674:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce=ne(766),fe=ne(4160),me={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:G}})=>ie.str`must NOT have more than ${G} items`,params:({params:{len:G}})=>ie._`{limit: ${G}}`},code(G){const{schema:Z,parentSchema:ne,it:ie}=G,{prefixItems:me}=ne;ie.items=!0,(0,se.alwaysValidSchema)(ie,Z)||(me?(0,fe.validateAdditionalItems)(G,me):G.ok((0,ce.validateArray)(G)))}};Z.default=me},7675:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:G,max:Z}})=>void 0===Z?ie.str`must contain at least ${G} valid item(s)`:ie.str`must contain at least ${G} and no more than ${Z} valid item(s)`,params:({params:{min:G,max:Z}})=>void 0===Z?ie._`{minContains: ${G}}`:ie._`{minContains: ${G}, maxContains: ${Z}}`},code(G){const{gen:Z,schema:ne,parentSchema:ce,data:fe,it:me}=G;let ge,Ce;const{minContains:Se,maxContains:Me}=ce;me.opts.next?(ge=void 0===Se?1:Se,Ce=Me):ge=1;const ke=Z.const("len",ie._`${fe}.length`);if(G.setParams({min:ge,max:Ce}),void 0===Ce&&0===ge)return void(0,se.checkStrictMode)(me,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==Ce&&ge>Ce)return(0,se.checkStrictMode)(me,'"minContains" > "maxContains" is always invalid'),void G.fail();if((0,se.alwaysValidSchema)(me,ne)){let Z=ie._`${ke} >= ${ge}`;return void 0!==Ce&&(Z=ie._`${Z} && ${ke} <= ${Ce}`),void G.pass(Z)}me.items=!0;const xe=Z.name("valid");if(void 0===Ce&&1===ge)validateItems(xe,()=>Z.if(xe,()=>Z.break()));else{Z.let(xe,!1);const G=Z.name("_valid"),ne=Z.let("count",0);validateItems(G,()=>Z.if(G,()=>function checkLimits(G){Z.code(ie._`${G}++`),void 0===Ce?Z.if(ie._`${G} >= ${ge}`,()=>Z.assign(xe,!0).break()):(Z.if(ie._`${G} > ${Ce}`,()=>Z.assign(xe,!1).break()),1===ge?Z.assign(xe,!0):Z.if(ie._`${G} >= ${ge}`,()=>Z.assign(xe,!0)))}(ne)))}function validateItems(ne,ie){Z.forRange("i",0,ke,Z=>{G.subschema({keyword:"contains",dataProp:Z,dataPropType:se.Type.Num,compositeRule:!0},ne),ie()})}G.result(xe,()=>G.reset())}};Z.default=ce},7676:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateSchemaDeps=Z.validatePropertyDeps=Z.error=void 0;const ie=ne(233),se=ne(286),ce=ne(766);Z.error={message:({params:{property:G,depsCount:Z,deps:ne}})=>{const se=1===Z?"property":"properties";return ie.str`must have ${se} ${ne} when property ${G} is present`},params:({params:{property:G,depsCount:Z,deps:ne,missingProperty:se}})=>ie._`{property: ${G}, missingProperty: ${se}, depsCount: ${Z}, deps: ${ne}}`};const fe={keyword:"dependencies",type:"object",schemaType:"object",error:Z.error,code(G){const[Z,ne]=function splitDependencies({schema:G}){const Z={},ne={};for(const ie in G){if("__proto__"===ie)continue;(Array.isArray(G[ie])?Z:ne)[ie]=G[ie]}return[Z,ne]}(G);validatePropertyDeps(G,Z),validateSchemaDeps(G,ne)}};function validatePropertyDeps(G,Z=G.schema){const{gen:ne,data:se,it:fe}=G;if(0===Object.keys(Z).length)return;const me=ne.let("missing");for(const ge in Z){const Ce=Z[ge];if(0===Ce.length)continue;const Se=(0,ce.propertyInData)(ne,se,ge,fe.opts.ownProperties);G.setParams({property:ge,depsCount:Ce.length,deps:Ce.join(", ")}),fe.allErrors?ne.if(Se,()=>{for(const Z of Ce)(0,ce.checkReportMissingProp)(G,Z)}):(ne.if(ie._`${Se} && (${(0,ce.checkMissingProp)(G,Ce,me)})`),(0,ce.reportMissingProp)(G,me),ne.else())}}function validateSchemaDeps(G,Z=G.schema){const{gen:ne,data:ie,keyword:fe,it:me}=G,ge=ne.name("valid");for(const Ce in Z)(0,se.alwaysValidSchema)(me,Z[Ce])||(ne.if((0,ce.propertyInData)(ne,ie,Ce,me.opts.ownProperties),()=>{const Z=G.subschema({keyword:fe,schemaProp:Ce},ge);G.mergeValidEvaluated(Z,ge)},()=>ne.var(ge,!0)),G.ok(ge))}Z.validatePropertyDeps=validatePropertyDeps,Z.validateSchemaDeps=validateSchemaDeps,Z.default=fe},7677:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:G})=>ie._`{propertyName: ${G.propertyName}}`},code(G){const{gen:Z,schema:ne,data:ce,it:fe}=G;if((0,se.alwaysValidSchema)(fe,ne))return;const me=Z.name("valid");Z.forIn("key",ce,ne=>{G.setParams({propertyName:ne}),G.subschema({keyword:"propertyNames",data:ne,dataTypes:["string"],propertyName:ne,compositeRule:!0},me),Z.if((0,ie.not)(me),()=>{G.error(!0),fe.allErrors||Z.break()})}),G.ok(me)}};Z.default=ce},7678:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(2026),se=ne(766),ce=ne(286),fe=ne(4162),me={keyword:"properties",type:"object",schemaType:"object",code(G){const{gen:Z,schema:ne,parentSchema:me,data:ge,it:Ce}=G;"all"===Ce.opts.removeAdditional&&void 0===me.additionalProperties&&fe.default.code(new ie.KeywordCxt(Ce,fe.default,"additionalProperties"));const Se=(0,se.allSchemaProperties)(ne);for(const G of Se)Ce.definedProperties.add(G);Ce.opts.unevaluated&&Se.length&&!0!==Ce.props&&(Ce.props=ce.mergeEvaluated.props(Z,(0,ce.toHash)(Se),Ce.props));const Me=Se.filter(G=>!(0,ce.alwaysValidSchema)(Ce,ne[G]));if(0===Me.length)return;const ke=Z.name("valid");for(const ne of Me)hasDefault(ne)?applyPropertySchema(ne):(Z.if((0,se.propertyInData)(Z,ge,ne,Ce.opts.ownProperties)),applyPropertySchema(ne),Ce.allErrors||Z.else().var(ke,!0),Z.endIf()),G.it.definedProperties.add(ne),G.ok(ke);function hasDefault(G){return Ce.opts.useDefaults&&!Ce.compositeRule&&void 0!==ne[G].default}function applyPropertySchema(Z){G.subschema({keyword:"properties",schemaProp:Z,dataProp:Z},ke)}}};Z.default=me},7679:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(766),se=ne(233),ce=ne(286),fe=ne(286),me={keyword:"patternProperties",type:"object",schemaType:"object",code(G){const{gen:Z,schema:ne,data:me,parentSchema:ge,it:Ce}=G,{opts:Se}=Ce,Me=(0,ie.allSchemaProperties)(ne),ke=Me.filter(G=>(0,ce.alwaysValidSchema)(Ce,ne[G]));if(0===Me.length||ke.length===Me.length&&(!Ce.opts.unevaluated||!0===Ce.props))return;const xe=Se.strictSchema&&!Se.allowMatchingProperties&&ge.properties,De=Z.name("valid");!0===Ce.props||Ce.props instanceof se.Name||(Ce.props=(0,fe.evaluatedPropsToName)(Z,Ce.props));const{props:Ie}=Ce;function checkMatchingProperties(G){for(const Z in xe)new RegExp(G).test(Z)&&(0,ce.checkStrictMode)(Ce,`property ${Z} matches pattern ${G} (use allowMatchingProperties)`)}function validateProperties(ne){Z.forIn("key",me,ce=>{Z.if(se._`${(0,ie.usePattern)(G,ne)}.test(${ce})`,()=>{const ie=ke.includes(ne);ie||G.subschema({keyword:"patternProperties",schemaProp:ne,dataProp:ce,dataPropType:fe.Type.Str},De),Ce.opts.unevaluated&&!0!==Ie?Z.assign(se._`${Ie}[${ce}]`,!0):ie||Ce.allErrors||Z.if((0,se.not)(De),()=>Z.break())})})}!function validatePatternProperties(){for(const G of Me)xe&&checkMatchingProperties(G),Ce.allErrors?validateProperties(G):(Z.var(De,!0),validateProperties(G),Z.if(De))}()}};Z.default=me},768:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},7680:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(286),se={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(G){const{gen:Z,schema:ne,it:se}=G;if((0,ie.alwaysValidSchema)(se,ne))return void G.fail();const ce=Z.name("valid");G.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},ce),G.failResult(ce,()=>G.reset(),()=>G.error())},error:{message:"must NOT be valid"}};Z.default=se},7681:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ne(766).validateUnion,error:{message:"must match a schema in anyOf"}};Z.default=ie},7682:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:G})=>ie._`{passingSchemas: ${G.passing}}`},code(G){const{gen:Z,schema:ne,parentSchema:ce,it:fe}=G;if(!Array.isArray(ne))throw new Error("ajv implementation error");if(fe.opts.discriminator&&ce.discriminator)return;const me=ne,ge=Z.let("valid",!1),Ce=Z.let("passing",null),Se=Z.name("_valid");G.setParams({passing:Ce}),Z.block((function validateOneOf(){me.forEach((ne,ce)=>{let me;(0,se.alwaysValidSchema)(fe,ne)?Z.var(Se,!0):me=G.subschema({keyword:"oneOf",schemaProp:ce,compositeRule:!0},Se),ce>0&&Z.if(ie._`${Se} && ${ge}`).assign(ge,!1).assign(Ce,ie._`[${Ce}, ${ce}]`).else(),Z.if(Se,()=>{Z.assign(ge,!0),Z.assign(Ce,ce),me&&G.mergeEvaluated(me,ie.Name)})})})),G.result(ge,()=>G.reset(),()=>G.error(!0))}};Z.default=ce},7683:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(286),se={keyword:"allOf",schemaType:"array",code(G){const{gen:Z,schema:ne,it:se}=G;if(!Array.isArray(ne))throw new Error("ajv implementation error");const ce=Z.name("valid");ne.forEach((Z,ne)=>{if((0,ie.alwaysValidSchema)(se,Z))return;const fe=G.subschema({keyword:"allOf",schemaProp:ne},ce);G.ok(ce),G.mergeEvaluated(fe)})}};Z.default=se},7684:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(286),ce={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:G})=>ie.str`must match "${G.ifClause}" schema`,params:({params:G})=>ie._`{failingKeyword: ${G.ifClause}}`},code(G){const{gen:Z,parentSchema:ne,it:ce}=G;void 0===ne.then&&void 0===ne.else&&(0,se.checkStrictMode)(ce,'"if" without "then" and "else" is ignored');const fe=hasSchema(ce,"then"),me=hasSchema(ce,"else");if(!fe&&!me)return;const ge=Z.let("valid",!0),Ce=Z.name("_valid");if(function validateIf(){const Z=G.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},Ce);G.mergeEvaluated(Z)}(),G.reset(),fe&&me){const ne=Z.let("ifClause");G.setParams({ifClause:ne}),Z.if(Ce,validateClause("then",ne),validateClause("else",ne))}else fe?Z.if(Ce,validateClause("then")):Z.if((0,ie.not)(Ce),validateClause("else"));function validateClause(ne,se){return()=>{const ce=G.subschema({keyword:ne},Ce);Z.assign(ge,Ce),G.mergeValidEvaluated(ce,ge),se?Z.assign(se,ie._`${ne}`):G.setParams({ifClause:ne})}}G.pass(ge,()=>G.error(!0))}};function hasSchema(G,Z){const ne=G.schema[Z];return void 0!==ne&&!(0,se.alwaysValidSchema)(G,ne)}Z.default=ce},7685:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(286),se={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:G,parentSchema:Z,it:ne}){void 0===Z.if&&(0,ie.checkStrictMode)(ne,`"${G}" without "if" is ignored`)}};Z.default=se},7686:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=[ne(7687).default];Z.default=ie},7687:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:G})=>ie.str`must match format "${G}"`,params:({schemaCode:G})=>ie._`{format: ${G}}`},code(G,Z){const{gen:ne,data:se,$data:ce,schema:fe,schemaCode:me,it:ge}=G,{opts:Ce,errSchemaPath:Se,schemaEnv:Me,self:ke}=ge;Ce.validateFormats&&(ce?function validate$DataFormat(){const ce=ne.scopeValue("formats",{ref:ke.formats,code:Ce.code.formats}),fe=ne.const("fDef",ie._`${ce}[${me}]`),ge=ne.let("fType"),Se=ne.let("format");ne.if(ie._`typeof ${fe} == "object" && !(${fe} instanceof RegExp)`,()=>ne.assign(ge,ie._`${fe}.type || "string"`).assign(Se,ie._`${fe}.validate`),()=>ne.assign(ge,ie._`"string"`).assign(Se,fe)),G.fail$data((0,ie.or)(function unknownFmt(){return!1===Ce.strictSchema?ie.nil:ie._`${me} && !${Se}`}(),function invalidFmt(){const G=Me.$async?ie._`(${fe}.async ? await ${Se}(${se}) : ${Se}(${se}))`:ie._`${Se}(${se})`,ne=ie._`(typeof ${Se} == "function" ? ${G} : ${Se}.test(${se}))`;return ie._`${Se} && ${Se} !== true && ${ge} === ${Z} && !${ne}`}()))}():function validateFormat(){const ce=ke.formats[fe];if(!ce)return void function unknownFormat(){if(!1===Ce.strictSchema)return void ke.logger.warn(unknownMsg());throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${fe}" ignored in schema at path "${Se}"`}}();if(!0===ce)return;const[me,ge,xe]=function getFormat(G){const Z=G instanceof RegExp?(0,ie.regexpCode)(G):Ce.code.formats?ie._`${Ce.code.formats}${(0,ie.getProperty)(fe)}`:void 0,se=ne.scopeValue("formats",{key:fe,ref:G,code:Z});if("object"==typeof G&&!(G instanceof RegExp))return[G.type||"string",G.validate,ie._`${se}.validate`];return["string",G,se]}(ce);me===Z&&G.pass(function validCondition(){if("object"==typeof ce&&!(ce instanceof RegExp)&&ce.async){if(!Me.$async)throw new Error("async format in sync schema");return ie._`await ${xe}(${se})`}return"function"==typeof ge?ie._`${xe}(${se})`:ie._`${xe}.test(${se})`}())}())}};Z.default=se},7688:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.contentVocabulary=Z.metadataVocabulary=void 0,Z.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Z.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},7689:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0});const ie=ne(233),se=ne(7690),ce={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:G,tagName:Z}})=>G===se.DiscrError.Tag?`tag "${Z}" must be string`:`value of tag "${Z}" must be in oneOf`,params:({params:{discrError:G,tag:Z,tagName:ne}})=>ie._`{error: ${G}, tag: ${ne}, tagValue: ${Z}}`},code(G){const{gen:Z,data:ne,schema:ce,parentSchema:fe,it:me}=G,{oneOf:ge}=fe;if(!me.opts.discriminator)throw new Error("discriminator: requires discriminator option");const Ce=ce.propertyName;if("string"!=typeof Ce)throw new Error("discriminator: requires propertyName");if(ce.mapping)throw new Error("discriminator: mapping is not supported");if(!ge)throw new Error("discriminator: requires oneOf keyword");const Se=Z.let("valid",!1),Me=Z.const("tag",ie._`${ne}${(0,ie.getProperty)(Ce)}`);function applyTagSchema(ne){const se=Z.name("valid"),ce=G.subschema({keyword:"oneOf",schemaProp:ne},se);return G.mergeEvaluated(ce,ie.Name),se}Z.if(ie._`typeof ${Me} == "string"`,()=>function validateMapping(){const ne=function getMapping(){var G;const Z={},ne=hasRequired(fe);let ie=!0;for(let Z=0;ZG.error(!1,{discrError:se.DiscrError.Tag,tag:Me,tagName:Ce})),G.ok(Se)}};Z.default=ce},769:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(2911)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},7690:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.DiscrError=void 0,function(G){G.Tag="tag",G.Mapping="mapping"}(Z.DiscrError||(Z.DiscrError={}))},7691:function(G){G.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},7692:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(66)),ce=ie(ne(11)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(84),ge=ie(ne(73)),Ce=ne(5),Se=ne(138),Me=ne(125),ke=ne(100),xe=ne(93),De=ne(387),Ie=ne(1291),Re=ne(1161),ze=ie(ne(1315)),$e=ie(ne(1624));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var Z=De.OBJECT_NAMES.plural,ne=(0,Ce.gettext)("Select glass table"),ie=(0,fe.useContext)(ze.default);return fe.default.createElement($e.default,(0,se.default)({},(0,xe.createITSITestHook)(GlassTableDrilldownSelector.name),{type:Re.DRILLDOWN_TYPES.SAVED_GLASS_TABLE,label:Z,helpText:ne,dashboardApiRef:ie,objectFetchURL:G=>G?(0,Ie.retrieveURL)(G,Me.username):"",objectListFetchURL:G=>{var Z={offset:0,count:10,fields:"_key,identifying_name,title,gt_version",sort_dir:"asc",sort_key:"identifying_name",sort_mode:"auto",filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"?").concat((0,me.stringify)(Z))},objectListCountFetchURL:G=>{var Z={filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"/count?").concat((0,me.stringify)(Z))},objectAccessURL:(G,Z)=>{if(!G)return"";var ne=(0,Re.timerangeQueryParametersString)(Z),ie=ne?"&".concat(ne):"",se={savedGlassTableId:G._key};return(0,Ie.uiEditURL)(se)+ie}},G))};GlassTableDrilldownSelector.label=De.OBJECT_NAMES.singular,GlassTableDrilldownSelector.areOptionsValid=function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G.type&&G.type===Re.DRILLDOWN_TYPES.SAVED_GLASS_TABLE&&G.url&&(0,Se.isValidUrl)(G.url)?null:(0,Ce.gettext)("Invalid Url")};var Je=GlassTableDrilldownSelector;Z.default=Je,G.exports=Z.default},7693:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),De={};__export(De,{DEFAULT_DEFINITION:()=>jt,GLOBAL_TRP_TOKEN_NAME:()=>Et,default:()=>Nt,generateId:()=>generateId,getDefaultOptionsForDataSourceType:()=>getDefaultOptionsForDataSourceType,getDefaultStaticTokens:()=>getDefaultStaticTokens,getDefaultsForVisualizationType:()=>getDefaultsForVisualizationType,getGlobalDefaultsForVisualizations:()=>getGlobalDefaultsForVisualizations,hasDuplicateId:()=>hasDuplicateId,normalizeLayoutStructure:()=>normalizeLayoutStructure}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(24));__reExport(Ie,ne(24));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(138));__reExport($e,ne(138));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(948));__reExport(ot,ne(948));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(1857));__reExport(ct,ne(1857));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(1858));__reExport(ht,ne(1858));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(2069));__reExport(yt,ne(2069));var wt="default"in vt?vt.default:vt,Ct={type:"array",items:[{type:"integer",minimum:0},{type:"integer",minimum:0},{type:"integer",minimum:0},{type:"integer",minimum:0}],default:[0,0,0,0],nullable:!0,minItems:4,additionalItems:!1},St={type:"array",items:{type:"object",properties:{type:{type:"string"},options:{type:"object",nullable:!0,properties:{url:{type:"string",nullable:!0},newTab:{type:"boolean",nullable:!0},key:{type:"string",nullable:!0},value:{type:"string",nullable:!0},app:{type:"string",nullable:!0},dashboard:{type:"string",nullable:!0},tokens:{type:"array",nullable:!0,items:{type:"object",properties:{token:{type:"string"},key:{type:"string",nullable:!0,description:"Fetches the data from the event using this key."},value:{type:"string",nullable:!0,description:"Specify a static value."}},required:["token"],oneOf:[{required:["key"]},{required:["value"]}]}},tokenNamespace:{type:"string",nullable:!0},events:{type:"array",items:{type:"string"},nullable:!0}}}},required:["type"],additionalProperties:!1},nullable:!0},Mt="^[a-zA-Z0-9_-]*$",kt={$id:"http://www.splunk.com/dashboard.schema.json",title:"Dashboard Definition",description:"Dashboard Definition",type:"object",properties:{version:{type:"string",nullable:!0},title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},dataSources:{type:"object",nullable:!0,required:[],additionalProperties:!1,patternProperties:{[Mt]:{type:"object",properties:{type:{type:"string"},options:{type:"object",nullable:!0},name:{type:"string",nullable:!0},meta:{type:"object"},extend:{type:"string"},eventHandlers:St},required:["type"],additionalProperties:!1}}},visualizations:{type:"object",required:[],nullable:!0,additionalProperties:!1,patternProperties:{[Mt]:{type:"object",properties:{context:{type:"object",nullable:!0},type:{type:"string"},options:{type:"object",nullable:!0},encoding:{type:"object",nullable:!0},dataSources:{type:"object",patternProperties:{[Mt]:{type:"string"}},required:[],nullable:!0},eventHandlers:St,title:{type:"string",nullable:!0},description:{type:"string",nullable:!0},showProgressBar:{type:"boolean",nullable:!0},showLastUpdated:{type:"boolean",nullable:!0},hideWhenNoData:{type:"boolean",nullable:!0},cornerRadius:Ct},required:["type"],additionalProperties:!1}}},inputs:{type:"object",nullable:!0,required:[],additionalProperties:!1,patternProperties:{[Mt]:{type:"object",properties:{context:{type:"object",nullable:!0},type:{type:"string"},options:{type:"object",nullable:!0},encoding:{type:"object",nullable:!0},dataSources:{type:"object",nullable:!0,required:[],patternProperties:{[Mt]:{type:"string"}}},title:{type:"string",nullable:!0},eventHandlers:St,showProgressBar:{type:"boolean",nullable:!0},showLastUpdated:{type:"boolean",nullable:!0},canvasAlignment:{type:"string",anyOf:[{enum:["top","bottom","center"]},{pattern:"^[$].*[$]$"}],nullable:!0},hideWhenNoData:{type:"boolean",nullable:!0},cornerRadius:Ct},required:["type"],additionalProperties:!1}}},defaults:{type:"object",nullable:!0,properties:{inputs:{type:"object",nullable:!0,required:[]},visualizations:{type:"object",nullable:!0,required:[],additionalProperties:!1},dataSources:{type:"object",nullable:!0,required:[],properties:{global:{type:"object",nullable:!0}},patternProperties:{[Mt]:{type:"object",nullable:!0}}},tokens:{type:"object",nullable:!0,required:[],patternProperties:{[Mt]:{type:"object",required:[],patternProperties:{[Mt]:{type:"object",required:["value"],properties:{value:{type:"string"}}}}}}}}},layout:{type:"object",nullable:!0,required:["type"],additionalProperties:!1,properties:{type:{type:"string"},options:{type:"object",nullable:!0},globalInputs:{type:"array",items:{type:"string"},nullable:!0},structure:{type:"array",items:{type:"object",nullable:!0,required:[]},nullable:!0}}},expressions:{type:"object",nullable:!0,additionalProperties:!1,properties:{conditions:{type:"object",nullable:!0,additionalProperties:!1,required:[],patternProperties:{[`^${$e.TOKEN_NAME_CHARS_PATTERN}$`]:{type:"object",additionalProperties:!1,required:["value"],properties:{value:{type:"string"}}}}}}}},required:[]},xt={};__export(xt,{default:()=>Tt});var Lt=__toESM(ne(673));__reExport(xt,ne(673));var Tt="default"in Lt?Lt.default:Lt,generateUniqueId=G=>`${G}_${(0,$e.uniqueId)()}`,At=new _t({allErrors:!0,allowMatchingProperties:!0,allowUnionTypes:!0}),Dt=(0,Ie.memoize)(G=>(At.getSchema(G.$id)&&At.removeSchema(G.$id),At.compile(G)),G=>(0,$e.hashString)(JSON.stringify(G))),normalizeLayoutStructure=G=>{const Z=(0,Ie.get)(G,"layout",{}),ne=(0,Ie.get)(G,"layout.structure",[]).map((G,Z)=>__spreadProps(__spreadValues({},G),{layer:Z}));return __spreadProps(__spreadValues({},G),{layout:__spreadProps(__spreadValues({},Z),{structure:(0,Ie.keyBy)(ne,"item")})})},Et="global_time",jt={visualizations:{},dataSources:{},defaults:{dataSources:{global:{options:{queryParameters:{latest:`$${Et}.latest$`,earliest:`$${Et}.earliest$`}}}}},inputs:{input_global_trp:{type:"input.timerange",options:{token:""+Et,defaultValue:"-24h@h,now"},title:(0,ct._)("Global Time Range")}},layout:{type:"absolute",options:{},structure:[],globalInputs:["input_global_trp"]}},getDefaultOptionsForDataSourceType=(G,Z)=>{var ne,ie,se;if(!G||!Z)return{};const ce=null!=(se=null==(ie=null==(ne=null==G?void 0:G.dataSources)?void 0:ne.global)?void 0:ie.options)?se:{},fe=(0,Ie.get)(G,["dataSources",Z,"options"],{}),me=(0,Ie.defaultsDeep)({},fe,ce);return(0,Ie.omit)(me,["query"])},getDefaultStaticTokens=(G,Z=new Set)=>{var ne;const ie=null==(ne=G.defaults)?void 0:ne.tokens,se={};return ie?(Object.keys(ie).forEach(G=>{Z.has(G)||(null!=se[G]||(se[G]={}),Object.keys(ie[G]).forEach(Z=>{const{value:ne}=ie[G][Z];"string"==typeof ne&&(se[G][Z]=ne)}))}),se):se},generateId=(G,Z=(()=>!1))=>{let ne=generateUniqueId(G);for(;Z(ne);)ne=generateUniqueId(G);return ne},hasDuplicateId=(G,Z)=>-1!==JSON.stringify(G).indexOf(`"${Z}"`),getGlobalDefaultsForVisualizations=G=>{var Z,ne;const{showProgressBar:ie=!1,showLastUpdated:se=!1,hideWhenNoData:ce=!1,cornerRadius:fe,context:me={}}=null!=(ne=null==(Z=null==G?void 0:G.visualizations)?void 0:Z.global)?ne:{};return __spreadProps(__spreadValues({showProgressBar:ie,showLastUpdated:se,hideWhenNoData:ce},fe?{cornerRadius:fe}:{}),{context:me})},getDefaultsForVisualizationType=(G,Z)=>{var ne,ie;const{showProgressBar:se,showLastUpdated:ce,hideWhenNoData:fe,cornerRadius:me,context:ge={},options:Ce={}}=null!=(ie=null==(ne=null==G?void 0:G.visualizations)?void 0:ne[Z])?ie:{},Se={options:Ce,context:ge};return"boolean"==typeof se&&(Se.showProgressBar=se),"boolean"==typeof ce&&(Se.showLastUpdated=ce),"boolean"==typeof fe&&(Se.hideWhenNoData=fe),Array.isArray(me)&&4===me.length&&(Se.cornerRadius=me),Se},It=class{constructor(G={}){this.checkDuplicateTokens=()=>(0,ot.checkDuplicateTokens)(this.definition),this.checkVisualizationsInStructure=()=>(0,ot.checkVisualizationsInStructure)(this.definition),this.checkInputsInStructure=()=>(0,ot.checkInputsInStructure)(this.definition),this.definition=G}static fromJSON(G={}){return new It(G)}static flattenDataSources(G,Z){const ne={},ie={};return(0,Ie.each)(G,(G,se)=>{const ce=(0,Ie.get)(G,"type"),fe=(0,Ie.cloneDeep)((0,Ie.get)(G,"options"));ne[ce]||(ne[ce]=getDefaultOptionsForDataSourceType(Z,ce));const me=ne[ce];ie[se]=__spreadProps(__spreadValues({},G),{options:(0,Ie.defaultsDeep)(fe,me)})}),ie}static flattenVisualizations(G,Z){const ne=new Map,ie=getGlobalDefaultsForVisualizations(Z),se={};return(0,Ie.each)(G,(G,ce)=>{if(!ne.has(G.type)){const ie=getDefaultsForVisualizationType(Z,G.type);ne.set(G.type,ie)}const fe=ne.get(G.type);se[ce]=(0,Ie.defaultsDeep)({},G,fe,ie)}),se}setSchema(G){if((0,$e.deprecated)("This method is deprecated, please use the DashboardValidator class validation methods from @splunk/dashboard-validation"),!G.$id)return null;try{this.validateDefinition=Dt(G)}catch(G){return G}return null}validate(){var G,Z,ne;this.validateDefinition?(0,$e.deprecated)("This method is deprecated, please use the DashboardValidator class validation methods from @splunk/dashboard-validation"):this.setSchema(kt);if(!(null==(G=this.validateDefinition)?void 0:G.call(this,this.definition))&&(null==(ne=null==(Z=this.validateDefinition)?void 0:Z.errors)?void 0:ne.length))return(0,Ie.cloneDeep)(this.validateDefinition.errors);const ie=[...this.checkDuplicateTokens(),...this.checkVisualizationsInStructure(),...this.checkInputsInStructure()];return(0,Ie.isEmpty)(ie)?null:ie}updateDashboard({title:G,desc:Z}){return(0,Ie.isString)(G)&&(this.definition=__spreadProps(__spreadValues({},this.definition),{title:G&&G.trim()||""})),Z&&(this.definition=__spreadProps(__spreadValues({},this.definition),{description:Z})),this}addDataSource(G,Z){return Z?(this.definition=__spreadProps(__spreadValues({},this.definition),{dataSources:__spreadProps(__spreadValues({},this.definition.dataSources),{[G]:Z})}),this):this}addVisualization(G,Z){return this.updateVisualization(G,Z)}addInput(G,Z){const ne=(0,Ie.get)(Z,"options.token",this.nextTokenId()),ie=(0,Ie.get)(Z,"type","input.text");return this.definition=__spreadProps(__spreadValues({},this.definition),{inputs:__spreadProps(__spreadValues({},this.definition.inputs),{[G]:__spreadProps(__spreadValues({},Z),{type:ie,options:__spreadProps(__spreadValues({},null==Z?void 0:Z.options),{token:ne})})})}),this}addInputToLayout(G){const Z=this.getGlobalInputs();return this.updateGlobalInputs([...Z,G])}removeInputFromLayout(G){const Z=this.getGlobalInputs().filter(Z=>Z!==G);return this.updateGlobalInputs(Z)}updateGlobalInputs(G=[]){return this.definition=__spreadProps(__spreadValues({},this.definition),{layout:__spreadProps(__spreadValues({type:"absolute"},this.definition.layout),{globalInputs:G})}),this}cloneDataSource(G){let Z=this.getDataSource(G);if(!Z)return null;const{name:ne}=Z,ie=/ copy (\d+)$/;if(ne){const G=ne.replace(ie,""),se=Object.values(this.definition.dataSources).map(G=>G.name).filter(Z=>null==Z?void 0:Z.includes(G)).reduce((G,Z)=>{const ne=null==Z?void 0:Z.match(ie),se=ne?parseInt(ne[1],10)+1:1;return Math.max(G,se)},1);Z=__spreadProps(__spreadValues({},Z),{name:`${G} copy ${se}`})}const se=`${this.nextDataSourceId()}_${G}`;return this.addDataSource(se,Z),se}cloneDataSourcesFromItemDef(G){if((0,Ie.isEmpty)(null==G?void 0:G.dataSources))return;const Z={};return(0,Ie.each)(G.dataSources,(G,ne)=>{if(this.getDataSource(G)){const ie=this.cloneDataSource(G);Z[ne]=ie}}),Z}cloneVisualization(G,Z){if(!Z)return null;const ne=this.getVisualization(G);if(!ne)return null;const ie=__spreadValues({},ne),se=this.cloneDataSourcesFromItemDef(ne);return se&&(ie.dataSources=se),this.addVisualization(Z,ie),Z}cloneInput(G,Z){if(!Z)return null;const ne=this.getInput(G);if(!ne)return null;const ie=(0,Ie.cloneDeep)(ne);null!=ie.options||(ie.options={}),ie.options.token=this.nextTokenId();const se=this.cloneDataSourcesFromItemDef(ne);return se&&(ie.dataSources=se),this.addInput(Z,ie),Z}removeDataSource(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{dataSources:(0,Ie.omit)(this.definition.dataSources,[G])}),this}removeVisualization(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{visualizations:(0,Ie.omit)(this.definition.visualizations,[G])}),this}removeInput(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{inputs:(0,Ie.omit)(this.definition.inputs,[G])}),this}removeDefaultStaticToken({tokenName:G,namespace:Z=$e.DEFAULT_TOKEN_NAMESPACE}){var ne,ie,se,ce,fe;const me=(0,Ie.cloneDeep)(this.definition);return(null==(ie=null==(ne=me.defaults)?void 0:ne.tokens)?void 0:ie[Z])&&delete me.defaults.tokens[Z][G],(null==(ce=null==(se=me.defaults)?void 0:se.tokens)?void 0:ce[Z])&&(0,Ie.isEmpty)(me.defaults.tokens[Z])&&delete me.defaults.tokens[Z],(null==(fe=me.defaults)?void 0:fe.tokens)&&(0,Ie.isEmpty)(me.defaults.tokens)&&delete me.defaults.tokens,me.defaults&&(0,Ie.isEmpty)(me.defaults)&&delete me.defaults,this.definition=me,this}updateLayoutType(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{layout:__spreadProps(__spreadValues({},this.definition.layout),{type:G})}),this}updateLayoutOptions(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{layout:__spreadProps(__spreadValues({type:"absolute"},this.definition.layout),{options:G})}),this}updateLayoutStructure(G){return this.definition=__spreadProps(__spreadValues({},this.definition),{layout:__spreadProps(__spreadValues({type:"absolute"},this.definition.layout),{structure:G})}),this}updateVisualization(G,Z){return Z?(this.definition=__spreadProps(__spreadValues({},this.definition),{visualizations:__spreadProps(__spreadValues({},this.definition.visualizations),{[G]:Z})}),this):this}updateDataSource(G,Z){return!Z||(0,Ie.isEqual)(Z,(0,Ie.get)(this.definition,["dataSources",G]))||(this.definition=__spreadProps(__spreadValues({},this.definition),{dataSources:__spreadProps(__spreadValues({},this.definition.dataSources),{[G]:Z})})),this}updateInput(G,Z){return Z?(this.definition=__spreadProps(__spreadValues({},this.definition),{inputs:__spreadProps(__spreadValues({},this.definition.inputs),{[G]:Z})}),this):this}setDefaultStaticToken({tokenName:G,defaultValue:Z,namespace:ne=$e.DEFAULT_TOKEN_NAMESPACE}){var ie,se,ce;return Z?this.definition=__spreadProps(__spreadValues({},this.definition),{defaults:__spreadProps(__spreadValues({},this.definition.defaults),{tokens:__spreadProps(__spreadValues({},null==(ie=this.definition.defaults)?void 0:ie.tokens),{[ne]:__spreadProps(__spreadValues({},null==(ce=null==(se=this.definition.defaults)?void 0:se.tokens)?void 0:ce[ne]),{[G]:{value:Z}})})})}):this.removeDefaultStaticToken({tokenName:G,namespace:ne}),this}toJSON(){return this.definition}getItemOptions(G){var Z,ne;return null==(ne=null!=(Z=this.getVisualization(G))?Z:this.getInput(G))?void 0:ne.options}getLayoutStructure(){const G=(0,Ie.get)(this.definition,"layout.structure");return Array.isArray(G)?G:[]}getLayoutType(){var G;return null==(G=this.definition.layout)?void 0:G.type}getValidatedLayoutType(){const G=this.getLayoutType();if("grid"!==G&&"absolute"!==G)throw new TypeError(G+" is not supported by this api");return G}getLayoutOptions(){return(0,Ie.get)(this.definition,"layout.options")||{}}getVisualization(G){return(0,Ie.get)(this.definition,`visualizations["${G}"]`,null)}getVisualizationWithFlattenedDefaults(G){const Z=this.getVisualization(G);if(!Z)return null;const ne=this.getDefaults(),ie=getGlobalDefaultsForVisualizations(ne),se=getDefaultsForVisualizationType(ne,Z.type);return(0,$e.deepMergeWithDefaults)(Z,se,ie)}getVisualizationIds(){return Object.keys((0,Ie.get)(this.definition,"visualizations",{}))}getDataSource(G){return(0,Ie.get)(this.definition,`dataSources["${G}"]`,null)}canBeBaseDataSource(G,Z=0){const ne=(0,Ie.get)(this.getDataSource(G),"options.extend",""),ie=Z<$e.MAX_CHAIN_LENGTH;return ne&&ie?this.canBeBaseDataSource(ne,Z+1):ie}getBaseDataSources(){const G=(0,Ie.get)(this.definition,"dataSources",{});return(0,Ie.pickBy)(G,(G,Z)=>this.canBeBaseDataSource(Z))}getDataSourceDefaultOptions(G){const Z=(0,Ie.get)(this.getDataSource(G),"type");return Z?getDefaultOptionsForDataSourceType(this.getDefaults(),Z):null}getInput(G){return(0,Ie.get)(this.definition,["inputs",G],null)}getGlobalInputs(){return(0,Ie.get)(this.definition,"layout.globalInputs",[]).slice()}getInputByToken(G){if(!G)return null;const Z=(0,Ie.get)(this.definition,"inputs");return(0,Ie.find)(Z,Z=>(0,Ie.get)(Z,"options.token")===G)||null}getVisualizationType(G){var Z,ne;return(null==(ne=null==(Z=this.definition.visualizations)?void 0:Z[G])?void 0:ne.type)||null}getInputType(G){var Z,ne;return(null==(ne=null==(Z=this.definition.inputs)?void 0:Z[G])?void 0:ne.type)||null}getItemPresetType(G){return this.getVisualizationType(G)||this.getInputType(G)||void 0}getEventHandlers(G,Z="visualizations"){if(!G)return[];const ne=(0,Ie.get)(this.definition,[Z,G],null);return ne&&Array.isArray(ne.eventHandlers)&&ne.eventHandlers||[]}createEventHandler(G,Z,ne="visualizations"){var ie;if(null==(0,Ie.get)(this.definition,[ne,G],null))return this;const se=[...this.getEventHandlers(G,ne),Z];return this.definition=__spreadProps(__spreadValues({},this.definition),{[ne]:__spreadProps(__spreadValues({},this.definition[ne]),{[G]:__spreadProps(__spreadValues({},null==(ie=this.definition[ne])?void 0:ie[G]),{eventHandlers:se})})}),this}removeEventHandler(G,Z=0,ne="visualizations"){var ie;if(null==(0,Ie.get)(this.definition,[ne,G],null))return this;const se=[...this.getEventHandlers(G,ne)];return se.splice(Z,1),this.definition=__spreadProps(__spreadValues({},this.definition),{[ne]:__spreadProps(__spreadValues({},this.definition[ne]),{[G]:__spreadProps(__spreadValues({},null==(ie=this.definition[ne])?void 0:ie[G]),{eventHandlers:se})})}),this}editEventHandler(G,Z=0,ne={},ie="visualizations"){var se;if(null==(0,Ie.get)(this.definition,[ie,G],null))return this;const ce=[...this.getEventHandlers(G,ie)];return Z>=0&&Z<=ce.length-1&&(ce[Z]=ne,this.definition=__spreadProps(__spreadValues({},this.definition),{[ie]:__spreadProps(__spreadValues({},this.definition[ie]),{[G]:__spreadProps(__spreadValues({},null==(se=this.definition[ie])?void 0:se[G]),{eventHandlers:ce})})})),this}connectNewDataSourceToVisualization({vizId:G,dataSourceType:Z,dataSourceDefinition:ne}){const ie=this.nextDataSourceId();return this.addDataSource(ie,ne),this.connectDataSourceToVisualization({vizId:G,dataSourceType:Z,dataSourceId:ie}),this}connectNewDataSourceToInput({inputId:G,dataSourceType:Z,dataSourceDefinition:ne}){const ie=this.nextDataSourceId();return this.addDataSource(ie,ne),this.connectDataSourceToInput({inputId:G,dataSourceType:Z,dataSourceId:ie}),this}connectNewDataSourceToItem({itemId:G,dataSourceType:Z,dataSourceDefinition:ne}){return"input"===this.getItemType(G)?this.connectNewDataSourceToInput({inputId:G,dataSourceType:Z,dataSourceDefinition:ne}):this.connectNewDataSourceToVisualization({vizId:G,dataSourceType:Z,dataSourceDefinition:ne})}connectDataSourceToVisualization({vizId:G,dataSourceType:Z,dataSourceId:ne}){const ie=this.getVisualization(G),se=this.getDataSource(ne);return ie&&se&&this.updateVisualization(G,__spreadProps(__spreadValues({},ie),{dataSources:__spreadProps(__spreadValues({},ie.dataSources),{[Z]:ne})})),this}connectDataSourceToInput({inputId:G,dataSourceType:Z,dataSourceId:ne}){const ie=this.getInput(G),se=this.getDataSource(ne);return ie&&se&&this.updateInput(G,__spreadProps(__spreadValues({},ie),{dataSources:__spreadProps(__spreadValues({},ie.dataSources),{[Z]:ne})})),this}connectDataSourceToItem({itemId:G,dataSourceType:Z,dataSourceId:ne,type:ie="block"}){return"input"===ie?this.connectDataSourceToInput({inputId:G,dataSourceType:Z,dataSourceId:ne}):this.connectDataSourceToVisualization({vizId:G,dataSourceType:Z,dataSourceId:ne})}disconnectDataSourceFromVisualization({vizId:G,dataSourceType:Z,dataSourceId:ne}){const ie=this.getVisualization(G);return ie&&ie.dataSources&&ie.dataSources[Z]===ne&&this.updateVisualization(G,__spreadProps(__spreadValues({},ie),{dataSources:(0,Ie.omit)(ie.dataSources,Z)})),this}disconnectDataSourceFromInput({inputId:G,dataSourceType:Z,dataSourceId:ne}){const ie=this.getInput(G);return ie&&ie.dataSources&&ie.dataSources[Z]===ne&&this.updateInput(G,__spreadProps(__spreadValues({},ie),{dataSources:(0,Ie.omit)(ie.dataSources,Z)})),this}disconnectDataSourceFromItem({itemId:G,dataSourceType:Z,dataSourceId:ne}){return"input"===this.getItemType(G)?this.disconnectDataSourceFromInput({inputId:G,dataSourceType:Z,dataSourceId:ne}):this.disconnectDataSourceFromVisualization({vizId:G,dataSourceType:Z,dataSourceId:ne})}nextVisualizationId(){return generateId("viz",G=>this.getVisualization(G))}nextDataSourceId(){return generateId("ds",G=>this.getDataSource(G))}nextInputId(){return generateId("input",G=>this.getInput(G))}nextTokenId(G="token"){return generateId(G,G=>this.getInputByToken(G))}countVisualizationsUsingDataSource(G){const{visualizations:Z={}}=this.definition;let ne=0;return Object.keys(Z).forEach(ie=>{const se=(0,Ie.get)(Z,[ie,"dataSources"],{});Object.keys(se).forEach(Z=>{se[Z]===G&&(ne+=1)})}),ne}countInputsUsingDataSource(G){const{inputs:Z={}}=this.definition;let ne=0;return Object.keys(Z).forEach(ie=>{const se=(0,Ie.get)(Z,[ie,"dataSources"],{});Object.keys(se).forEach(Z=>{se[Z]===G&&(ne+=1)})}),ne}getChainSearchesUsingDataSource(G,Z=0){const ne=(0,Ie.get)(this.definition,"dataSources",{}),ie=[];return(0,Ie.each)(ne,(ne,se)=>{(0,Ie.get)(ne,"options.extend","")===G&&Z<$e.MAX_CHAIN_LENGTH&&ie.push({id:se,config:this.getDataSource(se)},...this.getChainSearchesUsingDataSource(se,Z+1))}),ie}disconnectDataSource(G){const{visualizations:Z={},inputs:ne={}}=this.definition;return Object.keys(Z).forEach(ne=>{const ie=(0,Ie.get)(Z,[ne,"dataSources"],{});Object.keys(ie).forEach(Z=>{this.disconnectDataSourceFromVisualization({vizId:ne,dataSourceType:Z,dataSourceId:G})})}),Object.keys(ne).forEach(Z=>{const ie=(0,Ie.get)(ne,[Z,"dataSources"],{});Object.keys(ie).forEach(ne=>{this.disconnectDataSourceFromInput({inputId:Z,dataSourceType:ne,dataSourceId:G})})}),this}hasDuplicateId(G){return hasDuplicateId(this.definition,G)}updateComponentId(G,Z){if(G===Z||!/^(viz|input|ds)_[a-zA-Z0-9-_]+$/.test(Z)||this.hasDuplicateId(Z)||!this.hasDuplicateId(G))return!1;const ne=JSON.stringify(this.definition),ie=new RegExp(`"${G}"`,"g");return this.definition=JSON.parse(ne.replace(ie,`"${Z}"`)),!0}compare(G){return(0,yt.compare)(normalizeLayoutStructure(this.toJSON()),normalizeLayoutStructure(G.toJSON()))}getFirstTimeRangeInputId(){return(0,Ie.find)((0,Ie.get)(this.definition,["layout","globalInputs"],[]),G=>"input.timerange"===(0,Ie.get)(this.getInput(G),"type"))}getDefaults(){return(0,Ie.get)(this.definition,"defaults",{})}getDefaultTimeRangeForNewSearch(){const G=getDefaultOptionsForDataSourceType(this.getDefaults(),"ds.search"),Z=(0,Ie.get)(G,"queryParameters",{});if(Z.earliest||Z.latest)return{};const ne=(0,Ie.get)(this.getInput(this.getFirstTimeRangeInputId()),["options","token"]);return ne?{earliest:`$${ne}.earliest$`,latest:`$${ne}.latest$`}:{earliest:"-24h@h",latest:"now"}}getVisualizationLayoutType(G){const Z=this.getLayoutStructure(),{type:ne="block"}=Z.find(Z=>Z.item===G)||{};return ne}getItemType(G){return this.getInput(G)?"input":"block"}addLayoutItem({visualizationId:G,vizContract:Z}={}){if(!G)throw new SyntaxError("No visualization id supplied");const ne=this.getValidatedLayoutType(),ie=this.getVisualization(G);if(!ie)throw new ReferenceError("Visualization does not exist");const se=this.getLayoutStructure();if(se.find(Z=>Z.item===G))throw new Error(G+" is already in the layout structure");const ce=this.getLayoutOptions(),fe=(0,Ie.get)(ce,"width",$e.DEFAULT_CANVAS_WIDTH);let me=null;if("grid"===ne)me=(0,$e.computeNewGridStructureItem)({canvasWidth:fe,layoutItems:se,itemId:G});else{const ne="abslayout.line"===(0,Ie.get)(ie,"type"),ge=(0,Ie.get)(ce,"height",$e.DEFAULT_CANVAS_HEIGHT);me=(0,$e.computeNewAbsoluteStructureItem)({itemId:G,type:ne?"line":"block",canvasWidth:fe,canvasHeight:ge,vizContract:Z,layoutItems:se})}return this.updateLayoutStructure([...se,me]),this}addInputToLayoutStructure(G){if(!G)throw new SyntaxError("No input id supplied");const Z=this.getValidatedLayoutType();if(!this.getInput(G))throw new ReferenceError("Input does not exist");const ne=this.getLayoutStructure();if(ne.find(Z=>Z.item===G))throw new Error(G+" is already in the layout structure");const ie=this.getLayoutOptions(),se=(0,Ie.get)(ie,"width",$e.DEFAULT_CANVAS_WIDTH);let ce=null;if("grid"===Z)ce=(0,$e.computeNewGridStructureItem)({itemId:G,type:"input",canvasWidth:se,layoutItems:ne});else{const Z=(0,Ie.get)(ie,"height",$e.DEFAULT_CANVAS_HEIGHT);ce=(0,$e.computeNewAbsoluteStructureItem)({itemId:G,type:"input",canvasWidth:se,canvasHeight:Z,layoutItems:ne})}return this.updateLayoutStructure([...ne,ce]),this}getDefaultStaticTokens(G=new Set){return getDefaultStaticTokens(this.definition,G)}getVisualizationIdsUsingToken(G){return this.getVisualizationIds().filter(Z=>!!this.getEventHandlers(Z).find(Z=>{var ne,ie;return!!(null==(ie=null==(ne=Z.options)?void 0:ne.tokens)?void 0:ie.find(Z=>Z.token===G))}))}isInputOnCanvas(G){return!!this.getLayoutStructure().find(Z=>Z.item===G&&"input"===Z.type)}moveInputToCanvas(G){return this.isInputOnCanvas(G)||this.addInputToLayoutStructure(G),this.removeInputFromLayout(G),this}moveInputToGlobalInputs(G){return this.isInputOnCanvas(G)&&this.removeInputFromLayoutStructure(G),this.addInputToLayout(G),this}safeRemoveGridItem(G){const Z=this.getLayoutStructure(),ne=Z.find(Z=>Z.item===G);if(!ne)return this;const ie=this.getLayoutOptions(),se=(0,Ie.get)(ie,"width",$e.DEFAULT_CANVAS_WIDTH),ce=(0,$e.updateRemovedVizNeighbors)({itemToRemove:ne,items:Z,width:se}),fe=ce.map(G=>G.item),me=Z.filter(G=>G.item!==ne.item&&fe.indexOf(G.item)<0);return this.updateLayoutStructure([...ce,...me]),this}removeInputFromLayoutStructure(G){if("grid"===this.getLayoutType())return this.safeRemoveGridItem(G);const Z=[...this.getLayoutStructure()],ne=Z.findIndex(({item:Z,type:ne})=>Z===G&&"input"===ne);return-1!==ne&&(Z.splice(ne,1),this.updateLayoutStructure(Z)),this}},Nt=It},7694:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(66)),ce=ie(ne(11)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(84),ge=ie(ne(73)),Ce=ne(5),Se=ne(138),Me=ne(125),ke=ne(100),xe=ne(93),De=ne(257),Ie=ne(812),Re=ne(1161),ze=ie(ne(1315)),$e=ie(ne(1624));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var Z=De.OBJECT_NAMES.plural,ne=(0,Ce.gettext)("Select deep dive"),ie=(0,fe.useContext)(ze.default);return fe.default.createElement($e.default,(0,se.default)({},(0,xe.createITSITestHook)(DeepDiveDrilldownSelector.name),{type:Re.DRILLDOWN_TYPES.SAVED_DEEP_DIVE,label:Z,helpText:ne,dashboardApiRef:ie,objectFetchURL:G=>G?(0,Ie.retrieveURL)(G,Me.username):"",objectListFetchURL:G=>{var Z={offset:0,count:10,fields:"_key,identifying_name,title",sort_dir:"asc",sort_key:"identifying_name",sort_mode:"auto",filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"?").concat((0,me.stringify)(Z))},objectListCountFetchURL:G=>{var Z={filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"/count?").concat((0,me.stringify)(Z))},objectAccessURL:(G,Z)=>{if(!G)return"";var ne=(0,Re.timerangeQueryParametersString)(Z),ie=ne?"&".concat(ne):"",se={savedDeepDiveID:G._key};return(0,Ie.uiEditURL)(se)+ie}},G))};DeepDiveDrilldownSelector.label=De.OBJECT_NAMES.singular,DeepDiveDrilldownSelector.areOptionsValid=function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G.type===Re.DRILLDOWN_TYPES.SAVED_DEEP_DIVE&&G.url&&(0,Se.isValidUrl)(G.url)?null:(0,Ce.gettext)("Invalid Url")};var Je=DeepDiveDrilldownSelector;Z.default=Je,G.exports=Z.default},7695:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(66)),ce=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),fe=ne(84),me=ne(5),ge=ne(138),Ce=ne(125),Se=ne(106),Me=ne(93),ke=ne(941),xe=ne(1602),De=ne(2454),Ie=ne(1161),Re=ie(ne(1315)),ze=ie(ne(1624));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}var DashboardDrilldownSelector=G=>{var Z=ke.OBJECT_NAMES.plural,ne=(0,me.gettext)("Select dashboard"),ie=(0,ce.useContext)(Re.default);return ce.default.createElement(ze.default,(0,se.default)({},(0,Me.createITSITestHook)(DashboardDrilldownSelector.name),{type:Ie.DRILLDOWN_TYPES.SAVED_DASHBOARD,label:Z,helpText:ne,dashboardApiRef:ie,formattedData:G=>G&&G.entry?G.entry.map(G=>{if(G.name&&G.content&&G.content.label)return{_key:G.name,title:G.content.label}}):[],objectFetchURL:G=>{if(!G)return"";return(0,xe.retrieveURL)(G,(0,Se.getShortAppName)(!0),Ce.username)+"?"+(0,fe.stringify)({output_mode:"json"})},objectListFetchURL:G=>{var Z={offset:0,count:10,sort_dir:"asc",sort_key:"label",sort_mode:"auto",search:(0,De.searchFilter)({owner:Ce.username,keyword:G}),output_mode:"json"};return(0,xe.baseWithAppAndOwnerURL)((0,Se.getShortAppName)(!0),Ce.username)+"?"+(0,fe.stringify)(Z)},objectAccessURL:(G,Z)=>{if(!G)return"";var ne=(0,Ie.timerangeQueryParametersString)(Z),ie=ne?"?".concat(ne):"";return(0,xe.uiEditURL)(G._key)+ie}},G))};DashboardDrilldownSelector.label=ke.OBJECT_NAMES.singular,DashboardDrilldownSelector.areOptionsValid=function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G.type===Ie.DRILLDOWN_TYPES.SAVED_DASHBOARD&&G.url&&(0,ge.isValidUrl)(G.url)?null:(0,me.gettext)("Invalid Url")};var $e=DashboardDrilldownSelector;Z.default=$e,G.exports=Z.default},7696:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(66)),ce=ie(ne(11)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(84),ge=ie(ne(73)),Ce=ne(5),Se=ne(138),Me=ne(125),ke=ne(100),xe=ne(93),De=ne(369),Ie=ne(487),Re=ne(1161),ze=ie(ne(1315)),$e=ie(ne(1624));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var Z=De.OBJECT_NAMES.plural,ne=(0,Ce.gettext)("Select saved episode review"),ie=(0,fe.useContext)(ze.default);return fe.default.createElement($e.default,(0,se.default)({},(0,xe.createITSITestHook)(EventManagementDrilldownSelector.name),{type:Re.DRILLDOWN_TYPES.SAVED_EVENT_MANAGEMENT,label:Z,helpText:ne,dashboardApiRef:ie,objectFetchURL:G=>G?(0,Ie.retrieveURL)(G,Me.username):"",objectListFetchURL:G=>{var Z={offset:0,count:10,fields:"_key,identifying_name,title",sort_dir:"asc",sort_key:"identifying_name",sort_mode:"auto",filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"?").concat((0,me.stringify)(Z))},objectListCountFetchURL:G=>{var Z={filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"/count?").concat((0,me.stringify)(Z))},objectAccessURL:(G,Z)=>{if(!G)return"";var ne=(0,Re.timerangeQueryParametersString)(Z),ie=ne?"&".concat(ne):"",se={emid:G._key};return(0,Ie.uiEditURL)(se)+ie}},G))};EventManagementDrilldownSelector.label=De.OBJECT_NAMES.singular,EventManagementDrilldownSelector.areOptionsValid=function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G.type===Re.DRILLDOWN_TYPES.SAVED_EVENT_MANAGEMENT&&G.url&&(0,Se.isValidUrl)(G.url)?null:(0,Ce.gettext)("Invalid Url")};var Je=EventManagementDrilldownSelector;Z.default=Je,G.exports=Z.default},7697:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(66)),ce=ie(ne(11)),fe=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),me=ne(84),ge=ie(ne(73)),Ce=ne(5),Se=ne(138),Me=ne(125),ke=ne(100),xe=ne(93),De=ne(225),Ie=ne(508),Re=ne(1161),ze=ie(ne(1315)),$e=ie(ne(1624));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var Z=De.OBJECT_NAMES.plural,ne=(0,Ce.gettext)("Select saved service analyzer"),ie=(0,fe.useContext)(ze.default);return fe.default.createElement($e.default,(0,se.default)({},(0,xe.createITSITestHook)(HomeViewDrilldownSelector.name),{type:Re.DRILLDOWN_TYPES.SAVED_HOME_VIEW,label:Z,helpText:ne,dashboardApiRef:ie,objectFetchURL:G=>G?(0,Ie.retrieveURL)(G,Me.username):"",objectListFetchURL:G=>{var Z={offset:0,count:10,fields:"_key,identifying_name,title",sort_dir:"asc",sort_key:"identifying_name",sort_mode:"auto",filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"?").concat((0,me.stringify)(Z))},objectListCountFetchURL:G=>{var Z={filter:JSON.stringify(De.DEFAULT_FILTER_ATTRIBUTES),output_mode:"json"};return G&&(Z.filter=JSON.stringify((0,ge.default)(_objectSpread(_objectSpread({},De.DEFAULT_FILTER_ATTRIBUTES),{},{filter_string:(0,ke.createJSONFilter)(G)})))),"".concat((0,Ie.baseWithOwnerURL)(Me.username),"/count?").concat((0,me.stringify)(Z))},objectAccessURL:(G,Z)=>{if(!G)return"";var ne=(0,Re.timerangeQueryParametersString)(Z),ie=ne?"&".concat(ne):"";return(0,Ie.uiEditURL)({savedHomeViewId:G._key})+ie}},G))};HomeViewDrilldownSelector.label=De.OBJECT_NAMES.singular,HomeViewDrilldownSelector.areOptionsValid=function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return G.type===Re.DRILLDOWN_TYPES.SAVED_HOME_VIEW&&G.url&&(0,Se.isValidUrl)(G.url)?null:(0,Ce.gettext)("Invalid Url")};var Je=HomeViewDrilldownSelector;Z.default=Je,G.exports=Z.default},7698:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se,ce=ie(ne(11)),fe=ie(ne(9)),me=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),ge=ie(ne(2)),Ce=ie(ne(47)),Se=ie(ne(3)),Me=ie(ne(623)),ke=ne(190),xe=ne(40),De=ne(5),Ie=ne(7699),Re=ne(1625),ze=ne(301),$e=ne(7796),Je=ne(312),it=ne(1851),ot=ne(2512),at=ie(ne(7797)),st=ie(ne(7798)),ct=ne(2047),ut=ne(1315),dt=ie(ne(7799)),ht=ie(ne(7803)),ft=ie(ne(7809)),_t=ie(ne(7812)),yt=ie(ne(7814));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var{isEditable:Z,definition:ne,earliest:ie,latest:se,dataProviderInstance:ce,featureFlags:fe,handleDefinitionChange:ge,handleSaveClick:Ce,handleServiceChange:Se,handleServicesChange:xe,handleTokenChange:wt,isDirty:Ct,mode:St,onModeChange:Mt,onOpenSearchClick:kt,searchAggregatorInstance:xt,selectedServiceID:Lt,selectedServicesIDs:Tt,ddEditors:At,userMessageHandler:Dt,createToast:Et}=G,[jt,It]=(0,me.useState)(St),[Nt,Rt]=(0,me.useState)(JSON.stringify(ne)),[zt,qt]=(0,me.useState)(!1),[Wt,Bt]=(0,me.useState)({}),[Ft]=(0,me.useState)({dataProviderInstance:ce,dashboardDefinition:ne,searchAggregatorInstance:xt}),[Ht,$t]=(0,me.useState)(()=>JSON.stringify(ne));(0,me.useEffect)(()=>(window.addEventListener("beforeunload",Vt),window.MonacoEnvironment={getWorkerUrl:function getWorkerUrl(G,Z){return"json"===Z?(0,ke.createStaticURL)("app/itsi/build/pages/json.worker.js"):(0,ke.createStaticURL)("app/itsi/build/pages/editor.worker.js")}},delete window.requirejs,()=>{window.removeEventListener("beforeunload",Vt)}),[Vt,Ct]),(0,me.useEffect)(()=>{Rt(JSON.stringify(ne))},[ne]);var Vt=(0,me.useCallback)(G=>{if(Ct){G.preventDefault();var Z=(0,De.gettext)("Are you sure you want to leave without saving?");return G.returnValue=Z,Z}return!0},[Ct]),Yt=(0,me.useCallback)(G=>{Mt(G),It(G)},[Mt]),Ut=(0,me.useCallback)(G=>{Rt(G)},[]),Kt=(0,me.useCallback)(G=>{var Z=G.match(/Error:\s(.*?):\s(.+)/),ne=[];if(Z[2]){var ie=Z[2];ne.push(ie)}else if(Z[3]){var se=Z[3];ne.push(se)}ne.forEach(G=>{Dt({message:G,level:"error"})})},[]),Gt=(0,me.useCallback)(G=>{for(var Z,ne=/\[Error: (.*?)\]: (.*?)(?:, |$)|(.+)/g,ie=[];null!==(Z=ne.exec(G));)if(Z[2]){var se=Z[2];ie.push(se)}else if(Z[3]){var ce=Z[3];ie.push(ce)}ie.forEach(G=>{Dt({message:G,level:"error"})})},[]),Zt=(0,me.useCallback)(()=>{Rt(JSON.stringify(ne,null,"\t")),$t(JSON.stringify(ne,null,"\t")),qt(!0)},[ne]),Jt=(0,me.useCallback)(()=>{Rt(Ht),qt(!1)},[]),Qt=(0,me.useCallback)(G=>{ge(G,Wt)},[Wt]),on=(0,me.useCallback)(G=>{Bt(G)},[Wt]),sn=(0,me.useMemo)(()=>{var G=ze.ImageRegistry.create();return G.addDefaultProvider(new at.default({collectionName:"SA-ITOA_files"})),G},[]),cn=(0,me.useMemo)(()=>{var G=ze.IconRegistry.create();return G.addDefaultProvider(new st.default({collectionName:"SA-ITOA_icon_collection"})),G},[]),dn=(0,me.useMemo)(()=>{var G=ze.GeoRegistry.create();return G.addDefaultProvider(new ze.GeoJsonProvider),G},[]),mn=(0,me.useMemo)(()=>new $e.SWACollector,[]),_n=(0,me.useMemo)(()=>({view:[me.default.createElement(ft.default,{key:"service-swapper",align:"right",dataProviderInstance:ce,handleServicesChange:xe,handleServiceChange:Se,selectedServiceID:Lt,selectedServicesIDs:Tt,viewOnly:!0}),me.default.createElement(Re.ExportDashboardButton,{key:"export-dashboard",createToast:Et,align:"right"}),me.default.createElement(Re.EditingGroup,{enableModeSwitch:Z,align:"right",key:"editing"}),me.default.createElement(Re.ControlGroup,{key:"control"})],edit:[me.default.createElement(_t.default,{key:"save",onClick:Ce,isDirty:Ct}),me.default.createElement(Re.HistoryGroup,{key:"history"}),me.default.createElement(Re.VisualizationGroup,{key:"visualization"}),me.default.createElement(Re.SidebarControlGroup,{key:"sidebar"}),me.default.createElement(Re.Source,{key:"source",onClick:Zt}),me.default.createElement(ft.default,{key:"service-swapper",align:"right",dataProviderInstance:ce,handleServicesChange:xe,handleServiceChange:Se,selectedServiceID:Lt,selectedServicesIDs:Tt}),me.default.createElement(Re.EditingGroup,{key:"editing",align:"right"})]}),[Z,Ct,Ce,Zt,Lt,Tt]),gn=(0,me.useMemo)(()=>({view:[me.default.createElement(ot.OpenSearchButton,{key:"open_search",onOpenSearchClick:kt}),me.default.createElement(ot.FullscreenButton,{key:"viz_fullscren"}),me.default.createElement(ot.ExportButton,{key:"export",onClick:Et})],edit:[me.default.createElement(ot.LayerButton,{key:"layer"}),me.default.createElement(ot.CloneButton,{key:"clone"}),me.default.createElement(ot.DeleteButton,{key:"delete"})]}),[kt]),bn=(0,me.useMemo)(()=>({default:_objectSpread(_objectSpread({},ie&&{["".concat(ct.GLOBAL_TRP_TOKEN_NAME,".earliest")]:ie}),se&&{["".concat(ct.GLOBAL_TRP_TOKEN_NAME,".latest")]:se})}),[ie,se]),yn=(0,me.useMemo)(()=>({eventActions:[],fieldActions:{},isSplunkWebAvailable:!0}),[]),vn=(0,me.useMemo)(()=>({defaultTileConfig:it.testTileConfig}),[]);return me.default.createElement(vt,null,me.default.createElement(ut.GlassTableContextProvider,{value:Wt},me.default.createElement(ze.DashboardContextProvider,{metricsCollectors:mn,dataSourceContext:Ft,eventsConfig:yn,mapTileConfig:vn,imageRegistry:sn,iconRegistry:cn,geoRegistry:dn,featureFlags:fe,preset:dt.default,userMessage:Dt,onTokenBindingChange:wt,initialDefinition:ne,initialTokenBinding:bn,initialMode:jt,onModeChange:Yt,onDefinitionChange:Qt},me.default.createElement(Me.default,null),zt?me.default.createElement(Ie.DashboardSourceEditor,{title:ne.title,width:"100%",height:"calc(100vh - 55px)",schema:(0,Je.createSchemaBasedOnPresets)(dt.default),onSourceChange:Ut,onExit:Jt,onValidationError:Gt}):me.default.createElement(Ie.Dashboard,{width:"100vw",height:"calc(100vh - 55px)",actionMenus:gn[jt],dashboardApiRef:on,dataSourcesPanel:ht.default,handleValidationError:Kt,drilldownEditors:At.getDrilldownEditors(),dataSourceEditors:yt.default,toolbarItems:_n[jt]}))))},wt=GlasstableEditorUDF;Z.default=wt,GlasstableEditorUDF.propTypes={isEditable:ge.default.bool.isRequired,definition:ge.default.object.isRequired,earliest:ge.default.string,latest:ge.default.string,dataProviderInstance:ge.default.object.isRequired,featureFlags:ge.default.object,handleDefinitionChange:ge.default.func.isRequired,handleSaveClick:ge.default.func.isRequired,handleServiceChange:ge.default.func.isRequired,handleServicesChange:ge.default.func.isRequired,handleTokenChange:ge.default.func.isRequired,isDirty:ge.default.bool.isRequired,mode:ge.default.string,onModeChange:ge.default.func,onOpenSearchClick:ge.default.func,searchAggregatorInstance:ge.default.object.isRequired,selectedServiceID:ge.default.string,selectedServicesIDs:ge.default.array.isRequired,ddEditors:ge.default.object.isRequired,userMessageHandler:ge.default.func.isRequired,createToast:ge.default.func.isRequired},GlasstableEditorUDF.defaultProps={mode:"view",onModeChange:Ce.default,onOpenSearchClick:Ce.default,featureFlags:{},selectedServiceID:null,earliest:null,latest:null},G.exports=Z.default},7699:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.defineProperties,me=Object.getOwnPropertyDescriptor,ge=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertyNames,Se=Object.getOwnPropertySymbols,Me=Object.getPrototypeOf,ke=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))ke.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(Se)for(var ne of Se(Z))xe.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__spreadProps=(G,Z)=>fe(G,ge(Z)),__objRest=(G,Z)=>{var ne={};for(var ie in G)ke.call(G,ie)&&Z.indexOf(ie)<0&&(ne[ie]=G[ie]);if(null!=G&&Se)for(var ie of Se(G))Z.indexOf(ie)<0&&xe.call(G,ie)&&(ne[ie]=G[ie]);return ne},__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of Ce(Z))ke.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=me(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Me(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),__publicField=(G,Z,ne)=>(__defNormalProp(G,"symbol"!=typeof Z?Z+"":Z,ne),ne),__async=(G,Z,ne)=>new Promise((ie,se)=>{var fulfilled=G=>{try{step(ne.next(G))}catch(G){se(G)}},rejected=G=>{try{step(ne.throw(G))}catch(G){se(G)}},step=G=>G.done?ie(G.value):Promise.resolve(G.value).then(fulfilled,rejected);step((ne=ne.apply(G,Z)).next())}),De={};__export(De,{Dashboard:()=>$o,DashboardSourceEditor:()=>DashboardSourceEditor_default,DashboardViewer:()=>jo,default:()=>Vo}),G.exports=(ie=De,__copyProps(ce({},"__esModule",{value:!0}),ie));var Ie={};__export(Ie,{default:()=>ze});var Re=__toESM(ne(672));__reExport(Ie,ne(672));var ze="default"in Re?Re.default:Re,$e={};__export($e,{default:()=>it});var Je=__toESM(ne(36));__reExport($e,ne(36));var it="default"in Je?Je.default:Je,ot={};__export(ot,{default:()=>st});var at=__toESM(ne(24));__reExport(ot,ne(24));var st="default"in at?at.default:at,ct={};__export(ct,{default:()=>dt});var ut=__toESM(ne(0));__reExport(ct,ne(0));var dt="default"in ut?ut.default:ut,ht={};__export(ht,{default:()=>_t});var ft=__toESM(ne(2));__reExport(ht,ne(2));var _t="default"in ft?ft.default:ft,yt={};__export(yt,{default:()=>wt});var vt=__toESM(ne(706));__reExport(yt,ne(706));var wt="default"in vt?vt.default:vt,Ct={};__export(Ct,{default:()=>Mt});var St=__toESM(ne(4163));__reExport(Ct,ne(4163));var Mt="default"in St?St.default:St,kt={};__export(kt,{default:()=>Lt});var xt=__toESM(ne(312));__reExport(kt,ne(312));var Lt="default"in xt?xt.default:xt,Tt={};__export(Tt,{default:()=>Dt});var At=__toESM(ne(1539));__reExport(Tt,ne(1539));var Dt="default"in At?At.default:At,Et={};__export(Et,{default:()=>It});var jt=__toESM(ne(1625));__reExport(Et,ne(1625));var It="default"in jt?jt.default:jt,Nt={};__export(Nt,{default:()=>zt});var Rt=__toESM(ne(4192));__reExport(Nt,ne(4192));var zt="default"in Rt?Rt.default:Rt,qt={};__export(qt,{default:()=>Bt});var Wt=__toESM(ne(2e3));__reExport(qt,ne(2e3));var Bt="default"in Wt?Wt.default:Wt,Ft={};__export(Ft,{default:()=>$t});var Ht=__toESM(ne(301));__reExport(Ft,ne(301));var $t="default"in Ht?Ht.default:Ht,Vt={};__export(Vt,{default:()=>Ut});var Yt=__toESM(ne(412));__reExport(Vt,ne(412));var Ut="default"in Yt?Yt.default:Yt,Kt={};__export(Kt,{default:()=>Zt});var Gt=__toESM(ne(391));__reExport(Kt,ne(391));var Zt="default"in Gt?Gt.default:Gt,Jt={};__export(Jt,{default:()=>on});var Qt=__toESM(ne(390));__reExport(Jt,ne(390));var on="default"in Qt?Qt.default:Qt,sn={};__export(sn,{default:()=>dn});var cn=__toESM(ne(138));__reExport(sn,ne(138));var dn="default"in cn?cn.default:cn,mn={};__export(mn,{default:()=>gn});var _n=__toESM(ne(272));__reExport(mn,ne(272));var gn="default"in _n?_n.default:_n,bn=(G=>(G.inputs="input_",G.visualizations="viz_",G.dataSources="ds_",G.layout="layout_",G.dashboard="dashboard_",G))(bn||{}),yn=["options","context","title","description","name","eventHandlers"],classifyDefinitionEdits=G=>(G=>{if(2===G.length){if(G.includes("viz_resize")&&G.includes("viz_move"))return["viz_resize"];if(G.includes("input_add")&&G.includes("input_move"))return["input_add"]}return G})(gn(G.map(({op:G,path:Z})=>{const ne=Z.split("/"),ie=ne[1];let se,ce="dashboard_";if(["inputs","dataSources"].includes(ie))ce=bn[ie];else if("layout"===ie)switch(ne[2]){case"structure":ce="viz_";break;case"globalInputs":ce="input_",se="move";break;default:ce="layout_"}else"visualizations"===ie&&(ne.length>3&&"dataSources"===ne[3]?(ce="ds_",se="add"===G?"connect":"disconnect"):ce="viz_");return ne.some(G=>-1!==yn.indexOf(G))?se="config":ne.some(G=>-1!==["x","y"].indexOf(G))?se="move":ne.some(G=>-1!==["w","h"].indexOf(G))&&(se="resize"),se||(se=G),`${ce}${se}`}))),vn=class{constructor(G){this.throwErrorIfCoreApiIsUnmounted=({methodName:G})=>{if(!this.dashboard.dashboardCoreApi)throw new Error(`Calling "${G}" failed. Please make sure the Dashboard component is mounted and given enough time to register its API.`)},this.selectVisualization=G=>{let Z=[];G&&(Z=Array.isArray(G)?G:[G]);const ne=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition()),ie=Z.map(G=>({id:G,type:ne.getVisualizationLayoutType(G)}));this.updateSelectedItems(ie)},this.focusOnVisualization=G=>{this.dashboard.dashboardCoreApi&&this.dashboard.dashboardCoreApi.focusOnVisualization(G)},this.selectInput=G=>{this.updateSelectedItems([{id:G,type:"input"}])},this.dashboard=G}isDashboardCoreApiReady(){return new Promise(G=>{this.dashboard.dashboardCoreApi&&G(this.dashboard.dashboardCoreApi),this.dashboard.onDashboardCoreApiReady=()=>G(this.dashboard.dashboardCoreApi)})}updateDefinition(G){this.dashboard.dashboardCoreApi.updateDefinition(G)}setTokenBindings({tokenBindings:G,namespace:Z=sn.DEFAULT_TOKEN_NAMESPACE}){this.dashboard.dashboardCoreApi.setTokenBindings({tokenBindings:G,namespace:Z})}unsetTokenBinding({tokenName:G,namespace:Z=sn.DEFAULT_TOKEN_NAMESPACE}){this.dashboard.dashboardCoreApi.unsetTokenBinding({tokenName:G,namespace:Z})}createVisualization({visualizationDefinition:G,layoutItemType:Z="block",dataSourceType:ne=null,dataSourceDefinition:ie=null,selectVisualization:se=!0,focusVisualization:ce=!0}){if(this.dashboard.dashboardCoreApi){const fe=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition()).nextVisualizationId();return this.dashboard.dashboardCoreApi.createVisualization({visualizationId:fe,visualizationDefinition:G,layoutItemType:Z,dataSourceType:ne,dataSourceDefinition:ie}),se&&this.updateSelectedItems([{id:fe,type:Z}]),se&&ce&&this.focusOnVisualization(fe),fe}return null}cloneDashboardItems(G,Z=1){if(!this.dashboard.dashboardCoreApi)return;const ne=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition()),ie=ne.getVisualizationIds(),generateVizId=()=>ne.nextVisualizationId(),generateInputId=()=>ne.nextInputId(),se=G.reduce((G,Z)=>{const ne=ie.includes(Z)?generateVizId:generateInputId;let se=ne();for(;G.includes(se);)se=ne();return G.push(se),G},[]);this.dashboard.dashboardCoreApi.cloneDashboardItems({from:G,to:se,offsetMultiplier:Z});const ce=se.map((Z,ie)=>({id:Z,type:ne.getVisualizationLayoutType(G[ie])}));this.updateSelectedItems(ce)}cloneVisualizations(G,Z=1){(0,sn.deprecated)("The cloneVisualizations method has been deprecated. Please use the cloneDashboardItems API method."),this.cloneDashboardItems(G,Z)}updateVisualization({id:G,vizDefinition:Z}){this.dashboard.dashboardCoreApi.updateVisualization({id:G,vizDefinition:Z})}removeDataSourceFromVisualization({vizId:G,dsBindingType:Z}){this.dashboard.dashboardCoreApi.removeDataSourceFromVisualization({vizId:G,dsBindingType:Z})}updateLayoutStructure(G){this.dashboard.dashboardCoreApi.updateLayoutStructure(G)}updateLayoutOptions(G){this.dashboard.dashboardCoreApi.updateLayoutOptions(G)}getDefinition(){return this.dashboard.getDefinition()}getDashboardTitle(){return this.dashboard.getDefinition().title}getHeaderDomElement(G){return this.dashboard.getHeaderDomElement(G)}getInputsDomElement(){return this.dashboard.dashboardCoreApi.getInputsDomElement()}getCanvasDomElement(){return this.dashboard.dashboardCoreApi.getCanvasDomElement()}getVisualizationDomElement(G){return this.dashboard.dashboardCoreApi.getVisualizationDomElement(G)}refreshVisualization(G,{checkRiskyCommand:Z=!0}={}){this.dashboard.dashboardCoreApi.refreshVisualization(G,{checkRiskyCommand:Z})}refreshInput(G,{checkRiskyCommand:Z=!0}={}){this.dashboard.dashboardCoreApi.refreshInput(G,{checkRiskyCommand:Z})}connectDataSource(G,Z,ne,ie){const se=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition());se.connectDataSourceToItem({itemId:G,dataSourceType:Z,dataSourceId:ne,type:ie}),this.dashboard.handleDefinitionChange(se.toJSON())}connectNewDataSource(G,Z,ne){const ie=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition());ie.connectNewDataSourceToItem({itemId:G,dataSourceType:Z,dataSourceDefinition:ne}),this.dashboard.handleDefinitionChange(ie.toJSON())}disconnectDataSource(G,Z,ne){const ie=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition());ie.disconnectDataSourceFromItem({itemId:G,dataSourceType:Z,dataSourceId:ne}),this.dashboard.handleDefinitionChange(ie.toJSON())}removeDashboardItems(G){this.dashboard.dashboardCoreApi&&Array.isArray(G)&&G.length&&this.dashboard.dashboardCoreApi.removeDashboardItems(G)}removeVisualizations(G=[]){this.dashboard.dashboardCoreApi&&Array.isArray(G)&&G.length&&this.dashboard.dashboardCoreApi.removeVisualizations(G)}pauseDataSources(){this.dashboard.dashboardCoreApi&&this.dashboard.dashboardCoreApi.pauseAllDataSources()}getDataSourceMetaData(G){return this.dashboard.dashboardCoreApi?this.dashboard.dashboardCoreApi.getDataSourceMetaData(G):{}}enterFullscreen(){this.dashboard.enterFullscreen()}exitFullscreen(){this.dashboard.exitFullscreen()}toggleVisualizationFullscreen(G){if(G){const{fullscreenElement:Z}=wt,ne=document.querySelector(`div[data-id="${G}"] div.styled-fullscreen`);Promise.resolve(Z&&wt.exitFullscreen()).then(()=>{ne&&Z!==ne&&wt.requestFullscreen(ne)})}this.dashboard.dashboardCoreApi.toggleVisualizationFullscreen(G)}openPanel({activePanel:G="config",panelProps:Z={}}={}){this.dashboard.updateSidebarPanel({activePanel:G,panelProps:Z})}closePanel(){it.unstable_batchedUpdates(()=>{this.updateSelectedItems([]),this.dashboard.updateSidebarPanel({activePanel:null})})}getOpenedPanel(){return this.dashboard.getSidebarPanel()}editVisualization(G,Z){const ne=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition());ne.updateVisualization(G,Z),this.dashboard.handleDefinitionChange(ne.toJSON())}createDataSource(G){const Z=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition()),ne=Z.nextDataSourceId();Z.addDataSource(ne,G),this.dashboard.handleDefinitionChange(Z.toJSON())}editDataSource(G,Z){const ne=new kt.DashboardDefinition(this.dashboard.getDefinition());ne.updateDataSource(G,Z),this.dashboard.handleDefinitionChange(ne.toJSON())}removeDataSource(G){this.removeDataSources([G])}removeDataSources(G=[]){if(!Array.isArray(G)||0===G.length)return;const Z=new kt.DashboardDefinition(this.dashboard.getDefinition());G.forEach(G=>{Z.disconnectDataSource(G),Z.removeDataSource(G)}),this.dashboard.handleDefinitionChange(Z.toJSON())}takeSnapshot(){return this.dashboard.dashboardCoreApi.takeSnapshot()}canUndo(){return this.dashboard.historyManager.canUndo()}compareUndoDiff(){const G=this.dashboard.historyManager.compareWithPrevious();return{undoActions:classifyDefinitionEdits(G),definitionEdits:G}}undo(){this.dashboard.historyManager.undo()}canRedo(){return this.dashboard.historyManager.canRedo()}compareRedoDiff(){const G=this.dashboard.historyManager.compareWithNext();return{redoActions:classifyDefinitionEdits(G),definitionEdits:G}}redo(){this.dashboard.historyManager.redo()}getVisualizationOrder(){return(0,sn.deprecated)((0,Ct._)("The getVisualizationOrder method has been deprecated. Please use the getCanvasItemOrder API method")),this.getCanvasItemOrder()}getCanvasItemOrder(){return this.dashboard.dashboardCoreApi.getCanvasItemOrder()}adjustVisualizationOrder(G,Z){(0,sn.deprecated)((0,Ct._)("The adjustVisualizationOrder method has been deprecated. Please use the adjustCanvasItemOrder API method")),this.adjustCanvasItemOrder({from:G,to:Z})}adjustCanvasItemOrder({from:G,to:Z}){this.dashboard.dashboardCoreApi.adjustCanvasItemOrder({from:G,to:Z})}switchMode(G){this.dashboard.handleModeChange(G)}areGridLinesEnabled(){return this.dashboard.areGridLinesEnabled()}toggleGridLines(G){this.dashboard.handleGridToggleChange(G),this.dashboard.dashboardCoreApi.toggleGridLines(G)}hasRunningSearches(){return this.dashboard.dashboardCoreApi.hasRunningSearches()}setScale(G){this.dashboard.dashboardCoreApi.setScale(G)}zoomIn(){this.dashboard.dashboardCoreApi.zoomIn()}zoomOut(){this.dashboard.dashboardCoreApi.zoomOut()}fitToWidth(G=1/0){return this.dashboard.dashboardCoreApi.fitToWidth(G)}getZoomLevel(){return __async(this,null,(function*(){return yield this.isDashboardCoreApiReady(),this.dashboard.dashboardCoreApi.getZoomLevel()}))}getInputByToken(G){return this.dashboard.dashboardCoreApi.getInputByToken(G)}addInput(G){if(!this.dashboard.dashboardCoreApi)return null;const Z=kt.DashboardDefinition.fromJSON(this.dashboard.getDefinition()).nextInputId();return this.dashboard.dashboardCoreApi.addInput(Z,G),this.selectInput(Z),Z}removeInput(G){(0,sn.deprecated)("The removeInput method has been deprecated. Please use the removeDashboardItems API method."),this.dashboard.dashboardCoreApi.removeDashboardItems([G])}replaceDefinition({definition:G}){this.throwErrorIfCoreApiIsUnmounted({methodName:"replaceDefinition"}),this.dashboard.dashboardCoreApi.replaceDefinition({definition:G})}replaceReadOnlyTokenNamespaces({namespaces:G}){this.throwErrorIfCoreApiIsUnmounted({methodName:"replaceReadOnlyTokenNamespaces"}),this.dashboard.dashboardCoreApi.replaceReadOnlyTokenNamespaces({namespaces:G})}replaceTokenBinding({tokenBinding:G}){this.throwErrorIfCoreApiIsUnmounted({methodName:"replaceTokenBinding"}),this.dashboard.dashboardCoreApi.replaceTokenBinding({tokenBinding:G})}updateInput({id:G,inputDefinition:Z}){this.dashboard.dashboardCoreApi.updateInput({id:G,inputDefinition:Z})}getCompleteSearchQueryAndParameters(G){return this.dashboard.dashboardCoreApi.getCompleteSearchQueryAndParameters(G)}getDataSourceRegistry(){return this.dashboard.dashboardCoreApi.dataSourceRegistry}moveInputToCanvas(G){this.dashboard.dashboardCoreApi.moveInputToCanvas(G)}moveInputToGlobalInputs(G){this.dashboard.dashboardCoreApi.moveInputToGlobalInputs(G)}updateSelectedItems(G=[]){this.dashboard.dashboardCoreApi.updateSelectedItems(G)}},wn=dt.createContext({drilldownEditors:{},visualizationEditors:{},inputEditors:{},layoutItemEditors:{},layoutEditors:{},vizConfigPanelEditors:{},inputConfigPanelEditors:{},dataSourceEditors:{},dataSourcesPanel:null,fetchDataSources:sn.noop}),Cn=wn.Provider,On=(wn.Consumer,()=>(0,ct.useContext)(wn)),Mn={};__export(Mn,{default:()=>xn});var kn=__toESM(ne(3));__reExport(Mn,ne(3));var xn="default"in kn?kn.default:kn,Tn={};__export(Tn,{default:()=>En});var Dn=__toESM(ne(2041));__reExport(Tn,ne(2041));var En="default"in Dn?Dn.default:Dn,jn={};__export(jn,{default:()=>Nn});var Pn=__toESM(ne(4220));__reExport(jn,ne(4220));var Nn="default"in Pn?Pn.default:Pn,qn={};__export(qn,{default:()=>Bn});var Wn=__toESM(ne(329));__reExport(qn,ne(329));var Bn="default"in Wn?Wn.default:Wn,Hn={};__export(Hn,{default:()=>Vn});var $n=__toESM(ne(1321));__reExport(Hn,ne(1321));var Vn="default"in $n?$n.default:$n,Un=(0,ct.memo)(G=>{var Z=G,{pageAction:ne="dashboard.unknown_action",onClick:ie}=Z,se=__objRest(Z,["pageAction","onClick"]);const ce=(0,Vt.useTelemetryApi)(),fe=(0,Ft.useDashboardApi)(),me=(0,ct.useCallback)((...G)=>{ce.emit({pageAction:ne,definition:fe.getDefinition()},{omitKeys:["definition"]}),null==ie||ie(...G)},[fe,ie,ce,ne]);return dt.createElement(Vn,__spreadProps(__spreadValues({},se),{onClick:me}))}),Kn=xn.div.attrs(()=>({"data-test":"migration-banner"}))` padding: 10px 10px 0 10px; background-color: ${Kt.customThemeVariables.dashboardBackgroundColor}; `,Xn=xn.div` display: flex; justify-content: space-between; align-items: center; `,Gn=xn(Nn.Title)` font-size: 14px; padding-right: 10px; `,Zn=xn.div` flex: 0 0 auto; margin-right: ${(0,qn.pick)({enterprise:"10px",prisma:0})}; `,DismissButton=G=>{var Z=G,{pageAction:ne="dashboard.bulk_migration_dismiss"}=Z,ie=__objRest(Z,["pageAction"]);const{family:se}=(0,qn.useSplunkTheme)();return dt.createElement(Un,__spreadValues({label:(0,Ct._)("Dismiss"),appearance:"prisma"===se?"secondary":"pill",pageAction:ne},ie))},Jn=[],MigrationBanner=({children:G,buttons:Z=Jn,showLink:ne=!1})=>{const{migrations:ie}=(0,Ft.useDocumentationLinks)(),se=(0,ct.useMemo)(()=>ne&&ie?dt.createElement(dt.Fragment,null," ",dt.createElement(En,{to:ie,openInNewContext:!0},(0,Ct._)("Learn more"))):null,[ne,ie]);return dt.createElement(Kn,null,dt.createElement(Nn,{appearance:"fill",type:"info"},dt.createElement(Xn,null,dt.createElement(Gn,null,G,se),dt.createElement(Zn,null,Z))))},Qn=(0,Ct._)("Updated visualizations in this dashboard are available for review in Edit mode."),ViewModeMigrationBanner=({onDismiss:G})=>{const Z=(0,ct.useMemo)(()=>[dt.createElement(DismissButton,{onClick:G,key:"dismiss"})],[G]);return dt.createElement(MigrationBanner,{buttons:Z},Qn)},er=xn.span` font-size: 14px; display: block; `,tr=(0,Ct._)("To avoid future breaking changes, we encourage you to update your visualizations which will provide new dynamic capabilities and configuration options. It will not affect the layout of your dashboard."),nr=(0,Ct._)("The undo option will deactivate if you make additional edits to the dashboard. Review all updates before modifying the dashboard."),ManualMigrateBanner=({countToMigrate:G=0,countMigrated:Z=0,canUndo:ne=!1,onUndo:ie=sn.noop,onMigrate:se=sn.noop,onDismiss:ce=sn.noop})=>{const fe=(0,ct.useMemo)(()=>[dt.createElement(DismissButton,{onClick:ce,key:"dismiss"}),G?dt.createElement(Vn,{label:(0,Ct._)("Update now"),onClick:se,appearance:"primary",key:"migrate"}):dt.createElement(Un,{label:(0,Ct._)("Undo"),onClick:ie,disabled:!ne,key:"undo",pageAction:"dashboard.bulk_migration_undo"})],[ne,ie,G,se,ce]);return Z||G?dt.createElement(MigrationBanner,{buttons:fe,showLink:!0},dt.createElement(er,null,dt.createElement("strong",null,G?(0,Ct._)((me=G)>1?me+" visualizations on this dashboard have been deprecated":"1 visualization on this dashboard has been deprecated"):(G=>(0,Ct._)(G>1?G+" visualizations updated":"1 visualization updated"))(Z))),G?tr:nr):null;var me},MigrationToolsContainer=({initDefinition:G=null})=>{const Z=(0,Ft.useDashboardApi)(),ne=(0,Jt.useDispatch)(),ie=(0,Jt.useSelector)(Jt.selectMode),se=(0,Kt.usePrevious)(ie),ce=(0,Ft.usePreset)(),fe=(0,Jt.useSelector)(Jt.selectDefinition),me=(0,ct.useRef)(G),ge=fe===me.current,Ce=(0,Jt.useSelector)(Jt.selectNumMigratedViz),Se=(0,Jt.useSelector)(Jt.selectHasDismissedAutoMigrate),Me=(0,ct.useCallback)(()=>ne((0,Jt.dismissAutoMigrate)()),[ne]),ke=(0,Jt.useSelector)(Jt.selectHasDismissedManualMigrate),xe=(0,ct.useCallback)(()=>ne((0,Jt.dismissManualMigrate)()),[ne]),De=(0,Jt.useSelector)(Jt.selectHasDismissedViewMode),Ie=(0,ct.useCallback)(()=>ne((0,Jt.dismissViewMode)()),[ne]),Re=(0,Jt.useSelector)(Jt.selectHasAutoMigrated),ze=(()=>{const G=(0,Ft.usePreset)(),Z=(0,Jt.useSelector)(Jt.selectDefinition),ne=(0,ct.useMemo)(()=>{const{visualizations:Z}=G.getPresetDefinition();return Object.keys(Z).filter(G=>{var ne;return null==(ne=Z[G].meta)?void 0:ne.deprecated})},[G]);return(0,ct.useMemo)(()=>{var G;const ie=[];return Object.entries(null!=(G=Z.visualizations)?G:[]).forEach(([G,Z])=>{ne.includes(Z.type)&&ie.push({id:G,type:Z.type})}),ie},[Z,ne]).length})(),$e=!!ze,Je=(0,Vt.useTelemetryApi)(),it=(0,ct.useCallback)(()=>{me.current=null,Me(),Z.undo()},[Z,Me]),ot=(0,ct.useCallback)(()=>{const G=Z.getDefinition(),ie=(0,sn.migrateLegacyVisualizationsToPlatformVisualizations)({definition:G,preset:ce.getPresetDefinition()});Z.updateDefinition(ie),me.current=ie,ne((0,Jt.setNumMigrateViz)(ze)),Ie(),Je.emit({pageAction:"dashboard.bulk_migration_update",definition:ie})},[ne,Ie,Z,ce,ze,Je]);return(0,ct.useEffect)(()=>{"view"!==se&&null!==se||"edit"!==ie||!ze||Re||(ot(),ne((0,Jt.onAutoMigrate)()))},[ne,se,ie,ze,Re,ot,Je,fe]),"view"===ie&&$e&&!De?dt.createElement(ViewModeMigrationBanner,{onDismiss:Ie}):"edit"!==ie||!Re||Se||$e?"edit"===ie&&Re&&!ke&&($e||Ce)?dt.createElement(ManualMigrateBanner,{countMigrated:Ce,countToMigrate:ze,onDismiss:xe,onMigrate:ot,onUndo:it,canUndo:ge}):null:dt.createElement(ManualMigrateBanner,{canUndo:ge,countMigrated:Ce,onUndo:it,onDismiss:Me})},MigrationTools=()=>{const{enableVizMigrationCheck:G}=(0,Ft.useFeatureFlags)();return G?dt.createElement(MigrationToolsContainer,null):null},rr=xn.div` display: flex; flex-direction: row; ${G=>(0,sn.toDimension)({width:G.width,height:G.height})}; `,ir=xn.div` display: flex; flex-direction: column; height: 100%; flex-grow: 1; min-width: 0; `,ar=xn("div")` display: flex; flex-grow: 1; overflow: auto; padding: ${G=>G.isFull?0:"0px 16px 0px 16px"}; background-color: ${Kt.customThemeVariables.dashboardBackgroundColor}; `,sr=xn.div.attrs(()=>({"data-test":"fullscreen-layout"}))` position: ${G=>G.isFull?"fixed":""}; top: ${G=>G.isFull?"0":""}; left: ${G=>G.isFull?"0":""}; width: ${G=>G.isFull?"100%":""}; height: 100%; display: flex; flex-direction: column; flex-grow: 1; overflow: auto; z-index: 5; `,DashboardLayout=({width:G,height:Z,renderDashboardHeader:ne,renderToolbar:ie,renderDashboardCore:se,renderSidebar:ce,mode:fe,fullscreen:me})=>{const ge=(0,Ft.useDashboardApi)(),Ce=(0,ct.useRef)(null),Se=(0,ct.useRef)(null),{enableMarginDeselection:Me}=(0,Ft.useFeatureFlags)(),ke="closed"!==(0,Jt.useSelector)(Jt.selectSourceEditorFlyoutVisibility),xe=(0,ct.useRef)(null),De=(0,ct.useCallback)(()=>(({dashboardApi:G,canvasContainerRef:Z,expandedEditorRef:ne})=>ie=>{var se,ce;if(!ie)return;const{target:fe}=ie,{current:me}=Z;try{if(me.contains(fe)){const Z=G.getCanvasDomElement();if(null==Z?void 0:Z.contains(fe))return;const ne=G.getInputsDomElement();if((null==ne?void 0:ne.contains(fe))&&ne!==fe)return}else{const Z=G.getHeaderDomElement();if(!(null==Z?void 0:Z.contains(fe)))return;if(["title","description","collapseHandle"].some(Z=>{var ne;return null==(ne=null==G?void 0:G.getHeaderDomElement(Z))?void 0:ne.contains(fe)}))return}if(null==(se=ne.current)?void 0:se.contains(fe))return;null==(ce=null==G?void 0:G.selectVisualization)||ce.call(G,[])}catch(G){}})({layoutRef:xe,dashboardApi:ge,canvasContainerRef:Ce,expandedEditorRef:Se}),[ge]);return(0,Kt.useEventListener)({eventName:"click",target:xe,listener:Me?De:void 0,options:{passive:!0}}),dt.createElement(rr,{width:G,height:Z,"data-udf-version":"26.2.1"},dt.createElement(ir,null,ie(),dt.createElement(sr,{isFull:me,ref:xe},dt.createElement(MigrationTools,null),ne(),dt.createElement(ar,{ref:Ce,key:"dashboard-canvas","data-test":"dashboard-canvas-container",isFull:me},dt.createElement(Kt.SizeWrapper,null,({width:G,height:Z})=>se(G,Z))),"edit"===fe&&ke&&dt.createElement(qt.FlyoutCodeEditor,{ref:Se,canvasContainer:Ce}))),"edit"===fe&&ce())};DashboardLayout.propTypes={mode:_t.oneOf(["view","edit"]).isRequired,width:_t.oneOfType([_t.string,_t.number]).isRequired,height:_t.oneOfType([_t.string,_t.number]).isRequired,fullscreen:_t.bool,renderToolbar:_t.func.isRequired,renderSidebar:_t.func.isRequired,renderDashboardCore:_t.func.isRequired,renderDashboardHeader:_t.func.isRequired},DashboardLayout.defaultProps={fullscreen:!1};var lr=DashboardLayout,ur={};__export(ur,{default:()=>pr});var dr=__toESM(ne(1320));__reExport(ur,ne(1320));var pr="default"in dr?dr.default:dr,fr={};__export(fr,{default:()=>_r});var mr=__toESM(ne(2904));__reExport(fr,ne(2904));var _r="default"in mr?mr.default:mr,gr=xn.div.attrs(({$width:G,$height:Z})=>({style:{width:G,minWidth:G,height:Z}}))` ${(0,fr.reset)("flex")}; box-sizing: border-box; background-color: ${Kt.customThemeVariables.sidebarPanelBackgroundColor}; border-left-width: 1px; border-left-style: solid; border-left-color: ${Kt.customThemeVariables.sidebarPanelBorderColor}; display: flex; flex-direction: column; transition: width 50ms ease-in-out; `,yr=xn.div` color: ${qn.variables.contentColorActive}; font-size: 14px; flex-direction: row; display: flex; justify-content: space-between; align-items: center; flex-basis: auto; height: ${(0,qn.pick)({enterprise:{compact:"38px",comfortable:"42px"},prisma:{compact:"42px",comfortable:"50px"}})}; padding: 0px 15px 0px 15px; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: ${Kt.customThemeVariables.sidebarPanelBorderColor}; background-color: ${Kt.customThemeVariables.sidebarPanelBackgroundColor}; &:hover { cursor: pointer; background-color: ${(0,qn.pick)({enterprise:{light:qn.variables.backgroundColorHover,dark:qn.variables.gray22},prisma:qn.variables.interactiveColorOverlayHover})}; } `,vr=xn.div` font-size: 16px; `,wr=xn.div` flex-grow: 1; position: relative; overflow-y: auto; `,NormalSidebar_default=({title:G="",width:Z=360,height:ne,children:ie,open:se=!1,name:ce,enableCloseButton:fe=!0,onRequestClose:me=sn.noop})=>{const ge=fe?me:void 0;return dt.createElement(gr,{$width:se?Z:0,$height:ne,"data-test":ce},se?dt.createElement(dt.Fragment,null,dt.createElement(yr,{"data-test":"header","data-clickable":!0,onClick:ge},dt.createElement(vr,{"data-test":"header-title"},G),fe&&dt.createElement(pr,{"data-test":"close-sidebar"})),dt.createElement(wr,{"data-test":"sidebar-content"},ie)):null)},BasePanel=()=>null;BasePanel.propTypes={definition:_t.object.isRequired,onDefinitionChange:_t.func,selectedItems:_t.arrayOf(_t.shape({id:_t.string,type:_t.oneOf(["block","line","input"])}))},BasePanel.defaultProps={selectedItems:[]};var Cr=BasePanel,Or={};__export(Or,{default:()=>Mr});var Sr=__toESM(ne(4231));__reExport(Or,ne(4231));var Mr="default"in Sr?Sr.default:Sr,kr=xn.div` position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; display: flex; flex-direction: column; `,xr=xn.div` flex-basis: auto; display: flex; justify-content: space-around; `,Lr=xn.div` flex-grow: 1; overflow: auto; `,Tr={margin:"10px 10px 10px 15px"},Ar={margin:"10px 15px 10px 10px"},DrilldownEditor=({eventHandler:G={type:"none",options:{}},drilldownEditors:Z={},vizEvents:ne=["any"],onDrilldownChange:ie,onRequestClose:se,drilldownOptions:ce,defInstance:fe={},selectedItemId:me})=>{var ge,Ce,Se,Me,ke;const[xe,De]=(0,ct.useState)(null),[Ie,Re]=(0,ct.useState)(null!=(ge=null==G?void 0:G.type)?ge:"none"),[ze,$e]=(0,ct.useState)(null!=(Se=null==(Ce=null==G?void 0:G.options)?void 0:Ce.events)?Se:[]),[Je,it]=(0,ct.useState)((0,ot.omit)(null!=(Me=null==G?void 0:G.options)?Me:{},"events")),[at,st]=(0,ct.useState)({[Ie]:Je}),ut=(0,Vt.useTelemetryApi)(),ht=(0,ct.useCallback)((G,{value:Z})=>{var ne;const ie=Ie,se=Je;Re(Z),it(null!=(ne=at[Z])?ne:{}),De(null),st(G=>__spreadProps(__spreadValues({},G),{[ie]:se}))},[Je,at,Ie]),ft=(0,ct.useCallback)((G,{value:Z})=>{$e(Z)},[]),_t=(0,ct.useCallback)(()=>{var G;const ne=__spreadValues({},Je);ze.length>0&&!ze.includes("any")&&(ne.events=ze);const ce=null!=(G=null==Z?void 0:Z[Ie])?G:null;let fe=null;if(ce&&(0,ot.isFunction)(ce.areOptionsValid)&&(fe=ce.areOptionsValid(__spreadProps(__spreadValues({},ne),{selectedItemId:me}),xe)),null==fe){let G=Ie;"drilldown.setToken"!==Ie||Array.isArray(ne.tokens)&&ne.tokens.length||(G="none"),null==ut||ut.emit({pageAction:"dashboard.drilldownEditor",event:"drilldownEditor.apply",metadata:{type:Ie}}),ie({type:G,options:ne}),se()}else De(fe)},[Je,ze,Z,Ie,xe,ut,me,ie,se]),yt=(0,ct.useCallback)(()=>{null==ut||ut.emit({pageAction:"dashboard.drilldownEditor",event:"drilldownEditor.cancel",metadata:{type:Ie}}),se()},[se,ut,Ie]),vt=null!=(ke=null==Z?void 0:Z[Ie])?ke:null,wt=(0,ct.useMemo)(()=>[dt.createElement(Mr.Option,{label:(0,Ct._)("No action"),value:"none",key:"none"}),...Object.entries(Z).filter(([G])=>"drilldown.setToken"===G?Array.isArray(null==ce?void 0:ce.canSetTokens)&&(null==ce?void 0:ce.canSetTokens.length):"drilldown.customUrl"!==G||("boolean"!=typeof(null==ce?void 0:ce.canSetCustomUrl)||(null==ce?void 0:ce.canSetCustomUrl))).map(([G,Z])=>dt.createElement(Mr.Option,{value:G,key:G,label:Z.label}))],[Z,null==ce?void 0:ce.canSetCustomUrl,null==ce?void 0:ce.canSetTokens]),St=(0,ct.useMemo)(()=>Array.isArray(ne)&&ne.length>1?dt.createElement(Kt.Option,{label:(0,Ct._)("Event")},dt.createElement(Mr,{defaultValue:ze[0],onChange:ft},[dt.createElement(Mr.Option,{label:(0,Ct._)("All events"),value:"any",key:"anyEvent"}),...(0,ot.map)(ne,(G,Z)=>dt.createElement(Mr.Option,{value:Z,key:Z,label:G}))])):null,[ze,ft,ne]);return dt.createElement(kr,null,dt.createElement(Lr,null,dt.createElement(Kt.Option,{label:(0,Ct._)("On click")},dt.createElement(Mr,{"data-test":"drilldown-editor-select",defaultValue:Ie,onChange:ht,inline:!1},wt)),St,vt&&dt.createElement(vt,{options:Je,onChange:it,error:xe,onError:De,canSetTokens:null==ce?void 0:ce.canSetTokens,defInstance:fe,selectedItemId:me})),dt.createElement(xr,null,dt.createElement(Vn,{style:Tr,inline:!1,label:(0,Ct._)("Cancel"),onClick:yt}),dt.createElement(Vn,{style:Ar,inline:!1,label:(0,Ct._)("Apply"),appearance:"primary",onClick:_t})))};DrilldownEditor.defaultProps={eventHandler:{type:"none",options:{}},drilldownEditors:{},vizEvents:["any"]};var Dr=DrilldownEditor,Er=[],filterOutDefaults=(G={})=>{var Z,ne;return __spreadProps(__spreadValues({},G),{options:__spreadProps(__spreadValues({},G.options),{tokens:null==(ne=null==(Z=G.options)?void 0:Z.tokens)?void 0:ne.map(G=>(0,ot.omit)(G,"defaultValue"))})})},DrilldownPanel=({drilldownId:G,selectedItems:Z,definition:ne})=>{var ie;const se=(0,Ft.useDashboardApi)(),{drilldownEditors:ce}=On(),fe=(0,Jt.useDispatch)(),me=(0,Ft.usePreset)().getPresetDefinition(),ge=(0,ot.get)(Z[0],"id"),Ce=(0,ct.useMemo)(()=>kt.DashboardDefinition.fromJSON(ne),[ne]),Se=Ce.getEventHandlers(ge),Me=Ce.getVisualizationType(ge),ke=null==(ie=null==me?void 0:me.visualizations)?void 0:ie[Me],xe=(0,ct.useMemo)(()=>{var G;return{canSetTokens:null!=(G=null==ke?void 0:ke.canSetTokens)?G:Er,canSetCustomUrl:null==ke?void 0:ke.canSetCustomUrl}},[null==ke?void 0:ke.canSetCustomUrl,null==ke?void 0:ke.canSetTokens]),De=(0,ct.useCallback)(G=>{null==se||se.updateDefinition(G)},[se]),Ie=(0,ct.useCallback)(G=>{if(G){G.map(G=>({tokenName:G.token,defaultValue:G.defaultValue||""})).forEach(G=>{Ce.setDefaultStaticToken({tokenName:G.tokenName,defaultValue:G.defaultValue})});const Z={};G.forEach(({token:G,defaultValue:ne})=>{!G||null===ne&&void 0===ne||(Z[G]=ne)}),fe((0,Jt.setTokenIfUnset)({tokens:Z}))}},[Ce,fe]),Re=(0,ct.useCallback)(Z=>{Ce.removeEventHandler(Z,G),De(Ce.toJSON())},[De,G,Ce]),ze=(0,ct.useCallback)((Z,ne={})=>{var ie;if(!Z||null===G||!ne.type)return;if("none"===ne.type)return void Re(Z);Ie(null==(ie=ne.options)?void 0:ie.tokens);const se=filterOutDefaults(ne);Ce.editEventHandler(Z,G,se),De(Ce.toJSON())},[G,Ie,Ce,De,Re]),$e=(0,ct.useCallback)((G,Z)=>{var ne;if("none"===Z.type)return;Ie(null==(ne=Z.options)?void 0:ne.tokens);const ie=filterOutDefaults(Z);Ce.createEventHandler(G,ie),De(Ce.toJSON())},[Ie,Ce,De]),Je=(0,ct.useCallback)(G=>ze(ge,G),[ze,ge]),it=(0,ct.useCallback)(G=>{$e(ge,G)},[$e,ge]),at=(0,ct.useCallback)(()=>{se.openPanel({activePanel:"config"})},[se]);return null!==G?dt.createElement(Dr,{drilldownEditors:ce,eventHandler:Se[G],onDrilldownChange:Je,onRequestClose:at,drilldownOptions:xe,defInstance:Ce,selectedItemId:ge}):dt.createElement(Dr,{drilldownEditors:ce,onDrilldownChange:it,onRequestClose:at,drilldownOptions:xe,defInstance:Ce,selectedItemId:ge})};DrilldownPanel.propTypes=__spreadProps(__spreadValues({},Cr.propTypes),{drilldownId:_t.number}),DrilldownPanel.defaultProps=__spreadValues({},Cr.defaultProps);var jr=DrilldownPanel,useLayoutItemEditor=(G,Z)=>{var ne;const{layoutItemEditors:ie}=On(),se=G&&null!=(ne=null==ie?void 0:ie[G])?ne:null;return(0,ct.useMemo)(()=>se&&dt.createElement(se,__spreadValues({},Z)),[se,Z])},Pr=xn(En)` height: ${qn.variables.inputHeight}; line-height: ${qn.variables.inputHeight}; padding: 0 ${qn.variables.spacingSmall}; `,Ir=class extends ct.Component{constructor(){super(...arguments),__publicField(this,"handleRemoveClick",(G,Z)=>()=>{this.props.onRemoveDataSource(G,Z)}),__publicField(this,"handleEditClick",G=>()=>{this.props.onEditDataSource(G)}),__publicField(this,"handleLinkOnClick",G=>()=>{this.props.onNewDataSource(G)}),__publicField(this,"getDataSourceName",(G,Z)=>{const{dataSources:ne}=this.props;let ie;return"ds.savedSearch"===G&&(ie=(0,ot.get)(ne,[Z,"options","ref"])),ie||(ie=(0,ot.get)(ne,[Z,"name"])),ie||"Unnamed"}),__publicField(this,"renderDataSource",G=>{const Z=(0,ot.isString)(G)?G:G.name,{dataSourceBinding:ne,dataSources:ie}=this.props,se=ne[Z],ce=(0,ot.get)(ie,[se,"type"]),fe=this.getDataSourceName(ce,se),{featureFlags:me={}}=this.context,ge="ds.test"!==ce||me.enableTestDataSourceEditor?this.handleEditClick(se):null,Ce=(0,Ct._)(`Set up ${Z} data source`);return se&&ce?dt.createElement(Kt.EditableListItem,{key:Z,"data-test":"datasourceitem","data-test-id":se,name:fe,onEditClick:ge,onRemoveClick:this.handleRemoveClick(se,Z)}):dt.createElement(Pr,{key:Z,onClick:this.handleLinkOnClick(Z),"data-test":"setup-datasource-link"},"+ "+Ce)})}render(){const{dataContract:G}=this.props,Z=G.requiredDataSources||[],ne=G.optionalDataSources||[];return dt.createElement(Kt.SidebarCollapsiblePanel,{defaultOpen:!0,title:(0,Ct._)("Data sources"),panelId:"Data sources"},Z.map(this.renderDataSource),ne.map(this.renderDataSource))}};__publicField(Ir,"contextType",Ft.DashboardContext),__publicField(Ir,"propTypes",{dataContract:_t.object,dataSourceBinding:_t.object,onRemoveDataSource:_t.func,dataSources:_t.object,onEditDataSource:_t.func,onNewDataSource:_t.func}),__publicField(Ir,"defaultProps",{dataContract:{},onEditDataSource:sn.noop,onNewDataSource:sn.noop});var Nr=Ir,DrilldownItem=({type:G,id:Z,onEdit:ne,onDelete:ie})=>{var se;const{drilldownEditors:ce}=On(),fe=(0,ct.useCallback)(()=>{ne(Z)},[ne,Z]),me=(0,ct.useCallback)(()=>{ie(Z)},[ie,Z]),ge=null!=(se=null==ce?void 0:ce[G])?se:null;return(null==ge?void 0:ge.label)?dt.createElement(Kt.EditableListItem,{"data-test":"drilldown-pill","data-test-id":`${G}-${Z}`,name:ge.label,onEditClick:fe,onRemoveClick:me}):null},Rr=xn(En).attrs({"data-test":"add-drilldown"})` height: ${qn.variables.inputHeight}; line-height: ${qn.variables.inputHeight}; padding: 0 ${qn.variables.spacingSmall}; `,zr=[],DrilldownList_default=({visualization:{eventHandlers:G=zr},onDrilldownCreate:Z,onEditDrilldown:ne,onRemoveDrilldown:ie})=>{const{allowMultipleInteractions:se}=(0,Ft.useFeatureFlags)(),{drilldownEditors:ce}=On(),fe=G.length&&G.some(({type:G})=>ce&&G in ce),me=se||!fe;return dt.createElement(Kt.SidebarCollapsiblePanel,{defaultOpen:!1,title:(0,Ct._)("Interactions"),panelId:"Interactions","data-test":"drilldown-settings"},G.map((G,Z)=>dt.createElement(DrilldownItem,{key:Z,type:G.type,id:Z,onEdit:ne,onDelete:ie})),me&&dt.createElement(Rr,{onClick:Z},"+ "+(0,Ct._)("Add interaction")))},qr={};__export(qr,{default:()=>Br});var Wr=__toESM(ne(2912));__reExport(qr,ne(2912));var Br="default"in Wr?Wr.default:Wr,Fr={};__export(Fr,{default:()=>$r});var Hr=__toESM(ne(1845));__reExport(Fr,ne(1845));var $r="default"in Hr?Hr.default:Hr,VizTypeChanger=({onChange:G,visualizationType:Z})=>{const ne=(0,Ft.usePreset)().getPresetDefinition(),ie=(0,ct.useMemo)(()=>{const{taxonomy:G}=new Kt.VisualizationFilter(ne);return G.reduce((G,{category:ne,visualizations:ie})=>{const se=ie.filter(({includeInVizSwitcher:G,type:ne})=>G||ne===Z);return 0===se.length?G:(G.push(dt.createElement(Mr.Divider,{key:"select-divider-"+ne})),G.concat(se.map(({label:G,icon:Z,type:ne})=>dt.createElement(Mr.Option,{key:ne,label:G,icon:dt.createElement(Z,{size:"16px"}),value:ne}))))},[])},[ne,Z]),se=(0,ct.useCallback)((Z,{value:ne})=>G(ne),[G]);return dt.createElement(Kt.ControlGroup,{label:(0,Ct._)("Visualization type"),labelPosition:"top",controlsLayout:"fillJoin"},dt.createElement(Mr,{value:Z,onChange:se,inline:!1,"data-test":"viz-type-switcher"},ie))};VizTypeChanger.propTypes={visualizationType:_t.string,onChange:_t.func.isRequired};var Vr=VizTypeChanger,VizOptions=({visualization:G,onVisualizationChange:Z})=>{var ne,ie,se;const ce=(0,Ft.usePreset)().getPresetDefinition(),fe=(0,ct.useCallback)(ne=>Z(__spreadProps(__spreadValues({},G),{title:ne})),[G,Z]),{onHandleBlur:me,onHandleChange:ge,onHandleKeyDown:Ce,value:Se}=(0,Kt.useTextInput)({initialValue:G.title,handleCommit:fe,uniqKey:G}),Me=(0,ct.useCallback)(ne=>Z(__spreadProps(__spreadValues({},G),{description:ne})),[G,Z]),{onHandleBlur:ke,onHandleChange:xe,onHandleKeyDown:De,value:Ie}=(0,Kt.useTextInput)({initialValue:G.description,handleCommit:Me,uniqKey:G}),Re=(0,ct.useCallback)(ne=>{var ie,se,fe,me;(0,Fr.canMigrate)({fromType:G.type,toType:ne})?Z((0,Fr.migrate)({definition:G,toType:ne})):Z(__spreadProps(__spreadValues({},G),{type:ne,options:null!=(me=null==(fe=null==(se=null==(ie=null==ce?void 0:ce.visualizations)?void 0:ie[ne])?void 0:se.meta)?void 0:fe.initialOptions)?me:{}}))},[Z,null==ce?void 0:ce.visualizations,G]),ze=null==G?void 0:G.type;return null!=(se=null==(ie=null==(ne=null==ce?void 0:ce.visualizations)?void 0:ne[ze])?void 0:ie.showTitleAndDescription)&&se?dt.createElement(Kt.SidebarCollapsiblePanel,{defaultOpen:!0,title:(0,Ct._)("General"),panelId:"General"},dt.createElement(Vr,{visualizationType:ze,onChange:Re}),dt.createElement(Kt.ControlGroup,{label:(0,Ct._)("Title"),labelPosition:"top",controlsLayout:"fillJoin"},dt.createElement(Br,{value:Se,onBlur:me,onChange:ge,onKeyDown:Ce,"data-test":"viz-options-title-input"})),dt.createElement(Kt.ControlGroup,{label:(0,Ct._)("Description"),labelPosition:"top",controlsLayout:"fillJoin"},dt.createElement(Br,{value:Ie,onBlur:ke,onChange:xe,onKeyDown:De,"data-test":"viz-options-desc-input"}))):null};VizOptions.propTypes={visualization:_t.object.isRequired,onVisualizationChange:_t.func.isRequired};var Yr=VizOptions,Ur=xn.div` width: 300px; `,Kr=xn.div` padding-bottom: ${(0,qn.pick)({enterprise:"10px",prisma:"14px"})}; `,Xr=(0,Ct._)("When data is unavailable, hide element"),Gr=(0,Ct._)("Learn more"),Zr=dt.createElement(Kr,null,(0,Ct._)("Hide this element in View mode if it does not have an attached search query, or that query returns an error or no results.")),ItemVisibilityCheckbox=({onChange:G,checked:Z=!1})=>{const{itemVisibility:ne}=(0,Ft.useDocumentationLinks)(),ie=(0,ct.useMemo)(()=>!!ne&&dt.createElement(En,{openInNewContext:!0,to:ne},Gr),[ne]),se=(0,ct.useMemo)(()=>dt.createElement(Ur,null,Zr,ie),[ie]);return dt.createElement(Kt.CheckboxEditor,{onChange:G,checked:Z,label:Xr,tooltipContent:se,dataTest:"item-visibility-checkbox"})},Jr=Object.freeze([]),Qr=Object.freeze({}),VizOptionsEditor=({vizId:G,vizDefinition:Z})=>{var ne;const ie=(0,Ft.useDashboardApi)(),se=(0,Ft.usePreset)(),{showCornerRadiusEditor:ce}=(0,Ft.useFeatureFlags)(),{visualizationEditors:fe=Qr}=On(),me=(0,ct.useCallback)(Z=>{ie.updateVisualization({id:G,vizDefinition:Z})},[ie,G]),ge=(0,ct.useMemo)(()=>se.getVisualizationDataContract(Z.type),[se,Z.type]),Ce=(0,ct.useMemo)(()=>se.getVisualizationOptionsSchema(Z.type),[se,Z.type]),Se=(0,ct.useMemo)(()=>{var G;return null!=(G=se.getVisualizationEditorConfig(Z.type))?G:Jr},[se,Z.type]),Me=(0,ct.useMemo)(()=>{var ne;if(!ce||!se.shouldShowCornerRadiusEditor({itemType:null!=(ne=Z.type)?ne:"",layoutType:"block"}))return Se;const ie={label:(0,Ct._)("Corner radius"),option:"cornerRadius",editor:qt.CornerRadiusEditor,editorProps:{itemId:G}};return(null==Se?void 0:Se.some(G=>"Color and style"===G.label))?Se.map(G=>{if("Color and style"!==G.label)return G;const Z=(0,ot.cloneDeep)(G);return Z.layout=[...Z.layout,[ie]],Z}):[...null!=Se?Se:[],{label:(0,Ct._)("Color and style"),layout:[[ie]]}]},[Se,se,ce,Z.type,G]),ke=null!=(ne=fe[Z.type])?ne:qt.DynamicEditorWrapper;return dt.createElement(ke,{visualization:Z,onVisualizationChange:me,optionSchema:Ce,dataContract:ge,editorLayout:Me})},VizConfigPanel=({definition:G,selectedVisualizations:Z})=>{const ne=Z[0],ie=(0,Ft.useDashboardApi)(),se=(0,Ft.usePreset)(),ce=se.getPresetDefinition(),{enableVizSourceEditor:fe,enableVizIdEditor:me,enableShowHide:ge}=(0,Ft.useFeatureFlags)(),{drilldownEditors:Ce,vizConfigPanelEditors:Se={}}=On(),Me=(0,ot.get)(Se,"dataSourceConfig",Nr),ke=(0,ot.get)(Se,"drilldownList",DrilldownList_default),xe=(0,ct.useCallback)(G=>{ie.updateVisualization({id:ne,vizDefinition:G})},[ie,ne]),De=(0,ct.useCallback)(Z=>kt.DashboardDefinition.fromJSON(G).hasDuplicateId(Z),[G]),Ie=(0,ct.useCallback)(Z=>{const se=kt.DashboardDefinition.fromJSON(G);se.updateComponentId(ne,Z)&&(ie.updateDefinition(se.toJSON()),ie.selectVisualization(Z))},[G,ie,ne]),Re=(0,ct.useCallback)(G=>ie.openPanel({activePanel:"editData",panelProps:{dataSourceId:G,from:{activePanel:"config"}}}),[ie]),ze=(0,ct.useCallback)(G=>ie.openPanel({activePanel:"connectData",panelProps:{bindingType:G,from:{activePanel:"config"}}}),[ie]),$e=(0,ct.useCallback)((G,Z)=>{ie.removeDataSourceFromVisualization({vizId:ne,dsBindingType:Z})},[ie,ne]),Je=(0,ct.useCallback)(G=>{ie.updateLayoutStructure(G)},[ie]),it=(0,ct.useCallback)(()=>{ie.openPanel({activePanel:"drilldown",panelProps:{drilldownId:null}})},[ie]),at=(0,ct.useCallback)(G=>{ie.openPanel({activePanel:"drilldown",panelProps:{drilldownId:G}})},[ie]),st=(0,ct.useCallback)(Z=>{const se=kt.DashboardDefinition.fromJSON(G);se.removeEventHandler(ne,Z),ie.updateDefinition(se.toJSON())},[ie,G,ne]),ut=(0,ct.useMemo)(()=>kt.DashboardDefinition.fromJSON(G),[G]),ht=(0,ct.useCallback)((G,{selected:Z})=>{const se=ut.getVisualization(ne),ce=(0,ot.omit)(se,"hideWhenNoData");Z||(ce.hideWhenNoData=!0),ie.updateVisualization({id:ne,vizDefinition:ce})},[ie,ut,ne]),ft=(0,ct.useMemo)(()=>(0,sn.deepFreeze)(ut.getVisualizationWithFlattenedDefaults(ne)),[ut,ne]),_t=ft?(0,ot.get)(ce,["visualizations",ft.type,"config","dataContract"]):null,yt=ft?(0,ot.get)(ce,["visualizations",ft.type,"config","optionsSchema"],{}):null,vt=(0,ct.useMemo)(()=>ft&&ce?(0,kt.createSimpleVizSchema)(yt):null,[ft,ce,yt]),wt=(0,ct.useMemo)(()=>ft&&(fe||me)?dt.createElement(qt.CombinedCodeIdEditor,{schema:vt,source:ft,onSourceChange:xe,idLabel:(0,Ct._)("Visualization ID"),pattern:"^viz_[a-zA-Z0-9_-]+$",componentId:ne,onIdChange:Ie,helpMessage:(0,Ct._)('Visualization IDs must start with "viz_" and contain only letters, numbers, dash, and underscore'),enableCodeEditor:fe,enableIdEditor:me,hasDuplicateId:De}):null,[me,ne,Ie,fe,vt,ft,xe,De]),St=ut.getLayoutType(),Mt=ut.getLayoutStructure(),xt=(0,ct.useMemo)(()=>({layoutStructure:Mt,selectedVisualizations:Z,onLayoutStructureChange:Je}),[Z,Mt,Je]),Lt=useLayoutItemEditor(St,xt);if(null==ft)return null;const Tt=ft.dataSources||{},At=_t&&(_t.requiredDataSources&&_t.requiredDataSources.length>0||_t.optionalDataSources&&_t.optionalDataSources.length>0),Dt=(0,ot.pick)(G.dataSources||{},(0,ot.values)(Tt)),Et=se.shouldShowDrilldown(ft.type),jt=ge&&At&&"abslayout.line"!==ft.type;return dt.createElement("div",{"data-test":"viz-config-panel","data-id":ne},dt.createElement(Yr,{key:"viz-type-switcher",visualization:ft,onVisualizationChange:xe}),At&&dt.createElement(Me,{key:"datasource-config",dataContract:_t,dataSourceBinding:Tt,dataSources:Dt,onEditDataSource:Re,onNewDataSource:ze,onRemoveDataSource:$e}),jt&&dt.createElement(Kt.SidebarCollapsiblePanel,{"data-test":"collapsible-panel-visibility",title:(0,Ct._)("Visibility"),panelId:"Visibility"},dt.createElement(ItemVisibilityCheckbox,{onChange:ht,checked:ft.hideWhenNoData})),Lt,dt.createElement(VizOptionsEditor,{vizId:ne,vizDefinition:ft}),Et&&dt.createElement(ke,{key:"dropdown-config",drilldownEditors:Ce,visualization:ft,onDrilldownCreate:it,onEditDrilldown:at,onRemoveDrilldown:st}),wt)};VizConfigPanel.propTypes={definition:_t.object.isRequired,selectedVisualizations:_t.arrayOf(_t.string).isRequired};var ei=VizConfigPanel,MultiVizConfigPanel_default=({definition:G,selectedVisualizations:Z})=>{const ne=(0,Ft.useDashboardApi)(),ie=(0,ct.useCallback)(G=>{var Z;null==(Z=null==ne?void 0:ne.updateLayoutStructure)||Z.call(ne,G)},[ne]),se=kt.DashboardDefinition.fromJSON(G),ce=se.getLayoutType(),fe=se.getLayoutStructure(),me=(0,ct.useMemo)(()=>({layoutStructure:fe,selectedVisualizations:Z,onLayoutStructureChange:ie}),[Z,fe,ie]),ge=useLayoutItemEditor(ce,me);return Z.length<=1?null:ge},ti={};__export(ti,{default:()=>ri});var ni=__toESM(ne(97));__reExport(ti,ne(97));var ri="default"in ni?ni.default:ni,ii={},LayoutEditor_default=({type:G,options:Z,onOptionsChange:ne})=>{const{layoutEditors:ie}=On(),[se,ce]=(0,ct.useState)(null!=Z?Z:ii),[fe,me]=(0,ct.useState)(null);(0,ct.useEffect)(()=>{ce(null!=Z?Z:ii)},[Z]);const ge=(0,ct.useMemo)(()=>ne?ri(ne,1e3):null,[ne]),Ce=(0,ct.useMemo)(()=>null==ie?void 0:ie[G],[ie,G]),Se=(0,ct.useCallback)((G,Z={})=>{ce(Z=>"function"==typeof G?G({options:Z}).options:G.options),me(Z)},[]);return(0,ct.useEffect)(()=>{fe&&(me(null),fe.debounce?null==ge||ge(se):null==ne||ne(se))},[fe,se,ge,ne]),Ce?dt.createElement(Ce,{options:se,onOptionsChange:Se}):null},LayoutConfigPanel_default=({definition:G})=>{const Z=(0,Ft.useDashboardApi)(),{type:ne,layoutOptions:ie}=(0,ct.useMemo)(()=>{const Z=kt.DashboardDefinition.fromJSON(G);return{type:Z.getLayoutType(),layoutOptions:Z.getLayoutOptions()}},[G]),se=(0,ct.useCallback)(G=>{Z.updateLayoutOptions(G)},[Z]);return dt.createElement(LayoutEditor_default,{type:ne,options:ie,onOptionsChange:se})},InputVisibilityEditor=({inputId:G,inputDefinition:Z})=>{const ne=(0,Ft.useDashboardApi)(),ie=(0,Ft.usePreset)(),{enableShowHide:se}=(0,Ft.useFeatureFlags)(),ce=(0,ct.useCallback)((ie,{selected:se})=>{const ce=(0,ot.cloneDeep)(Z);delete ce.hideWhenNoData,se||(ce.hideWhenNoData=!0),ne.updateInput({id:G,inputDefinition:ce})},[ne,Z,G]),fe=(0,ct.useMemo)(()=>{var G,ne;const se=ie.getInputDataContract(Z.type);return!(!(null==(G=null==se?void 0:se.requiredDataSources)?void 0:G.length)&&!(null==(ne=null==se?void 0:se.optionalDataSources)?void 0:ne.length))},[ie,Z.type]);return se&&fe?dt.createElement(Kt.SidebarCollapsiblePanel,{"data-test":"collapsible-panel-visibility",title:(0,Ct._)("Visibility"),panelId:"Visibility"},dt.createElement(ItemVisibilityCheckbox,{onChange:ce,checked:Z.hideWhenNoData})):null},oi=Object.freeze({}),InputCodeEditor=({inputId:G,inputDefinition:Z,dashboardDefinition:ne})=>{const ie=(0,Ft.useDashboardApi)(),se=(0,Ft.usePreset)(),{enableInputSourceEditor:ce,enableInputIdEditor:fe}=(0,Ft.useFeatureFlags)(),me=(0,ct.useCallback)(Z=>{ie.updateInput({id:G,inputDefinition:Z})},[ie,G]),ge=(0,ct.useCallback)(G=>ne.hasDuplicateId(G),[ne]),Ce=(0,ct.useCallback)(Z=>{ne.updateComponentId(G,Z)&&(ie.updateDefinition(ne.toJSON()),ie.selectInput(Z))},[ie,ne,G]),Se=(0,ct.useMemo)(()=>{var G;const ne=null!=(G=se.getInputOptionsSchema(Z.type))?G:oi;return(0,kt.createSimpleInputSchema)(ne)},[se,Z.type]);return ce||fe?dt.createElement(qt.CombinedCodeIdEditor,{schema:Se,source:Z,onSourceChange:me,idLabel:(0,Ct._)("Input ID"),pattern:"^input_[a-zA-Z0-9_-]+$",componentId:G,onIdChange:Ce,helpMessage:(0,Ct._)('Input IDs must start with "input_" and contain only letters, numbers, dash, and underscore'),enableCodeEditor:ce,enableIdEditor:fe,hasDuplicateId:ge}):null},ai={},si=Object.freeze({}),li=Object.freeze({}),InputDSEditor=({inputId:G,inputDefinition:Z,dataSources:ne=li})=>{var ie,se,ce;const fe=(0,Ft.useDashboardApi)(),me=(0,Ft.usePreset)(),{inputConfigPanelEditors:ge=ai}=On(),{enableInputDSEditor:Ce}=(0,Ft.useFeatureFlags)(),Se=(0,ct.useCallback)(G=>fe.openPanel({activePanel:"editData",panelProps:{dataSourceId:G,from:{activePanel:"config"}}}),[fe]),Me=(0,ct.useCallback)(G=>fe.openPanel({activePanel:"connectData",panelProps:{bindingType:G,from:{activePanel:"config"}}}),[fe]),ke=(0,ct.useCallback)((ne,ie)=>{fe.updateInput({id:G,inputDefinition:__spreadProps(__spreadValues({},Z),{dataSources:(0,ot.omit)(Z.dataSources,ie)})})},[fe,G,Z]),xe=(0,ct.useMemo)(()=>{var G;return null!=(G=Z.dataSources)?G:si},[Z.dataSources]),De=(0,ct.useMemo)(()=>me.getInputDataContract(Z.type),[me,Z.type]),Ie=!(!(null==(ie=null==De?void 0:De.requiredDataSources)?void 0:ie.length)&&!(null==(se=null==De?void 0:De.optionalDataSources)?void 0:se.length)),Re=(0,ct.useMemo)(()=>(0,ot.pick)(ne,(0,ot.values)(xe)),[ne,xe]),ze=null!=(ce=null==ge?void 0:ge.dataSourceConfig)?ce:Nr;return Ce&&Ie?dt.createElement(ze,{key:"input-datasource-config",dataContract:De,dataSourceBinding:xe,dataSources:Re,onEditDataSource:Se,onNewDataSource:Me,onRemoveDataSource:ke}):null},ci=Object.freeze({}),ui=Object.freeze({}),di=Object.freeze([]),InputOptionsEditor=({inputId:G,inputDefinition:Z,isOnCanvas:ne=!1})=>{var ie;const se=(0,Ft.useDashboardApi)(),ce=(0,Ft.usePreset)(),{inputEditors:fe}=On(),{enableInputOptionsEditor:me,showCornerRadiusEditor:ge}=(0,Ft.useFeatureFlags)(),Ce=(0,ct.useCallback)(Z=>{se.updateInput({id:G,inputDefinition:Z})},[se,G]),Se=(0,ct.useMemo)(()=>{var G;return null!=(G=ce.getInputDataContract(Z.type))?G:ci},[ce,Z.type]),Me=(0,ct.useMemo)(()=>{var G;return null!=(G=ce.getInputOptionsSchema(Z.type))?G:ui},[ce,Z.type]),ke=(0,ct.useMemo)(()=>{const ne={label:(0,Ct._)("Color and style"),layout:[[{label:(0,Ct._)("Background"),option:"backgroundColor",editor:"editor.color"}]]};return ge&&ce.shouldShowCornerRadiusEditor({itemType:Z.type,layoutType:"input"})&&ne.layout.push([{label:(0,Ct._)("Corner radius"),option:"cornerRadius",editor:qt.CornerRadiusEditor,editorProps:{itemId:G}}]),ne},[Z.type,G,ce,ge]),xe=(0,ct.useMemo)(()=>{var G;const ie=null!=(G=ce.getInputEditorConfig(Z.type))?G:di;return ne?[...ie,ke]:ie},[ne,ce,Z.type,ke]),De=fe&&null!=(ie=fe[Z.type])?ie:qt.DynamicEditorWrapper;return me?dt.createElement(De,{visualization:Z,onVisualizationChange:Ce,optionSchema:Me,dataContract:Se,editorLayout:xe}):null},InputTitleEditor=({inputId:G,inputDefinition:Z})=>{const ne=(0,Ft.useDashboardApi)(),ie=(0,ct.useCallback)(ie=>{ne.updateInput({id:G,inputDefinition:__spreadProps(__spreadValues({},Z),{title:ie})})},[ne,G,Z]);return dt.createElement(Kt.Option,{label:(0,Ct._)("Title")},dt.createElement(Kt.TextEditor,{value:Z.title||"",onValueChange:ie,uniqKey:Z,"data-test":"input-title-config"}))},pi={};__export(pi,{default:()=>fi});var hi=__toESM(ne(4236));__reExport(pi,ne(4236));var fi="default"in hi?hi.default:hi,mi=(0,Ct._)("Input alignment"),_i=(0,Ct._)("Top"),gi=(0,Ct._)("Bottom"),bi=(0,Ct._)("Center"),InputAlignmentEditor=({value:G="top",onChange:Z})=>{const ne=(0,ct.useCallback)((G,{value:ne})=>{Z("top"===ne?void 0:ne)},[Z]);return dt.createElement(Kt.Option,{label:mi,"data-test":"input-alignment-editor"},dt.createElement(fi,{value:G,onChange:ne},dt.createElement(fi.Option,{"data-test":"input-alignment-top",value:"top",label:_i}),dt.createElement(fi.Option,{"data-test":"input-alignment-center",value:"center",label:bi}),dt.createElement(fi.Option,{"data-test":"input-alignment-bottom",value:"bottom",label:gi})))},InputAlignmentEditor2=({inputId:G,inputDefinition:Z,isOnCanvas:ne=!1,layoutType:ie})=>{const se=(0,Ft.useDashboardApi)(),ce=(0,ct.useCallback)(ne=>{const ie=(0,ot.cloneDeep)(Z);delete ie.canvasAlignment,ne&&(ie.canvasAlignment=ne),se.updateInput({id:G,inputDefinition:ie})},[G,Z,se]);return ne&&"grid"===ie?dt.createElement(InputAlignmentEditor,{value:Z.canvasAlignment,onChange:ce}):null},InputLocationEditor=({inputId:G,inputType:Z,isOnCanvas:ne=!1})=>{const ie=(0,Ft.useDashboardApi)(),{enableInputsOnCanvas:se}=(0,Ft.useFeatureFlags)(),ce=(0,Vt.useTelemetryApi)(),fe=(0,ct.useCallback)((se,{value:fe})=>{ne&&"canvas"===fe||!ne&&"above"===fe||("canvas"===fe?(ie.moveInputToCanvas(G),ce&&ce.emit({pageAction:"inputEditor.moveToCanvas",metadata:{inputTypes:[Z]}})):"above"===fe&&(ie.moveInputToGlobalInputs(G),ce&&ce.emit({pageAction:"inputEditor.moveAboveCanvas",metadata:{inputTypes:[Z]}})))},[ne,G,ce,Z,ie]);return se?dt.createElement(Kt.Option,{label:(0,Ct._)("Display")},dt.createElement(Mr,{inline:!1,value:ne?"canvas":"above",onChange:fe,"data-test":"input-display-config"},dt.createElement(Mr.Option,{label:(0,Ct._)("Above canvas"),value:"above"}),dt.createElement(Mr.Option,{label:(0,Ct._)("In canvas"),value:"canvas"}))):null},InputLayoutEditor=({dashboardDefinition:G,selectedInputs:Z,isOnCanvas:ne=!1})=>{const ie=(0,Ft.useDashboardApi)(),se=(0,ct.useMemo)(()=>G.getLayoutStructure(),[G]),ce=G.getLayoutType(),fe=(0,ct.useCallback)(G=>{ie.updateLayoutStructure(G)},[ie]),me=(0,ct.useMemo)(()=>({layoutStructure:se,selectedVisualizations:Z,onLayoutStructureChange:fe}),[Z,se,fe]),ge=useLayoutItemEditor(ce,me);return ne?ge:null},InputConfigPanel_default=({definition:G,selectedInputs:Z})=>{const ne=(0,ct.useMemo)(()=>kt.DashboardDefinition.fromJSON(G),[G]);if(1!==Z.length)return null;const ie=Z[0],se=ne.isInputOnCanvas(ie),ce=ne.getInput(ie),fe=ne.getLayoutType();return ce?dt.createElement(dt.Fragment,null,dt.createElement(InputLocationEditor,{inputId:ie,inputType:ce.type,isOnCanvas:se}),dt.createElement(InputAlignmentEditor2,{inputId:ie,inputDefinition:ce,isOnCanvas:se,layoutType:fe}),dt.createElement(InputTitleEditor,{inputId:ie,inputDefinition:ce}),dt.createElement(InputOptionsEditor,{inputId:ie,inputDefinition:ce,isOnCanvas:se}),dt.createElement(Kt.Separator,null),dt.createElement(InputDSEditor,{inputId:ie,inputDefinition:ce,dataSources:G.dataSources}),dt.createElement(InputVisibilityEditor,{inputId:ie,inputDefinition:ce}),dt.createElement(InputLayoutEditor,{selectedInputs:Z,dashboardDefinition:ne,isOnCanvas:se}),dt.createElement(InputCodeEditor,{inputId:ie,inputDefinition:ce,dashboardDefinition:ne})):null},yi=xn.div` background-color: ${Kt.customThemeVariables.sidebarPanelBackgroundColor}; color: ${qn.variables.contentColorDefault}; position: absolute; right: 0px; top: 0px; left: 0px; bottom: 0px; overflow: auto; `,vi={},ConfigPanel=({definition:G,selectedItems:Z})=>{const ne=(0,ct.useMemo)(()=>Z.map(({id:G})=>G),[Z]),ie=(0,ct.useMemo)(()=>0===Z.length?null:`${Z[0].id}_${(0,kt.generateId)("editor")}`,[Z]),se=(0,ct.useMemo)(()=>{var se,ce,fe,me;switch(Z.length){case 0:return dt.createElement(LayoutConfigPanel_default,{definition:G});case 1:{const{id:ge,type:Ce}=Z[0],Se=(G=>"input"===G?"inputs":"visualizations")(Ce);if(void 0===(null==(se=null==G?void 0:G[Se])?void 0:se[ge]))return null;const Me=null!=(me=null==(fe=null==(ce=null==G?void 0:G[Se])?void 0:ce[ge])?void 0:fe.dataSources)?me:vi;return"input"===Ce?dt.createElement(Kt.DataSourceContextProvider,{consumerId:ie,bindings:Me},dt.createElement(InputConfigPanel_default,{key:ne[0],definition:G,selectedInputs:ne})):dt.createElement(Kt.DataSourceContextProvider,{consumerId:ie,bindings:Me},dt.createElement(ei,{key:ne[0],definition:G,selectedVisualizations:ne}))}default:return dt.createElement(MultiVizConfigPanel_default,{definition:G,selectedVisualizations:ne})}},[G,Z,ne,ie]),ce=(0,Kt.usePrevious)(se);return dt.createElement(yi,null,se||ce)};ConfigPanel.propTypes=__spreadValues({},Cr.propTypes),ConfigPanel.defaultProps=__spreadValues({},Cr.defaultProps);var wi=ConfigPanel,Ci=[],DataOverviewPanel_default=({definition:G,selectedItems:Z=Ci})=>{const ne=(0,Ft.useDashboardApi)(),{dataSourcesPanel:ie,fetchDataSources:se}=On(),ce=(0,Ft.usePreset)().getPresetDefinition(),fe=(0,ct.useCallback)(G=>{ne.openPanel({activePanel:"newData",panelProps:{dataSourceTemplate:G,from:{activePanel:"dataOverview"}}})},[ne]),me=(0,ct.useCallback)(G=>{ne.openPanel({activePanel:"editData",panelProps:{dataSourceId:G,from:{activePanel:"dataOverview"}}})},[ne]),ge=(0,ct.useCallback)(G=>{const Z=kt.DashboardDefinition.fromJSON(ne.getDefinition());Z.disconnectDataSource(G),Z.removeDataSource(G),ne.updateDefinition(Z.toJSON())},[ne]),Ce=(0,ct.useCallback)(G=>kt.DashboardDefinition.fromJSON(ne.getDefinition()).getChainSearchesUsingDataSource(G).length,[ne]),Se=(0,ct.useCallback)(()=>ne.closePanel(),[ne]);return ie?dt.createElement(ie,{selectedItem:Z[0],dashboardApi:ne,fetchDataSources:se,dataSources:G.dataSources,visualizations:G.visualizations,inputs:G.inputs,createDataSource:fe,onRequestClose:Se,editDataSource:me,deleteDataSource:ge,definition:G,getNumChainSearchesInUse:Ce,preset:ce}):null},Oi=(0,Ct._)("Cancel"),Si={margin:"10px 15px"},Mi=xn.div` flex-basis: auto; display: flex; justify-content: space-around; `,ki=xn.div` position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; justify-content: space-between; `,ConnectDataPanel_default=({definition:G,selectedItems:Z=[],bindingType:ne,from:ie})=>{const se=(0,Ft.useDashboardApi)(),{dataSourcesPanel:ce,fetchDataSources:fe}=On(),me=(0,Ft.usePreset)().getPresetDefinition(),ge=(0,ct.useMemo)(()=>new kt.DashboardDefinition(G),[G]),Ce=(0,ct.useCallback)(G=>{null==se||se.updateDefinition(G)},[se]),Se=(0,ct.useCallback)(G=>{var Z;null==(Z=null==se?void 0:se.openPanel)||Z.call(se,{activePanel:"newData",panelProps:{dataSourceTemplate:G,bindingType:ne,from:ie}})},[se,ie,ne]),Me=(0,ct.useCallback)(G=>{var Z;null==(Z=null==se?void 0:se.openPanel)||Z.call(se,{activePanel:"editData",panelProps:{dataSourceId:G,bindingType:ne,from:{activePanel:"connectData"}}})},[se,ne]),ke=(0,ct.useCallback)(G=>{ge.disconnectDataSource(G),ge.removeDataSource(G),Ce(ge.toJSON())},[ge,Ce]),xe=(0,ct.useCallback)(G=>ge.getChainSearchesUsingDataSource(G).length,[ge]),De=(0,ct.useCallback)(()=>{var G;null==(G=null==se?void 0:se.openPanel)||G.call(se,{activePanel:"config"})},[se]),Ie=(0,ct.useCallback)(()=>{var G,Z;ie?null==(G=null==se?void 0:se.openPanel)||G.call(se,ie):null==(Z=null==se?void 0:se.closePanel)||Z.call(se)},[se,ie]);return ce&&dt.createElement(ki,null,dt.createElement(ce,{selectedItem:Z[0],dataSourceBindingType:ne,dashboardApi:se,fetchDataSources:fe,dataSources:G.dataSources,visualizations:G.visualizations,inputs:G.inputs,createDataSource:Se,onRequestClose:De,editDataSource:Me,deleteDataSource:ke,definition:G,getNumChainSearchesInUse:xe,preset:me}),dt.createElement(Mi,null,dt.createElement(Vn,{style:Si,label:Oi,onClick:Ie,"data-test":"cancel-button","data-clickable":!0})))},xi=(0,Ct._)("Data source names must start and end with an alphanumeric character, dash, underscore, or period."),Li=(0,Ct._)("Data source names can only include letters, numbers, spaces, dashes, underscores, and periods."),useGetDSNameError=(G,Z)=>{const{existingDataSourceNames:ne,readonlyNamespaces:ie}=(0,Jt.useGetDisallowedDataSourceNames)();return(0,ct.useMemo)(()=>{if(!G)return(0,Ct._)("Please enter a data source name.");if(G===sn.DEFAULT_TOKEN_NAMESPACE||ie.includes(G))return(0,Ct._)(G+" is not an allowable data source name.");if(G!==G.trim())return(0,Ct._)("Data source names cannot start or end with a space.");const se=(G=>{const Z=new RegExp(sn.TOKEN_NAME_CHARS_PATTERN).exec(G),ne=G.length;if(!Z||0===ne)return xi;const[ie]=Z;if(ie===G)return;const se=ie.length;return se>=1&&se===ne-1&&(ie[0]!==G[0]||ie[se-1]!==G[ne-1])?xi:((0,sn.isValidTokenNamespace)(G),Li)})(G);if(se)return se;const ce=__spreadValues({},ne);return delete ce[Z],Object.values(ce).map(G=>null==G?void 0:G.toLocaleLowerCase()).includes(G.toLocaleLowerCase())?(0,Ct._)("The data source name already exists. Give the data source a unique name."):void 0},[ne,ie,G,Z])},Ti=xn(Nn)` margin: ${qn.variables.spacingXSmall}; margin-bottom: 0; `,UsageWarning=({numOfVisualizationsInUse:G=0,numOfChainSearchesInUse:Z=0,numOfInputsInUse:ne=0,edited:ie=!1})=>{const{vizText:se,chainSearchText:ce,inputText:fe}=(0,Kt.getWarningTextForDataSource)(G,Z,ne);return ie&&(se||ce||fe)?dt.createElement(Ti,{"data-test":"warning-message",appearance:"fill",type:"info"},dt.createElement("div",{"data-test":"warning-message-text"},se&&dt.createElement("strong",null,se),!(!se||!ce)&&(0,Ct._)(" and "),ce&&dt.createElement("strong",null,ce),!(!se&&!ce)&&!!fe&&(0,Ct._)(" and "),fe&&dt.createElement("strong",null,fe),(0,Ct._)(" will be updated"))):null},Ai={};__export(Ai,{default:()=>Ei});var Di=__toESM(ne(4237));__reExport(Ai,ne(4237));var Ei="default"in Di?Di.default:Di,ji={};__export(ji,{default:()=>Ii});var Pi=__toESM(ne(767));__reExport(ji,ne(767));var Ii="default"in Pi?Pi.default:Pi,Ni={};__export(Ni,{default:()=>zi});var Ri=__toESM(ne(4238));__reExport(Ni,ne(4238));var zi="default"in Ri?Ri.default:Ri,qi=xn.div` display: flex; padding-top: ${qn.variables.spacingSmall}; padding-bottom: ${qn.variables.spacingSmall}; padding-left: ${(0,qn.pick)({enterprise:qn.variables.spacingMedium,prisma:qn.variables.spacingLarge})}; padding-right: ${(0,qn.pick)({enterprise:qn.variables.spacingMedium,prisma:qn.variables.spacingLarge})}; flex-wrap: wrap; flex-grow: 1; `,Wi=xn.div` display: flex; width: 100%; `,Bi=xn.div` width: 40%; font-weight: 500; `,Fi=xn(Ei)` margin: 0; padding-left: 20px; `,Hi=xn(Ei.Item)` font-size: 12px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; list-style-position: inside; `,$i=xn(Ii)` font-size: 12px; text-decoration: underline; `,Vi={display:"flex"},MetadataSection=({isChainEnabled:G=!1,chainSearchesUsingDs:Z=[],numOfInputsInUse:ne=0,numOfVisualizationsInUse:ie=0})=>{const[se,ce]=(0,ct.useState)(!1),fe=(0,ct.useCallback)(()=>{ce(G=>!G)},[]),me=Z.length,ge=(0,Kt.getInflection)(ie,(0,Ct._)("visualization"),(0,Ct._)("visualizations"),(0,Ct._)("0 visualizations")),Ce=(0,Kt.getInflection)(me,(0,Ct._)("chain search "),(0,Ct._)("chain searches "),(0,Ct._)("0 chain searches")),Se=(0,Kt.getInflection)(ne,(0,Ct._)("input"),(0,Ct._)("inputs"),(0,Ct._)("0 inputs"));return dt.createElement(qi,{"data-test":"metadata"},dt.createElement(Wi,null,dt.createElement(Bi,null,"Usage")),dt.createElement(Wi,null,dt.createElement("div",{"data-test":"metadata-visualization"},ge)),dt.createElement(Wi,null,dt.createElement("div",{"data-test":"metadata-input"},Se)),G&&dt.createElement(Wi,null,dt.createElement("div",{"data-test":"metadata-chain-search"},Ce,!!me&&dt.createElement(dt.Fragment,null,dt.createElement($i,{onClick:fe},se?`(${(0,Ct._)("Hide list")})`:`(${(0,Ct._)("Show list")})`),dt.createElement(zi,{innerStyle:Vi,open:se,animation:"none"},dt.createElement(Fi,null,Z.map(G=>{var Z;return dt.createElement(Hi,{key:G.id},(null==(Z=null==G?void 0:G.config)?void 0:Z.name)||(0,Ct._)("Unnamed"))})))))))},OptionsSection=({dataSource:G,dataSourceId:Z,dsName:ne,defaultOptions:ie,onOptionsChange:se,dataSourceMetaData:ce,definition:fe})=>{const{dataSourceEditors:me}=On(),ge=(0,Ft.useDashboardApi)();if(!(null==G?void 0:G.type))return null;const Ce=null==me?void 0:me[G.type];return Ce?dt.createElement(Ce,{dataSource:G,dataSourceId:Z,dataSourceName:ne,meta:G.meta,defaultOptions:ie,dataSourceMetaData:ce,options:G.options,onOptionsChange:se,definition:fe,dashboardApi:ge}):null},Yi={margin:"10px 10px 10px 15px"},Ui={margin:"10px 0px"},Ki={margin:"10px 15px 10px 10px"},Xi=xn.div` flex-basis: auto; display: flex; justify-content: space-around; `,MenuSection=({onRequestClose:G,onSave:Z,onSaveAndClose:ne,isSaveDisabled:ie=!1})=>{const{enableDSApplyButton:se}=(0,Ft.useFeatureFlags)();return dt.createElement(Xi,null,dt.createElement(Vn,{style:Yi,label:(0,Ct._)("Cancel"),onClick:G,"data-test":"cancel-button","data-clickable":!0}),se&&dt.createElement(Vn,{disabled:ie,style:Ui,label:(0,Ct._)("Apply"),onClick:Z,"data-test":"save-button","data-clickable":!0}),dt.createElement(Vn,{disabled:ie,style:Ki,label:(0,Ct._)("Apply and close"),appearance:"primary",onClick:ne,"data-test":"save-and-close-button","data-clickable":!0}))},Gi=(0,Ct._)('Data Source IDs must start with "ds_" and contain only letters, numbers, dash, and underscore'),CodeSection=({dataSource:G,dataSourceId:Z,onCodeChange:ne,onIdChange:ie,hasDuplicateId:se})=>{const{enableDSIdEditor:ce,enableDSSourceEditor:fe}=(0,Ft.useFeatureFlags)(),me=(0,Ft.usePreset)().getPresetDefinition(),ge=(0,ct.useMemo)(()=>{var Z,ne,ie;if(!(null==G?void 0:G.type)||!me)return null;const se=(null==(ie=null==(ne=null==(Z=null==me?void 0:me.dataSources)?void 0:Z[G.type])?void 0:ne.config)?void 0:ie.optionsSchema)||{};return(0,kt.createSimpleDSSchema)(se)},[G,me]);return fe||ce?dt.createElement(qt.CombinedCodeIdEditor,{width:312,schema:ge,source:G,onSourceChange:ne,idLabel:(0,Ct._)("Data Source ID"),pattern:"^ds_[a-zA-Z0-9_-]+$",componentId:Z,onIdChange:ie,helpMessage:Gi,enableCodeEditor:fe,enableIdEditor:ce,hasDuplicateId:se}):null},Zi={};__export(Zi,{default:()=>Qi});var Ji=__toESM(ne(4239));__reExport(Zi,ne(4239));var Qi="default"in Ji?Ji.default:Ji,eo=xn.div.attrs(({title:G})=>({tabIndex:"0","aria-label":G,title:G}))` box-sizing: border-box; display: flex; justify-content: end; max-width: 359px; height: 35px; padding: 5px 10px; cursor: not-allowed; border: 1px solid; border-color: ${({hasError:G})=>G?qn.variables.accentColorNegative:"currentColor"}; border-radius: 3px; color: ${qn.variables.contentColorDisabled}; `,to=xn.div` flex-basis: auto; padding-left: 5px; text-align: center; `,no=xn(Kt.ControlGroup)` label { color: ${(0,qn.pick)({prisma:({error:G})=>G?qn.variables.accentColorNegative:qn.variables.contentColorDefault})}; font-weight: ${qn.variables.fontWeightSemiBold}; font-size: ${qn.variables.fontSize}; } `,ro=xn.div` white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-grow: 1; line-height: 25px; `,DataSourceName_default=({name:G,error:Z,isEditable:ne=!0,onChange:ie})=>{const se=(0,ct.useCallback)(()=>{ie(G.trim(),!0)},[ie,G]),ce=(0,ct.useCallback)((G,{value:Z})=>{ie(Z)},[ie]),fe=!!Z,me=(0,ct.useMemo)(()=>ne?dt.createElement(Br,{error:fe,"data-test":"datasource-name-input",value:G||"",onChange:ce,onBlur:se,title:(0,Ct._)("Data Source Name")}):dt.createElement(eo,{hasError:fe,title:G},dt.createElement(ro,null,G),dt.createElement(to,null,dt.createElement(Qi,{size:"13px"}))),[ne,se,ce,fe,G]);return dt.createElement(no,{label:(0,Ct._)("Data source name"),labelPosition:"top",help:fe?Z:"",error:fe},me)},io=xn.div` width: 300px; `,oo=xn.div` padding-bottom: ${(0,qn.pick)({enterprise:"10px",prisma:"14px"})}; `,ao=(0,Ct._)("Access search results or metadata"),so=(0,Ct._)("Learn more"),lo=dt.createElement(oo,null,(0,Ct._)("Reference the results or job metadata of this data source by using the following syntax: "),dt.createElement(Kt.InlineCode,{text:"$:.$"})),SmartSourceCheckbox=({onChange:G,dsName:Z,checked:ne=!1})=>{const{smartSources:ie}=(0,Ft.useDocumentationLinks)(),se=(0,ct.useMemo)(()=>!!Z&&dt.createElement(oo,null,(0,Ct._)("For example: use "),dt.createElement(Kt.InlineCode,{text:`$${Z}:result.id$`}),(0,Ct._)(" to reference the first result of the "),dt.createElement(Kt.InlineCode,{text:"id",wordBreak:"break-word"}),(0,Ct._)(" field of "),dt.createElement(Kt.InlineCode,{text:Z})),[Z]),ce=(0,ct.useMemo)(()=>!!ie&&dt.createElement(En,{openInNewContext:!0,to:ie},so),[ie]),fe=(0,ct.useMemo)(()=>dt.createElement(io,null,lo,se,ce),[se,ce]);return dt.createElement(Kt.CheckboxEditor,{onChange:G,checked:ne,label:ao,tooltipContent:fe})},EnableSmartSourceCheckbox=G=>{const{enableSmartSourceDS:Z}=(0,Ft.useFeatureFlags)();return Z?dt.createElement(SmartSourceCheckbox,__spreadValues({},G)):null},co=xn.div` position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; display: flex; flex-direction: column; color: ${qn.variables.contentColorDefault}; `,uo=xn.div` flex-grow: 1; overflow: auto; `,po=xn.div` padding: 0 ${(0,qn.pick)({enterprise:qn.variables.spacingMedium,prisma:qn.variables.spacingLarge})}; `,ho={},fo={},mo={},_o=[],defaultHasDuplicate=()=>!1,bo={},DataSourceEditor_default=({dataSourceId:G,dataSource:Z=ho,dataSourceMetaData:ne=fo,onRequestClose:ie=sn.noop,onDataSourceChange:se=sn.noop,numOfVisualizationsInUse:ce=0,numOfInputsInUse:fe=0,chainSearchesUsingDs:me=_o,defaultOptions:ge=mo,hasDuplicateId:Ce=defaultHasDuplicate,definition:Se=bo,allowSavingUneditedDS:Me=!1})=>{var ke,xe,De,Ie,Re,ze;const[$e,Je]=(0,ct.useState)(Z),[it,at]=(0,ct.useState)(G),[st,ut]=(0,ct.useState)(!1),ht=(0,Ft.usePreset)().getPresetDefinition(),ft=!!(null==(De=null==(xe=null==(ke=null==ht?void 0:ht.dataSources)?void 0:ke[$e.type])?void 0:xe.config)?void 0:De.isChainEnabled),{dsName:_t,dsNameError:yt,isDataSourceNameEditable:vt}=((G,Z,ne,ie)=>{const{isEditable:se,name:ce}=(0,ct.useMemo)(()=>{var G,ie;return{isEditable:null==(G=null==ne?void 0:ne.isDataSourceNameEditable)||G,name:(null!=(ie=null==ne?void 0:ne.getDataSourceName)?ie:sn.getDefaultDataSourceName)({dataSource:Z})}},[ne,Z]),fe=useGetDSNameError(ce||"",G);return{isDataSourceNameEditable:se,dsName:ce,dsNameError:ie?fe:void 0}})(G,$e,null==(Re=null==(Ie=null==ht?void 0:ht.dataSources)?void 0:Ie[$e.type])?void 0:Re.config,!0),wt=!st&&!Me||!!yt;(0,ct.useEffect)(()=>{Je(Z)},[Z]),(0,ct.useEffect)(()=>{at(G)},[G]),(0,ct.useEffect)(()=>{(0,ot.isEqual)($e,Z)&&it===G?ut(!1):ut(!0)},[$e,Z,it,G]);const Ct=(0,ct.useCallback)(G=>{Je(Z=>__spreadProps(__spreadValues({},Z),{name:G}))},[]),St=(0,ct.useCallback)(G=>{Je(Z=>__spreadProps(__spreadValues({},Z),{options:G}))},[]),Mt=(0,ct.useCallback)(G=>{Je(G)},[]),kt=(0,ct.useCallback)(G=>{at(G)},[]),xt=(0,ct.useCallback)(()=>{se(it,$e),ie()},[$e,it,se,ie]),Lt=(0,ct.useCallback)(()=>{se(it,$e),ut(!1)},[$e,it,se]),Tt=(0,ct.useCallback)((G,{selected:Z})=>{Je(G=>{const ne=__spreadProps(__spreadValues({},G),{options:(0,ot.omit)(G.options,"enableSmartSources")});return Z||(null!=ne.options||(ne.options={}),ne.options.enableSmartSources=!0),ne})},[]);return dt.createElement(co,null,dt.createElement(uo,null,dt.createElement(po,null,dt.createElement(DataSourceName_default,{name:_t,error:yt,isEditable:vt,onChange:Ct}),dt.createElement(EnableSmartSourceCheckbox,{"data-test":"enable-smart-sources-checkbox",dsName:_t,onChange:Tt,checked:!!(null==(ze=$e.options)?void 0:ze.enableSmartSources)})),dt.createElement(OptionsSection,{dataSource:$e,dataSourceId:it,dsName:_t,defaultOptions:ge,onOptionsChange:St,dataSourceMetaData:ne,definition:Se}),dt.createElement(MetadataSection,{numOfInputsInUse:fe,numOfVisualizationsInUse:ce,chainSearchesUsingDs:me,isChainEnabled:ft}),dt.createElement(CodeSection,{dataSource:$e,dataSourceId:it,hasDuplicateId:Ce,onCodeChange:Mt,onIdChange:kt})),dt.createElement(UsageWarning,{numOfInputsInUse:fe,numOfVisualizationsInUse:ce,numOfChainSearchesInUse:me.length,edited:st}),dt.createElement(MenuSection,{onRequestClose:ie,onSave:Lt,onSaveAndClose:xt,isSaveDisabled:wt}))},EditDataPanel_default=({dataSourceId:G,from:Z,bindingType:ne,definition:ie})=>{const se=(0,Ft.useDashboardApi)(),ce=(0,ct.useMemo)(()=>{var Z;return null==(Z=null==ie?void 0:ie.dataSources)?void 0:Z[G]},[ie,G]),fe=(0,ct.useMemo)(()=>(0,kt.getDefaultOptionsForDataSourceType)(null==ie?void 0:ie.defaults,null==ce?void 0:ce.type),[null==ie?void 0:ie.defaults,null==ce?void 0:ce.type]),{numOfVisualizationsInUse:me,numOfInputsInUse:ge,chainSearchesUsingDs:Ce}=(0,ct.useMemo)(()=>{const Z=kt.DashboardDefinition.fromJSON(ie);return{numOfVisualizationsInUse:Z.countVisualizationsUsingDataSource(G),chainSearchesUsingDs:Z.getChainSearchesUsingDataSource(G),numOfInputsInUse:Z.countInputsUsingDataSource(G)}},[G,ie]),Se=(0,ct.useMemo)(()=>se.getDataSourceMetaData(G),[se,G]),Me=(0,ct.useCallback)(G=>{var Z,ne;return(0,kt.hasDuplicateId)(null!=(ne=null==(Z=se.getDefinition())?void 0:Z.dataSources)?ne:{},G)},[se]),ke=(0,ct.useCallback)((Z,ne)=>{const ie=kt.DashboardDefinition.fromJSON(se.getDefinition());ie.updateComponentId(G,Z),ie.updateDataSource(Z,ne),se.updateDefinition(ie.toJSON())},[se,G]),xe=(0,ct.useCallback)(()=>{se.openPanel(__spreadProps(__spreadValues({},Z),{panelProps:{bindingType:ne}}))},[se,Z,ne]);return(0,ct.useEffect)(()=>{ce||xe()}),dt.createElement(DataSourceEditor_default,{dataSourceId:G,dataSource:ce,dataSourceMetaData:Se,defaultOptions:fe,numOfVisualizationsInUse:me,numOfInputsInUse:ge,chainSearchesUsingDs:Ce,onDataSourceChange:ke,onRequestClose:xe,hasDuplicateId:Me,definition:ie})},isDataSourceNameUsed=(G,Z)=>!!(0,ot.findKey)(G,G=>G.name===Z),yo={type:"ds.unknown_datasource_type"},vo=[],NewDataPanel_default=({dataSourceTemplate:G=yo,selectedItems:Z=vo,bindingType:ne,from:ie})=>{var se,ce;const fe=(0,Ft.useDashboardApi)(),me=(0,ct.useRef)(fe.getDefinition());(0,ct.useEffect)(()=>{me.current=fe.getDefinition()},[fe]);const[ge,Ce]=(0,ct.useState)(()=>{var G,Z;return Z=null==(G=me.current)?void 0:G.dataSources,(0,kt.generateId)("ds",G=>null==Z?void 0:Z[G])}),Se=(0,ct.useMemo)(()=>{var Z,ne;return(0,kt.getDefaultOptionsForDataSourceType)(null!=(ne=null==(Z=me.current)?void 0:Z.defaults)?ne:{},null==G?void 0:G.type)},[G]),Me=(0,ct.useMemo)(()=>{var Z,ne;let ie=1;for(;isDataSourceNameUsed(null!=(ne=null==(Z=me.current)?void 0:Z.dataSources)?ne:{},"Search_"+ie);)ie+=1;return __spreadProps(__spreadValues({},G),{name:"Search_"+ie})},[G]),ke=(0,ct.useCallback)((G,ie)=>{var se;const ce=kt.DashboardDefinition.fromJSON(fe.getDefinition());if(ce.getDataSource(G))ce.updateDataSource(G,ie);else if(ge!==G&&ce.getDataSource(ge))ce.updateComponentId(ge,G),ce.updateDataSource(G,ie);else{ce.addDataSource(G,ie);const{id:fe,type:me="block"}=null!=(se=Z[0])?se:{};ne&&fe&&ce.connectDataSourceToItem({itemId:fe,dataSourceType:ne,dataSourceId:G,type:me})}fe.updateDefinition(ce.toJSON()),Ce(G)},[fe,ne,Z,ge]),xe=(0,ct.useCallback)(()=>fe.openPanel(ie),[fe,ie]),De=(0,ct.useCallback)(G=>{var Z,ne;return(0,kt.hasDuplicateId)(null!=(ne=null==(Z=fe.getDefinition())?void 0:Z.dataSources)?ne:{},G)},[fe]),Ie="block"===(null==(se=null==Z?void 0:Z[0])?void 0:se.type)?1:0,Re="input"===(null==(ce=null==Z?void 0:Z[0])?void 0:ce.type)?1:0;return dt.createElement(DataSourceEditor_default,{dataSourceId:ge,dataSource:Me,defaultOptions:Se,onDataSourceChange:ke,onRequestClose:xe,hasDuplicateId:De,definition:fe.getDefinition(),numOfInputsInUse:Re,numOfVisualizationsInUse:Ie,allowSavingUneditedDS:!0})},wo=new class{constructor(G,Z={}){this.definitionIndex=0,this.definitions=G?[G]:[],this.subscribers=new Set,this.definitionIndex=0,this.maxDepth=Z.maxDepth||20}teardown(){this.definitions=[],this.subscribers=new Set,this.definitionIndex=0}notify(G){const Z=this.getCurrentDefinition();this.subscribers.forEach(ne=>{var ie;null==(ie=ne[G])||ie.call(ne,Z)})}subscribe(G){return this.subscribers.add(G),()=>{this.subscribers.delete(G)}}addDefinition(G){if(this.getCurrentDefinition()!==G){const Z=[...this.definitions.slice(0,this.definitionIndex+1),G];Z.length>this.maxDepth&&Z.shift(),this.definitionIndex=Z.length-1,this.definitions=Z,this.notify("onAdd")}}getCurrentDefinition(){return this.definitions[this.definitionIndex]}canUndo(){return this.definitionIndex>0}canRedo(){return this.definitionIndex{const ne=kt.DashboardDefinition.fromJSON(Z);return G.filter(G=>"block"===G.type||"line"===G.type?null!==ne.getVisualization(G.id):"input"===G.type&&ne.isInputOnCanvas(G.id)).map(G=>G.id)},Oo=ze((G,{mode:Z,preset:ne,dashboardApi:ie,onDefinitionChange:se,toolbarItems:ce,activePanel:fe})=>dt.createElement(G,{mode:Z,preset:ne,dashboardApi:ie,onDefinitionChange:se,toolbarItems:ce,activePanel:fe}),ot.isEqual),So=ze(({sidebar:G,activePanel:Z,definition:ne,panelProps:ie,preset:se,selectedItems:ce})=>{let fe="";return G&&("string"==typeof G.title?fe=G.title:"function"==typeof G.title&&(fe=G.title({activePanel:Z,definition:ne,panelProps:ie,preset:se,selectedItems:ce}))),fe},ot.isEqual),Mo=class extends ct.Component{constructor(G,Z){var ne;super(G,Z),__publicField(this,"cloneActionMenus",ze(G=>G.map(G=>dt.cloneElement(G,{dashboardApi:this.dashboardApi})),sn.shallowEqual)),__publicField(this,"getEditors",ze(G=>(0,ot.pick)(G,Co),(G,Z)=>(0,sn.shallowEqual)((0,ot.pick)(G,Co),(0,ot.pick)(Z,Co)))),__publicField(this,"handleDefinitionChange",G=>{if((0,sn.deprecated)('"onDefinitionChange" has been deprecated on the following components: toolbar, header, and sidebar. Please use the dashboardApi instead.'),"edit"!==this.props.mode)throw new Error("Edit action can only be performed in edit mode");this.props.dispatch((0,Jt.resetStore)({definition:G}))}),__publicField(this,"handleModeChange",G=>{var Z;const ne=this.props.mode;this.lastModeChange=`dashboard.switch_from_${ne}_to_${G}`,this.emitTelemetry({definition:this.getDefinition(),pageAction:this.lastModeChange}),null==(Z=this.dashboardProfiler)||Z.startTimer({timerName:this.lastModeChange}),it.unstable_batchedUpdates(()=>{"view"===this.props.mode&&"edit"===G&&this.dashboardApi.openPanel({activePanel:"config"}),this.props.dispatch((0,Jt.switchMode)(G))})}),__publicField(this,"enterFullscreen",()=>{const G=document.querySelector("body");wt.requestFullscreen(G)}),__publicField(this,"exitFullscreen",()=>{wt.exitFullscreen()}),__publicField(this,"handleFullscreenChange",G=>{const Z=G.target,ne=wt.fullscreenElement===document.querySelector("body"),ie=this.state.fullscreen&&wt.fullscreenElement===Z,se=ne||ie;this.props.dispatch((0,Jt.setIsDashboardFullscreen)(ne)),this.setState({fullscreen:se},()=>{this.emitTelemetry({pageAction:"dashboard.set_fullscreen_to_"+se}),this.props.onFullscreenChange(se)})}),__publicField(this,"handleFullscreenError",()=>{this.dashboardCoreApi&&this.dashboardCoreApi.toggleVisualizationFullscreen(null),this.exitFullscreen()}),__publicField(this,"updateSidebarPanel",({activePanel:G=null,panelProps:Z={}})=>{this.props.dispatch((0,Jt.updateSidebarState)({activePanel:G,panelProps:Z}))}),__publicField(this,"getDefinition",()=>this.props.definition),__publicField(this,"getSidebarPanel",()=>this.props.sidebarState.activePanel),__publicField(this,"getSelectedItems",()=>this.props.selectedItems),__publicField(this,"areGridLinesEnabled",()=>this.props.showGrid),__publicField(this,"getHeaderDomElement",G=>{var Z,ne,ie,se;return"title"===G?null==(Z=this.dashboardHeaderTitleRef)?void 0:Z.current:"description"===G?null==(ne=this.dashboardHeaderDescRef)?void 0:ne.current:"collapseHandle"===G?null==(ie=this.dashboardHeaderHandleRef)?void 0:ie.current:null==(se=this.dashboardHeaderRef)?void 0:se.current}),__publicField(this,"handleCopy",()=>{(0,sn.allowKeyboardShortcut)()&&this.isEditMode()&&(this.clipboard=this.getSelectedItems(),this.offsetMultiplier=1)}),__publicField(this,"handlePaste",G=>{var Z;const ne=getSelectedItemsIds({items:this.clipboard,definition:this.getDefinition()});(0,sn.allowKeyboardShortcut)()&&this.isEditMode()&&ne.length&&(null==(Z=null==G?void 0:G.preventDefault)||Z.call(G),this.dashboardApi.cloneDashboardItems(ne,this.offsetMultiplier),this.offsetMultiplier+=1)}),__publicField(this,"handleDuplicate",G=>__async(this,null,(function*(){const Z=getSelectedItemsIds({items:this.getSelectedItems(),definition:this.getDefinition()});(0,sn.allowKeyboardShortcut)()&&this.isEditMode()&&Z.length&&(this.dashboardApi.cloneDashboardItems(Z,this.offsetMultiplier),this.offsetMultiplier+=1),null==G||G.preventDefault()}))),__publicField(this,"handleSelectAll",G=>{if((0,sn.allowKeyboardShortcut)()&&this.isEditMode()){const G=kt.DashboardDefinition.fromJSON(this.getDefinition());if("grid"!==(0,ot.get)(G,["definition","layout","type"],"absolute")){const Z=[];G.getLayoutStructure().forEach(({item:G,type:ne="block"})=>{"line"!==ne&&Z.push({id:G,type:ne})}),this.dashboardCoreApi.updateSelectedItems(Z)}}null==G||G.preventDefault()}),__publicField(this,"handleSelectNone",G=>{(0,sn.allowKeyboardShortcut)()&&this.isEditMode()&&(this.dashboardCoreApi.updateSelectedItems([]),null==G||G.preventDefault())}),__publicField(this,"handleRemoveItems",G=>{(0,sn.allowKeyboardShortcut)()&&this.isEditMode()&&(null==G||G.preventDefault(),this.dashboardApi.removeDashboardItems(getSelectedItemsIds({items:this.getSelectedItems(),definition:this.getDefinition()})))}),__publicField(this,"handleUndo",()=>{this.isEditMode()&&this.dashboardApi.canUndo()&&(this.emitTelemetry(__spreadValues({pageAction:"udf.undo",source:"keyboard"},this.dashboardApi.compareUndoDiff())),this.dashboardApi.undo())}),__publicField(this,"handleRedo",()=>{this.isEditMode()&&this.dashboardApi.canRedo()&&(this.emitTelemetry(__spreadValues({pageAction:"udf.redo",source:"keyboard"},this.dashboardApi.compareRedoDiff())),this.dashboardApi.redo())}),__publicField(this,"handleGridToggleChange",G=>{this.props.dispatch((0,Jt.showGridLines)(G))}),__publicField(this,"handleCloseSidebar",()=>{this.dashboardApi.closePanel()}),__publicField(this,"renderDashboardHeader",()=>{const G=this.getDefinition(),Z=(0,ot.get)(G,["layout","options","showTitleAndDescription"],!0);return null!=this.dashboardHeaderRef||(this.dashboardHeaderRef=(0,ct.createRef)()),null!=this.dashboardHeaderTitleRef||(this.dashboardHeaderTitleRef=(0,ct.createRef)()),null!=this.dashboardHeaderDescRef||(this.dashboardHeaderDescRef=(0,ct.createRef)()),null!=this.dashboardHeaderHandleRef||(this.dashboardHeaderHandleRef=(0,ct.createRef)()),Z?dt.createElement(Kt.Header,{mode:this.props.mode,definition:G,onDefinitionChange:this.handleDefinitionChange,ref:this.dashboardHeaderRef,titleRef:this.dashboardHeaderTitleRef,descRef:this.dashboardHeaderDescRef,handleRef:this.dashboardHeaderHandleRef,dashboardApi:this.dashboardApi}):null}),__publicField(this,"renderToolbar",(G=Et.Toolbar)=>{const Z=this.getSidebarPanel(),{toolbarItems:ne,preset:ie,mode:se}=this.props;return ne.length>0?Oo(G,{mode:se,preset:ie,dashboardApi:this.dashboardApi,onDefinitionChange:this.handleDefinitionChange,toolbarItems:ne,activePanel:Z}):null}),__publicField(this,"renderCollapsibleToolbar",()=>this.renderToolbar(Et.CollapsibleToolbar)),__publicField(this,"renderSidebarPanel",ze((G,Z,ne,ie,se,ce)=>dt.createElement(G,__spreadProps(__spreadValues({},Z),{preset:ne,definition:ie,onDefinitionChange:se,selectedItems:ce})))),__publicField(this,"renderSidebar",()=>{const{preset:G,sidebarState:{activePanel:Z,panelProps:ne}}=this.props,ie=this.getSelectedItems(),se=this.getDefinition();let ce=this.sidebars[Z];return ce&&ce.requiredSelectedViz&&0===ie.length&&(ce=this.sidebars.config),dt.createElement(NormalSidebar_default,{title:So({sidebar:ce,activePanel:Z,definition:se,panelProps:ne,preset:G,selectedItems:ie}),name:ce?ce.key:"closed-sidebar",open:!!ce,onRequestClose:this.handleCloseSidebar,enableCloseButton:ce&&ce.enableCloseButton},ce&&this.renderSidebarPanel(ce.panel,ne,G,se,this.handleDefinitionChange,ie))}),__publicField(this,"renderDashboardCore",(G,Z)=>{const{actionMenus:ne,handleValidationError:ie,overrides:se}=this.props,{fullscreen:ce}=this.state;return dt.createElement(Tt.DashboardCore,{width:ce?"100%":G,height:ce?"100%":Z,actionMenus:this.cloneActionMenus(ne),onValidationError:ie,overrides:se})});const ie=this.getDefinition();this.historyManager=G.historyManager,this.historyUnsubscribe=this.historyManager.subscribe({onUndo:this.onHistoryUpdate.bind(this),onRedo:this.onHistoryUpdate.bind(this)}),this.dashboardApi=new vn(this),this.dashboardCoreApi=G.dashboardCoreApi,this.dashboardProfiler=G.profiler,(0,ot.isEmpty)(ie.visualizations)||null==(ne=this.dashboardProfiler)||ne.startTimer({timerName:Vt.DASHBOARD_MOUNT_TO_FIRST_VIZ_EVENT,definition:ie}),this.clipboard=[],this.offsetMultiplier=1,this.state={fullscreen:!1},this.sidebars=__spreadValues({config:{key:"config-sidebar",title:(0,Ct._)("Configuration"),panel:wi,requiredSelectedViz:!1},dataOverview:{title:(0,Ct._)("Data source overview"),key:"data-overview-sidebar",panel:DataOverviewPanel_default,requiredSelectedViz:!1},connectData:{title:(0,Ct._)("Select data source"),key:"connect-data-sidebar",panel:ConnectDataPanel_default,requiredSelectedViz:!0},editData:{title:(0,Ct._)("Edit data source"),key:"edit-data-sidebar",panel:EditDataPanel_default,requiredSelectedViz:!1,enableCloseButton:!1},newData:{title:(0,Ct._)("New data source"),key:"new-data-sidebar",panel:NewDataPanel_default,requiredSelectedViz:!1,enableCloseButton:!1},newDataForViz:{title:(0,Ct._)("New data source"),key:"new-data-for-viz-sidebar",panel:NewDataPanel_default,requiredSelectedViz:!0,enableCloseButton:!1},drilldown:{key:"drilldown-sidebar",title:(0,Ct._)("Configuration"),panel:jr,requiredSelectedViz:!0}},G.sidebars),this.handlePropDeprecationMessages()}componentDidMount(){this.logDashboardMountedMetrics(),this.setupKeyboardSubscriptions(),this.setupKeyboardTelemetry(),this.setupFullscreenSubscription(),this.props.dashboardApiRef(this.dashboardApi),this.notifyDashboardCoreApiReady()}shouldComponentUpdate(G,Z){var ne,ie;const se=!(0,sn.shallowEqual)(this.state,Z)||!(0,sn.shallowEqual)(this.props,G);return se&&(null==(ne=this.dashboardProfiler)?void 0:ne.hasTimer(this.lastModeChange))&&(null==(ie=this.dashboardProfiler)||ie.markTimer({timerName:this.lastModeChange,markName:"Dashboard component updated. Awaiting render."})),se}componentDidUpdate(){var G,Z;(null==(G=this.dashboardProfiler)?void 0:G.hasTimer(this.lastModeChange))&&(null==(Z=this.dashboardProfiler)||Z.emitAndClearTimer({timerName:this.lastModeChange,definition:this.getDefinition()}),this.lastModeChange=void 0)}componentWillUnmount(){if(this.historyUnsubscribe(),this.props.keyboardListener&&this.props.keyboardListener.unsubscribeAll&&this.props.keyboardListener.unsubscribeAll(),(0,ot.get)(this.props,"telemetry.flush")){const G={metadata:__spreadValues({},this.props.metadata),definition:this.getDefinition(),pageAction:"dashboard.unmount"};this.props.telemetry.flush(G)}this.cleanUpFullscreenSubscription()}handlePropDeprecationMessages(){this.props.onTokenBindingChange&&(0,sn.printHoistedPropError)({oldPropName:"onTokenBindingChange",oldComponent:"Dashboard",provideSubject:"a callback to be executed when token bindings change",newPropName:"onTokenBindingChange"}),this.props.initialReadOnlyTokenNamespaces&&(0,sn.printHoistedPropError)({oldPropName:"initialReadOnlyTokenNamespaces",oldComponent:"Dashboard",provideSubject:"an initial readOnlyTokenNamespaces",newPropName:"initialReadOnlyTokenNamespaces",updateMessage:"To update the value",updateMethod:"replaceReadOnlyTokenNamespaces"}),this.props.initialDefinition&&(0,sn.printHoistedPropError)({oldPropName:"initialDefinition",oldComponent:"Dashboard",provideSubject:"an initial dashboard definition",newPropName:"initialDefinition",updateMessage:"To update the definition to a value different than its initial value",updateMethod:"replaceDefinition"}),this.props.initialTokenBinding&&(0,sn.printHoistedPropError)({oldPropName:"initialTokenBinding",oldComponent:"Dashboard",provideSubject:"an initial set of tokens",newPropName:"initialTokenBinding",updateMessage:"To replace all tokens with values different than their current values",updateMethod:"replaceTokenBinding"}),this.props.onDefinitionChange&&(0,sn.printHoistedPropError)({oldPropName:"onDefinitionChange",oldComponent:"Dashboard",provideSubject:"a callback to be executed when the dashboard definition changes",newPropName:"onDefinitionChange"}),this.props.initialMode&&(0,sn.printHoistedPropError)({oldPropName:"initialMode",oldComponent:"Dashboard",provideSubject:"an initial mode",newPropName:"initialMode",updateMessage:"To update the value",updateMethod:"switchMode"}),this.props.onModeChange&&(0,sn.printHoistedPropError)({oldPropName:"onModeChange",oldComponent:"Dashboard",provideSubject:"a callback to be executed when the mode changes",newPropName:"onModeChange"})}onHistoryUpdate(G){this.props.dispatch((0,Jt.resetStore)({definition:G}))}setupKeyboardSubscriptions(){const{keyboardListener:G}=this.props;(0,ot.get)(G,"subscribe")&&(G.subscribe("copy",this.handleCopy),G.subscribe("paste",this.handlePaste),G.subscribe("duplicate",this.handleDuplicate),G.subscribe("selectAll",this.handleSelectAll),G.subscribe("selectNone",this.handleSelectNone),G.subscribe("cancel",this.handleSelectNone),G.subscribe("removeItems",this.handleRemoveItems),G.subscribe("undo",this.handleUndo),G.subscribe("redo",this.handleRedo))}setupKeyboardTelemetry(){const{keyboardListener:G,telemetry:Z}=this.props;if(!(0,ot.get)(Z,"collect")||!(0,ot.get)(G,"subscribe"))return;["copy","paste","duplicate","selectAll","selectNone","cancel","removeItems","undo","redo"].forEach(ne=>{G.subscribe(ne,()=>Z.collect({source:"keyboard",event:ne}))})}setupFullscreenSubscription(){wt.addEventListener("fullscreenchange",this.handleFullscreenChange),wt.addEventListener("fullscreenerror",this.handleFullscreenError)}cleanUpFullscreenSubscription(){wt.removeEventListener("fullscreenchange",this.handleFullscreenChange),wt.removeEventListener("fullscreenerror",this.handleFullscreenError)}emitTelemetry(G){if(!(0,ot.get)(this.props,"telemetry.emit"))return;const Z=__spreadValues({metadata:__spreadValues({},this.props.metadata)},G);this.props.telemetry.emit(Z)}notifyDashboardCoreApiReady(){this.onDashboardCoreApiReady&&(0,ot.isFunction)(this.onDashboardCoreApiReady)&&this.onDashboardCoreApiReady()}logDashboardMountedMetrics(){this.emitTelemetry({definition:this.getDefinition(),pageAction:"dashboard.initialize",metadata:{initialDashboardMode:this.props.mode,mountCompletedAt:new Date(Date.now()).toISOString()}})}isEditMode(){return"edit"===this.props.mode}canUseCollapsibleToolbar(){const{featureFlags:G}=this.props;return(null==G?void 0:G.enableCollapsibleToolbar)&&!this.isEditMode()&&!this.state.fullscreen}render(){var G,Z;const{width:ne,height:ie,mode:se}=this.props,ce=this.getEditors(this.props),{fullscreen:fe}=this.state;return(null==(G=this.dashboardProfiler)?void 0:G.hasTimer(this.lastModeChange))&&(null==(Z=this.dashboardProfiler)||Z.markTimer({timerName:this.lastModeChange,markName:"Dashboard component render requested."})),dt.createElement(Ft.DashboardApiProvider,{value:this.dashboardApi},dt.createElement(Cn,{value:ce},dt.createElement(lr,{mode:se,width:ne,height:ie,fullscreen:fe,renderToolbar:this.canUseCollapsibleToolbar()?this.renderCollapsibleToolbar:this.renderToolbar,renderDashboardHeader:this.renderDashboardHeader,renderDashboardCore:this.renderDashboardCore,renderSidebar:this.renderSidebar})))}},ko=_t.shape({key:_t.string.isRequired,title:_t.oneOfType([_t.string,_t.func]).isRequired,panel:_t.elementType.isRequired,requiredSelectedViz:_t.bool});Mo.propTypes={width:_t.oneOfType([_t.string,_t.number]).isRequired,height:_t.oneOfType([_t.string,_t.number]).isRequired,preset:_t.object,mode:_t.string,definition:_t.object.isRequired,onFullscreenChange:_t.func,onTokenBindingChange:_t.func,sidebars:_t.shape({config:ko,dataOverview:ko,connectData:ko,editData:ko,newData:ko,newDataForViz:ko,drilldown:ko}),dashboardApiRef:_t.func,toolbarItems:_t.arrayOf(_t.element),actionMenus:_t.arrayOf(_t.element),layoutEditors:_t.objectOf(_t.elementType),layoutItemEditors:_t.objectOf(_t.elementType),visualizationEditors:_t.objectOf(_t.elementType),dataSourceEditors:_t.objectOf(_t.elementType),vizConfigPanelEditors:_t.shape({dataSourceConfig:_t.elementType,drilldownList:_t.elementType}),dataSourcesPanel:_t.elementType,fetchDataSources:_t.func,drilldownEditors:_t.objectOf(_t.elementType),metadata:_t.object,handleValidationError:_t.func,keyboardListener:_t.object,telemetry:_t.object,featureFlags:_t.object,overrides:_t.object,profiler:_t.object,historyManager:_t.object},Mo.defaultProps={mode:"view",onFullscreenChange:sn.noop,toolbarItems:[],actionMenus:[],sidebars:{},layoutEditors:qt.LayoutEditors,layoutItemEditors:qt.LayoutItemEditors,dataSourceEditors:qt.CloudDataSourceEditors,vizConfigPanelEditors:{},dataSourcesPanel:zt,drilldownEditors:qt.DrilldownEditors,fetchDataSources:sn.noop,dashboardApiRef:sn.noop,metadata:{},handleValidationError:sn.noop,overrides:{}};var xo,Lo=(G=>Z=>{const ne=(0,Ft.useDashboardCoreApi)();return dt.createElement(G,__spreadProps(__spreadValues({},Z),{dashboardCoreApi:ne}))})((G=>Z=>{const ne=(0,Jt.useSelector)(Jt.selectDefinition),ie=(0,Jt.useSelector)(Jt.selectMode),se=(0,Jt.useSelector)(Jt.selectSelectedItems),ce=(0,Jt.useSelector)(Jt.selectAreGridLinesEnabled),fe=(0,Jt.useSelector)(Jt.selectSidebarState),me=(0,Jt.useDispatch)();return dt.createElement(G,__spreadProps(__spreadValues({},Z),{definition:ne,mode:ie,dispatch:me,selectedItems:se,showGrid:ce,sidebarState:fe}))})((G=>Z=>{const ne=(0,Ft.usePreset)().getPresetDefinition();return dt.createElement(G,__spreadProps(__spreadValues({},Z),{preset:ne}))})((G=>Z=>{const ne=(0,Ft.useKeyboardListener)(),ie=(0,Ft.useFeatureFlags)(),se=(0,Vt.useTelemetryApi)();return dt.createElement(G,__spreadValues({keyboardListener:ne,telemetry:se,featureFlags:ie},Z))})((G=>Z=>{const ne=(0,Vt.useDashboardProfiler)();return dt.createElement(G,__spreadProps(__spreadValues({},Z),{profiler:ne}))})((xo=Mo,G=>{const Z=(()=>{const G=(0,Jt.useSelector)(Jt.selectDefinition);return(0,ct.useEffect)(()=>{wo.addDefinition(G)},[G]),(0,ct.useEffect)(()=>()=>wo.teardown(),[]),wo})();return dt.createElement(xo,__spreadProps(__spreadValues({},G),{historyManager:Z}))})))))),To=xn.div` display: flex; flex-direction: column; ${G=>(0,sn.toDimension)({width:G.width,height:G.height})}; `,Ao=xn.div` flex-grow: 1; overflow: auto; position: relative; min-height: 0px; `,ViewModeLayout=({width:G,height:Z,renderToolbar:ne,renderDashboardCore:ie})=>dt.createElement(To,{width:G,height:Z,"data-test":"view-mode-layout"},ne(),dt.createElement(Ao,null,dt.createElement(Kt.SizeWrapper,null,({width:G,height:Z})=>ie(G,Z))));ViewModeLayout.propTypes={width:_t.oneOfType([_t.string,_t.number]).isRequired,height:_t.oneOfType([_t.string,_t.number]).isRequired,renderToolbar:_t.func.isRequired,renderDashboardCore:_t.func.isRequired};var Do=ViewModeLayout,renderDashboardCore=(G,Z)=>dt.createElement(Tt.DashboardCore,{mode:"view",width:G,height:Z}),Eo=(0,Ct._)("The DashboardViewer component has been deprecated. For a view-only experience the DashboardCore component should be used."),DashboardViewer=({width:G,height:Z,toolbarItems:ne,showToolbar:ie})=>{(0,sn.deprecated)(Eo);const se=(0,ct.useCallback)(()=>ie?dt.createElement(Et.Toolbar,{toolbarItems:ne}):null,[ie,ne]);return dt.createElement(Do,{width:G,height:Z,renderToolbar:se,renderDashboardCore:renderDashboardCore})};DashboardViewer.propTypes={width:_t.oneOfType([_t.string,_t.number]).isRequired,height:_t.oneOfType([_t.string,_t.number]).isRequired,showToolbar:_t.bool,toolbarItems:_t.arrayOf(_t.object)},DashboardViewer.defaultProps={toolbarItems:[],showToolbar:!0};var jo=DashboardViewer,Po={};__export(Po,{default:()=>No});var Io=__toESM(ne(948));__reExport(Po,ne(948));var No="default"in Io?Io.default:Io,Ro=xn.div.attrs({"data-test":"source-editor-layout"})` display: flex; flex-direction: column; ${G=>(0,sn.toDimension)({width:G.$width,height:G.$height})}; `,zo=xn.div` flex-grow: 1; overflow: hidden; position: relative; min-height: 0px; background-color: ${Kt.customThemeVariables.dashboardBackgroundColor}; `,qo=xn.div` ${(0,fr.reset)("flex")}; justify-content: space-between; background-color: ${Kt.customThemeVariables.toolbarBackgroundColor}; color: ${(0,qn.pick)({enterprise:{light:qn.variables.contentColorDefault,dark:qn.variables.gray96},prisma:qn.variables.contentColorDefault})}; padding: 5px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: ${Kt.customThemeVariables.toolbarBorderColor}; `,Wo=xn.h3.attrs({"data-test":"source-editor-title"})` color: ${qn.variables.contentColorDefault}; margin: 0 5px 0 10px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; line-height: ${qn.variables.inputHeight}; flex-grow: 1; `,Bo={selectOnLineNumbers:!0},Fo=xn.div` flex-grow: 0; flex-shrink: 0; `,Ho=new Po.DashboardValidator,SourceEditorToolbar=({title:G,children:Z})=>dt.createElement(qo,{"data-test":"dashboard-toolbar"},dt.createElement(Wo,null,G||(0,Ct._)("Untitled Name")),dt.createElement(Fo,null,Z)),defaultValidateDef=()=>[],DashboardSourceEditor_default=({onExit:G=sn.noop,onValidationError:Z=sn.console.error,onParse:ne=JSON.parse,onSourceChange:ie=sn.noop,metadata:se,width:ce,height:fe,title:me,displayToolbar:ge=!0,validateDefinition:Ce=defaultValidateDef})=>{const Se=(0,Vt.useTelemetryApi)(),{enableSourceModeValidation:Me}=(0,Ft.useFeatureFlags)(),ke=(()=>{const G=(0,Ft.usePreset)().getPresetDefinition();return(0,ct.useMemo)(()=>(0,kt.createSchemaBasedOnPresets)(G),[G])})(),xe=(0,Jt.useDispatch)(),De=(0,Jt.useSelector)(Jt.selectDefinition),Ie=(0,ct.useRef)(De),Re=(0,ct.useRef)(),[ze,$e]=(0,ct.useState)(()=>JSON.stringify(De,null,4));Re.current||(Re.current=JSON.stringify(De,null,4)),(0,ct.useEffect)(()=>{$e(JSON.stringify(De,null,4)),Re.current=JSON.stringify(De,null,4)},[De]);const Je=(0,ct.useCallback)(G=>{$e(G),ie(G)},[ie]),it=(0,ct.useCallback)(G=>{Se.emit({metadata:__spreadValues({},se),error:G,pageAction:"dashboard.exit_source_mode_error"})},[se,Se]),ot=(0,ct.useCallback)(G=>{Se.emit({metadata:__spreadValues({},se),pageAction:"dashboard.exit_source_mode",definitionEdits:G})},[se,Se]),at=(0,ct.useCallback)(()=>{var ie;let se;try{se=ne(ze);let G=Ce(se);if(Me){const ne=Ho.setSchema(ke);if(ne)Z(ne.message),it(ne.message);else{G=(null!=(ie=Ho.validate(se))?ie:[]).concat(G)}}if(Array.isArray(G)&&G.length){const ne=(G=>G.map(({instancePath:G,message:Z})=>G?`[${G}]: ${Z}`:Z).join(", "))(G);return Z(ne),void it(ne)}}catch(G){return G instanceof Error&&Z(G.message),void it("JSON Parse Error - Invalid JSON Format")}if(Ie.current){const G=kt.DashboardDefinition.fromJSON(Ie.current),Z=kt.DashboardDefinition.fromJSON(se);ot(G.compare(Z))}xe((0,Jt.resetStore)({definition:se})),G()},[xe,G,ne,ze,Ce,Me,ke,Z,it,ot]),st=(0,ct.useCallback)(()=>{ie(JSON.stringify(Ie.current,null,4)),G()},[G,ie]),ut=(0,ct.useCallback)(({width:G,height:Z})=>dt.createElement(qt.SimpleSourceEditor,{width:G,height:Z,source:ze,schema:ke,onSourceChange:Je,editorOptions:Bo}),[ze,ke,Je]);return dt.createElement(Ro,{$width:ce,$height:fe},ge&&dt.createElement(SourceEditorToolbar,{title:me},dt.createElement(Vn,{onClick:st,label:(0,Ct._)("Close"),"data-test":"cancel-button",title:(0,Ct._)("Return without applying any source code changes"),"data-clickable":!0}),dt.createElement(Vn,{onClick:at,label:(0,Ct._)("Apply and close"),appearance:"primary","data-test":"back-button","data-clickable":!0,disabled:Re.current===ze})),dt.createElement(zo,null,dt.createElement(Kt.SizeAwareWrapper,null,ut)))},$o=Lo,Vo=Lo},770:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=8)}([function(G,Z){G.exports=ne(0)},,,,,function(G,Z){G.exports=ne(2)},function(G,Z){G.exports=ne(3)},,function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}])},7700:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(1162);var se=function getSettingsFromThemedProps(G){var Z,ne=(null===(Z=G.theme)||void 0===Z?void 0:Z.splunkThemeV1)||{},se=ne.family,ce=ne.colorScheme,fe=ne.density;return(0,ie.addThemeDefaults)({family:se,colorScheme:ce,density:fe})};Z.default=se},7701:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=_interopRequireDefault(ne(2887)),se=_interopRequireDefault(ne(4165)),ce=_interopRequireDefault(ne(4166)),fe=_interopRequireDefault(ne(4167)),me=_interopRequireDefault(ne(7702));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},7709:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(2889)),fe=_interopRequireDefault(ne(2031));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Ce=ge.a.svg.withConfig({displayName:"SVG__StyledSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;pointer-events:none;fill:currentColor;"]),Se=ge()(Ce).withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Me={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),inline:fe.a.bool,width:fe.a.oneOfType([fe.a.number,fe.a.string])};function SVG(G){var Z=G.children,ne=G.height,ie=G.inline,ce=G.viewBox,fe=G.width,me=_objectWithoutProperties(G,["children","height","inline","viewBox","width"]),ge=ie?Ce:Se;return se.a.createElement(ge,_extends({"aria-hidden":"true",height:ne,tabIndex:-1,viewBox:ce,width:fe,xmlns:"http://www.w3.org/2000/svg"},me),Z)}SVG.defaultProps={inline:!0,height:"16px",viewBox:"0 0 24 24",width:"16px"},SVG.propTypes=Me,Z.default=SVG}})},7710:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(2031),se=ne(1162),ce=function pickVariant(G,Z){return function(ne){var ce,fe=ne[G],me=Z[fe];if((0,ie.isInterpolationResult)(me))return me;var ge=(0,se.addThemeDefaults)(null===(ce=ne.theme)||void 0===ce?void 0:ce.splunkThemeV1);return(0,ie.getThemeVariant)(me,ge)}};Z.default=ce},7711:function(G,Z,ne){"use strict";function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=function SplunkThemeProvider(G){var Z=G.family,ne=G.colorScheme,ce=G.density,fe=G.additionalThemeProperties,me=G.customizeTheme,ge=function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},7713:function(G,Z,ne){},7714:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1316)},2:function(G,Z){G.exports=ne(1317)},214:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M3 4.10623C3 3.51257 3.47768 3.00623 4.09895 3.00623H7.49725C8.04954 3.00623 8.49725 3.45394 8.49725 4.00623C8.49725 4.55851 8.04954 5.00623 7.49725 5.00623H5V18.9937H18.9874V16.4964C18.9874 15.9441 19.4352 15.4964 19.9874 15.4964C20.5397 15.4964 20.9874 15.9441 20.9874 16.4964V19.8937C20.9874 20.5012 20.495 20.9937 19.8874 20.9937H4.1C3.49248 20.9937 3 20.5012 3 19.8937V4.10623Z"}),se.a.createElement("path",{d:"M19.0002 6.42035L10.6109 14.8096C10.2204 15.2002 9.58722 15.2002 9.1967 14.8096C8.80618 14.4191 8.80618 13.7859 9.1967 13.3954L17.5859 5.00623H13.6592C13.1069 5.00623 12.6592 4.55851 12.6592 4.00623C12.6592 3.45394 13.1069 3.00623 13.6592 3.00623H19.5002C20.3287 3.00623 21.0002 3.6778 21.0002 4.50623V10.3117C21.0002 10.864 20.5525 11.3117 20.0002 11.3117C19.4479 11.3117 19.0002 10.864 19.0002 10.3117V6.42035Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 3.67157 3.67157 3 4.5 3H19.5C20.3284 3 21 3.67157 21 4.5V19.5C21 20.3284 20.3284 21 19.5 21H4.5C3.67157 21 3 20.3284 3 19.5V4.5ZM11.5 5C10.9477 5 10.5 5.44772 10.5 6C10.5 6.55228 10.9477 7 11.5 7H15.5858L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L17 8.41421V12.5C17 13.0523 17.4477 13.5 18 13.5C18.5523 13.5 19 13.0523 19 12.5V6.5C19 5.67157 18.3284 5 17.5 5H11.5Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRightInset(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretoprightinset-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7715:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=254)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1316)},2:function(G,Z){G.exports=ne(1317)},254:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M7.27904 9.00002C6.84633 9.00002 6.61792 9.51239 6.90715 9.83423L11.408 14.8426C11.6067 15.0637 11.9533 15.0636 12.1519 14.8425L16.6502 9.8341C16.9392 9.51223 16.7108 9 16.2782 9L7.27904 9.00002Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmalldown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7716:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(0)},13:function(G,Z){G.exports=ne(7717)},3:function(G,Z){G.exports=ne(698)},38:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cancel}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(13),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},7719:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=256)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1316)},2:function(G,Z){G.exports=ne(1317)},256:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmallright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7720:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=244)}({2:function(G,Z){G.exports=ne(0)},244:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return se}));var ie=ne(2);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.59294C21.0977 5.98347 21.0977 6.61663 20.7071 7.00716L10.1447 17.5695C9.55896 18.1553 8.60922 18.1553 8.02343 17.5695L3.29289 12.839C2.90237 12.4485 2.90237 11.8153 3.29289 11.4248C3.68342 11.0343 4.31658 11.0343 4.70711 11.4248L9.08409 15.8018L19.2929 5.59294C19.6835 5.20242 20.3166 5.20242 20.7071 5.59294Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Checkmark(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkmark-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7722:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=222)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},222:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.h2.withConfig({displayName:"HeadingStyles__StyledHeading",componentId:"sc-15s3yx3-0"})(["",";margin:1.414em 0 0.4em;text-rendering:optimizelegibility;"," ",""],(function(G){var Z=G.$variant;return"title4"===Z?Object(Ce.pickVariant)("$isSection",{true:{enterprise:{compact:Ce.mixins.typography("title4",{weight:"semiBold"}),comfortable:Ce.mixins.typography("title4",{size:14,weight:"semiBold"})},prisma:Ce.mixins.typography("title4",{color:"default",size:14})},false:{enterprise:{compact:Ce.mixins.typography("title4"),comfortable:Ce.mixins.typography("title4",{size:14})},prisma:Ce.mixins.typography("title4")}}):Ce.mixins.typography(Z)}),Object(Ce.pickVariant)("$isSection",{true:{enterprise:{dark:Object(me.css)(["color:",";"],Ce.variables.gray80),light:Object(me.css)(["color:",";"],Ce.variables.gray45)}}}),(function(G){return G.$isSection&&Object(me.css)(["margin:0.707em 0 0.2em;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),level:fe.a.oneOf([1,2,3,4,"s","ss",5,6]),variant:fe.a.oneOf(["title1","title2","title3","title4","title5","title6","title7"])},ke={1:"h1",2:"h2",3:"h3",4:"h4",s:"h4",ss:"h5",5:"h5",6:"h6"},xe={h1:"title1",h2:"title2",h3:"title3",h4:"title4",h5:"title5",h6:"title6"};function Heading(G){var Z=G.children,ne=G.elementRef,ie=G.level,ce=void 0===ie?2:ie,fe=G.variant,me=_objectWithoutProperties(G,["children","elementRef","level","variant"]),ge=ke[ce],Ce=fe||xe[ge];return se.a.createElement(Se,_extends({$isSection:function isSection(G){return"s"===G.toString().charAt(0)}(ce),"data-test":"heading",ref:ne,as:ge,$variant:Ce},me),Z)}Heading.propTypes=Me;var De=Heading},3:function(G,Z){G.exports=ne(3)}})},7723:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=206)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},16:function(G,Z){G.exports=ne(2890)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},206:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ft}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(19),ge=ne.n(me),Ce=ne(43),Se=ne(3),Me=ne.n(Se),ke=ne(0),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(24),$e=ne(16),Je=ne.n($e),it=ne(53),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zie&&(Z.scrollLeft=ie,G.stopPropagation(),G.preventDefault())}if(Z.clientHeight!==Z.scrollHeight){if(G.deltaY<0&&Z.scrollTopse&&(Z.scrollTop=se,G.stopPropagation(),G.preventDefault())}}})),_defineProperty(_assertThisInitialized(ne),"handleMount",(function(G){ne.setState({containerEl:G}),Object(ot.a)(ne.props.elementRef,G)})),_defineProperty(_assertThisInitialized(ne),"handleMouseEnter",(function(){ne.defaultWindowOverflowX=document.body.style.overflowX,ne.defaultWindowOverflowY=document.body.style.overflowY,document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeave",(function(){document.body.style.overflowX=ne.defaultWindowOverflowX,document.body.style.overflowY=ne.defaultWindowOverflowY})),ne.state={containerEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Inner,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){if(this.state.containerEl){var ne,ie;if(Z.containerEl||(this.state.containerEl.scrollTop=this.props.defaultTop,this.state.containerEl.scrollLeft=this.props.defaultLeft),ge()(this.props.top))this.state.containerEl.scrollTop=(null===(ne=this.props.top)||void 0===ne?void 0:ne.get())||0;if(ge()(this.props.left))this.state.containerEl.scrollLeft=(null===(ie=this.props.left)||void 0===ie?void 0:ie.get())||0}}},{key:"render",value:function render(){var G=this.props,Z=G.children,ne=G.onScroll,ie=G.stopScrollPropagation,ce=G.top,fe=G.left,me=this.state.containerEl,ge=ze.animated[this.props.tagName];return se.a.createElement(se.a.Fragment,null,se.a.createElement(ge,_extends({},Re()(this.props,De()(Inner.propTypes)),{ref:this.handleMount,onMouseEnter:"window"===ie?this.handleMouseEnter:void 0,onMouseLeave:"window"===ie?this.handleMouseLeave:void 0,onScroll:ne,scrollTop:ce,scrollLeft:fe}),se.a.createElement(it.ScrollContainerProvider,{value:me},Z)),!0===ie&&me&&se.a.createElement(Je.a,{target:me,eventType:"wheel",listener:this.handleWheel,options:{passive:!1}}))}}]),Inner}(ie.Component);_defineProperty(st,"propTypes",at),_defineProperty(st,"defaultProps",{defaultLeft:0,defaultTop:0,tagName:"div"});var ct=st,ut=Me()(ct).withConfig({displayName:"ScrollStyles__StyledInner",componentId:"sc-1xspttf-0"})(["",";overflow:auto;overflow-y:auto;overflow-x:hidden;"],ke.mixins.reset("block"));function Scroll_typeof(G){return(Scroll_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Scroll_extends(){return(Scroll_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Scroll_defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7725:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=225)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},225:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(43),ge=ne(85),Ce=ne.n(ge),Se=ne(3),Me=ne.n(Se),ke=ne(24),xe=ne(0),De=Object(Se.css)(["",";position:fixed;top:0;right:0;bottom:0;left:0;"],xe.mixins.reset("block")),Ie=Me()(ke.animated.div).withConfig({displayName:"ModalLayerStyles__StyledClickAwayOverlay",componentId:"sc-1sa3n1j-0"})(["",";background-color:",";z-index:",";"],De,xe.variables.backgroundColorScrim,xe.variables.zindexModalBackdrop);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),orientation:fe.a.oneOf(["horizontal","vertical"])};function Divider(G){var Z=G.elementRef,ne=G.orientation,ie=void 0===ne?"horizontal":ne,ce=_objectWithoutProperties(G,["elementRef","orientation"]);return se.a.createElement(Se,_extends({"data-test":"divider",ref:Z,"aria-orientation":ie,$orientation:ie},ce))}Divider.propTypes=Me;var ke=Divider},3:function(G,Z){G.exports=ne(3)}})},7727:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=218)}({0:function(G,Z){G.exports=ne(443)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},218:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Je}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(26),ge=ne.n(me),Ce=ne(27),Se=ne.n(Ce),Me=ne(0),ke=ne(4),xe=ne(3),De=ne.n(xe),Ie=ne(64),Re=ne.n(Ie),ze=De()(Re.a).withConfig({displayName:"CloseButtonStyles__StyledButtonSimple",componentId:"b3h40f-0"})(["float:right;width:",";height:",";text-align:center;"],Me.variables.inputHeight,Me.variables.inputHeight);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var $e={disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string};function CloseButton(G){var Z=G.disabled,ne=void 0!==Z&&Z,ie=G.screenReaderText,ce=void 0===ie?Object(ke._)("Close"):ie,fe=_objectWithoutProperties(G,["disabled","screenReaderText"]),me=Object(Me.useSplunkTheme)(),Ce=me.isEnterprise,xe=me.isCompact?"20px":"24px";return se.a.createElement(ze,_extends({appearance:"pill",disabled:ne,"aria-label":ce},fe),Ce?se.a.createElement(Se.a,{"data-test":"cross",inline:!1,screenReaderText:null,size:"13px"}):se.a.createElement(ge.a,{"data-test":"cross",height:xe,width:xe}))}CloseButton.propTypes=$e;var Je=CloseButton},26:function(G,Z){G.exports=ne(7728)},27:function(G,Z){G.exports=ne(7729)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(2036)},64:function(G,Z){G.exports=ne(4175)}})},7728:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=352)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(1316)},2:function(G,Z){G.exports=ne(1317)},352:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Cross(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="cross-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7729:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=61)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(698)},61:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Close}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(7),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},7741:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(2898)),fe=_interopRequireDefault(ne(2037));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function useSplunkTheme(){var G=(0,ie.useContext)(se.ThemeContext)||{},Z=G.splunkThemeV1,ne=void 0===Z?{}:Z,fe=_objectWithoutProperties(G,["splunkThemeV1"]),me=ne.family,ge=ne.colorScheme,Ce=ne.density,Se=ne.customizer;return _objectSpread(_objectSpread({},fe),(0,ce.getCustomizedTheme)({family:me,colorScheme:ge,density:Ce},Se))};Z.default=fe},7745:function(G,Z,ne){"use strict";function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3),ce=ne(1163);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},7746:function(G,Z,ne){},7747:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=185)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},150:function(G,Z){G.exports=ne(470)},151:function(G,Z){G.exports=ne(271)},152:function(G,Z){G.exports=ne(182)},16:function(G,Z){G.exports=ne(4201)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},185:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Jt})),ne.d(Z,"PopoverContext",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(93),ge=ne(150),Ce=ne.n(ge),Se=ne(58),Me=ne.n(Se),ke=ne(151),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(15),ze=ne.n(Re),$e=ne(152),Je=ne.n($e),it=ne(19),ot=ne.n(it),at=ne(71),st=ne.n(at),ct=ne(9),ut=ne.n(ct),dt=ne(5),ht=ne.n(dt),ft=ne(33),_t=ne.n(ft),yt=ne(0),vt=ne(43),wt=ne(16),Ct=ne.n(wt),St=ne(85),Mt=ne.n(St),kt=ne(53),xt=ne.n(kt),Lt=ne(31);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(4202)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(4203)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(4204)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(4205)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},7748:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=192)}({1:function(G,Z){G.exports=ne(2)},192:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Me})),ne.d(Z,"AnimationToggleContext",(function(){return me})),ne.d(Z,"AnimationToggleProvider",(function(){return xe})),ne.d(Z,"useAnimationToggle",(function(){return ge}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=se.a.createContext(!0);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var xe=ke.a.svg.withConfig({displayName:"SVGEnterprise__InlineSVG",componentId:"sc-9jxj7k-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),De=ke.a.svg.withConfig({displayName:"SVGEnterprise__BlockSVG",componentId:"sc-9jxj7k-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),Ie={children:fe.a.node,height:fe.a.oneOfType([fe.a.number,fe.a.string]),hideDefaultTooltip:fe.a.bool,inline:fe.a.bool,screenReaderText:fe.a.oneOfType([fe.a.string,fe.a.oneOf(["null"])]),size:fe.a.oneOfType([fe.a.number,fe.a.string]),width:fe.a.oneOfType([fe.a.number,fe.a.string]),viewBox:fe.a.string.isRequired,preserveAspectRatio:fe.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function SVGEnterprise(G){var Z=G.children,ne=G.height,ie=G.hideDefaultTooltip,ce=void 0!==ie&&ie,fe=G.inline,me=void 0===fe||fe,Ce=G.preserveAspectRatio,Me=void 0===Ce?"xMidYMid":Ce,ke=G.screenReaderText,Ie=G.size,Re=void 0===Ie?.75:Ie,ze=G.viewBox,$e=G.width,Je=_objectWithoutProperties(G,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var it="number"!=typeof Re?parseFloat(Re):Re,ot=Se()(Re)?Re.match(/[^\d]+/):"em",at=parseFloat(ze.split(" ")[3]),st=parseFloat(ze.split(" ")[2]),ct=Math.max(st,at),ut=ge()(ne)?at/ct*it:ne,dt=ge()($e)?st/ct*it:$e,ht=me?xe:De,ft=ke&&!ce;return se.a.createElement(ht,_extends({focusable:"false",height:Se()(ut)?ut:"".concat(ut.toFixed(4)).concat(ot),width:Se()(dt)?dt:"".concat(dt.toFixed(4)).concat(ot),viewBox:ze,"aria-label":ce&&null!=ke?ke:void 0,"aria-hidden":!ke,preserveAspectRatio:Me,xmlns:"http://www.w3.org/2000/svg"},Je),ft&&se.a.createElement("title",null,ke),Z)}SVGEnterprise.propTypes=Ie,Z.default=SVGEnterprise},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)},9:function(G,Z){G.exports=ne(78)}})},775:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ie}));ne(7525);const ie="monaco-mouse-cursor-text"},7750:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=213)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(2039)},2:function(G,Z){G.exports=ne(2040)},213:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M0 1.46769C0 0.675592 0.636901 0 1.46525 0H5.99626C6.73263 0 7.32958 0.59737 7.32958 1.33426C7.32958 2.07116 6.73263 2.66852 5.99626 2.66852H2.66663V21.3315H21.3163V17.9995C21.3163 17.2626 21.9133 16.6652 22.6496 16.6652C23.386 16.6652 23.983 17.2626 23.983 17.9995V22.5323C23.983 23.3429 23.3263 24 22.5163 24H1.46665C0.656638 24 0 23.3429 0 22.5323V1.46769Z"}),se.a.createElement("path",{d:"M21.3334 4.55534L10.1478 15.7489C9.62706 16.2699 8.78286 16.2699 8.26216 15.7489C7.74147 15.2278 7.74147 14.383 8.26217 13.8619L19.4477 2.66852H14.2121C13.4757 2.66852 12.8787 2.07116 12.8787 1.33426C12.8787 0.59737 13.4757 0 14.2121 0H22C23.1046 0 24 0.896056 24 2.00139V9.74743C24 10.4843 23.4031 11.0817 22.6667 11.0817C21.9303 11.0817 21.3334 10.4843 21.3334 9.74743V4.55534Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H22C23.1046 0 24 0.89543 24 2V22C24 23.1046 23.1046 24 22 24H2C0.89543 24 0 23.1046 0 22V2ZM11.3333 2.66667C10.597 2.66667 10 3.26362 10 4C10 4.73638 10.597 5.33333 11.3333 5.33333H16.781L7.05719 15.0572C6.53649 15.5779 6.53649 16.4221 7.05719 16.9428C7.57789 17.4635 8.42211 17.4635 8.94281 16.9428L18.6667 7.21895V12.6667C18.6667 13.403 19.2636 14 20 14C20.7364 14 21.3333 13.403 21.3333 12.6667V4.66667C21.3333 3.5621 20.4379 2.66667 19.3333 2.66667H11.3333Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretopright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7751:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=225)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},225:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return $e}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(43),ge=ne(85),Ce=ne.n(ge),Se=ne(3),Me=ne.n(Se),ke=ne(24),xe=ne(0),De=Object(Se.css)(["",";position:fixed;top:0;right:0;bottom:0;left:0;"],xe.mixins.reset("block")),Ie=Me()(ke.animated.div).withConfig({displayName:"ModalLayerStyles__StyledClickAwayOverlay",componentId:"sc-1sa3n1j-0"})(["",";background-color:",";z-index:",";"],De,xe.variables.backgroundColorScrim,xe.variables.zindexModalBackdrop);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),orientation:fe.a.oneOf(["horizontal","vertical"])};function Divider(G){var Z=G.elementRef,ne=G.orientation,ie=void 0===ne?"horizontal":ne,ce=_objectWithoutProperties(G,["elementRef","orientation"]);return se.a.createElement(Se,_extends({"data-test":"divider",ref:Z,"aria-orientation":ie,$orientation:ie},ce))}Divider.propTypes=Me;var ke=Divider},3:function(G,Z){G.exports=ne(3)}})},7753:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},214:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.div.withConfig({displayName:"BoxStyles__Styled",componentId:"sc-1h4b5f6-0"})(["",";align-items:stretch;align-content:stretch;flex-flow:row nowrap;flex-grow:0;flex-shrink:0;justify-content:flex-start;width:auto;max-width:100%;@media all and (-ms-high-contrast:none){max-width:calc(100% - 0.01px);}&[data-inline]{display:inline-block;vertical-align:middle;}&[data-flex]{display:flex;}&[data-flex][data-inline]{display:inline-flex;}"],Ce.mixins.reset("block"));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),flex:fe.a.bool,inline:fe.a.bool};function Box(G){var Z=G.children,ne=G.elementRef,ie=G.flex,ce=void 0!==ie&&ie,fe=G.inline,me=void 0!==fe&&fe,ge=_objectWithoutProperties(G,["children","elementRef","flex","inline"]);return se.a.createElement(Se,_extends({ref:ne},ge,{"data-inline":me||void 0,"data-flex":ce||void 0}),Z)}Box.propTypes=Me;var ke=Box},3:function(G,Z){G.exports=ne(3)}})},7754:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=218)}({0:function(G,Z){G.exports=ne(573)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},218:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Je}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(26),ge=ne.n(me),Ce=ne(27),Se=ne.n(Ce),Me=ne(0),ke=ne(4),xe=ne(3),De=ne.n(xe),Ie=ne(64),Re=ne.n(Ie),ze=De()(Re.a).withConfig({displayName:"CloseButtonStyles__StyledButtonSimple",componentId:"b3h40f-0"})(["float:right;width:",";height:",";text-align:center;"],Me.variables.inputHeight,Me.variables.inputHeight);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var $e={disabled:fe.a.bool,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string};function CloseButton(G){var Z=G.disabled,ne=void 0!==Z&&Z,ie=G.screenReaderText,ce=void 0===ie?Object(ke._)("Close"):ie,fe=_objectWithoutProperties(G,["disabled","screenReaderText"]),me=Object(Me.useSplunkTheme)(),Ce=me.isEnterprise,xe=me.isCompact?"20px":"24px";return se.a.createElement(ze,_extends({appearance:"pill",disabled:ne,"aria-label":ce},fe),Ce?se.a.createElement(Se.a,{"data-test":"cross",inline:!1,screenReaderText:null,size:"13px"}):se.a.createElement(ge.a,{"data-test":"cross",height:xe,width:xe}))}CloseButton.propTypes=$e;var Je=CloseButton},26:function(G,Z){G.exports=ne(7755)},27:function(G,Z){G.exports=ne(7756)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(2038)},64:function(G,Z){G.exports=ne(4209)}})},7755:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=352)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(2039)},2:function(G,Z){G.exports=ne(2040)},352:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Cross(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="cross-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7756:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=61)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(1626)},61:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Close}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(7),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},7759:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=214)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(2039)},2:function(G,Z){G.exports=ne(2040)},214:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(2);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M3 4.10623C3 3.51257 3.47768 3.00623 4.09895 3.00623H7.49725C8.04954 3.00623 8.49725 3.45394 8.49725 4.00623C8.49725 4.55851 8.04954 5.00623 7.49725 5.00623H5V18.9937H18.9874V16.4964C18.9874 15.9441 19.4352 15.4964 19.9874 15.4964C20.5397 15.4964 20.9874 15.9441 20.9874 16.4964V19.8937C20.9874 20.5012 20.495 20.9937 19.8874 20.9937H4.1C3.49248 20.9937 3 20.5012 3 19.8937V4.10623Z"}),se.a.createElement("path",{d:"M19.0002 6.42035L10.6109 14.8096C10.2204 15.2002 9.58722 15.2002 9.1967 14.8096C8.80618 14.4191 8.80618 13.7859 9.1967 13.3954L17.5859 5.00623H13.6592C13.1069 5.00623 12.6592 4.55851 12.6592 4.00623C12.6592 3.45394 13.1069 3.00623 13.6592 3.00623H19.5002C20.3287 3.00623 21.0002 3.6778 21.0002 4.50623V10.3117C21.0002 10.864 20.5525 11.3117 20.0002 11.3117C19.4479 11.3117 19.0002 10.864 19.0002 10.3117V6.42035Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 3.67157 3.67157 3 4.5 3H19.5C20.3284 3 21 3.67157 21 4.5V19.5C21 20.3284 20.3284 21 19.5 21H4.5C3.67157 21 3 20.3284 3 19.5V4.5ZM11.5 5C10.9477 5 10.5 5.44772 10.5 6C10.5 6.55228 10.9477 7 11.5 7H15.5858L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L17 8.41421V12.5C17 13.0523 17.4477 13.5 18 13.5C18.5523 13.5 19 13.0523 19 12.5V6.5C19 5.67157 18.3284 5 17.5 5H11.5Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRightInset(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretoprightinset-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},776:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Ce})),ne.d(Z,"c",(function(){return Se})),ne.d(Z,"b",(function(){return Me}));var ie=ne(4),se=ne(19),ce=ne(35),fe=ne(122),me=ne(180),ge=ne(578);const Ce=new class EditorModesRegistry{constructor(){this._onDidChangeLanguages=new se.b,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(G){return this._languages.push(G),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let Z=0,ne=this._languages.length;Z"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}},0)},7760:function(G,Z,ne){"use strict";function _toConsumableArray(G){return function _arrayWithoutHoles(G){if(Array.isArray(G))return _arrayLikeToArray(G)}(G)||function _iterableToArray(G){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(G))return Array.from(G)}(G)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M7.27904 9.00002C6.84633 9.00002 6.61792 9.51239 6.90715 9.83423L11.408 14.8426C11.6067 15.0637 11.9533 15.0636 12.1519 14.8425L16.6502 9.8341C16.9392 9.51223 16.7108 9 16.2782 9L7.27904 9.00002Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallDown(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmalldown-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7762:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=38)}({0:function(G,Z){G.exports=ne(0)},13:function(G,Z){G.exports=ne(7763)},3:function(G,Z){G.exports=ne(1626)},38:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Cancel}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(13),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z0&&void 0!==arguments[0]?arguments[0]:"inline";return function(){return(0,se.css)(_templateObject(),(0,me.default)({dark:"dark",light:"light"}),(0,me.default)({enterprise:fe.default.textColor,prisma:fe.default.contentColorDefault}),G,fe.default.fontFamily,fe.default.fontSize,fe.default.lineHeight,fe.default.focusColor)}};function clearfix(){return{"&::after":{display:"table",content:'""',clear:"both"}}}function ellipsis(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function printWidth100Percent(){return{maxWidth:"100% !important",width:"100% !important",overflow:"hidden !important"}}function printHide(){return{display:"none !important"}}function printNoBackground(){return{background:"none !important"}}function printWrapAll(){return{wordBreak:"break-all !important",wordWrap:"break-word !important",overflowWrap:"break-word !important",whiteSpace:"normal !important"}}function screenReaderContent(){return{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",height:"1px",width:"1px",margin:"-1px",padding:0,border:0}}function overlayColors(G,Z){return function(ne){var se="function"==typeof G?G(ne):G,fe="function"==typeof Z?Z(ne):Z,me=(0,ce.normal)((0,ie.default)(se).toRgb(),(0,ie.default)(fe).toRgb());return(0,ie.default)(me).toRgbString()}}function colorWithAlpha(G,Z){return function(ne){var se="function"==typeof G?G(ne):G;return(0,ie.default)(se).setAlpha(Z).toRgbString()}}Z.reset=ge;var Ce={reset:ge,clearfix:clearfix,ellipsis:ellipsis,printWidth100Percent:printWidth100Percent,printHide:printHide,printNoBackground:printNoBackground,printWrapAll:printWrapAll,screenReaderContent:screenReaderContent,colorWithAlpha:colorWithAlpha,overlayColors:overlayColors};Z.default=Ce},7773:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.typographyVariants=Z.default=void 0;var ie=ne(3),se=_interopRequireDefault(ne(177)),ce=_interopRequireDefault(ne(2905)),fe=_interopRequireDefault(ne(2042));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function _templateObject2(){var G=_taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "]);return _templateObject2=function _templateObject2(){return G},G}function _templateObject(){var G=_taggedTemplateLiteral(["\n ","\n\n color: ",";\n font-family: ",";\n font-size: ",";\n font-weight: ",";\n line-height: ",";\n "]);return _templateObject=function _templateObject(){return G},G}function _taggedTemplateLiteral(G,Z){return Z||(Z=G.slice(0)),Object.freeze(Object.defineProperties(G,{raw:{value:Object.freeze(Z)}}))}function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}(G,["family","colorScheme","density","additionalThemeProperties","customizeTheme"]),Ce=((0,ie.useContext)(se.ThemeContext)||{}).splunkThemeV1,Se=void 0===Ce?{}:Ce,Me=_objectSpread(_objectSpread({},fe),{},{splunkThemeV1:{family:Z||Se.family||"prisma",colorScheme:ne||Se.colorScheme||"dark",density:ce||Se.density||"comfortable",customizer:me||Se.customizer}});return ie.default.createElement(se.ThemeProvider,_extends({theme:Me},ge))};var ie=function _interopRequireWildcard(G){if(G&&G.__esModule)return G;if(null===G||"object"!==_typeof(G)&&"function"!=typeof G)return{default:G};var Z=_getRequireWildcardCache();if(Z&&Z.has(G))return Z.get(G);var ne={},ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var se in G)if(Object.prototype.hasOwnProperty.call(G,se)){var ce=ie?Object.getOwnPropertyDescriptor(G,se):null;ce&&(ce.get||ce.set)?Object.defineProperty(ne,se,ce):ne[se]=G[se]}ne.default=G,Z&&Z.set(G,ne);return ne}(ne(0)),se=ne(3);function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var G=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return G},G}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var fe=function withSplunkTheme(G){var Z=ie.default.forwardRef((function(Z,ne){var fe=(0,ie.useContext)(se.ThemeContext)||{},me=fe.splunkThemeV1,ge=_objectWithoutProperties(fe,["splunkThemeV1"]),Ce=me||{},Se=Ce.family,Me=Ce.colorScheme,ke=Ce.density,xe=Ce.customizer,De=(0,ce.addThemeDefaults)({family:Se,colorScheme:Me,density:ke}),Ie=_objectSpread(_objectSpread({},ge),(0,ce.getCustomizedTheme)(De,xe));return ie.default.createElement(G,_extends({},Z,{ref:ne,splunkTheme:Ie}))})),ne=G.displayName||G.name||"Component";return Z.displayName="withSplunkTheme(".concat(ne,")"),Z};Z.default=fe},7777:function(G,Z,ne){},7778:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=223)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},123:function(G,Z){G.exports=ne(421)},15:function(G,Z){G.exports=ne(65)},16:function(G,Z){G.exports=ne(2044)},168:function(G,Z){var ne;ne=function(){return this}();try{ne=ne||new Function("return this")()}catch(G){"object"==typeof window&&(ne=window)}G.exports=ne},2:function(G,Z){G.exports=ne(0)},223:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ht})),ne.d(Z,"LayerStackContext",(function(){return ze.b})),ne.d(Z,"LayerContext",(function(){return ze.a})),ne.d(Z,"LayerStackGlobalProvider",(function(){return ze.c}));var ie=ne(2),se=ne.n(ie),ce=ne(93),fe=ne(1),me=ne.n(fe),ge=ne(15),Ce=ne.n(ge),Se=ne(94),Me=ne.n(Se),ke=ne(123),xe=ne.n(ke),De=ne(7),Ie=ne(16),Re=ne.n(Ie),ze=ne(95),$e=ne(3),Je=ne.n($e),it=ne(0),ot=Je.a.div.withConfig({displayName:"LayerStyles__StyledLayer",componentId:"ii6psl-0"})(["",""],(function(G){return G.$separateStackingContexts&&Object($e.css)(["isolation:isolate;z-index:",";"],it.variables.zindexLayer)})),at=ne(28);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Wt={children:fe.a.node.isRequired,onRequestClose:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"]).isRequired},Bt=Object.freeze({info:Object(De._)("Info"),warning:Object(De._)("Warning"),error:Object(De._)("Alert"),success:Object(De._)("Success")}),Ft=Object.freeze({info:Nt,warning:zt,error:It,success:Rt}),Ht=Object.freeze({info:Et,warning:jt,error:Dt,success:At});function MessageBar(G){var Z,ne=G.children,ie=G.type,ce=G.onRequestClose,fe=_objectWithoutProperties(G,["children","type","onRequestClose"]),me=Object(xe.useSplunkTheme)().isEnterprise,Ce=me&&"error"===ie?"22px":"24px",Me=me&&"warning"===ie?"21px":"24px";if(me){var Ie=Ft[ie];Z=se.a.createElement(Ie,{height:Me,width:Ce,hideDefaultTooltip:!0,screenReaderText:null,"aria-hidden":!0,"data-test":"icon"})}else{var Re=Ht[ie];Z=se.a.createElement(Re,{height:"24px",width:"24px",variant:"filled","aria-hidden":!0,"data-test":"icon"})}return se.a.createElement(qt,_extends({$type:ie,"data-test":"message-bar","data-test-type":ie},fe,{role:"region",$hasCloseButton:Boolean(ce)}),Z,se.a.createElement(ke.a,null,Bt[ie]),se.a.createElement(xt,{$type:ie,"data-test":"content"},ne),ce&&se.a.createElement(Lt,{$type:ie,onClick:ce},me?se.a.createElement(Se.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(ge.a,{height:"19px",style:{margin:-.5},width:"19px"}),se.a.createElement(ke.a,null,Object(De._)("Close"))))}MessageBar.propTypes=Wt;var $t=MessageBar},26:function(G,Z){G.exports=ne(2045)},27:function(G,Z){G.exports=ne(1320)},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(768)},6:function(G,Z){G.exports=ne(1165)},72:function(G,Z){G.exports=ne(4225)},73:function(G,Z){G.exports=ne(4226)},98:function(G,Z){G.exports=ne(4227)},99:function(G,Z){G.exports=ne(4228)}})},7780:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=57)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(644)},4:function(G,Z){G.exports=ne(769)},57:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Clear}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M3 4.10623C3 3.51257 3.47768 3.00623 4.09895 3.00623H7.49725C8.04954 3.00623 8.49725 3.45394 8.49725 4.00623C8.49725 4.55851 8.04954 5.00623 7.49725 5.00623H5V18.9937H18.9874V16.4964C18.9874 15.9441 19.4352 15.4964 19.9874 15.4964C20.5397 15.4964 20.9874 15.9441 20.9874 16.4964V19.8937C20.9874 20.5012 20.495 20.9937 19.8874 20.9937H4.1C3.49248 20.9937 3 20.5012 3 19.8937V4.10623Z"}),se.a.createElement("path",{d:"M19.0002 6.42035L10.6109 14.8096C10.2204 15.2002 9.58722 15.2002 9.1967 14.8096C8.80618 14.4191 8.80618 13.7859 9.1967 13.3954L17.5859 5.00623H13.6592C13.1069 5.00623 12.6592 4.55851 12.6592 4.00623C12.6592 3.45394 13.1069 3.00623 13.6592 3.00623H19.5002C20.3287 3.00623 21.0002 3.6778 21.0002 4.50623V10.3117C21.0002 10.864 20.5525 11.3117 20.0002 11.3117C19.4479 11.3117 19.0002 10.864 19.0002 10.3117V6.42035Z"}))})),ge.set("filled",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4.5C3 3.67157 3.67157 3 4.5 3H19.5C20.3284 3 21 3.67157 21 4.5V19.5C21 20.3284 20.3284 21 19.5 21H4.5C3.67157 21 3 20.3284 3 19.5V4.5ZM11.5 5C10.9477 5 10.5 5.44772 10.5 6C10.5 6.55228 10.9477 7 11.5 7H15.5858L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L17 8.41421V12.5C17 13.0523 17.4477 13.5 18 13.5C18.5523 13.5 19 13.0523 19 12.5V6.5C19 5.67157 18.3284 5 17.5 5H11.5Z"}))}));var Ce=["default","outlined","filled"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function ArrowSquareTopRightInset(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="arrowsquaretoprightinset-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7782:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=173)}({0:function(G,Z){G.exports=ne(0)},173:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return TriangleDownSmall}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}function _defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M8.77004 16.4985C8.77004 16.9313 9.28241 17.1597 9.60425 16.8704L14.6126 12.3696C14.8337 12.1709 14.8336 11.8243 14.6125 11.6257L9.60412 7.12744C9.28225 6.83834 8.77002 7.06678 8.77002 7.49943L8.77004 16.4985Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function CaretSmallRight(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="caretsmallright-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7785:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(644)},4:function(G,Z){G.exports=ne(769)},50:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ChevronRight}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(4),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 5.59294C21.0977 5.98347 21.0977 6.61663 20.7071 7.00716L10.1447 17.5695C9.55896 18.1553 8.60922 18.1553 8.02343 17.5695L3.29289 12.839C2.90237 12.4485 2.90237 11.8153 3.29289 11.4248C3.68342 11.0343 4.31658 11.0343 4.70711 11.4248L9.08409 15.8018L19.2929 5.59294C19.6835 5.20242 20.3166 5.20242 20.7071 5.59294Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Checkmark(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="checkmark-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},7788:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=222)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},222:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return De}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.h2.withConfig({displayName:"HeadingStyles__StyledHeading",componentId:"sc-15s3yx3-0"})(["",";margin:1.414em 0 0.4em;text-rendering:optimizelegibility;"," ",""],(function(G){var Z=G.$variant;return"title4"===Z?Object(Ce.pickVariant)("$isSection",{true:{enterprise:{compact:Ce.mixins.typography("title4",{weight:"semiBold"}),comfortable:Ce.mixins.typography("title4",{size:14,weight:"semiBold"})},prisma:Ce.mixins.typography("title4",{color:"default",size:14})},false:{enterprise:{compact:Ce.mixins.typography("title4"),comfortable:Ce.mixins.typography("title4",{size:14})},prisma:Ce.mixins.typography("title4")}}):Ce.mixins.typography(Z)}),Object(Ce.pickVariant)("$isSection",{true:{enterprise:{dark:Object(me.css)(["color:",";"],Ce.variables.gray80),light:Object(me.css)(["color:",";"],Ce.variables.gray45)}}}),(function(G){return G.$isSection&&Object(me.css)(["margin:0.707em 0 0.2em;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),level:fe.a.oneOf([1,2,3,4,"s","ss",5,6]),variant:fe.a.oneOf(["title1","title2","title3","title4","title5","title6","title7"])},ke={1:"h1",2:"h2",3:"h3",4:"h4",s:"h4",ss:"h5",5:"h5",6:"h6"},xe={h1:"title1",h2:"title2",h3:"title3",h4:"title4",h5:"title5",h6:"title6"};function Heading(G){var Z=G.children,ne=G.elementRef,ie=G.level,ce=void 0===ie?2:ie,fe=G.variant,me=_objectWithoutProperties(G,["children","elementRef","level","variant"]),ge=ke[ce],Ce=fe||xe[ge];return se.a.createElement(Se,_extends({$isSection:function isSection(G){return"s"===G.toString().charAt(0)}(ce),"data-test":"heading",ref:ne,as:ge,$variant:Ce},me),Z)}Heading.propTypes=Me;var De=Heading},3:function(G,Z){G.exports=ne(3)}})},7789:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=206)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},16:function(G,Z){G.exports=ne(2044)},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},206:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ft}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(19),ge=ne.n(me),Ce=ne(43),Se=ne(3),Me=ne.n(Se),ke=ne(0),xe=ne(9),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(24),$e=ne(16),Je=ne.n($e),it=ne(53),ot=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Zie&&(Z.scrollLeft=ie,G.stopPropagation(),G.preventDefault())}if(Z.clientHeight!==Z.scrollHeight){if(G.deltaY<0&&Z.scrollTopse&&(Z.scrollTop=se,G.stopPropagation(),G.preventDefault())}}})),_defineProperty(_assertThisInitialized(ne),"handleMount",(function(G){ne.setState({containerEl:G}),Object(ot.a)(ne.props.elementRef,G)})),_defineProperty(_assertThisInitialized(ne),"handleMouseEnter",(function(){ne.defaultWindowOverflowX=document.body.style.overflowX,ne.defaultWindowOverflowY=document.body.style.overflowY,document.body.style.overflowX="hidden",document.body.style.overflowY="hidden"})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeave",(function(){document.body.style.overflowX=ne.defaultWindowOverflowX,document.body.style.overflowY=ne.defaultWindowOverflowY})),ne.state={containerEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Inner,[{key:"componentDidUpdate",value:function componentDidUpdate(G,Z){if(this.state.containerEl){var ne,ie;if(Z.containerEl||(this.state.containerEl.scrollTop=this.props.defaultTop,this.state.containerEl.scrollLeft=this.props.defaultLeft),ge()(this.props.top))this.state.containerEl.scrollTop=(null===(ne=this.props.top)||void 0===ne?void 0:ne.get())||0;if(ge()(this.props.left))this.state.containerEl.scrollLeft=(null===(ie=this.props.left)||void 0===ie?void 0:ie.get())||0}}},{key:"render",value:function render(){var G=this.props,Z=G.children,ne=G.onScroll,ie=G.stopScrollPropagation,ce=G.top,fe=G.left,me=this.state.containerEl,ge=ze.animated[this.props.tagName];return se.a.createElement(se.a.Fragment,null,se.a.createElement(ge,_extends({},Re()(this.props,De()(Inner.propTypes)),{ref:this.handleMount,onMouseEnter:"window"===ie?this.handleMouseEnter:void 0,onMouseLeave:"window"===ie?this.handleMouseLeave:void 0,onScroll:ne,scrollTop:ce,scrollLeft:fe}),se.a.createElement(it.ScrollContainerProvider,{value:me},Z)),!0===ie&&me&&se.a.createElement(Je.a,{target:me,eventType:"wheel",listener:this.handleWheel,options:{passive:!1}}))}}]),Inner}(ie.Component);_defineProperty(st,"propTypes",at),_defineProperty(st,"defaultProps",{defaultLeft:0,defaultTop:0,tagName:"div"});var ct=st,ut=Me()(ct).withConfig({displayName:"ScrollStyles__StyledInner",componentId:"sc-1xspttf-0"})(["",";overflow:auto;overflow-y:auto;overflow-x:hidden;"],ke.mixins.reset("block"));function Scroll_typeof(G){return(Scroll_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function Scroll_extends(){return(Scroll_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function Scroll_defineProperties(G,Z){for(var ne=0;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne1&&void 0!==arguments[1]?arguments[1]:"mouseLeaveToggle";(null==G.relatedTarget||G.relatedTarget!==ne.state.popoverEl&&G.relatedTarget!==ne.state.popoverOuterEl)&&ne.handleRequestClose(G,{reason:Z})})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeavePopover",(function(G){ne.handleMouseLeave(G,"mouseLeavePopover")})),_defineProperty(_assertThisInitialized(ne),"handleMouseLeaveHitArea",(function(G){ne.handleMouseLeave(G,"mouseLeaveHitArea")})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitAreaImpl",(function(G){ne.handleRequestClose(G,{reason:"mouseStopHitArea"})})),_defineProperty(_assertThisInitialized(ne),"handleMouseMoveHitArea",Se()(ne.handleMouseMoveHitAreaImpl,10)),_defineProperty(_assertThisInitialized(ne),"handleClick",(function(G){"notOnClick"!==ne.props.closeWhen&&ne.handleRequestClose(G,{reason:"toggleClick"})})),_defineProperty(_assertThisInitialized(ne),"handleFocus",(function(G){ne.handleRequestOpen(G,{reason:"focusToggle"})})),_defineProperty(_assertThisInitialized(ne),"handleBlur",(function(G){ne.handleRequestClose(G,{reason:"blurToggle"})})),_defineProperty(_assertThisInitialized(ne),"handlePopoverOnRequestClose",(function(G){ne.handleRequestClose(null,G)})),_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G,Z){var ie=ne.props.closeDelay;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se;ne.isControlled()||ne.setState({open:!1}),null===(ie=(se=ne.props).onRequestClose)||void 0===ie||ie.call(se,G,Z)}),ie)})),_defineProperty(_assertThisInitialized(ne),"handleRequestOpen",(function(G,Z){var ie=ne.props.openDelay,se="number"==typeof ie?ie:"primary"===ie?300:750;void 0!==ne.timeout&&clearTimeout(ne.timeout),ne.timeout=setTimeout((function(){var ie,se,ce=ne.isOpen();(ne.isControlled()||ne.setState({open:!0}),ce)||(null===(ie=(se=ne.props).onRequestOpen)||void 0===ie||ie.call(se,G,Z))}),se)})),ne.controlledExternally=ge()(G,"open"),ne.popoverId=Object(Re.createDOMID)("popover"),ne.ariaId=Object(Re.createDOMID)("aria-id"),ne.state={anchorEl:null,open:!1,popoverEl:null,popoverOuterEl:null,hitAreaEl:null},ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(Tooltip,[{key:"componentDidUpdate",value:function componentDidUpdate(){0}},{key:"componentWillUnmount",value:function componentWillUnmount(){void 0!==this.timeout&&clearTimeout(this.timeout)}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"isOpen",value:function isOpen(){var G=!!this.props.content;return this.state.anchorEl&&this.isControlled()?this.props.open:G&&this.state.open}},{key:"render",value:function render(){var G,Z=this.props,ne=Z.appearance,ce=Z.children,fe=Z.content,me=Z.defaultPlacement,ge=Z.elementRef,Ce=Z.inline,Se=(Z.onRequestClose,Z.onRequestOpen,Z.splunkTheme),Me=Z.contentRelationship,xe=_objectWithoutProperties(Z,["appearance","children","content","defaultPlacement","elementRef","inline","onRequestClose","onRequestOpen","splunkTheme","contentRelationship"]),Ie=this.state.anchorEl,Re=!!fe,$e=this.isOpen(),Je=Ce?dt:ut,ot=Ce?ft:ht,at=Se.isPrisma,st=at?"below":"above";return"label"===Me?G={labelledBy:this.ariaId,"aria-labelledby":this.ariaId}:"description"===Me&&(G={describedBy:this.ariaId,"aria-describedby":this.ariaId}),se.a.createElement(Je,Tooltip_extends({"data-test":"tooltip","data-test-open":$e,"data-test-popover-id":this.popoverId,ref:ge},xe),se.a.createElement(ot,{onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,ref:this.handleMount,"data-test":"toggle"},Re&&Object(ie.isValidElement)(ce)?Object(ie.cloneElement)(ce,G):ce,Re&&!ce&&se.a.createElement(yt,{"aria-describedby":this.ariaId},at?se.a.createElement(it,{hideDefaultTooltip:!0,screenReaderText:Object(ze._)("More info"),style:{height:"22px",width:"22px"}}):se.a.createElement(se.a.Fragment,null,se.a.createElement("span",{"aria-hidden":"true"},"?"),se.a.createElement(De.a,null,Object(ze._)("More info")))),Re&&se.a.createElement(De.a,{"aria-hidden":"true",id:this.ariaId},fe)),se.a.createElement(ke.a,{role:"tooltip",align:"center",anchor:Ie,animationConfig:{tension:400},appearance:ne,closeReasons:["offScreen","escapeKey"],defaultPlacement:"theme"===me?st:me,id:this.popoverId,open:$e,onRequestClose:this.handlePopoverOnRequestClose,elementRef:this.handlePopoverMount,hitAreaRef:this.handleHitAreaMount,outerRef:this.handlePopoverOuterMount},se.a.createElement(_t,{$isLabel:"label"===Me},fe)))}}]),Tooltip}(ie.Component);_defineProperty(wt,"propTypes",vt),_defineProperty(wt,"defaultProps",{appearance:"inverted",closeDelay:300,closeWhen:"default",contentRelationship:"description",defaultPlacement:"theme",inline:!0,openDelay:"primary"});var Ct=Object(Ie.withSplunkTheme)(wt);Ct.propTypes=wt.propTypes;var St=Ct},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},34:function(G,Z){G.exports=ne(2911)},4:function(G,Z){G.exports=ne(768)},8:function(G,Z){G.exports=ne(1627)}})},7791:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=211)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},107:function(G,Z){G.exports=ne(4235)},11:function(G,Z){G.exports=ne(63)},16:function(G,Z){G.exports=ne(2044)},167:function(G,Z){G.exports=ne(47)},17:function(G,Z){G.exports=ne(1321)},2:function(G,Z){G.exports=ne(0)},211:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ut}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(58),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce),Me=ne(9),ke=ne.n(Me),xe=ne(167),De=ne.n(xe),Ie=ne(5),Re=ne.n(Ie),ze=ne(63),$e=ne.n(ze),Je=ne(33),it=ne.n(Je),ot=ne(107),at=ne(26),st=ne.n(at),ct=ne(27),ut=ne.n(ct),dt=ne(54),ht=ne.n(dt),ft=ne(16),_t=ne.n(ft),yt=ne(49),vt=ne.n(yt),wt=ne(41),Ct=ne(0),St=ne(4),Mt=ne(3),kt=ne.n(Mt),xt=ne(6),Lt=ne.n(xt),Tt=ne(17),At=ne.n(Tt),Dt=Object(Mt.css)(["cursor:not-allowed;color:",";&::placeholder{color:",";}"],Object(Ct.pick)({enterprise:Ct.variables.textDisabledColor,prisma:Ct.variables.contentColorDisabled}),Object(Ct.pick)({enterprise:Ct.variables.textDisabledColor,prisma:Ct.variables.contentColorDisabled})),Et=Object(Mt.css)(["border-radius:",";cursor:pointer;font-size:0.83333em;flex-grow:0;",";&:not([disabled]){color:",";}"],Object(Ct.pick)({enterprise:Ct.variables.borderRadius,prisma:"50%"}),Object(Ct.pick)({enterprise:Object(Mt.css)(["width:",";height:",";"],Ct.variables.inputHeight,Ct.variables.inputHeight),prisma:{comfortable:Object(Mt.css)(["width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;"]),compact:Object(Mt.css)(["width:22px;min-width:22px;min-height:22px;margin:8px;padding:0;"])}}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted})),jt=kt()(At.a).withConfig({displayName:"TextAreaStyles__StyledClearButton",componentId:"gfy8yp-0"})(["display:none;visibility:hidden;",""],Et),It=kt.a.span.withConfig({displayName:"TextAreaStyles__StyledSearchIconWrapper",componentId:"gfy8yp-1"})(["",";color:",";pointer-events:none;padding:",";",""],Ct.mixins.reset("inline-block"),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted}),Object(Ct.pick)({comfortable:"0 8px",compact:"0 6px"}),(function(G){return G.$disabled&&Object(Mt.css)(["",""],Object(Ct.pick)({enterprise:Object(Mt.css)(["color:",";"],Ct.variables.textDisabledColor),prisma:Object(Mt.css)(["color:",";"],Ct.variables.contentColorDisabled)}))})),Nt=kt()(Lt.a).withConfig({displayName:"TextAreaStyles__StyledBox",componentId:"gfy8yp-2"})(["display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:",";}}&:focus-within:not([disabled]){","{","}","{visibility:visible;display:block;}}"],Object(Ct.pick)({enterprise:Ct.variables.spacingHalf,prisma:Ct.variables.spacingSmall}),It,Object(Ct.pick)({enterprise:Object(Mt.css)(["display:none;"])}),jt),Rt=kt.a.span.withConfig({displayName:"TextAreaStyles__StyledTextAreaWrapper",componentId:"gfy8yp-3"})([""," flex-grow:1;min-height:",";position:relative;overflow:hidden;border:1px solid ",";border-radius:",";box-sizing:border-box;background-color:",";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:",";"," "," &:hover:not([disabled]){border-color:",";}&:focus-within:not([disabled]){","}"," "," "," ",""],Ct.mixins.reset("inline-flex"),Ct.variables.inputHeight,Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.gray20},prisma:Ct.variables.interactiveColorBorder}),Ct.variables.borderRadius,Object(Ct.pick)({enterprise:{light:Ct.variables.white,dark:Ct.variables.gray22},prisma:Ct.variables.transparent}),Object(Ct.pick)({enterprise:"0px 0px 0px 10px",prisma:"0px 12px"}),(function(G){return G.$hasEndAdornment&&Object(Mt.css)(["padding-right:0;"])}),(function(G){return G.$hasStartAdornment&&Object(Mt.css)(["padding-left:0;"])}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.gray20},prisma:Ct.variables.interactiveColorBorderHover}),Object(Ct.pick)({enterprise:Object(Mt.css)(["box-shadow:",";color:",";"],Ct.variables.focusShadow,Ct.variables.textColor),prisma:Object(Mt.css)(["border-color:",";color:",";"],Ct.variables.interactiveColorPrimary,Ct.variables.contentColorActive)}),(function(G){return G.$error&&Object(Mt.css)(["&,&:hover:not([disabled]){border-color:",";}&:focus-within:not([disabled]){","}"],Object(Ct.pick)({enterprise:Ct.variables.errorColor,prisma:Ct.variables.accentColorNegative}),Object(Ct.pick)({enterprise:Object(Mt.css)(["box-shadow:",";color:",";"],Ct.variables.focusShadow,Ct.variables.textColor),prisma:Object(Mt.css)(["border-color:",";color:",";"],Ct.variables.interactiveColorPrimary,Ct.variables.contentColorActive)}))}),(function(G){return G.$append&&Object(Mt.css)(["margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;"])}),(function(G){return G.$prepend&&Object(Mt.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"])}),(function(G){return G.disabled&&Object(Mt.css)([""," box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);"],Object(Ct.pick)({enterprise:{light:Object(Mt.css)(["background-color:",";border-color:",";"],Ct.variables.gray96,Ct.variables.gray92),dark:Object(Mt.css)(["background-color:",";border-color:",";"],Ct.variables.gray22,Ct.variables.gray30)},prisma:Object(Mt.css)(["border-color:",";"],Ct.variables.interactiveColorBorderDisabled)}))})),zt=kt.a.textarea.withConfig({displayName:"TextAreaStyles__StyledTextArea",componentId:"gfy8yp-4"})(["",";outline-style:none;border:0;background:transparent;color:",";flex-grow:1;font-family:",";font-size:inherit;line-height:inherit;padding-top:",";padding-bottom:",";padding-right:",";position:relative;resize:none;overflow:auto;white-space:pre-wrap;&::placeholder{color:",";opacity:1;}"," ",""],Ct.mixins.reset("inline-flex"),Object(Ct.pick)({enterprise:Ct.variables.textColor,prisma:Ct.variables.contentColorActive}),Ct.variables.sansFontFamily,Object(Ct.pick)({enterprise:{comfortable:Ct.variables.spacingQuarter,compact:"3px"},prisma:{comfortable:Ct.variables.spacingSmall,compact:"5px"}}),Object(Ct.pick)({enterprise:{comfortable:Ct.variables.spacingQuarter,compact:"3px"},prisma:{comfortable:Ct.variables.spacingSmall,compact:"5px"}}),Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),Ct.variables.contentColorMuted,(function(G){return G.$error&&Object(Mt.css)(["&,&:hover{color:",";}"],Object(Ct.pick)({enterprise:{light:Ct.variables.errorColorD10,dark:Ct.variables.errorColorL20},prisma:Ct.variables.contentColorActive}))}),(function(G){return G.disabled&&Dt})),qt=(kt()(At.a).withConfig({displayName:"TextAreaStyles__StyledVisibilityToggle",componentId:"gfy8yp-5"})(["",""],Et),kt.a.span.withConfig({displayName:"TextAreaStyles__StyledPlaceholder",componentId:"gfy8yp-6"})(["pointer-events:none;color:",";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:",";margin-right:",";",";",";",""],Object(Ct.pick)({enterprise:Ct.variables.textGray,prisma:Ct.variables.contentColorMuted}),Ct.variables.lineHeight,Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),(function(G){var Z=G.$hasStartAdornment,ne=G.$startAdornmentWidth;return Z&&(ne?Object(Mt.css)(["margin-left:","px;"],ne):Object(Mt.css)(["margin-left:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}})))}),(function(G){var Z=G.$hasEndAdornment,ne=G.$endAdornmentWidth;return Z&&(ne?Object(Mt.css)(["max-width:calc( 100% - "," - ","px );"],Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),ne):Object(Mt.css)(["max-width:calc( 100% - "," - "," );"],Object(Ct.pick)({enterprise:"10px",prisma:"14px"}),Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}})))}),(function(G){var Z=G.$hasBothAdornment,ne=G.$endAdornmentWidth,ie=G.$startAdornmentWidth;return Z&&Object(Mt.css)(["max-width:calc(100% - ","px - ","px);"],ie,ne)})),Object(Mt.css)(["display:inline-flex;align-items:center;justify-content:center;height:",";pointer-events:none;"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))),Wt=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledStartAdornmentHolder",componentId:"gfy8yp-7"})([""," ",";"],qt,(function(G){var Z=G.$width;return Z?Object(Mt.css)(["min-width:","px;"],Z):Object(Mt.css)(["min-width:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))})),Bt=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledEndAdornmentHolder",componentId:"gfy8yp-8"})([""," ",";"],qt,(function(G){var Z=G.$width;return Z?Object(Mt.css)(["min-width:","px;"],Z):Object(Mt.css)(["min-width:",";"],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}))})),Ft=kt.a.div.withConfig({displayName:"TextAreaStyles__StyledAdornment",componentId:"gfy8yp-9"})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:",";color:",";",";",";",""],Object(Ct.pick)({enterprise:{comfortable:"30px",compact:"26px"},prisma:{comfortable:"38px",compact:"30px"}}),Object(Ct.pick)({enterprise:{light:Ct.variables.gray60,dark:Ct.variables.white},prisma:Ct.variables.contentColorMuted}),(function(G){return"start"===G.$position?Object(Mt.css)(["top:1px;left:1px;"]):Object(Mt.css)(["top:1px;right:1px;"])}),(function(G){return G.disabled&&Dt}),Object(Ct.pick)({enterprise:Object(Mt.css)(["margin-left:-1px;margin-right:-1px;"])}));var Ht=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}function _defineProperties(G,Z){for(var ne=0;ne=ie){var xe=ne*me+ge+Ce+Se+Me+1;ke=Math.min(xe,ke)}var De=ie*me+ge+Ce+Se+Me+1;if(Z!==(ke=Math.max(De,ke)))return ke}return!1}({height:ne.state.height,rowsMax:ne.props.rowsMax,rowsMin:ne.props.rowsMin,shadow:ne.shadow});!1!==G&&ne.setState({height:G})})),_defineProperty(_assertThisInitialized(ne),"renderEndAdornment",(function(){var G,Z=ne.props,ie=Z.appearance,ce=Z.endAdornment,fe=Z.disabled,me=Z.canClear,ge=Z.splunkTheme,Ce=ge.isPrisma,Se=ge.isEnterprise,Me=ge.isCompact?"20px":"24px",ke={ref:function ref(G){ne.endAdornment=G},disabled:fe,$position:"end"};if(ce)return se.a.createElement(Ft,ke,ce);var xe=null===(G=ne.context.labelAttrs)||void 0===G?void 0:G.text,De=xe?Object(St._)("Clear ".concat(xe," text field")):Object(St._)("Clear text field");return Ce||"search"!==ie?ne.getDisplayValue()&&(Ce&&"search"===ie||me)?se.a.createElement(Ft,ke,!fe&&se.a.createElement(jt,{"data-test":"clear",appearance:"secondary",onClick:ne.handleClear,icon:se.a.createElement(st.a,{"aria-label":De,inline:!1,width:Me,height:Me})})):void 0:se.a.createElement(Ft,ke,se.a.createElement(jt,{appearance:"pill","data-test":"clear",inline:!1,icon:se.a.createElement(ut.a,{size:1,screenReaderText:De}),onClick:ne.handleClear}),se.a.createElement(It,{$disabled:fe},Se?se.a.createElement(ht.a,{hideDefaultTooltip:!0,inline:!1,screenReaderText:null,size:"16px"}):se.a.createElement(vt.a,{height:Me,width:Me})))})),_defineProperty(_assertThisInitialized(ne),"renderStartAdornment",(function(){var G=ne.props,Z=G.appearance,ie=G.startAdornment,ce=G.splunkTheme,fe=G.disabled,me=ce.isPrisma,ge=ce.isCompact?"20px":"24px",Ce={ref:function ref(G){ne.startAdornment=G},disabled:fe,$position:"start"};return ie?se.a.createElement(Ft,Ce,ie):me&&"search"===Z?se.a.createElement(Ft,Ce,se.a.createElement(It,{$disabled:fe},se.a.createElement(vt.a,{"aria-label":"Search",height:ge,width:ge}))):void 0})),_defineProperty(_assertThisInitialized(ne),"getDisplayValue",(function(){return ne.isControlled()?ne.props.value:ne.state.value})),ne.controlledExternally=Se()(G,"value"),ne.state={value:G.defaultValue||""},TextArea.validateRows(G),ne.handleResize=it()(ne.handleResize,100),ne}return _createClass(TextArea,null,[{key:"validateRows",value:function validateRows(G){G.rowsMin,G.rowsMax}}]),_createClass(TextArea,[{key:"componentDidMount",value:function componentDidMount(){ge()(this.syncHeightWithShadow),this.getAdornmentWidth()}},{key:"componentDidUpdate",value:function componentDidUpdate(G){this.syncHeightWithShadow(),TextArea.validateRows(this.props),this.getAdornmentWidth()}},{key:"isControlled",value:function isControlled(){return this.controlledExternally}},{key:"blur",value:function blur(){var G;null===(G=this.input)||void 0===G||G.blur()}},{key:"focus",value:function focus(){var G;null===(G=this.input)||void 0===G||G.focus()}},{key:"select",value:function select(){var G;null===(G=this.input)||void 0===G||G.select()}},{key:"render",value:function render(){var G=this,Z=this.props,ne=Z.append,ie=Z.autoCapitalize,ce=Z.autoComplete,fe=Z.autoCorrect,me=Z.autoFocus,ge=Z.children,Ce=Z.className,Se=Z.classNamePrivate,Me=Z.disabled,xe=Z.describedBy,Ie=Z.elementRef,ze=Z.error,Je=Z.inline,it=Z.inputClassName,ot=Z.inputId,at=Z.labelledBy,st=Z.maxLength,ct=Z.name,ut=Z.placeholder,dt=Z.prepend,ht=Z.required,ft=Z.spellCheck,yt=Z.tabIndex,vt=Z.title,Ct=_objectWithoutProperties(Z,["append","autoCapitalize","autoComplete","autoCorrect","autoFocus","children","className","classNamePrivate","disabled","describedBy","elementRef","error","inline","inputClassName","inputId","labelledBy","maxLength","name","placeholder","prepend","required","spellCheck","tabIndex","title"]),St=_objectSpread(_objectSpread({},$e()(Ct,(function(G,Z){return"role"===Z||0===Z.indexOf("aria-")}))),{},{"aria-describedby":xe,"aria-labelledby":at,"aria-invalid":ze||void 0,"aria-multiline":!0}),Mt=Re()(Ct,["inputRef","onBlur","onChange","onFocus","onKeyDown","onSelect","onInputClick","rowsMax","rowsMin"].concat(_toConsumableArray(ke()(St)))),kt=this.getDisplayValue(),xt={className:Object(wt.toClassName)(Ce,it),$append:ne||void 0,$error:ze,$prepend:dt||void 0},Lt=_objectSpread(_objectSpread({},St),{},{"data-test":"textbox",autoCapitalize:ie,autoComplete:ce,autoCorrect:fe,autoFocus:me,id:ot,maxLength:st,placeholder:ut,name:ct,onChange:this.handleInputChange,onKeyDown:this.handleInputKeyDown,onSelect:this.handleInputSelect,onClick:this.handleInputClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,ref:this.handleInputMount,role:"textbox",required:ht,spellCheck:ft,style:{height:this.state.height},title:vt,tabIndex:yt,value:kt,$error:ze}),Tt=!!this.renderEndAdornment(),At=!!this.renderStartAdornment();return se.a.createElement(Nt,_extends({tabIndex:-1,className:Object(wt.toClassName)(Ce,Se),"data-test":"text","data-test-value":kt,elementRef:Ie,flex:!0,inline:Je},Mt),this.renderStartAdornment(),se.a.createElement(Rt,_extends({$hasEndAdornment:Tt,$hasStartAdornment:At,disabled:Me},xt),At&&se.a.createElement(Wt,{$width:this.state.startAdornmentWidth}),se.a.createElement(zt,{"aria-hidden":"true",onChange:De.a,onClick:this.handleInputClick,style:{width:"100%",position:"absolute",overflow:"hidden",left:-1e4,top:-1e4},tabIndex:-1,ref:function ref(Z){G.shadow=Z},value:kt}),Me?se.a.createElement(zt,_extends({as:"textarea",className:Object(wt.toClassName)(Ce,Se),"data-multiline":"true","data-test":"text",disabled:!0,readOnly:!0,style:{height:this.state.height},value:kt,placeholder:ut,ref:function ref(Z){G.shadow=Z}},St)):se.a.createElement(zt,_extends({as:"textarea"},Lt,{onClick:this.handleInputClick})),se.a.createElement(_t.a,{target:window,eventType:"resize",listener:this.handleResize}),ge,Tt&&se.a.createElement(Bt,{$width:this.state.endAdornmentWidth})),this.renderEndAdornment())}}]),TextArea}(ie.Component);_defineProperty(Vt,"propTypes",$t),_defineProperty(Vt,"defaultProps",{appearance:"default",append:!1,autoFocus:!1,canClear:!1,disabled:!1,error:!1,inline:!1,placeholder:"",prepend:!1,rowsMax:8,rowsMin:2,tabIndex:0}),_defineProperty(Vt,"componentType","TextArea"),_defineProperty(Vt,"contextType",ot.ControlGroupContext);var Yt=Object(Ct.withSplunkTheme)(Vt);Yt.propTypes=Vt.propTypes,Yt.componentType=Vt.componentType;var Ut=Yt},26:function(G,Z){G.exports=ne(2045)},27:function(G,Z){G.exports=ne(1320)},3:function(G,Z){G.exports=ne(3)},33:function(G,Z){G.exports=ne(212)},4:function(G,Z){G.exports=ne(768)},41:function(G,Z){G.exports=ne(2046)},49:function(G,Z){G.exports=ne(2913)},5:function(G,Z){G.exports=ne(41)},54:function(G,Z){G.exports=ne(2914)},58:function(G,Z){G.exports=ne(153)},6:function(G,Z){G.exports=ne(1165)},63:function(G,Z){G.exports=ne(425)},9:function(G,Z){G.exports=ne(62)}})},7792:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.stringToKeywords=stringToKeywords,Z.testPhrase=testPhrase,Z.keywordLocationsAll=keywordLocationsAll,Z.keywordLocations=function keywordLocations(G,Z){var ne=keywordLocationsAll(G,Z);if(!ne||ne.length!==Z.length)return!1;var ie=ne[0],se=ie.start,ce=ie.end,fe=[];function pushLocation(){fe.push({start:se,end:ce})}return ne.slice(1).forEach((function(G){G.start>ce?(pushLocation(),se=G.start,ce=G.end):G.end>ce&&(ce=G.end)})),pushLocation(),fe},Z.filterByKeywords=function filterByKeywords(G,Z){var ne=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(G){return G},ie=stringToKeywords(Z);return G.filter((function(G){return testPhrase(ne(G),ie)}))};var ie=_interopRequireDefault(ne(65)),se=_interopRequireDefault(ne(78));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}function stringToKeywords(G){return(0,se.default)(G)?(G.match(/(?:[^\s"]+|"[^"]*")+/g)||[]).map((function(G){return G.replace(/^"(.*)"$/,"$1").toLowerCase()})):[]}function testPhrase(G,Z){if(!(0,se.default)(G))return!1;var ne=G.toLowerCase();return Z.every((function(G){return(0,ie.default)(ne,G)}))}function keywordLocationsAll(G,Z){if(!(0,se.default)(G)||!Z||!Z.length)return!1;var ne=G.toLowerCase();return Z.reduce((function(G,Z){var ie=ne.indexOf(Z);return ie>=0&&G.push({keyword:Z,start:ie,end:ie+Z.length}),G}),[]).sort((function(G,Z){return G.start!==Z.start?G.start>Z.start?1:-1:G.end>Z.end?1:-1}))}},7793:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=230)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},13:function(G,Z){G.exports=ne(4232)},153:function(G,Z){G.exports=ne(7794)},154:function(G,Z){G.exports=ne(7795)},2:function(G,Z){G.exports=ne(0)},230:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return St}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(9),ge=ne.n(me),Ce=ne(40),Se=ne.n(Ce),Me=ne(5),ke=ne.n(Me),xe=ne(4),De=ne(153),Ie=ne(13),Re=ne.n(Ie),ze=ne(3),$e=ne.n(ze),Je=ne(154),it=ne.n(Je),ot=ne(0),at=$e.a.div.withConfig({displayName:"ResultsMenuStyles__Styled",componentId:"avbhl8-0"})(["",";flex-direction:column;max-height:calc(100vh - 20px);",""],ot.mixins.reset("flex"),Object(ot.pick)({prisma:Object(ze.css)(["border-radius:",";background-color:",";"],ot.variables.borderRadius,ot.variables.backgroundColorPopup)})),st=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledFooter",componentId:"avbhl8-1"})(["padding:",";color:",";",""],Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray}),(function(G){return"above"===G.$placement?Object(ot.pick)({prisma:Object(ze.css)(["border-bottom:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-bottom:",";"],ot.variables.border)}):Object(ot.pick)({prisma:Object(ze.css)(["border-top:1px solid ",";"],ot.variables.neutral200),enterprise:Object(ze.css)(["border-top:",";"],ot.variables.border)})})),ct=$e.a.li.withConfig({displayName:"ResultsMenuStyles__StyledLoading",componentId:"avbhl8-2"})(["",";padding:",";gap:",";"],ot.mixins.reset("flex"),Object(ot.pick)({prisma:{comfortable:"10px 16px",compact:"6px 16px"},enterprise:"6px 10px"}),ot.variables.spacingXSmall),ut=$e()(it.a).withConfig({displayName:"ResultsMenuStyles__StyledWait",componentId:"avbhl8-3"})(["flex:0 0 auto;"]),dt=$e.a.div.withConfig({displayName:"ResultsMenuStyles__StyledLoadingMessage",componentId:"avbhl8-4"})(["flex:1 0 0;color:",";"],Object(ot.pick)({prisma:ot.variables.contentColorMuted,enterprise:ot.variables.textGray})),ht=ne(10);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=se&&ne.handleScrollBottom(G)}null===(Z=(ie=ne.props).onScroll)||void 0===Z||Z.call(ie,G)})),_defineProperty(_assertThisInitialized(ne),"handleWheelMenu",(function(G){G.stopPropagation(),document.documentElement.scrollTop=ne.state.windowTop})),_defineProperty(_assertThisInitialized(ne),"handleScrollBottomOnFullMenu",(function(){var G=ie.Children.count(ne.props.children),Z=ne.state,se=Z.childrenCount,ce=Z.menuMaxHeight;ne.checkFullHeight()&&ne.handleScrollBottom(null),ce&&null!=G&&G!==se&&ne.setState({numberOfItemsLoaded:G-(null!=se?se:0),scrollBottomTriggered:!1}),G!==se&&ne.setState({childrenCount:G})})),ne.state={containerEl:null,menuEl:null,menuMaxHeight:void 0,numberOfItemsLoaded:0,scrollBottomTriggered:!1,windowTop:0},ne.scrollBottomOffset=400,ne.itemMinHeight=28,ne}return function _createClass(G,Z,ne){return Z&&_defineProperties(G.prototype,Z),ne&&_defineProperties(G,ne),G}(ResultsMenu,[{key:"componentDidUpdate",value:function componentDidUpdate(){var G=this.state,Z=G.containerEl,ne=G.menuEl,ie=G.menuMaxHeight;if(De.isIE11&&Z&&ne){if(this.props.maxHeight){var se=Z.scrollHeight-ne.clientHeight,ce=this.props.maxHeight-se;(void 0===ie||Math.abs(ie-ce)>1)&&this.setState({menuMaxHeight:ce})}this.props&&this.props.onScrollBottom&&this.props.children&&this.handleScrollBottomOnFullMenu()}}},{key:"handleScrollBottom",value:function handleScrollBottom(G){var Z,ne;this.state.scrollBottomTriggered||(this.setState({scrollBottomTriggered:!0}),null===(Z=(ne=this.props).onScrollBottom)||void 0===Z||Z.call(ne,G))}},{key:"checkFullHeight",value:function checkFullHeight(){var G=this.state.menuEl;return G&&G.scrollHeight===G.offsetHeight}},{key:"renderFooterMessage",value:function renderFooterMessage(){return this.props.footerMessage&&!!ie.Children.toArray(this.props.children).length&&se.a.createElement(st,{$placement:this.props.placement,"data-test":"footer-message",key:"footer"},this.props.footerMessage)}},{key:"render",value:function render(){var G=this.props,Z=G.animateLoading,ne=G.children,ce=G.controlledExternally,fe=G.childrenStart,me=G.isLoading,Ce=G.loadingMessage,Se=G.noOptionsMessage,Me=G.onScrollBottom,xe=G.placement,De=G.style,ze=G.tabIndex,$e=ke()(this.props,ge()(ResultsMenu.propTypes)),Je=ie.Children.toArray(ne).filter(ie.isValidElement).some((function(G){var Z=G.type;return!(Z===Ie.Divider&&Z.filterFirst||(Z===Ie.Divider||Z===Ie.Heading)&&(Z.filterLast||Z.filterConsecutive))})),it=this.checkFullHeight(),ot=vt(this.state.menuMaxHeight),st=wt(this.state.scrollBottomTriggered&&this.state.numberOfItemsLoaded*this.itemMinHeight||0);return se.a.createElement(at,_extends({key:"wrapper",style:De,ref:this.handleMount,onWheel:Me?this.handleWheelMenu:void 0,onMouseEnter:Me?this.handleMouseEnter:void 0,onMouseLeave:Me?this.handleMouseLeave:void 0},ke()($e,"tabIndex")),"above"!==xe&&fe,"above"===xe&&this.renderFooterMessage(),se.a.createElement(Ie.MenuContext.Provider,{value:yt},se.a.createElement(Re.a,{key:"menu",style:ot,controlledExternally:ce,elementRef:this.handleMenuMount,onScroll:this.handleScroll,stopScrollPropagation:!0,tabIndex:ze},!Je&&Se&&!me&&se.a.createElement(Re.a.Item,{"data-test":"no-results-message",disabled:!0},Se),ne,Me&&!it&&se.a.createElement("div",{"data-test":"results-menu-bottom-spacer",style:st}),me&&se.a.createElement(ct,null,Z&&se.a.createElement(ut,null),se.a.createElement(dt,null,Ce)))),"above"!==xe&&this.renderFooterMessage(),"above"===xe&&fe)}}]),ResultsMenu}(ie.Component);_defineProperty(Ct,"propTypes",ft),_defineProperty(Ct,"defaultProps",_t);var St=Ct},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(768)},40:function(G,Z){G.exports=ne(85)},5:function(G,Z){G.exports=ne(41)},9:function(G,Z){G.exports=ne(62)}})},7794:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isIE11=function isIE11(){return!!navigator.userAgent.match(/Trident\/7\./)}},7795:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=238)}({0:function(G,Z){G.exports=ne(329)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},238:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return at}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(51),ge=ne(0),Ce=ne(4),Se=ne(3),Me=ne.n(Se),ke=Me.a.div.withConfig({displayName:"WaitSpinnerStyles__Styled",componentId:"sc-1nu971z-0"})(["",";align-items:center;"],ge.mixins.reset("inline-flex")),xe=Object(Se.keyframes)(["100%{transform:rotate(360deg);}"]),De=Object(Se.keyframes)(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]),Ie=Me.a.svg.withConfig({displayName:"WaitSpinnerStyles__StyledSvg",componentId:"sc-1nu971z-1"})([""," ",""],Object(ge.pickVariant)("$size",{small:{enterprise:Object(Se.css)(["width:14px;height:14px;"]),prisma:Object(Se.css)(["width:16px;height:16px;"])},medium:{enterprise:Object(Se.css)(["width:19px;height:19px;"]),prisma:Object(Se.css)(["width:24px;height:24px;"])},large:{enterprise:Object(Se.css)(["width:19px;height:19px;"]),prisma:Object(Se.css)(["width:40px;height:40px;"])}}),(function(G){return G.$animated&&Object(ge.pick)({enterprise:Object(Se.css)(["transform-origin:center;animation:"," 1.2s steps(64) infinite;"],xe),prisma:Object(Se.css)(["animation:"," "," infinite linear,"," 500ms cubic-bezier(0.01,0,0,1);"],xe,"2.07s",De)})})),Re=Object(Se.keyframes)(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),ze=Object(Se.keyframes)(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),$e=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaBasePath",componentId:"sc-1nu971z-2"})(["stroke:",";stroke-width:2;fill:transparent;"," stroke-dasharray:110 10;stroke-dashoffset:-5.5;"],ge.variables.contentColorDisabled,(function(G){return G.$animated&&Object(Se.css)(["animation:"," "," infinite;animation-fill-mode:backwards;"],Re,"2.07s")})),Je=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaFillPath",componentId:"sc-1nu971z-3"})(["fill:transparent;stroke-width:2;stroke:",";stroke-dasharray:7 113;stroke-dashoffset:3;",""],Object(ge.pickVariant)("$size",{small:ge.variables.contentColorDefault,medium:ge.variables.contentColorDefault,large:ge.variables.interactiveColorPrimary}),(function(G){return G.$animated&&Object(Se.css)(["animation:"," "," infinite;"],ze,"2.07s")})),it=Me.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledEnterpriseCircle",componentId:"sc-1nu971z-4"})(["fill:transparent;stroke:",";stroke-width:2px;",""],Object(ge.pick)({enterprise:{dark:ge.variables.white,light:ge.variables.gray60},prisma:ge.variables.contentColorMuted}),Object(ge.pick)({enterprise:Object(Se.css)(["stroke-dasharray:34 19;"])}));function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ot={elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),screenReaderText:fe.a.string,size:fe.a.oneOf(["small","medium","large"])};function WaitSpinner(G){var Z=G.elementRef,ne=G.screenReaderText,ie=void 0===ne?Object(Ce._)("Waiting"):ne,ce=G.size,fe=void 0===ce?"small":ce,Se=_objectWithoutProperties(G,["elementRef","screenReaderText","size"]),Me="on"===Object(me.useAnimationToggle)(),xe=Object(ge.useSplunkTheme)().isPrisma,De=xe?"0 0 40 40":"0 0 19 19";return se.a.createElement(ke,_extends({"data-test":"wait-spinner"},Se),se.a.createElement(Ie,{viewBox:De,version:"1.1",xmlns:"http://www.w3.org/2000/svg",ref:Z,$animated:Me,$size:fe},ie&&se.a.createElement("title",null,ie),se.a.createElement("g",null,xe?se.a.createElement(se.a.Fragment,null,se.a.createElement($e,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe}),se.a.createElement(Je,{r:"19",cx:"20",cy:"20",$animated:Me,$size:fe})):se.a.createElement(it,{cx:"9.5",cy:"9.5",r:"8.5"}))))}WaitSpinner.propTypes=ot;var at=WaitSpinner},3:function(G,Z){G.exports=ne(3)},4:function(G,Z){G.exports=ne(768)},51:function(G,Z){G.exports=ne(2909)}})},7796:function(G,Z,ne){"use strict";var ie,se=Object.create,ce=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyNames,ge=Object.getOwnPropertySymbols,Ce=Object.getPrototypeOf,Se=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,__defNormalProp=(G,Z,ne)=>Z in G?ce(G,Z,{enumerable:!0,configurable:!0,writable:!0,value:ne}):G[Z]=ne,__spreadValues=(G,Z)=>{for(var ne in Z||(Z={}))Se.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);if(ge)for(var ne of ge(Z))Me.call(Z,ne)&&__defNormalProp(G,ne,Z[ne]);return G},__export=(G,Z)=>{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of me(Z))Se.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=fe(Z,se))||ie.enumerable});return G},__reExport=(G,Z,ne)=>(__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")),__toESM=(G,Z,ne)=>(ne=null!=G?se(Ce(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)),ke={};__export(ke,{NOT_REGISTERED_WARNING:()=>Je,PERFORMANCE_NOT_REGISTERED_WARNING:()=>ot,SWACollector:()=>it,SWAPerformanceCollector:()=>at}),G.exports=(ie=ke,__copyProps(ce({},"__esModule",{value:!0}),ie));var xe={};__export(xe,{default:()=>Ie});var De=__toESM(ne(138));__reExport(xe,ne(138));var Ie="default"in De?De.default:De,Re={};__export(Re,{default:()=>$e});var ze=__toESM(ne(24));__reExport(Re,ne(24));var $e="default"in ze?ze.default:ze,Je="SWACollector was initialized, but SWA does not appear to be configured on the page.",isRegistered=()=>"function"==typeof(0,Re.get)(globalThis,"_splunk_metrics_events.push"),it=class{constructor(){isRegistered()||xe.console.warn(Je)}sendEvent(G){if(!isRegistered())throw new Error(Je);const{pageAction:Z=""}=G.data;window._splunk_metrics_events&&!(G=>"performance"===G.substring(0,G.indexOf(".")))(Z)&&window._splunk_metrics_events.push(__spreadValues({type:"udf.telemetry"},G))}},ot="SWAPerformanceCollector was initialized, but SWA does not appear to be configured on the page.",isRegistered2=()=>"function"==typeof(0,Re.get)(globalThis,"_splunk_metrics_events.push"),at=class{constructor(){isRegistered2()||xe.console.warn(ot)}sendEvent(G){if(!isRegistered2())throw new Error(ot);const{pageAction:Z=""}=G.data;window._splunk_metrics_events&&"performance.measure"===Z&&window._splunk_metrics_events.push(__spreadValues({type:"udf.telemetry"},G))}}},7797:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(11)),ce=ie(ne(141)),fe=ie(ne(324)),me=ie(ne(17)),ge=ie(ne(18)),Ce=ie(ne(21)),Se=ie(ne(22)),Me=ie(ne(20)),ke=ne(125),xe=ne(301),De=ne(327),Ie=ne(4240),Re=["_key"];function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z"metaData.".concat(G))];return(yield(0,Ie.getItems)({collectionName:this.collectionName,offset:Z,count:ne,fields:se})).map(G=>{var{_key:Z}=G;return _objectSpread(_objectSpread({},(0,ce.default)(G,Re)),{},{id:Z})})})),function listIds(G){return se.apply(this,arguments)})},{key:"upload",value:(ie=(0,fe.default)((function*(G,Z){var ne={data:G,name:Z.name,type:this.base64MimeType(G),acl:{can_change_perms:!0,can_share_app:!0,can_share_global:!0,can_share_user:!0,can_write:!0,modifiable:!0,owner:ke.username,perms:{read:["*"],write:["*"]},sharing:De.PERMISSIONS.USER}},{_key:ie}=yield(0,Ie.createItem)({collectionName:this.collectionName,data:ne});return ie})),function upload(G,Z){return ie.apply(this,arguments)})},{key:"getById",value:(ne=(0,fe.default)((function*(G){var Z=this.cache[G];if(Z)return _objectSpread({id:G},Z);var ne=yield(0,Ie.getItem)({collectionName:this.collectionName,key:G}),ie=ne.data.startsWith("data:")?ne.data:"data:".concat(ne.type,";base64,").concat(ne.data);return this.cache[G]={dataURI:ie,metaData:{name:ne.name}},_objectSpread({id:G},this.cache[G])})),function getById(G){return ne.apply(this,arguments)})},{key:"deleteById",value:(Z=(0,fe.default)((function*(G){return(0,Ie.deleteItem)({collectionName:this.collectionName,key:G})})),function deleteById(G){return Z.apply(this,arguments)})},{key:"base64MimeType",value:function base64MimeType(G){var Z=null;if("string"!=typeof G)return Z;var ne=G.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return ne&&ne.length&&(Z=ne[1]),Z}}]),KvStoreImageProvider}(xe.Provider);Z.default=ze,G.exports=Z.default},7798:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(141)),ce=ie(ne(11)),fe=ie(ne(324)),me=ie(ne(17)),ge=ie(ne(18)),Ce=ie(ne(21)),Se=ie(ne(22)),Me=ie(ne(20)),ke=ne(301),xe=ne(4240),De=["svg_path","default_height","default_width"];function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{var Z,{_key:ne,title:ce,metaData:fe}=G;if(ce)Z=ce;else{if(!fe||!fe.name)return;Z=fe.name}var ge={id:ne},Ce={name:Z},Se=null!==se&&Object.keys(Ce).some(G=>Ce[G].toLowerCase().indexOf(se.trim().toLowerCase())>-1);(null===se||Se)&&(ie&&ie.length&&(ge.metaData={},ie.forEach(G=>{null!==Ce[G]&&(ge.metaData[G]=Ce[G])})),me.push(ge))}),this.cachedCollection[ce]=me,me})),function listIds(G){return ce.apply(this,arguments)})},{key:"upload",value:(ie=(0,fe.default)((function*(G,Z){var{_key:ne}=yield(0,xe.createItem)({collectionName:this.collectionName,data:{dataURI:G,title:Z.name,category:"General"}});return this.invalidateCache(),ne})),function upload(G,Z){return ie.apply(this,arguments)})},{key:"getById",value:(ne=(0,fe.default)((function*(G){var Z=this.cache[G];if(Z)return _objectSpread({id:G},Z);var ne=yield(0,xe.getItem)({collectionName:this.collectionName,key:G}),{svg_path:ie,default_height:ce,default_width:fe}=ne,me=(0,se.default)(ne,De),ge=''),Ce="data:image/svg+xml;utf8,".concat(ge);return this.cache[G]=_objectSpread({dataURI:Ce},me),_objectSpread({id:G},this.cache[G])})),function getById(G){return ne.apply(this,arguments)})},{key:"deleteById",value:(Z=(0,fe.default)((function*(G){return this.invalidateCache(),(0,xe.deleteItem)({collectionName:this.collectionName,key:G})})),function deleteById(G){return Z.apply(this,arguments)})}]),KvStoreIconProvider}(ke.Provider);Z.default=Ie,G.exports=Z.default},7799:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(11)),ce=ie(ne(101)),fe=ie(ne(1262)),me=ie(ne(7800)),ge=ie(ne(7801)),Ce=ie(ne(7802));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z{for(var ne in Z)ce(G,ne,{get:Z[ne],enumerable:!0})},__copyProps=(G,Z,ne,ie)=>{if(Z&&"object"==typeof Z||"function"==typeof Z)for(let se of me(Z))Ce.call(G,se)||se===ne||ce(G,se,{get:()=>Z[se],enumerable:!(ie=fe(Z,se))||ie.enumerable});return G},Se={};__export(Se,{default:()=>De}),G.exports=(ie=Se,__copyProps(ce({},"__esModule",{value:!0}),ie));var Me={};__export(Me,{default:()=>xe});var ke=((G,Z,ne)=>(ne=null!=G?se(ge(G)):{},__copyProps(!Z&&G&&G.__esModule?ne:ce(ne,"default",{value:G,enumerable:!0}),G)))(ne(1550));((G,Z,ne)=>{__copyProps(G,Z,"default"),ne&&__copyProps(ne,Z,"default")})(Me,ne(1550));var xe="default"in ke?ke.default:ke,De={eventHandlers:{"drilldown.customUrl":Me.CustomUrlDrilldown,"drilldown.setToken":Me.SetToken}}},7801:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(324)),ce=ie(ne(17)),fe=ie(ne(18)),me=ie(ne(1247)),ge=ie(ne(21)),Ce=ie(ne(22)),Se=ie(ne(20)),Me=ie(ne(45)),ke=ie(ne(2579)),xe=ne(5),De=ne(106);function _createSuper(G){var Z=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(G){return!1}}();return function _createSuperInternal(){var ne,ie=(0,Se.default)(G);if(Z){var se=(0,Se.default)(this).constructor;ne=Reflect.construct(ie,arguments,se)}else ne=ie.apply(this,arguments);return(0,Ce.default)(this,ne)}}var Ie=function(G){(0,ge.default)(ITSISearch,G);var Z,ne,ie=_createSuper(ITSISearch);function ITSISearch(){var G,Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},fe=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ce.default)(this,ITSISearch),(G=ie.call(this,Z,ne,se,fe)).meta=se,G.isKPI=G.meta&&!(0,Me.default)(G.meta.kpiID)&&!(0,Me.default)(G.meta.serviceID),G.skipAggregation=G.meta&&!0===G.meta.skipAggregation,G.context.app=(0,De.getShortAppName)(!0),G.context.keepAlive=!0,G}return(0,fe.default)(ITSISearch,[{key:"fetchService",value:(ne=(0,se.default)((function*(G){return this.context.dataProviderInstance.getService(G)})),function fetchService(G){return ne.apply(this,arguments)})},{key:"checkPermission",value:function checkPermission(){if(!this.isKPI)return!0;var G=this.meta.serviceID;return this.context.dataProviderInstance.checkPermission(G)}},{key:"shouldAggregate",value:function shouldAggregate(){return this.isKPI&&this.isAggregatorEnabled()&&!this.skipAggregation}},{key:"setup",value:(Z=(0,se.default)((function*(){return this.shouldAggregate()?(this.checkPermission()||(this.customError=(0,xe.gettext)("Service unavailable.")),null):yield(0,me.default)((0,Se.default)(ITSISearch.prototype),"setup",this).call(this)})),function setup(){return Z.apply(this,arguments)})},{key:"request",value:function request(G){return this.customError?G=>(G.error({level:"error",message:this.customError}),()=>{}):this.shouldAggregate()?this.context.searchAggregatorInstance.getSearchObservable(this.meta.kpiID):(0,me.default)((0,Se.default)(ITSISearch.prototype),"request",this).call(this,G)}},{key:"isAggregatorEnabled",value:function isAggregatorEnabled(){return this.context.searchAggregatorInstance.isEnabled()}}]),ITSISearch}(ke.default);Z.default=Ie,G.exports=Z.default},7802:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var ie=ne(1550),se={eventHandlers:{"drilldown.glassTableObject":ie.CustomUrlDrilldown,"drilldown.deepDiveObject":ie.CustomUrlDrilldown,"drilldown.dashboardObject":ie.CustomUrlDrilldown,"drilldown.eventManagementObject":ie.CustomUrlDrilldown,"drilldown.homeViewObject":ie.CustomUrlDrilldown}};Z.default=se,G.exports=Z.default},7803:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se,ce,fe,me,ge=ie(ne(324)),Ce=ie(ne(17)),Se=ie(ne(18)),Me=ie(ne(30)),ke=ie(ne(21)),xe=ie(ne(22)),De=ie(ne(20)),Ie=ie(ne(11)),Re=ie(ne(9)),ze=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),$e=ie(ne(2)),Je=ie(ne(97)),it=ie(ne(47)),ot=ie(ne(198)),at=ie(ne(3)),st=ne(16),ct=ne(5),ut=ne(40),dt=ie(ne(725)),ht=ie(ne(43)),ft=ie(ne(326)),_t=ie(ne(33)),yt=ie(ne(89)),vt=ie(ne(86)),wt=ne(100),Ct=ne(387),St=ne(119),Mt=ie(ne(2885)),kt=ie(ne(7804)),xt=ie(ne(638)),Lt=ne(7805),Tt=ne(7806),At=ne(4241),Dt=ie(ne(7807)),Et=ie(ne(7808));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function _createSuper(G){var Z=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(G){return!1}}();return function _createSuperInternal(){var ne,ie=(0,De.default)(G);if(Z){var se=(0,De.default)(this).constructor;ne=Reflect.construct(ie,arguments,se)}else ne=ie.apply(this,arguments);return(0,xe.default)(this,ne)}}ne(29);var jt=at.default.div(se||(se=(0,Re.default)(["\n\tbackground-color: ",";\n\tcolor: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 359px;\n\ttop: 0px;\n\tbottom: 0px;\n\tleft: 0px;\n\tright: 0px;\n\toverflow: scroll;\n"])),ut.variables.white,ut.variables.contentColorDefault),It=at.default.div(ce||(ce=(0,Re.default)(["\n\tflex-basis: auto;\n"]))),Nt=at.default.div(fe||(fe=(0,Re.default)(["\n\ttext-align: center;\n\tmargin: 10px 0px;\n"]))),Rt=at.default.div(me||(me=(0,Re.default)(["\n\tcolor: ",";\n\t&:hover {\n\t\tcolor: ",";\n\t\ttext-decoration: underline;\n\t}\n"])),ut.variables.linkColor,ut.variables.linkColorHover),zt=["splunk.pie","splunk.scatter","splunk.bubble","splunk.punchcard","splunk.map"],qt=function(G){(0,ke.default)(DataPanel,G);var Z,ne,ie=_createSuper(DataPanel);function DataPanel(G){var Z;return(0,Ce.default)(this,DataPanel),Z=ie.call(this,G),(0,Ie.default)((0,Me.default)(Z),"fetchServicesDebounced",(0,Je.default)(G=>{Z.fetchServices(G)},wt.DEFAULT_DEBOUNCE_DELAY)),(0,Ie.default)((0,Me.default)(Z),"handleRequestClose",G=>{var{panelId:ne}=G,{open:ie}=Z.state;Z.setState({open:(0,ot.default)(ie,ne)})}),(0,Ie.default)((0,Me.default)(Z),"handleRequestOpen",G=>{var{panelId:ne}=G,{open:ie}=Z.state;Z.setState({open:ie.concat(ne)})}),(0,Ie.default)((0,Me.default)(Z),"handleAdHocClick",G=>{var{dashboardApi:ne,selectedItem:ie,dataSourceBindingType:se}=Z.props;if(ie&&se){var{id:ce}=ie;ne.connectDataSource(ce,se,G)}else ne.createVisualization((0,Lt.defaultAdHocViz)(G))}),(0,Ie.default)((0,Me.default)(Z),"handleTextFilterChange",(G,ne)=>{var{value:ie}=ne;Z.setState({filterString:ie,isLoading:!0}),Z.fetchServicesDebounced({filterString:ie})}),(0,Ie.default)((0,Me.default)(Z),"handleEditClick",G=>()=>{Z.props.editDataSource(G)}),(0,Ie.default)((0,Me.default)(Z),"handleDeleteClick",G=>()=>{Z.props.deleteDataSource(G),Z.handleModalRequestClose()}),(0,Ie.default)((0,Me.default)(Z),"handleKPIClick",function(){var G=(0,ge.default)((function*(G,ne){var{dashboardApi:ie,selectedItem:se,dataSourceBindingType:ce,visualizations:fe}=Z.props,me=null;try{if(!(me=yield Z.fetchService(G)))return}catch(G){console.error((0,ct.gettext)("Failed to fetch service information"))}var ge=(0,At.findKPI)(me,ne),Ce=(0,Tt.generateKPIDataSource)(me,ge);if(se&&ce){var{id:Se,type:Me}=se,ke=null;(ke="line"===Me?(0,Tt.augmentLineWithKPIConfig)(fe[Se]):(0,Tt.augmentVisWithKPIEncoding)(fe[Se],ge))&&ie.editVisualization(Se,ke),ie.connectNewDataSource(Se,ce,Ce)}else ie.createVisualization((0,Tt.defaultKPIViz)(ge,Ce))}));return function(Z,ne){return G.apply(this,arguments)}}()),(0,Ie.default)((0,Me.default)(Z),"handleErrorModalClose",()=>{Z.setState({error:""})}),(0,Ie.default)((0,Me.default)(Z),"handleModalRequestOpen",(G,ne)=>()=>{var{visualizations:ie}=Z.props;Z.setState({modalOpen:!0,modalDsId:G,modalDataSourceName:ne,modalNumVizsInUse:(0,At.countVisualizationsInUse)(G,ie)})}),(0,Ie.default)((0,Me.default)(Z),"handleModalRequestClose",()=>{Z.setState({modalOpen:!1})}),Z.state={error:"",filterString:"",open:[1,2],services:[],isLoading:!0,modalOpen:!1,modalDsId:null,modalDataSourceName:null,modalNumVizsInUse:0},Z.dataProviderInstance=Mt.default.getInstance(),Z}return(0,Se.default)(DataPanel,[{key:"componentDidMount",value:function componentDidMount(){this.fetchServices({count:Ct.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED,filterString:"",offset:0})}},{key:"fetchService",value:(ne=(0,ge.default)((function*(G){return yield this.dataProviderInstance.getService(G)})),function fetchService(G){return ne.apply(this,arguments)})},{key:"fetchServices",value:(Z=(0,ge.default)((function*(G){var Z=yield this.dataProviderInstance.getServices(G);Array.isArray(Z)?this.setState({services:Z,isLoading:!1}):this.setState({services:[],isLoading:!1,error:Z})})),function fetchServices(G){return Z.apply(this,arguments)})},{key:"render",value:function render(){var{createDataSource:G,dataSources:Z,visualizations:ne,selectedItem:ie}=this.props,{error:se,filterString:ce,isLoading:fe,modalDataSourceName:me,modalDsId:ge,modalNumVizsInUse:Ce,modalOpen:Se,open:Me,services:ke}=this.state,xe=((0,At.groupByType)(Z,ne)["ds.search"]||[]).filter(G=>!G.dataSource.meta),De=(0,At.serviceIdToKPIIdUsedMap)(Z),Ie=0===ke.length&&!fe&&""===ce,Re=me||(0,ct.gettext)("Unnamed"),$e=ie&&ie.id?ne[ie.id]:null,Je=$e?$e.type:null,it=zt.indexOf(Je)<0,ot=(0,ct.gettext)("filter");return ze.default.createElement(jt,null,ze.default.createElement(It,null,ze.default.createElement(xt.default,{dataTestItsi:"gt-data-panel-error-modal",open:""!==se,errorMessage:se,handleRequestClose:this.handleErrorModalClose}),it&&ze.default.createElement(dt.default,{"data-test-itsi":"gt-service-collapsible-panel",panelId:1,open:Me.includes(1),onRequestClose:this.handleRequestClose,onRequestOpen:this.handleRequestOpen,key:"services",title:(0,ct.gettext)("Services")},Ie&&ze.default.createElement(_t.default,{"data-test-itsi":"no-services-warning-message",type:"warning",style:{marginLeft:"20px"}},(0,ct.gettext)("No services found. To create your first service, click")+" ",ze.default.createElement(ht.default,{"data-test-itsi":"gt-no-services-link",to:(0,St.uiListerURL)(),openInNewContext:!0},(0,ct.gettext)("here")),"."),!Ie&&ze.default.createElement(ze.Fragment,null,ze.default.createElement(Nt,null,ze.default.createElement(yt.default,{"data-test-itsi":"services-text-filter",inline:!0,placeholder:ot,title:ot,appearance:"search",value:ce,onChange:this.handleTextFilterChange})),fe&&ze.default.createElement(vt.default,{"data-test-itsi":"data-panel-wait-spinner",style:{margin:"50%"}}),(ke.length>0||0===ke.length&&""!==ce)&&ze.default.createElement(ft.default,{"data-test-itsi":"data-panel-datasource-menu",retainFocus:!1,style:{margin:"0px 10px 0px 15px",height:"400px"}},0===ke.length&&!fe&&""!==ce&&ze.default.createElement(_t.default,{"data-test-itsi":"no-services-found-warning-message",type:"warning",style:{marginLeft:"20px"}},(0,ct.gettext)("No services found for the current filter.")),!fe&&ke.map(G=>{var{svc_title:Z,svc_id:ne,kpis:ie}=G;return ze.default.createElement(Et.default,{serviceTitle:Z,serviceId:ne,key:ne,kpis:ie,KPIsUsedMap:De,handleKPIClick:this.handleKPIClick})}),ke.length===Ct.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED&&ze.default.createElement(_t.default,{"data-test-itsi":"more-results-warning-message",type:"warning",style:{marginLeft:"20px"}},(0,st.sprintf)((0,ct.gettext)("First %s services shown. Use search to narrow the list."),Ct.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED))))),ze.default.createElement(dt.default,{"data-test-itsi":"gt-ad-hoc-searches-collapsible-panel",panelId:2,open:Me.includes(2),onRequestClose:this.handleRequestClose,onRequestOpen:this.handleRequestOpen,key:"adhoc",title:(0,ct.gettext)("Ad hoc Search")},ze.default.createElement(ft.default,{"data-test-itsi":"data-panel-menu",retainFocus:!1,style:{margin:"0px 10px 0px 15px",height:"400px"}},ze.default.createElement(ft.default.Item,{"data-test-itsi":"create-search-datasource",onClick:()=>{G({type:"ds.search"})}},ze.default.createElement(Rt,null,"+ ".concat((0,ct.gettext)("Create Ad hoc Search")))),xe.map(G=>{var{id:Z,dataSource:ne,used:ie}=G;return ze.default.createElement(kt.default,{key:Z,name:ne.name?ne.name:(0,ct.gettext)("Unnamed"),onItemClick:()=>this.handleAdHocClick(Z,ne),onEditClick:this.handleEditClick(Z),onDeleteClick:this.handleModalRequestOpen(Z,ne.name),selected:ie})})))),ze.default.createElement(Dt.default,{modalOpen:Se,modelName:Re,modalNumVizsInUse:Ce,modalDsId:ge,onDeleteClick:this.handleDeleteClick,onModalRequestClose:this.handleModalRequestClose}))}}]),DataPanel}(ze.Component);qt.propTypes={editDataSource:$e.default.func,deleteDataSource:$e.default.func,selectedItem:$e.default.object,dataSourceBindingType:$e.default.string,dashboardApi:$e.default.object.isRequired,fetchDataSources:$e.default.func,dataSources:$e.default.object,visualizations:$e.default.object,createDataSource:$e.default.func},qt.defaultProps={dataSources:{},visualizations:{},selectedItem:null,onRequestClose:it.default,createDataSource:it.default,editDataSource:it.default,deleteDataSource:it.default};var Wt=qt;Z.default=Wt,G.exports=Z.default},7804:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se,ce,fe,me,ge,Ce,Se,Me=ie(ne(9)),ke=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),xe=ie(ne(2)),De=ie(ne(3)),Ie=ie(ne(47)),Re=ne(5),ze=ie(ne(99)),$e=ie(ne(805)),Je=ie(ne(687)),it=ne(389),ot=ne(40);function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}ne(29);var at=De.default.div(se||(se=(0,Me.default)(["\n\tposition: absolute;\n\tleft: ",";\n\tright: ",";\n\tcolor: ",";\n\tmargin-right: 20%;\n"])),ot.variables.spacingSmall,ot.variables.spacingLarge,ot.variables.accentColorL10),st=De.default.span(ce||(ce=(0,Me.default)(["\n\tdisplay: flex;\n\talign-items: center;\n"]))),ct=De.default.span(fe||(fe=(0,Me.default)(["\n\tpadding-right: 3px;\n\tmin-width: 10px;\n\tdisplay: inline-block;\n\ttext-align: center;\n\tvertical-align: middle;\n\ttransform: translateY(-1px);\n"]))),ut=De.default.div.attrs(G=>{var{dataTest:Z,dataTestId:ne}=G;return{"data-test":Z,"data-test-id":ne}})(me||(me=(0,Me.default)(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\theight: 35px;\n\tline-height: 30px;\n\tcolor: ",";\n\t&:hover {\n\t\tcursor: ",";\n\t\tbackground-color: ",";\n\t}\n"])),ot.variables.contentColorDefault,G=>G.isItemClickable?"pointer":"default",ot.variables.backgroundColorHover),dt=De.default.div(ge||(ge=(0,Me.default)(["\n\tflex-grow: 1;\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tcursor: ",";\n"])),G=>G.isItemClickable?"pointer":"default"),ht=De.default.div.attrs(G=>{var{type:Z}=G;return{"data-test":"item-".concat(Z)}})(Ce||(Ce=(0,Me.default)(["\n\twidth: 35px;\n\ttext-align: center;\n\tborder-radius: ",";\n\tcolor: ",";\n\t&:hover {\n\t\tcursor: pointer;\n\t\tcolor: ",";\n\t\tbackground-color: ",";\n\t}\n"])),(0,ot.pick)({enterprise:"0px",prisma:"24px"}),ot.variables.contentColorMuted,ot.variables.contentColorDefault,ot.variables.backgroundColorHover),ft=De.default.div.attrs(G=>{var{onClick:Z}=G;return{"data-test":"item-name-wrapper","data-clickable":!!Z}})(Se||(Se=(0,Me.default)(["\n\tpadding-top: 8px;\n\twidth: calc(100% - 70px);\n\tcursor: ",";\n"])),G=>G.onClick?"pointer":"default"),_t={paddingLeft:"30px"},yt=(0,ke.forwardRef)((G,Z)=>{var{name:ne,onItemClick:ie,onEditClick:se,onDeleteClick:ce,itemStyle:fe,selected:me}=G,ge=ne||(0,Re.gettext)("Unnamed"),[Ce,Se]=(0,ke.useState)(!1),Me=(0,ke.useRef)(!1),xe=ge.length>15,De=(0,ke.useCallback)(()=>(clearTimeout(Me.current),Me.current=setTimeout(()=>Se(!0),250),()=>{clearTimeout(Me.current)}),[]),Ie=(0,ke.useCallback)(()=>(clearTimeout(Me.current),Me.current=setTimeout(()=>Se(!1),100),()=>{clearTimeout(Me.current)}),[]),ot=me&&ke.default.createElement(at,null,ke.default.createElement($e.default,{screenReaderText:(0,Re.gettext)("Selected"),size:.85})),yt=(0,ke.useMemo)(()=>se?ke.default.createElement(ht,{type:"edit","data-test-itsi":"edit-search-datasource",onClick:se},ke.default.createElement(it.Edit,{screenReaderText:(0,Re.gettext)("Edit"),size:"16px"})):null,[se]),vt=(0,ke.useMemo)(()=>ke.default.createElement(ht,{type:"remove","data-test-itsi":"delete-search-datasource",onClick:ce},ke.default.createElement(it.Remove,{screenReaderText:(0,Re.gettext)("Remove"),size:"16px"})),[ce]);return ke.default.createElement(ut,{style:fe,dataTest:"datasourceitem",ref:Z},ke.default.createElement(ft,{onClick:ie},ke.default.createElement(ze.default,{content:ge,"data-test-itsi":"data-source-item-tooltip",style:_t,open:Ce&&xe,onRequestOpen:De,onRequestClose:Ie,inline:!1},ke.default.createElement(st,null,ot,ke.default.createElement(ct,null,ke.default.createElement(Je.default,null)),ke.default.createElement(dt,{"data-test-itsi":"search-datasource",isItemClickable:ie},ge)))),yt,vt)});yt.propTypes={name:xe.default.string,selected:xe.default.bool,onItemClick:xe.default.func,onEditClick:xe.default.func.isRequired,onDeleteClick:xe.default.func.isRequired,itemStyle:xe.default.object},yt.defaultProps={name:"",onItemClick:Ie.default,selected:!1,itemStyle:{padding:"0 10px"}};var vt=yt;Z.default=vt,G.exports=Z.default},7805:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.defaultAdHocViz=Z.augmentVisWithAdHocEncoding=void 0;var se=ie(ne(101)),ce=ie(ne(177));Z.defaultAdHocViz=G=>({visualizationDefinition:{type:"splunk.singlevalue",dataSources:{primary:G}},layoutItemType:"block",selectVisualization:!0,focusVisualization:!0});Z.augmentVisWithAdHocEncoding=G=>{if(!G||!G.type)return null;var Z=null,ne=(0,se.default)(G);switch(ne.type){case"splunk.singlevalue":Z=(0,ce.default)(ne,{options:{trendDisplay:"off",sparklineDisplay:"off",showSparklineTooltip:!0}});break;case"splunk.singlevalueradial":Z=(0,ce.default)(ne,{options:{trendDisplay:"off"}})}return Z}},7806:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.generateKPIDataSource=Z.defaultKPIViz=Z.augmentVisWithKPIEncoding=Z.augmentLineWithKPIConfig=void 0;var se=ie(ne(11)),ce=ie(ne(101)),fe=ie(ne(177));function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z({visualizationDefinition:{type:"splunk.singlevalue",options:_objectSpread(_objectSpread({trendDisplay:"off",sparklineDisplay:"off",showSparklineTooltip:!0},G.unit&&{unit:G.unit}),{},{sparklineValues:'> primary | seriesByName("alert_value")',majorColor:'> primary | seriesByName("alert_color") | lastPoint()'})},layoutItemType:"block",dataSourceType:"primary",dataSourceDefinition:Z,selectVisualization:!0,focusVisualization:!0});Z.generateKPIDataSource=(G,Z)=>{var ne="`get_full_itsi_summary_kpi("+Z._key+")` `service_level_kpi_only` | timechart cont=false latest(alert_value) AS alert_value, latest(alert_color) AS alert_color";return{type:"ds.search",name:"".concat(G.svc_title," - ").concat(Z.title),options:{query:ne},meta:{kpiID:Z._key,serviceID:G.svc_id}}};Z.augmentVisWithKPIEncoding=(G,Z)=>{if(!G||!G.type)return null;var ne=null,ie=(0,ce.default)(G);switch(ie.type){case"splunk.singlevalue":ne=(0,fe.default)(ie,{options:{trendDisplay:"off",sparklineDisplay:"off",showSparklineTooltip:!0,unit:Z.unit||"",sparklineValues:'> primary | seriesByName("alert_value")',majorColor:'> primary | seriesByName("alert_color") | lastPoint()'}});break;case"splunk.singlevalueicon":ne=(0,fe.default)(ie,{options:{iconColor:'> primary | seriesByName("alert_color") | lastPoint()'}});break;case"splunk.singlevalueradial":ne=(0,fe.default)(ie,{options:{trendDisplay:"off",unit:Z.unit||"",majorValue:'> primary | seriesByName("alert_value") | lastPoint()',majorColor:'> primary | seriesByName("alert_color") | lastPoint()'}});break;case"splunk.ellipse":case"splunk.rectangle":ne=(0,fe.default)(ie,{options:{fillColor:'> primary | seriesByName("alert_color") | lastPoint()'}});break;case"splunk.area":case"splunk.bar":case"splunk.column":case"splunk.line":ne=(0,fe.default)(ie,{options:{x:'> primary | seriesByName("_time")',y:'> primary | seriesByName("alert_value")'}});break;case"splunk.fillergauge":case"splunk.markergauge":ne=(0,fe.default)(ie,{options:{value:'> primary | seriesByName("alert_value") | lastPoint()'}})}return ne};Z.augmentLineWithKPIConfig=G=>{if(!G||!G.type||"abslayout.line"!==G.type)return null;var Z=(0,ce.default)(G);return(0,fe.default)(Z,{options:{strokeDataSeries:'> primary | seriesByType("color")',strokeDataPoint:"> strokeDataSeries | lastPoint()",strokeColor:"> strokeDataPoint"}})}},7807:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(0)),ce=ie(ne(2)),fe=ne(5),me=ie(ne(107)),ge=ie(ne(75)),Ce=ie(ne(39)),Se=ne(68),Me=ne(25);ne(29);var DeleteModal=G=>{var{modalOpen:Z,modelName:ne,modalNumVizsInUse:ie,modalDsId:ce,onDeleteClick:ke,onModalRequestClose:xe}=G;return se.default.createElement(me.default,{"data-test-itsi":"itsi-data-source-panel-modal",onRequestClose:xe,open:Z,style:Se.CONFIRMATION_MODAL_STYLE},se.default.createElement(me.default.Header,{title:ne,onRequestClose:xe}),se.default.createElement(me.default.Body,null,se.default.createElement(ge.default,{"data-test-itsi":"glass-table-delete-source-paragraph"},ie?se.default.createElement("span",{"data-test-itsi":"gt-source-panel-delete-message-used"},se.default.createElement("i",null,ne)," "+(0,fe.gettext)("is currently being used by")+" ",se.default.createElement("strong",null,"".concat(ie," ").concat((0,Me.ungettext)("visualization","visualizations",ie))),". ",(0,fe.gettext)("Are you sure you want to delete this data source?")):se.default.createElement("span",{"data-test-itsi":"gt-source-panel-delete-message-unused"},se.default.createElement("i",null,ne),(0,fe.gettext)(" is not being used by any visualizations. Are you sure you want to delete this data source?")))),se.default.createElement(me.default.Footer,null,se.default.createElement(Ce.default,{appearance:"secondary","data-test-itsi":"gt-source-panel-cancel-button",onClick:xe,label:(0,fe.gettext)("Cancel")}),se.default.createElement(Ce.default,{appearance:"primary","data-test-itsi":"gt-source-panel-delete-button",onClick:ke(ce),label:(0,fe.gettext)("Delete")})))},ke=DeleteModal;Z.default=ke,DeleteModal.propTypes={modalOpen:ce.default.bool.isRequired,modelName:ce.default.string.isRequired,modalNumVizsInUse:ce.default.number.isRequired,modalDsId:ce.default.string,onDeleteClick:ce.default.func.isRequired,onModalRequestClose:ce.default.func.isRequired},DeleteModal.defaultProps={modalOpen:!1,modalDsId:null},G.exports=Z.default},7808:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),ce=ie(ne(2)),fe=ie(ne(725)),me=ie(ne(326)),ge=ie(ne(687)),Ce=ne(4241);function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}var Se=se.default.createElement(ge.default,null),Me=(0,se.forwardRef)((G,Z)=>{var{serviceTitle:ne,serviceId:ie,kpis:ce,KPIsUsedMap:ge,handleKPIClick:Me}=G;return se.default.createElement(fe.default,{"data-test-itsi":"gt-menu-items",title:ne,key:ie,ref:Z},ce.map(G=>{var{title:Z,_key:ne}=G;return se.default.createElement(me.default.Item,{"data-test-itsi":"service-datasource",key:ne,icon:Se,selectable:!0,selected:(0,Ce.isSelected)(ge,ie,ne),onClick:()=>Me(ie,ne)},Z)}))});Me.propTypes={serviceTitle:ce.default.string,serviceId:ce.default.string,kpis:ce.default.array,KPIsUsedMap:ce.default.object.isRequired,handleKPIClick:ce.default.func.isRequired},Me.defaultProps={serviceTitle:"",serviceId:"",kpis:[]};var ke=Me;Z.default=ke,G.exports=Z.default},7809:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se,ce,fe=ie(ne(324)),me=ie(ne(17)),ge=ie(ne(18)),Ce=ie(ne(30)),Se=ie(ne(21)),Me=ie(ne(22)),ke=ie(ne(20)),xe=ie(ne(11)),De=ie(ne(9)),Ie=function _interopRequireWildcard(G,Z){if(!Z&&G&&G.__esModule)return G;if(null===G||"object"!=typeof G&&"function"!=typeof G)return{default:G};var ne=_getRequireWildcardCache(Z);if(ne&&ne.has(G))return ne.get(G);var ie={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in G)if("default"!==ce&&Object.prototype.hasOwnProperty.call(G,ce)){var fe=se?Object.getOwnPropertyDescriptor(G,ce):null;fe&&(fe.get||fe.set)?Object.defineProperty(ie,ce,fe):ie[ce]=G[ce]}ie.default=G,ne&&ne.set(G,ie);return ie}(ne(0)),Re=ie(ne(2)),ze=ie(ne(3)),$e=ie(ne(97)),Je=ie(ne(88)),it=ie(ne(39)),ot=ie(ne(107)),at=ie(ne(33)),st=ie(ne(82)),ct=ie(ne(7810)),ut=ne(1625),dt=ne(5),ht=ne(100),ft=ne(161),_t=ne(387),yt=ie(ne(7811));function _getRequireWildcardCache(G){if("function"!=typeof WeakMap)return null;var Z=new WeakMap,ne=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(G){return G?ne:Z})(G)}function _createSuper(G){var Z=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(G){return!1}}();return function _createSuperInternal(){var ne,ie=(0,ke.default)(G);if(Z){var se=(0,ke.default)(this).constructor;ne=Reflect.construct(ie,arguments,se)}else ne=ie.apply(this,arguments);return(0,Me.default)(this,ne)}}ne(29);var vt=(0,ze.default)(st.default)(se||(se=(0,De.default)(["\n\tmargin-right: 10px;\n"]))),wt=(0,ze.default)(ot.default)(ce||(ce=(0,De.default)(["\n\twidth: 900px;\n"]))),Ct=Ie.default.createElement(ct.default,{"data-test-itsi":"enable-service-swapping-button",size:1.5,screenReaderText:(0,dt.gettext)("Enable Service Swapping")}),St=function(G){(0,Se.default)(ServiceSwapperControl,G);var Z,ne,ie=_createSuper(ServiceSwapperControl);function ServiceSwapperControl(G,Z){var ne;return(0,me.default)(this,ServiceSwapperControl),ne=ie.call(this,G,Z),(0,xe.default)((0,Ce.default)(ne),"fetchServicesDebounced",(0,$e.default)(G=>{ne.fetchServices(G)},ht.DEFAULT_DEBOUNCE_DELAY)),(0,xe.default)((0,Ce.default)(ne),"fetchServicesCountDebounced",(0,$e.default)(G=>{ne.fetchServicesCount(G)},ht.DEFAULT_DEBOUNCE_DELAY)),(0,xe.default)((0,Ce.default)(ne),"openServiceSwapperModal",()=>{ne.fetchServices({count:ft.COUNTS_PER_PAGE_MODAL[0],offset:0,filterString:""}),ne.setState({errorMessage:"",isServiceSwapperModalOpen:!0})}),(0,xe.default)((0,Ce.default)(ne),"hideServiceSwapperModal",()=>{ne.setState({isServiceSwapperModalOpen:!1})}),(0,xe.default)((0,Ce.default)(ne),"handleSave",()=>{ne.props.handleServicesChange(ne.state.tmpSelectedServicesIDs),ne.hideServiceSwapperModal()}),(0,xe.default)((0,Ce.default)(ne),"handleSelectService",(G,Z)=>{var{value:ie}=Z,{dashboardApi:se}=ne.props;"edit-service-swapping-selector"!==ie?(ne.props.handleServiceChange(ie,se,ne.state.isSwappingFirstTime),ne.setState({isSwappingFirstTime:!1})):ne.openServiceSwapperModal()}),(0,xe.default)((0,Ce.default)(ne),"setLoading",G=>{ne.setState({isLoading:G})}),(0,xe.default)((0,Ce.default)(ne),"setCountLoading",G=>{ne.setState({isCountLoading:G})}),(0,xe.default)((0,Ce.default)(ne),"setTmpSelectedServicesIDs",G=>{ne.setState({tmpSelectedServicesIDs:G})}),ne.state={errorMessage:"",isReady:!1,isLoading:!1,isServiceSwapperModalOpen:!1,services:[],isCountLoading:!1,matchingServicesCount:0,tmpSelectedServicesIDs:G.selectedServicesIDs,isSwappingFirstTime:!0},ne}return(0,ge.default)(ServiceSwapperControl,[{key:"componentDidMount",value:function componentDidMount(){Promise.all([this.fetchServices({count:_t.GT_DEFAULT_NUMBER_OF_SERVICES_FETCHED,filterString:"",offset:0}),this.props.dataProviderInstance.getServiceSwappingServiceTitles(this.props.selectedServicesIDs)]).then(()=>{this.setState({isReady:!0})}).catch(()=>{this.setState({errorMessage:(0,dt.gettext)("Could not fetch titles of services selected for service swapping.")})})}},{key:"fetchServices",value:(ne=(0,fe.default)((function*(G){var Z=yield this.props.dataProviderInstance.getServices(G);(0,Je.default)(Z)?this.setState({services:Z,isLoading:!1}):this.setState({services:[],isLoading:!1,errorMessage:Z})})),function fetchServices(G){return ne.apply(this,arguments)})},{key:"fetchServicesCount",value:(Z=(0,fe.default)((function*(G){var Z=yield this.props.dataProviderInstance.getTotalCountOfServices(G);this.setState({matchingServicesCount:Z,isCountLoading:!1})})),function fetchServicesCount(G){return Z.apply(this,arguments)})},{key:"render",value:function render(){var{errorMessage:G,isLoading:Z,isReady:ne,isServiceSwapperModalOpen:ie,services:se,isCountLoading:ce,matchingServicesCount:fe,tmpSelectedServicesIDs:me}=this.state,{dataProviderInstance:ge,selectedServiceID:Ce,viewOnly:Se}=this.props;return ne?Ie.default.createElement(Ie.Fragment,null,null!==Ce&&Ie.default.createElement(vt,{"data-test-itsi":"selected-services-selector",filter:!0,onChange:this.handleSelectService,value:Ce},me.map(G=>{var Z=ge.getServiceTitle(G);if(Z)return Ie.default.createElement(st.default.Option,{"data-test-itsi":"selected-services-selector-option",key:G,label:Z,value:G})}),Ie.default.createElement(st.default.Divider,null),!Se&&Ie.default.createElement(st.default.Option,{"data-test-itsi":"selected-services-selector-edit",label:(0,dt.gettext)("Edit Service Swapping"),value:"edit-service-swapping-selector"})),null===Ce&&!Se&&Ie.default.createElement(ut.IconButton,{"data-test-itsi":"enable-service-swapping-icon",icon:Ct,onClick:this.openServiceSwapperModal}),!Se&&Ie.default.createElement(wt,{"data-test-itsi":"enable-service-swapping-modal",onRequestClose:this.hideServiceSwapperModal,open:ie},Ie.default.createElement(ot.default.Header,{title:(0,dt.gettext)("Enable Service Swapping"),onRequestClose:this.hideServiceSwapperModal}),Ie.default.createElement(ot.default.Body,null,G&&Ie.default.createElement(at.default,{"data-test-itsi":"service-swapper-error-message",type:"error"},G),Ie.default.createElement(yt.default,{dataProviderInstance:ge,fetchServicesDebounced:this.fetchServicesDebounced,fetchServicesCountDebounced:this.fetchServicesCountDebounced,isLoading:Z,isCountLoading:ce,services:se,matchingServicesCount:fe,setLoading:this.setLoading,setCountLoading:this.setCountLoading,setTmpSelectedServicesIDs:this.setTmpSelectedServicesIDs,tmpSelectedServicesIDs:me})),Ie.default.createElement(ot.default.Footer,null,Ie.default.createElement(it.default,{"data-test-itsi":"gt-swapper-control-cancel-button",onClick:this.hideServiceSwapperModal,label:(0,dt.gettext)("Cancel")}),Ie.default.createElement(it.default,{appearance:"primary","data-test-itsi":"gt-swapper-control-save-button",onClick:this.handleSave,label:(0,dt.gettext)("Done")})))):null}}]),ServiceSwapperControl}(Ie.Component);(0,xe.default)(St,"propTypes",{dataProviderInstance:Re.default.object.isRequired,handleServiceChange:Re.default.func.isRequired,handleServicesChange:Re.default.func.isRequired,selectedServiceID:Re.default.string,selectedServicesIDs:Re.default.array.isRequired,viewOnly:Re.default.bool,dashboardApi:Re.default.object}),(0,xe.default)(St,"defaultProps",{selectedServiceID:null,viewOnly:!1,dashboardApi:null});var Mt=St;Z.default=Mt,G.exports=Z.default},7810:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=123)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(116)},123:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Pivot}));var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne(2),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{var{value:ne}=Z;if(ie.setState({filterString:ne}),ie.props.setLoading(!0),ie.props.setCountLoading(!0),ie.props.fetchServicesDebounced({count:ie.state.countPerPage,filterString:ne,offset:ie.state.offset}),ne){var se=ie.countFilter(ne);ie.props.fetchServicesCountDebounced(function _objectSpread(G){for(var Z=1;Z{var{page:ne}=Z,se=ie.state.countPerPage*ne-ie.state.countPerPage;ie.setState({page:ne,offset:se}),ie.props.setLoading(!0),ie.props.fetchServicesDebounced({count:ie.state.countPerPage,filterString:ie.state.filterString,offset:se})}),(0,Re.default)((0,ke.default)(ie),"handleCountPerPageChange",(G,Z)=>{var{value:ne}=Z;ie.setState({countPerPage:ne,page:1,offset:0}),ie.props.setLoading(!0),ie.props.fetchServicesDebounced({count:ne,filterString:ie.state.filterString,offset:0})}),(0,Re.default)((0,ke.default)(ie),"handleToggle",(G,Z)=>{var ne=ie.props.tmpSelectedServicesIDs;-1===ne.indexOf(Z)?ne.push(Z):ne=(0,st.default)(ne,Z),ie.props.setTmpSelectedServicesIDs(ne)}),(0,Re.default)((0,ke.default)(ie),"handleToggleAll",()=>{var{services:G,setTmpSelectedServicesIDs:Z,tmpSelectedServicesIDs:ne}=ie.props,se=G.map(G=>G.svc_id);Z("all"===ie.rowSelectionState()?(0,st.default)(ne,...se):(0,at.default)(ne,se))}),(0,Re.default)((0,ke.default)(ie),"countFilter",G=>({filter:JSON.stringify((0,Ct.createJSONFilter)(G))})),ie.state={countPerPage:St.COUNTS_PER_PAGE_MODAL[0],filterString:"",offset:0,page:1,totalServiceCount:0},ie}return(0,Me.default)(ServicesSelectorTable,[{key:"componentDidMount",value:function componentDidMount(){this.setTotalServiceCount()}},{key:"setTotalServiceCount",value:(Z=(0,Ce.default)((function*(){var G=yield this.props.dataProviderInstance.getTotalCountOfServices();this.setState({totalServiceCount:G})})),function setTotalServiceCount(){return Z.apply(this,arguments)})},{key:"rowSelectionState",value:function rowSelectionState(){var{services:G,tmpSelectedServicesIDs:Z}=this.props,ne=G.map(G=>G.svc_id),ie=(0,ot.default)(ne,Z).length;return 0===ie?"none":ie===ne.length?"all":"some"}},{key:"isRowSelected",value:function isRowSelected(G){return-1!==this.props.tmpSelectedServicesIDs.indexOf(G)}},{key:"render",value:function render(){var{countPerPage:G,filterString:Z,page:ne,totalServiceCount:ie}=this.state,{isLoading:se,isCountLoading:ce,services:fe,matchingServicesCount:me,tmpSelectedServicesIDs:ge}=this.props,Ce=ie;Z&&(Ce=ce?"":me);var Se=Z&&ce,Me=(0,yt.sprintf)((0,wt.ungettext)("%(totalCount)s service (%(countOfSelectedServices)s selected)","%(totalCount)s services (%(countOfSelectedServices)s selected)",Ce),{totalCount:Ce,countOfSelectedServices:ge.length}),ke=(0,vt.gettext)("filter");return $e.default.createElement("div",(0,Mt.createITSITestHook)(this.constructor.name),$e.default.createElement(Tt,null,$e.default.createElement(At,{"data-test-itsi":"services-selector-service-count"},Se&&$e.default.createElement(_t.default,{"data-test-itsi":"services-selector-count-wait-spinner"}),Me),$e.default.createElement(ht.default,{"data-test-itsi":"services-text-filter",inline:!0,placeholder:ke,title:ke,appearance:"search",value:Z,onChange:this.handleTextFilterChange}),$e.default.createElement(ft.default,{appearance:"pill","data-test-itsi":"filters-page-count-selector",onChange:this.handleCountPerPageChange,value:G},St.COUNTS_PER_PAGE_MODAL.map(G=>$e.default.createElement(ft.default.Option,{"data-test-itsi":"filters-page-count-selector-option",key:G,label:(0,yt.sprintf)((0,vt.gettext)("%(count)d per page"),{count:G}),value:G}))),$e.default.createElement(kt,{"data-test-itsi":"service-selector-paginator",current:ne,onChange:this.handlePageChange,numPageLinks:4,totalPages:Math.ceil(Ce/G),alwaysShowLastPageLink:!0})),(0!==fe.length||0===fe.length&&""!==Z)&&$e.default.createElement($e.Fragment,null,0===fe.length&&!se&&""!==Z&&$e.default.createElement(xt,{"data-test-itsi":"no-services-found-warning-message",type:"warning"},(0,vt.gettext)("No services found for the current filter.")),0!==fe.length&&$e.default.createElement(dt.default,{"data-test-itsi":"services-selector-table",onRequestToggleAllRows:this.handleToggleAll,rowSelection:this.rowSelectionState()},$e.default.createElement(dt.default.Head,null,$e.default.createElement(dt.default.HeadCell,{"data-test-itsi":"services-selector-table-service-title-head-cell",key:"svc-title"},(0,vt.gettext)("Service Title")),$e.default.createElement(dt.default.HeadCell,{"data-test-itsi":"services-selector-table-kpis-head-cell",key:"kpis"},(0,vt.gettext)("KPIs"))),$e.default.createElement(dt.default.Body,null,se&&$e.default.createElement(dt.default.Row,{"data-test-itsi":"service-selector-loading-row",data:"wait-spinner",key:"wait-spinner-row"},$e.default.createElement(dt.default.Cell,{key:"wait-spinner-cell"},$e.default.createElement(Lt,{"data-test-itsi":"services-selector-table-wait-spinner"}))),!se&&fe.map(G=>{var{svc_title:Z,svc_id:ne,kpis:ie}=G;return $e.default.createElement(dt.default.Row,{"data-test-itsi":"services-selector-table-row",data:ne,key:ne,onRequestToggle:this.handleToggle,selected:this.isRowSelected(ne)},$e.default.createElement(dt.default.Cell,{"data-test-itsi":"service-selector-service-title-cell",key:"".concat(ne,"-title")},Z),$e.default.createElement(dt.default.Cell,{"data-test-itsi":"service-selector-service-kpis-count-cell",key:"".concat(ne,"-kpis")},ie.length))})))))}}]),ServicesSelectorTable}($e.Component);(0,Re.default)(Dt,"propTypes",{dataProviderInstance:Je.default.object.isRequired,fetchServicesDebounced:Je.default.func.isRequired,fetchServicesCountDebounced:Je.default.func.isRequired,isLoading:Je.default.bool.isRequired,services:Je.default.array.isRequired,isCountLoading:Je.default.bool.isRequired,matchingServicesCount:Je.default.oneOfType([Je.default.string,Je.default.number]).isRequired,setLoading:Je.default.func.isRequired,setCountLoading:Je.default.func.isRequired,setTmpSelectedServicesIDs:Je.default.func.isRequired,tmpSelectedServicesIDs:Je.default.array.isRequired});var Et=Dt;Z.default=Et,G.exports=Z.default},7812:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(0)),ce=ie(ne(2)),fe=ie(ne(47)),me=ie(ne(7813)),ge=ne(1625),Ce=ne(5);ne(29);var SaveButton=G=>{var{isDirty:Z,onClick:ne}=G;return se.default.createElement(ge.IconButton,{"data-test-itsi":"save-button",onClick:ne,disabled:!Z,icon:se.default.createElement(me.default,{"data-test-itsi":"save-button-icon",size:1.5,screenReaderText:(0,Ce.gettext)("Save")})})};SaveButton.propTypes={isDirty:ce.default.bool,onClick:ce.default.func},SaveButton.defaultProps={isDirty:!1,onClick:fe.default};var Se=SaveButton;Z.default=Se,G.exports=Z.default},7813:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=143)}({0:function(G,Z){G.exports=ne(0)},1:function(G,Z){G.exports=ne(116)},143:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Icons}));var ie=ne(0),se=ne.n(ie),ce=ne(1),fe=ne(2),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z{var{value:ie}=ne;Z.props.onOptionsChange(_objectSpread(_objectSpread({},Z.props.options),{},{query:ie}))}),(0,xe.default)((0,Ce.default)(Z),"handleModalClose",()=>{Z.setState({error:""})}),Z.state={error:"",serviceTitle:null,kpiTitle:null,isFetching:!1,warningMessage:""},Z.dataProviderInstance=ft.default.getInstance(),Z}return(0,ge.default)(ITSIDataSourceEditor,[{key:"componentDidMount",value:function componentDidMount(){var{meta:G}=this.props,Z=G.serviceID,ne=G.kpiID;Z&&this.fetchService(Z).then(G=>{if(G){var Z=G.kpis.find(G=>G._key===ne);this.setState({isFetching:!1,serviceTitle:G.svc_title,kpiTitle:Z.title})}else this.setState({isFetching:!1,warningMessage:(0,at.gettext)("You may not have permissions to view the service associated with this visualization, or the service may have been deleted.")})}).catch(()=>{})}},{key:"fetchService",value:(Z=(0,fe.default)((function*(G){return yield this.dataProviderInstance.getService(G)})),function fetchService(G){return Z.apply(this,arguments)})},{key:"render",value:function render(){var{options:{query:G=""},meta:{serviceID:Z=null,kpiID:ne=null}}=this.props,{error:ie,kpiTitle:se,isFetching:ce,serviceTitle:fe,warningMessage:me}=this.state,ge=null;if(ne){var Ce=ne.startsWith(ct.HEALTH_SCORE_KPI_PREFIX)?ct.SERVICE_DEFINITION_TABS.SETTINGS:ct.SERVICE_DEFINITION_TABS.KPI;ge=(0,ut.uiEditURL)(Z,Ce,ne)}var Se=(0,st.uiEditURL)({q:G}),Me=!ne;return ce?Ie.default.createElement("div",{style:{padding:"10px 20px"}},Ie.default.createElement(Je.default,{"data-test-itsi":"data-source-editor-loading-message",type:"info"},(0,at.gettext)("Loading..."))):me?Ie.default.createElement("div",{style:{padding:"10px 20px"}},Ie.default.createElement(Je.default,{"data-test-itsi":"data-source-editor-warning-message",type:"warning"},me)):Ie.default.createElement(_t,null,Ie.default.createElement(ht.default,{dataTestItsi:"gt-data-source-editor-error-modal",open:""!==ie,errorMessage:ie,handleRequestClose:this.handleModalClose}),ge&&Ie.default.createElement(ot.Option,null,Ie.default.createElement("div",null,(0,at.gettext)("Service:")," "," "," ",fe),Ie.default.createElement("div",null,(0,at.gettext)("KPI:")," "," "," ",se),Ie.default.createElement($e.default,{"data-test-itsi":"gt-data-source-edit-kpi-link",to:ge,openInNewContext:!0},(0,at.gettext)("Edit KPI"))),Ie.default.createElement(ot.Option,{label:(0,at.gettext)("Search with SPL")},Ie.default.createElement(yt,null,Ie.default.createElement(it.default,{enabled:Me,syntax:dt.default,showLineNumbers:!1,minLines:4,value:G,onChange:this.handleSearchChange}),Ie.default.createElement($e.default,{"data-test-itsi":"gt-data-source-open-in-search-link",to:Se,openInNewContext:!0},(0,at.gettext)("Open in Search")))))}}]),ITSIDataSourceEditor}(Ie.Component);vt.propTypes={options:Re.default.object,meta:Re.default.object,onOptionsChange:Re.default.func},vt.defaultProps={options:{},meta:{},onOptionsChange:()=>{}};var wt=vt;Z.default=wt,G.exports=Z.default},7816:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(88));ne(29);var ce={findMatchingKPI:(G,Z,ne)=>{if(!G||!(0,se.default)(Z)||!(0,se.default)(ne))return null;var ie=(Z.find(Z=>Z._key===G)||{}).title;return(ne.find(G=>G.title===ie)||{})._key}};Z.default=ce,G.exports=Z.default},7817:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(17)),ce=ie(ne(18)),fe=ie(ne(11)),me=ie(ne(101)),ge=ie(ne(112)),Ce=ie(ne(45)),Se=ie(ne(47)),Me=ie(ne(155)),ke=ne(450),xe=ne(5),De=ie(ne(96)),Ie=ie(ne(1224)),Re=ne(125),ze=ne(106),$e=ne(1161);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;Z!!(0,ge.default)(G,["content","isRealTimeSearch"],!1)||((0,ge.default)(G,["content","resultPreviewCount"],0)>0||!!(0,ge.default)(G,["content","isDone"])),at=function(){function SearchAggregator(G){(0,se.default)(this,SearchAggregator),(0,fe.default)(this,"combinedTemplate",G=>"`get_itsi_summary_index` (".concat(G,") `service_level_kpi_only` | bin _time ")+"| stats latest(alert_value) AS alert_value, latest(alert_color) AS alert_color, latest(alert_level) as alert_level BY indexed_itsi_kpi_id, _time"),this.combinedSearch=null,this.timeRange=Je,this.refreshInterval=6e4,this.consumers={},G&&(this.resultsCallback=G)}return(0,ce.default)(SearchAggregator,[{key:"isEnabled",value:function isEnabled(){return!(0,Ce.default)(this.combinedSearch)}},{key:"registerDatasources",value:function registerDatasources(G,Z,ne){if(this.interval&&(clearInterval(this.interval),this.interval=null),G&&!(0,Ce.default)(G)){var ie=this.extractSearches(G);(0,Ce.default)(ie)||(Z&&Z.earliest&&Z.latest&&(this.timeRange=Z),ne&&(this.refreshInterval=1e3*ne),this.combinedSearch=this.combineSearches(ie),this.dispatchCombined(),this.interval=setInterval(this.dispatchCombined.bind(this),this.refreshInterval))}}},{key:"extractSearches",value:function extractSearches(G){return Object.keys(G).map(Z=>({id:Z,kpi:G[Z].meta?G[Z].meta.kpiID:null,skipAggregation:G[Z].meta?G[Z].meta.skipAggregation:null})).reduce((G,Z)=>(Z.kpi&&!Z.skipAggregation&&(G[Z.id]=Z),G),{})}},{key:"combineSearches",value:function combineSearches(G){var Z=Object.keys(G).map(Z=>G[Z].kpi),ne=Z.filter((G,ne)=>Z.indexOf(G)===ne).map(G=>"indexed_itsi_kpi_id=".concat(G)).join(" OR ");return this.combinedTemplate(ne)}},{key:"sortResults",value:function sortResults(G,Z){var ne={},{isRealTimeSearch:ie,resultPreviewCount:se,resultCount:ce,dispatchState:fe,doneProgress:me}=Z.content,ge=fe.toLowerCase(),Se=se||ce,ke=G.fields.findIndex(G=>"indexed_itsi_kpi_id"===G),xe=G.columns[ke];if((0,Ce.default)(xe))return ne;var De={},Re=xe[0],ze=0;return xe.forEach((Z,ne)=>{Z!==Re&&(De[Re]=G.columns.map(G=>G.slice(ze,ne)),Re=Z,ze=ne),ne===xe.length-1&&(De[Re]=G.columns.map(G=>G.slice(ze)))}),Object.keys(De).forEach(se=>{ne[se]={data:new Ie.default(G.fields,De[se]),meta:_objectSpread(_objectSpread({totalCount:ce},(0,Me.default)(Z.content,ot)),{},{status:ge,statusMessage:(0,$e.getStatusMessage)({status:ge,isRealTimeSearch:ie,totalCount:Se}),percentComplete:Math.round(100*me)})}}),ne}},{key:"dispatchCombined",value:function dispatchCombined(){this.searchJob&&this.teardown();var G={search:this.combinedSearch,earliest_time:this.timeRange.earliest,latest_time:this.timeRange.latest},Z=_objectSpread({},it);this.searchJob=De.default.create(G,{app:(0,ze.getShortAppName)(!0),owner:Re.username});var ne,ie,se,ce=this.searchJob.getProgress(),fe=this.searchJob.getResultsPreview(Z,{fetchPredicate:previewFetchPredicate}),ge=(ne=fe,ie=ce,se=this.sortResults,ke.Observable.combineLatest(ne,ie,se)).subscribe(G=>{this.resultsCallback((0,me.default)(G)),Object.entries(this.consumers).forEach(Z=>{var[ne,ie]=Z;ie.forEach(Z=>{if(G[ne])Z.observer.next(this.dropExtraKPIFields(G[ne]));else{var ie={meta:{percentComplete:100,statusMessage:(0,xe.gettext)("No results returned by this KPI.")}};Z.observer.next(ie)}Z.observer.complete()})}),ge.unsubscribe()},()=>Se.default)}},{key:"dropExtraKPIFields",value:function dropExtraKPIFields(G){var Z=["alert_level"];if(!(G&&G.data&&G.data.fields&&G.data.columns))return G;for(var ne=0,ie=(0,me.default)(G);ne{var ne={observer:Z};return void 0===this.consumers[G]?this.consumers[G]=[ne]:"object"==typeof this.consumers[G]&&this.consumers[G].push(ne),()=>{delete this.consumers[G]}}}},{key:"teardown",value:function teardown(){return this.searchJob.cancel().first().toPromise()}}],[{key:"getInstance",value:function getInstance(G){return null===SearchAggregator.myInstance&&(SearchAggregator.myInstance=new SearchAggregator(G)),this.myInstance}}]),SearchAggregator}();(0,fe.default)(at,"myInstance",null);var st=at;Z.default=st,G.exports=Z.default},7818:function(G,Z,ne){"use strict";var ie=ne(1);Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var se=ie(ne(18)),ce=ie(ne(17)),fe=ie(ne(11)),me=ie(ne(45)),ge=ie(ne(131)),Ce=ie(ne(172)),Se=(0,se.default)((function MaintenanceWindowCheck(G){(0,ce.default)(this,MaintenanceWindowCheck),(0,fe.default)(this,"isKpiInMaintenance",G=>this.ackKpiList.includes(G)),(0,fe.default)(this,"checkMaintenanceMode",G=>{var Z;return(0,me.default)(this.ackKpiList)&&!(0,me.default)(G)?(this.ackKpiList=G,!0):!(0,ge.default)((0,Ce.default)(G),(0,Ce.default)(this.ackKpiList))&&(Z=this.ackKpiList.filter(Z=>G.indexOf(Z)>-1),(0,ge.default)((0,Ce.default)(G),(0,Ce.default)(Z))?(this.ackKpiList=Z,!1):(Z=[...G],this.ackKpiList=Z,!0))}),(0,fe.default)(this,"resultsCallback",G=>{try{var Z=[];Object.keys(G).forEach(ne=>{var ie=G[ne]&&G[ne].data&&G[ne].data.columns&&G[ne].data.columns[4];"-2"===ie[ie.length-1]&&Z.push(ne)}),this.checkMaintenanceMode(Z)&&this.handleMessageBannerOpen()}catch(G){}}),this.ackKpiList=[],this.handleMessageBannerOpen=G}));Z.default=Se,G.exports=Z.default},80:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return Selection}));var ie=ne(34),se=ne(12);class Selection extends se.a{constructor(G,Z,ne,ie){super(G,Z,ne,ie),this.selectionStartLineNumber=G,this.selectionStartColumn=Z,this.positionLineNumber=ne,this.positionColumn=ie}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(G){return Selection.selectionsEqual(this,G)}static selectionsEqual(G,Z){return G.selectionStartLineNumber===Z.selectionStartLineNumber&&G.selectionStartColumn===Z.selectionStartColumn&&G.positionLineNumber===Z.positionLineNumber&&G.positionColumn===Z.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(G,Z){return 0===this.getDirection()?new Selection(this.startLineNumber,this.startColumn,G,Z):new Selection(G,Z,this.startLineNumber,this.startColumn)}getPosition(){return new ie.a(this.positionLineNumber,this.positionColumn)}setStartPosition(G,Z){return 0===this.getDirection()?new Selection(G,Z,this.endLineNumber,this.endColumn):new Selection(this.endLineNumber,this.endColumn,G,Z)}static fromPositions(G,Z=G){return new Selection(G.lineNumber,G.column,Z.lineNumber,Z.column)}static liftSelection(G){return new Selection(G.selectionStartLineNumber,G.selectionStartColumn,G.positionLineNumber,G.positionColumn)}static selectionsArrEqual(G,Z){if(G&&!Z||!G&&Z)return!1;if(!G&&!Z)return!0;if(G.length!==Z.length)return!1;for(let ne=0,ie=G.length;ne=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var ge=new Map;ge.set("outlined",(function(){return se.a.createElement(se.a.Fragment,null,se.a.createElement("path",{d:"M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z"}))}));var Ce=["default","outlined"],Se=function getTrueVariant(G){return"default"===G||G&&!function isValidVariant(G){return Ce.indexOf(G)>=0}(G)?"outlined":G},Me=function Cross(G){var Z=G.children,ne=G.variant,ce=_objectWithoutProperties(G,["children","variant"]),Ce=Se(ne),Me="cross-".concat(Ce),ke=Object(ie.useContext)(me.IconContext),xe=ge.get(Ce);if(ke&&xe){var De=ke.toRender;if((0,ke.addIcon)(Me,xe()),!De)return null}return se.a.createElement(fe.a,ce,Z,ke?se.a.createElement("use",{href:"#".concat(Me)}):!!xe&&xe())};Me.defaultProps={variant:"default"},Z.default=Me}})},815:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=20)}({0:function(G,Z){G.exports=ne(0)},11:function(G,Z){G.exports=ne(7718)},20:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(0),se=ne.n(ie),ce=ne(5),fe=ne.n(ce),me=ne(6),ge=ne.n(me),Ce=ne(11),Se=ne.n(Ce);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me=ge()(Se.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),ke={viewBox:fe.a.string};function SVGInternal(G){var Z=G.viewBox,ne=void 0===Z?"0 0 1500 1500":Z,ie=_objectWithoutProperties(G,["viewBox"]);return se.a.createElement(Me,_extends({viewBox:ne},ie))}SVGInternal.propTypes=ke,Z.default=SVGInternal},5:function(G,Z){G.exports=ne(2)},6:function(G,Z){G.exports=ne(3)}})},820:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("labelService")},821:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se}));var ie=ne(60);const se=Object(ie.c)("dialogService")},826:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return fe})),ne.d(Z,"b",(function(){return ResourceEdit})),ne.d(Z,"c",(function(){return ResourceTextEdit}));var ie=ne(60),se=ne(94),ce=ne(54);const fe=Object(ie.c)("IWorkspaceEditService");class ResourceEdit{constructor(G){this.metadata=G}static convert(G){return G.edits.map(G=>{if(function isWorkspaceTextEdit(G){return Object(ce.j)(G)&&se.a.isUri(G.resource)&&Object(ce.j)(G.edit)}(G))return new ResourceTextEdit(G.resource,G.edit,G.modelVersionId,G.metadata);if(function isWorkspaceFileEdit(G){return Object(ce.j)(G)&&(Boolean(G.newUri)||Boolean(G.oldUri))}(G))return new ResourceFileEdit(G.oldUri,G.newUri,G.options,G.metadata);throw new Error("Unsupported edit")})}}class ResourceTextEdit extends ResourceEdit{constructor(G,Z,ne,ie){super(ie),this.resource=G,this.textEdit=Z,this.versionId=ne}}class ResourceFileEdit extends ResourceEdit{constructor(G,Z,ne,ie){super(ie),this.oldResource=G,this.newResource=Z,this.options=ne}}},827:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return xe}));ne(7503);var ie=ne(4),se=ne(57),ce=ne(10),fe=ne(215),me=ne(12),ge=ne(14),Ce=ne(26),Se=ne(50),Me=ne(13),ke=ne(495),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let xe=class MessageController{constructor(G,Z){this._messageWidget=new ce.d,this._messageListeners=new ce.b,this._editor=G,this._visible=MessageController.MESSAGE_VISIBLE.bindTo(Z),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(G){return G.getContribution(MessageController.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(G,Z){let ne;Object(fe.a)(G),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new MessageWidget(this._editor,Z,G),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new se.g(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(G=>{G.target.position&&(ne?ne.containsPosition(G.target.position)||this.closeMessage():ne=new me.a(Z.lineNumber-3,1,G.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(MessageWidget.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(ie.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};xe.ID="editor.contrib.messageController",xe.MESSAGE_VISIBLE=new Ce.c("messageVisible",!1,ie.a("messageVisible","Whether the editor is currently showing an inline message")),xe=__decorate([__param(1,Ce.b)],xe);const De=ge.c.bindToContribution(xe.get);Object(ge.k)(new De({id:"leaveEditorMessage",precondition:xe.MESSAGE_VISIBLE,handler:G=>G.closeMessage(),kbOpts:{weight:130,primary:9}}));class MessageWidget{constructor(G,{lineNumber:Z,column:ne},ie){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=G,this._editor.revealLinesInCenterIfOutsideViewport(Z,Z,0),this._position={lineNumber:Z,column:ne-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const se=document.createElement("div");se.classList.add("anchor","top"),this._domNode.appendChild(se);const ce=document.createElement("div");ce.classList.add("message"),ce.textContent=ie,this._domNode.appendChild(ce);const fe=document.createElement("div");fe.classList.add("anchor","below"),this._domNode.appendChild(fe),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(G){let Z;const dispose=()=>{G.dispose(),clearTimeout(Z),G.getDomNode().removeEventListener("animationend",dispose)};return Z=setTimeout(dispose,110),G.getDomNode().addEventListener("animationend",dispose),G.getDomNode().classList.add("fadeOut"),{dispose:dispose}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(G){this._domNode.classList.toggle("below",2===G)}}Object(ge.l)(xe.ID,xe),Object(Se.f)((G,Z)=>{const ne=G.getColor(Me.qb);if(ne){let ie=G.type===ke.a.HIGH_CONTRAST?2:1;Z.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${ne}; }`),Z.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${ne}; }`),Z.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${ie}px solid ${ne}; }`)}const ie=G.getColor(Me.pb);ie&&Z.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${ie}; }`);const se=G.getColor(Me.rb);se&&Z.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${se}; }`)})},831:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return SyncDescriptor}));class SyncDescriptor{constructor(G,Z=[],ne=!1){this.ctor=G,this.staticArguments=Z,this.supportsDelayedInstantiation=ne}}},832:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"GhostTextController",(function(){return It})),ne.d(Z,"ActiveGhostTextController",(function(){return Nt})),ne.d(Z,"commitInlineSuggestionAction",(function(){return zt})),ne.d(Z,"ShowNextInlineSuggestionAction",(function(){return ghostTextController_ShowNextInlineSuggestionAction})),ne.d(Z,"ShowPreviousInlineSuggestionAction",(function(){return ghostTextController_ShowPreviousInlineSuggestionAction})),ne.d(Z,"TriggerInlineSuggestionAction",(function(){return ghostTextController_TriggerInlineSuggestionAction}));var ie,se=ne(10),ce=ne(14),fe=ne(23),me=(ne(7560),ne(6)),ge=ne(12),Ce=ne(127),Se=ne(27),Me=ne(380),ke=ne(109),xe=ne(575),De=ne(317),Ie=ne(397),Re=ne(34),ze=ne(50),$e=ne(168),Je=ne(44),it=ne(71),ot=ne(611),at=ne(26),st=ne(60),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const ct=null===(ie=window.trustedTypes)||void 0===ie?void 0:ie.createPolicy("editorGhostText",{createHTML:G=>G});let ut=class GhostTextWidget extends se.a{constructor(G,Z,ne){super(),this.editor=G,this.model=Z,this.instantiationService=ne,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(dt,this.editor)),this.additionalLinesWidget=this._register(new AdditionalLinesWidget(this.editor)),this.viewMoreContentWidget=void 0,this._register(this.editor.onDidChangeConfiguration(G=>{(G.hasChanged(27)||G.hasChanged(104)||G.hasChanged(87)||G.hasChanged(81)||G.hasChanged(42)||G.hasChanged(41)||G.hasChanged(57))&&this.update()})),this._register(Object(se.i)(()=>{var G;this.disposed=!0,this.update(),null===(G=this.viewMoreContentWidget)||void 0===G||G.dispose(),this.viewMoreContentWidget=void 0})),this._register(Z.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(G){return this.additionalLinesWidget.viewZoneId===G}update(){var G;const Z=this.model.ghostText;if(!this.editor.hasModel()||!Z||this.disposed)return this.partsWidget.clear(),void this.additionalLinesWidget.clear();const ne=new Array,ie=new Array;function addToAdditionalLines(G,Z){if(ie.length>0){const ne=ie[ie.length-1];Z&&ne.decorations.push(new ot.a(ne.content.length+1,ne.content.length+1+G[0].length,Z,0)),ne.content+=G[0],G=G.slice(1)}for(const ne of G)ie.push({content:ne,decorations:Z?[new ot.a(1,ne.length+1,Z,0)]:[]})}const se=this.editor.getModel().getLineContent(Z.lineNumber);this.editor.getModel().getLineTokens(Z.lineNumber);let ce=void 0,fe=0;for(const G of Z.parts){let Z=G.lines;void 0===ce?(ne.push({column:G.column,text:Z[0]}),Z=Z.slice(1)):addToAdditionalLines([se.substring(fe,G.column-1)],void 0),Z.length>0&&(addToAdditionalLines(Z,"ghost-text"),void 0===ce&&G.column<=se.length&&(ce=G.column)),fe=G.column-1}void 0!==ce&&addToAdditionalLines([se.substring(fe)],void 0),this.partsWidget.setParts(Z.lineNumber,ne,void 0!==ce?{column:ce,length:se.length+1-ce}:void 0),this.additionalLinesWidget.updateLines(Z.lineNumber,ie,Z.additionalReservedLineCount),Z.parts.some(G=>G.lines.length<0)?this.viewMoreContentWidget=this.renderViewMoreLines(new Re.a(Z.lineNumber,this.editor.getModel().getLineMaxColumn(Z.lineNumber)),"",0):(null===(G=this.viewMoreContentWidget)||void 0===G||G.dispose(),this.viewMoreContentWidget=void 0)}renderViewMoreLines(G,Z,ne){const ie=this.editor.getOption(41),ce=document.createElement("div");ce.className="suggest-preview-additional-widget",De.a.applyFontInfoSlow(ce,ie);const fe=document.createElement("span");fe.className="content-spacer",fe.append(Z),ce.append(fe);const ge=document.createElement("span");ge.className="content-newline suggest-preview-text",ge.append("⏎ "),ce.append(ge);const Ce=new se.b,Se=document.createElement("div");return Se.className="button suggest-preview-text",Se.append(`+${ne} lines…`),Ce.add(me.o(Se,"mousedown",G=>{var Z;null===(Z=this.model)||void 0===Z||Z.setExpanded(!0),G.preventDefault(),this.editor.focus()})),ce.append(Se),new ghostTextWidget_ViewMoreLinesContentWidget(this.editor,G,ce,Ce)}};ut=__decorate([__param(2,st.a)],ut);let dt=class DecorationsWidget{constructor(G,Z,ne,ie){this.editor=G,this.codeEditorService=Z,this.themeService=ne,this.contextKeyService=ie,this.decorationIds=[],this.disposableStore=new se.b}dispose(){this.clear(),this.disposableStore.dispose()}clear(){this.editor.deltaDecorations(this.decorationIds,[]),this.disposableStore.clear()}setParts(G,Z,ne){this.disposableStore.clear();const ie=this.themeService.getColorTheme(),se=ie.getColor($e.r);let ce=void 0,fe=void 0;se&&(ce=String(se.rgba.a),fe=Je.a.Format.CSS.format(opaque(se)));const me=ie.getColor($e.q);let Ce=void 0;me&&(Ce="2px dashed "+me);const Se=this.editor.getModel();if(!Se)return;const{tabSize:Me}=Se.getOptions(),ke=Se.getLineContent(G)||"";let xe=0,De="";const Ie=new Array;ne&&Ie.push({range:ge.a.fromPositions(new Re.a(G,ne.column),new Re.a(G,ne.column+ne.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});const ze=this.contextKeyService.getContextKeyValue("config.editor.useInjectedText"),it=void 0===ze||!!ze;this.decorationIds=this.editor.deltaDecorations(this.decorationIds,Z.map(Z=>{De+=ke.substring(xe,Z.column-1),xe=Z.column-1;const ne=it?Z.text:this.renderSingleLineText(Z.text,De,Me,!1),ie=this.disposableStore.add(function registerDecorationType(G,Z,ne,ie){const se=ne+ht++;return G.registerDecorationType(Z,se,ie),{dispose(){G.removeDecorationType(se)},resolve:()=>G.resolveDecorationOptions(se,!0)}}(this.codeEditorService,"ghost-text","0-ghost-text-",{after:{contentText:ne,opacity:ce,color:fe,border:Ce}}));return{range:ge.a.fromPositions(new Re.a(G,Z.column)),options:it?{description:"ghost-text",after:{content:ne,inlineClassName:"ghost-text-decoration"}}:Object.assign({},ie.resolve())}}).concat(Ie))}renderSingleLineText(G,Z,ne,ie){const se=Z+G,ce=it.a.visibleColumnsByColumns(se,ne);let fe="",me=Z.length+1;for(const Z of G){if("\t"===Z){const G=ce[me+1]-ce[me];if(ie){fe+="→";for(let Z=1;Z{this._viewZoneId&&(G.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(G,Z,ne){const ie=this.editor.getModel();if(!ie)return;const{tabSize:se}=ie.getOptions();this.editor.changeViewZones(ie=>{this._viewZoneId&&(ie.removeZone(this._viewZoneId),this._viewZoneId=void 0);const ce=Math.max(Z.length,ne);if(ce>0){const ne=document.createElement("div");!function renderLines(G,Z,ne,ie){const se=ie.get(27),ce=ie.get(104),fe=ie.get(81),me=ie.get(42),ge=ie.get(41),Ce=ie.get(57),Re=Object(xe.a)(1e4);Re.appendASCIIString('
    ');for(let G=0,ie=ne.length;G');const De=Se.B(xe),ze=Se.m(xe),$e=Ie.a.createEmpty(xe);Object(Me.d)(new Me.c(ge.isMonospace&&!se,ge.canUseHalfwidthRightwardsArrow,xe,!1,De,ze,0,$e,ie.decorations,Z,0,ge.spaceWidth,ge.middotWidth,ge.wsmiddotWidth,ce,"none",fe,me!==ke.e.OFF,null),Re),Re.appendASCIIString("
    ")}Re.appendASCIIString(""),De.a.applyFontInfoSlow(G,ge);const ze=Re.build(),$e=ct?ct.createHTML(ze):ze;G.innerHTML=$e}(ne,se,Z,this.editor.getOptions()),this._viewZoneId=ie.addZone({afterLineNumber:G,heightInLines:ce,domNode:ne})}})}}let ht=0;class ghostTextWidget_ViewMoreLinesContentWidget extends se.a{constructor(G,Z,ne,ie){super(),this.editor=G,this.position=Z,this.domNode=ne,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(ie),this._register(Object(se.i)(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Object(ze.f)((G,Z)=>{const ne=G.getColor($e.r);if(ne){const G=String(ne.rgba.a),ie=Je.a.Format.CSS.format(opaque(ne));Z.addRule(`.monaco-editor .ghost-text-decoration { opacity: ${G}; color: ${ie}; }`),Z.addRule(`.monaco-editor .suggest-preview-text .ghost-text { opacity: ${G}; color: ${ie}; }`)}const ie=G.getColor($e.q);ie&&Z.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 2px dashed ${ie}; }`)});var ft=ne(4),_t=ne(57),yt=ne(103),vt=ne(51),wt=ne(19),Ct=ne(35),St=ne(221),Mt=ne(98),kt=ne(381),xt=ne(999);class GhostText{constructor(G,Z,ne=0){this.lineNumber=G,this.parts=Z,this.additionalReservedLineCount=ne}static equals(G,Z){return G===Z||!!G&&!!Z&&G.equals(Z)}equals(G){return this.lineNumber===G.lineNumber&&this.parts.length===G.parts.length&&this.parts.every((Z,ne)=>Z.equals(G.parts[ne]))}}class GhostTextPart{constructor(G,Z){this.column=G,this.lines=Z}equals(G){return this.column===G.column&&this.lines.length===G.lines.length&&this.lines.every((Z,ne)=>Z===G.lines[ne])}}class ghostText_BaseGhostTextWidgetModel extends se.a{constructor(G){super(),this.editor=G,this._expanded=void 0,this.onDidChangeEmitter=new wt.b,this.onDidChange=this.onDidChangeEmitter.event,this._register(G.onDidChangeConfiguration(G=>{G.hasChanged(105)&&void 0===this._expanded&&this.onDidChangeEmitter.fire()}))}get expanded(){return void 0===this._expanded||this._expanded}setExpanded(G){this._expanded=!0,this.onDidChangeEmitter.fire()}}var inlineCompletionsModel_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},inlineCompletionsModel_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let Lt=class InlineCompletionsModel extends se.a{constructor(G,Z){super(),this.editor=G,this.commandService=Z,this.onDidChangeEmitter=new wt.b,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new se.d),this.active=!1,this._register(Z.onDidExecuteCommand(Z=>{new Set([ce.i.id,ce.g.id,kt.CoreEditingCommands.Tab.id,kt.CoreEditingCommands.DeleteLeft.id,kt.CoreEditingCommands.DeleteRight.id]).has(Z.commandId)&&G.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(G=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(G=>{this.session&&!this.session.isValid&&this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var G;return null===(G=this.session)||void 0===G?void 0:G.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}get expanded(){return!!this.session&&this.session.expanded}setExpanded(G){var Z;null===(Z=this.session)||void 0===Z||Z.setExpanded(G)}setActive(G){var Z;this.active=G,G&&(null===(Z=this.session)||void 0===Z||Z.scheduleAutomaticUpdate())}startSessionIfTriggered(){this.editor.getOption(53).enabled&&(this.session&&this.session.isValid||this.trigger())}trigger(){this.completionSession.value||(this.completionSession.value=new inlineCompletionsModel_InlineCompletionsSession(this.editor,this.editor.getPosition(),()=>this.active,this.commandService),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()})))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var G;null===(G=this.session)||void 0===G||G.commitCurrentCompletion()}showNext(){var G;null===(G=this.session)||void 0===G||G.showNextInlineCompletion()}showPrevious(){var G;null===(G=this.session)||void 0===G||G.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var G;return __awaiter(this,void 0,void 0,(function*(){const Z=yield null===(G=this.session)||void 0===G?void 0:G.hasMultipleInlineCompletions();return void 0!==Z&&Z}))}};Lt=inlineCompletionsModel_decorate([inlineCompletionsModel_param(1,Mt.b)],Lt);class inlineCompletionsModel_InlineCompletionsSession extends ghostText_BaseGhostTextWidgetModel{constructor(G,Z,ne,ie){super(G),this.triggerPosition=Z,this.shouldUpdate=ne,this.commandService=ie,this.minReservedLineCount=0,this.updateOperation=this._register(new se.d),this.cache=this._register(new se.d),this.updateSoon=this._register(new _t.e(()=>this.update(Ct.s.Automatic),50)),this.textModel=this.editor.getModel(),this.currentlySelectedCompletionId=void 0;let ce=void 0;this._register(this.onDidChange(()=>{const G=this.currentCompletion;if(G&&G.sourceInlineCompletion!==ce){ce=G.sourceInlineCompletion;const Z=G.sourceProvider;Z.handleItemDidShow&&Z.handleItemDidShow(G.sourceInlineCompletions,ce)}})),this._register(this.editor.onDidChangeCursorPosition(G=>{this.cache.value&&this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeModelContent(G=>{if(this.cache.value){let G=!1;for(const Z of this.cache.value.completions){const ne=this.textModel.getDecorationRange(Z.decorationId);ne?Z.synchronizedRange.equalsRange(ne)||(G=!0,Z.synchronizedRange=ne):Object(vt.e)(new Error("Decoration has no range"))}G&&this.onDidChangeEmitter.fire()}this.scheduleAutomaticUpdate()})),this._register(Ct.t.onDidChange(()=>{this.updateSoon.schedule()})),this.scheduleAutomaticUpdate()}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value)return 0;if(0===this.cache.value.completions.length)return 0;const G=this.cache.value.completions.findIndex(G=>G.semanticId===this.currentlySelectedCompletionId);return-1===G?(this.currentlySelectedCompletionId=void 0,0):G}get currentCachedCompletion(){if(this.cache.value)return this.cache.value.completions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){var G;return __awaiter(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const Z=(null===(G=this.cache.value)||void 0===G?void 0:G.completions)||[];if(Z.length>0){const G=(this.fixAndGetIndexOfCurrentSelection()+1)%Z.length;this.currentlySelectedCompletionId=Z[G].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}showPreviousInlineCompletion(){var G;return __awaiter(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const Z=(null===(G=this.cache.value)||void 0===G?void 0:G.completions)||[];if(Z.length>0){const G=(this.fixAndGetIndexOfCurrentSelection()+Z.length-1)%Z.length;this.currentlySelectedCompletionId=Z[G].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}ensureUpdateWithExplicitContext(){var G;return __awaiter(this,void 0,void 0,(function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===Ct.s.Explicit?yield this.updateOperation.value.promise:yield this.update(Ct.s.Explicit):(null===(G=this.cache.value)||void 0===G?void 0:G.triggerKind)!==Ct.s.Explicit&&(yield this.update(Ct.s.Explicit))}))}hasMultipleInlineCompletions(){var G;return __awaiter(this,void 0,void 0,(function*(){return yield this.ensureUpdateWithExplicitContext(),((null===(G=this.cache.value)||void 0===G?void 0:G.completions.length)||0)>1}))}get ghostText(){const G=this.currentCompletion,Z=this.editor.getOptions().get(53).mode;return G?inlineCompletionToGhostText(G,this.editor.getModel(),Z,this.editor.getPosition()):void 0}get currentCompletion(){const G=this.currentCachedCompletion;if(G)return{text:G.inlineCompletion.text,range:G.synchronizedRange,command:G.inlineCompletion.command,sourceProvider:G.inlineCompletion.sourceProvider,sourceInlineCompletions:G.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:G.inlineCompletion.sourceInlineCompletion}}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule()}update(G){return __awaiter(this,void 0,void 0,(function*(){if(!this.shouldUpdate())return;const Z=this.editor.getPosition(),ne=Object(_t.h)(ne=>__awaiter(this,void 0,void 0,(function*(){let ie;try{ie=yield function provideInlineCompletions(G,Z,ne,ie=yt.a.None){return __awaiter(this,void 0,void 0,(function*(){const se=function getDefaultRange(G,Z){const ne=Z.getWordAtPosition(G),ie=Z.getLineMaxColumn(G.lineNumber);return ne?new ge.a(G.lineNumber,ne.startColumn,G.lineNumber,ie):ge.a.fromPositions(G,G.with(void 0,ie))}(G,Z),ce=Ct.t.all(Z),fe=yield Promise.all(ce.map(se=>__awaiter(this,void 0,void 0,(function*(){const ce=yield se.provideInlineCompletions(Z,G,ne,ie);return{completions:ce,provider:se,dispose:()=>{ce&&se.freeInlineCompletions(ce)}}})))),me=new Map;for(const G of fe){const Z=G.completions;if(Z)for(const ne of Z.items.map(ne=>({text:ne.text,range:ne.range?ge.a.lift(ne.range):se,command:ne.command,sourceProvider:G.provider,sourceInlineCompletions:Z,sourceInlineCompletion:ne})))ne.range.startLineNumber===ne.range.endLineNumber&&me.set(JSON.stringify({text:ne.text,range:ne.range}),ne)}return{items:[...me.values()],dispose:()=>{for(const G of fe)G.dispose()}}}))}(Z,this.editor.getModel(),{triggerKind:G},ne)}catch(G){return void Object(vt.e)(G)}ne.isCancellationRequested||(this.cache.value=new inlineCompletionsModel_SynchronizedInlineCompletionsCache(this.editor,ie,()=>this.onDidChangeEmitter.fire(),G),this.onDidChangeEmitter.fire())}))),ie=new UpdateOperation(ne,G);this.updateOperation.value=ie,yield ne,this.updateOperation.value===ie&&this.updateOperation.clear()}))}takeOwnership(G){this._register(G)}commitCurrentCompletion(){if(!this.ghostText)return;const G=this.currentCompletion;G&&this.commit(G)}commit(G){const Z=this.cache.clearAndLeak();this.editor.executeEdits("inlineSuggestion.accept",[St.a.replaceMove(G.range,G.text)]),G.command?this.commandService.executeCommand(G.command.id,...G.command.arguments||[]).finally(()=>{null==Z||Z.dispose()}).then(void 0,vt.f):null==Z||Z.dispose(),this.onDidChangeEmitter.fire()}}class UpdateOperation{constructor(G,Z){this.promise=G,this.triggerKind=Z}dispose(){this.promise.cancel()}}class inlineCompletionsModel_SynchronizedInlineCompletionsCache extends se.a{constructor(G,Z,ne,ie){super(),this.triggerKind=ie;const ce=G.deltaDecorations([],Z.items.map(G=>({range:G.range,options:{description:"inline-completion-tracking-range"}})));this._register(Object(se.i)(()=>{G.deltaDecorations(ce,[])})),this.completions=Z.items.map((G,Z)=>new CachedInlineCompletion(G,ce[Z])),this._register(G.onDidChangeModelContent(()=>{let Z=!1;const ie=G.getModel();for(const G of this.completions){const ne=ie.getDecorationRange(G.decorationId);ne?G.synchronizedRange.equalsRange(ne)||(Z=!0,G.synchronizedRange=ne):Object(vt.e)(new Error("Decoration has no range"))}Z&&ne()})),this._register(Z)}}class CachedInlineCompletion{constructor(G,Z){this.inlineCompletion=G,this.decorationId=Z,this.semanticId=JSON.stringify({text:this.inlineCompletion.text,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=G.range}}function inlineCompletionToGhostText(G,Z,ne,ie){if(G.range.startLineNumber!==G.range.endLineNumber)return;const se=Z.getValueInRange(G.range),ce=function cachingDiff(G,Z){if((null==Tt?void 0:Tt.originalValue)===G&&(null==Tt?void 0:Tt.newValue)===Z)return null==Tt?void 0:Tt.changes;{const ne=function smartDiff(G,Z){function getMaxCharCode(G){let Z=0;for(let ne=0,ie=G.length;neZ&&(Z=ie)}return Z}const ne=Math.max(getMaxCharCode(G),getMaxCharCode(Z));function getUniqueCharCode(G){if(G<0)throw new Error("unexpected");return ne+G+1}function getElements(G){let Z=0,ne=0;const ie=new Int32Array(G.length);for(let se=0,ce=G.length;seie},{getElements:()=>se}).ComputeDiff(!1).changes}(G,Z);return Tt={originalValue:G,newValue:Z,changes:ne},ne}}(se,G.text),fe=G.range.startLineNumber,me=new Array;if("prefix"===ne){const G=ce.filter(G=>0===G.originalLength);if(G.length>1||1===G.length&&G[0].originalStart!==se.length)return}for(const ge of ce){const ce=G.range.startColumn+ge.originalStart+ge.originalLength;if("subwordSmart"===ne&&ie&&ie.lineNumber===G.range.startLineNumber&&ce0){const G=se.substr(ge.originalStart,ge.originalLength),ne=Z.getLineFirstNonWhitespaceColumn(fe);if(!/^(\t| )*$/.test(G)||!(0===ne||ce<=ne))return}if(0===ge.modifiedLength)continue;const Ce=G.text.substr(ge.modifiedStart,ge.modifiedLength),Me=Se.R(Ce);me.push(new GhostTextPart(ce,Me))}return new GhostText(fe,me,0)}let Tt=void 0;var At=ne(538),Dt=ne(2114),Et=ne(1365);class suggestWidgetAdapterModel_SuggestWidgetAdapterModel extends ghostText_BaseGhostTextWidgetModel{constructor(G){super(G),this.isSuggestWidgetVisible=!1,this.currentGhostText=void 0,this._isActive=!1,this.isShiftKeyPressed=!1,this.minReservedLineCount=0,this.setInactiveDelayed=this._register(new _t.e(()=>{this.isSuggestWidgetVisible||this.isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100));const Z=Et.SuggestController.get(this.editor);if(Z){let G=!1;const bindToSuggestWidget=()=>{G||(G=!0,this._register(Z.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})),this._register(Z.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.minReservedLineCount=0,this.updateFromSuggestion()})),this._register(Z.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})))};this._register(wt.c.once(Z.model.onDidTrigger)(G=>{bindToSuggestWidget()}))}this.updateFromSuggestion(),this._register(this.editor.onDidChangeCursorPosition(G=>{this.isSuggestionPreviewEnabled()&&this.update()})),this._register(Object(se.i)(()=>{const G=Et.SuggestController.get(this.editor);G&&G.stopForceRenderingAbove()})),this._register(G.onKeyDown(G=>{G.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.updateFromSuggestion())})),this._register(G.onKeyUp(G=>{G.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.updateFromSuggestion())}))}get isActive(){return this._isActive}setExpanded(G){super.setExpanded(G),this.updateFromSuggestion()}isSuggestionPreviewEnabled(){return this.editor.getOption(105).preview}updateFromSuggestion(){const G=Et.SuggestController.get(this.editor);if(!G)return void this.setCurrentInlineCompletion(void 0);if(!this.isSuggestWidgetVisible)return void this.setCurrentInlineCompletion(void 0);const Z=G.widget.value.getFocusedItem();Z?this.setCurrentInlineCompletion(function getInlineCompletion(G,Z,ne,ie){const se=ne.item;if(Array.isArray(se.completion.additionalTextEdits))return{text:"",range:ge.a.fromPositions(Z,Z)};let{insertText:ce}=se.completion;if(4&se.completion.insertTextRules){const ne=(new At.c).parse(ce),ie=G.editor.getModel();Dt.a.adjustWhitespace(ie,Z,ne,!0,!0),ce=ne.toString()}const fe=G.getOverwriteInfo(se,ie);return{text:ce,range:ge.a.fromPositions(Z.delta(0,-fe.overwriteBefore),Z.delta(0,Math.max(fe.overwriteAfter,0)))}}(G,this.editor.getPosition(),Z,this.isShiftKeyPressed)):this.setCurrentInlineCompletion(void 0)}setCurrentInlineCompletion(G){this.currentCompletion=G,this.update()}update(){const G=this.currentCompletion,Z=this.editor.getOptions().get(105).previewMode;this.setGhostText(G?inlineCompletionToGhostText(G,this.editor.getModel(),Z,this.editor.getPosition())||new GhostText(G.range.endLineNumber,[],this.minReservedLineCount):void 0)}setGhostText(G){if(GhostText.equals(this.currentGhostText,G))return;this.currentGhostText=G,this.currentGhostText&&this.expanded&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,...this.currentGhostText.parts.map(G=>G.lines.length-1)));const Z=Et.SuggestController.get(this.editor);Z&&(this.minReservedLineCount>=1&&this.isSuggestionPreviewEnabled()?Z.forceRenderingAbove():Z.stopForceRenderingAbove()),this.onDidChangeEmitter.fire()}get ghostText(){return this.isSuggestionPreviewEnabled()?this.currentGhostText:void 0}}var ghostTextModel_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},ghostTextModel_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},ghostTextModel_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class ghostTextModel_DelegatingModel extends se.a{constructor(){super(...arguments),this.onDidChangeEmitter=new wt.b,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new se.d)}get targetModel(){var G;return null===(G=this.currentModelRef.value)||void 0===G?void 0:G.object}setTargetModel(G){var Z;(null===(Z=this.currentModelRef.value)||void 0===Z?void 0:Z.object)!==G&&(this.currentModelRef.clear(),this.currentModelRef.value=G?function createDisposableRef(G,Z){return{object:G,dispose:()=>null==Z?void 0:Z.dispose()}}(G,G.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var G,Z;return this.hasCachedGhostText||(this.cachedGhostText=null===(Z=null===(G=this.currentModelRef.value)||void 0===G?void 0:G.object)||void 0===Z?void 0:Z.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(G){var Z;null===(Z=this.targetModel)||void 0===Z||Z.setExpanded(G)}get expanded(){return!!this.targetModel&&this.targetModel.expanded}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let jt=class GhostTextModel extends ghostTextModel_DelegatingModel{constructor(G,Z){super(),this.editor=G,this.commandService=Z,this.suggestWidgetAdapterModel=this._register(new suggestWidgetAdapterModel_SuggestWidgetAdapterModel(this.editor)),this.inlineCompletionsModel=this._register(new Lt(this.editor,this.commandService)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(G){var Z;const ne=null===(Z=this.activeInlineCompletionsModel)||void 0===Z?void 0:Z.ghostText;return!!ne&&ne.parts.some(Z=>G.containsPosition(new Re.a(ne.lineNumber,Z.column)))}triggerInlineCompletion(){var G;null===(G=this.activeInlineCompletionsModel)||void 0===G||G.trigger()}commitInlineCompletion(){var G;null===(G=this.activeInlineCompletionsModel)||void 0===G||G.commitCurrentSuggestion()}hideInlineCompletion(){var G;null===(G=this.activeInlineCompletionsModel)||void 0===G||G.hide()}showNextInlineCompletion(){var G;null===(G=this.activeInlineCompletionsModel)||void 0===G||G.showNext()}showPreviousInlineCompletion(){var G;null===(G=this.activeInlineCompletionsModel)||void 0===G||G.showPrevious()}hasMultipleInlineCompletions(){var G;return ghostTextModel_awaiter(this,void 0,void 0,(function*(){const Z=yield null===(G=this.activeInlineCompletionsModel)||void 0===G?void 0:G.hasMultipleInlineCompletions();return void 0!==Z&&Z}))}};jt=ghostTextModel_decorate([ghostTextModel_param(1,Mt.b)],jt);var ghostTextController_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},ghostTextController_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},ghostTextController_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let It=class GhostTextController extends se.a{constructor(G,Z){super(),this.editor=G,this.instantiationService=Z,this.triggeredExplicitly=!1,this.activeController=this._register(new se.d),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(G=>{G.hasChanged(105)&&this.updateModelController(),G.hasChanged(53)&&this.updateModelController()})),this.updateModelController()}static get(G){return G.getContribution(GhostTextController.ID)}get activeModel(){var G;return null===(G=this.activeController.value)||void 0===G?void 0:G.model}updateModelController(){const G=this.editor.getOption(105),Z=this.editor.getOption(53);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(G.preview||Z.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(Nt,this.editor):void 0}shouldShowHoverAt(G){var Z;return(null===(Z=this.activeModel)||void 0===Z?void 0:Z.shouldShowHoverAt(G))||!1}shouldShowHoverAtViewZone(G){var Z,ne;return(null===(ne=null===(Z=this.activeController.value)||void 0===Z?void 0:Z.widget)||void 0===ne?void 0:ne.shouldShowHoverAtViewZone(G))||!1}trigger(){var G;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null===(G=this.activeModel)||void 0===G||G.triggerInlineCompletion()}commit(){var G;null===(G=this.activeModel)||void 0===G||G.commitInlineCompletion()}hide(){var G;null===(G=this.activeModel)||void 0===G||G.hideInlineCompletion()}showNextInlineCompletion(){var G;null===(G=this.activeModel)||void 0===G||G.showNextInlineCompletion()}showPreviousInlineCompletion(){var G;null===(G=this.activeModel)||void 0===G||G.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var G;return ghostTextController_awaiter(this,void 0,void 0,(function*(){const Z=yield null===(G=this.activeModel)||void 0===G?void 0:G.hasMultipleInlineCompletions();return void 0!==Z&&Z}))}};It.inlineSuggestionVisible=new at.c("inlineSuggestionVisible",!1,ft.a("inlineSuggestionVisible","Whether an inline suggestion is visible")),It.inlineSuggestionHasIndentation=new at.c("inlineSuggestionHasIndentation",!1,ft.a("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),It.ID="editor.contrib.ghostTextController",It=ghostTextController_decorate([ghostTextController_param(1,st.a)],It);class GhostTextContextKeys{constructor(G){this.contextKeyService=G,this.inlineCompletionVisible=It.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=It.inlineSuggestionHasIndentation.bindTo(this.contextKeyService)}}let Nt=class ActiveGhostTextController extends se.a{constructor(G,Z,ne){super(),this.editor=G,this.instantiationService=Z,this.contextKeyService=ne,this.contextKeys=new GhostTextContextKeys(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(jt,this.editor)),this.widget=this._register(this.instantiationService.createInstance(ut,this.editor,this.model)),this._register(Object(se.i)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var G;this.contextKeys.inlineCompletionVisible.set(void 0!==(null===(G=this.model.activeInlineCompletionsModel)||void 0===G?void 0:G.ghostText));const Z=this.model.inlineCompletionsModel.ghostText;if(Z&&Z.parts.length>0){const{column:G,lines:ne}=Z.parts[0],ie=ne[0].startsWith(" ")||ne[0].startsWith("\t"),se=G<=this.editor.getModel().getLineIndentColumn(Z.lineNumber);this.contextKeys.inlineCompletionSuggestsIndentation.set(!!this.model.activeInlineCompletionsModel&&ie&&se)}else this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)}};Nt=ghostTextController_decorate([ghostTextController_param(1,st.a),ghostTextController_param(2,at.b)],Nt);const Rt=ce.c.bindToContribution(It.get),zt=new Rt({id:"editor.action.inlineSuggest.commit",precondition:at.a.and(It.inlineSuggestionVisible,It.inlineSuggestionHasIndentation.toNegated(),fe.a.tabMovesFocus.toNegated()),kbOpts:{weight:200,primary:2},handler(G){G.commit(),G.editor.focus()}});Object(ce.k)(zt),Object(ce.k)(new Rt({id:"editor.action.inlineSuggest.hide",precondition:It.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(G){G.hide()}}));class ghostTextController_ShowNextInlineSuggestionAction extends ce.b{constructor(){super({id:ghostTextController_ShowNextInlineSuggestionAction.ID,label:ft.a("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:at.a.and(fe.a.writable,It.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(G,Z){return ghostTextController_awaiter(this,void 0,void 0,(function*(){const G=It.get(Z);G&&(G.showNextInlineCompletion(),Z.focus())}))}}ghostTextController_ShowNextInlineSuggestionAction.ID="editor.action.inlineSuggest.showNext";class ghostTextController_ShowPreviousInlineSuggestionAction extends ce.b{constructor(){super({id:ghostTextController_ShowPreviousInlineSuggestionAction.ID,label:ft.a("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:at.a.and(fe.a.writable,It.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(G,Z){return ghostTextController_awaiter(this,void 0,void 0,(function*(){const G=It.get(Z);G&&(G.showPreviousInlineCompletion(),Z.focus())}))}}ghostTextController_ShowPreviousInlineSuggestionAction.ID="editor.action.inlineSuggest.showPrevious";class ghostTextController_TriggerInlineSuggestionAction extends ce.b{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:ft.a("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:fe.a.writable})}run(G,Z){return ghostTextController_awaiter(this,void 0,void 0,(function*(){const G=It.get(Z);G&&G.trigger()}))}}Object(ce.l)(It.ID,It),Object(ce.j)(ghostTextController_TriggerInlineSuggestionAction),Object(ce.j)(ghostTextController_ShowNextInlineSuggestionAction),Object(ce.j)(ghostTextController_ShowPreviousInlineSuggestionAction)},8400:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CancellationTokenSource",(function(){return Xo})),ne.d(Z,"Emitter",(function(){return Go})),ne.d(Z,"KeyCode",(function(){return Zo})),ne.d(Z,"KeyMod",(function(){return Jo})),ne.d(Z,"Position",(function(){return Qo})),ne.d(Z,"Range",(function(){return ea})),ne.d(Z,"Selection",(function(){return na})),ne.d(Z,"SelectionDirection",(function(){return aa})),ne.d(Z,"MarkerSeverity",(function(){return la})),ne.d(Z,"MarkerTag",(function(){return ua})),ne.d(Z,"Uri",(function(){return pa})),ne.d(Z,"Token",(function(){return ma})),ne.d(Z,"editor",(function(){return _a})),ne.d(Z,"languages",(function(){return ka}));var ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze,$e,Je,it,ot,at,st,ct,ut,dt,ht,ft,_t,yt,vt,wt,Ct,St,Mt,kt,xt,Lt=ne(109),Tt=ne(103),At=ne(19),Dt=ne(165),Et=ne(94),jt=ne(34),It=ne(12),Nt=ne(80),Rt=ne(579);!function(G){G[G.Unknown=0]="Unknown",G[G.Disabled=1]="Disabled",G[G.Enabled=2]="Enabled"}(ie||(ie={})),function(G){G[G.KeepWhitespace=1]="KeepWhitespace",G[G.InsertAsSnippet=4]="InsertAsSnippet"}(se||(se={})),function(G){G[G.Method=0]="Method",G[G.Function=1]="Function",G[G.Constructor=2]="Constructor",G[G.Field=3]="Field",G[G.Variable=4]="Variable",G[G.Class=5]="Class",G[G.Struct=6]="Struct",G[G.Interface=7]="Interface",G[G.Module=8]="Module",G[G.Property=9]="Property",G[G.Event=10]="Event",G[G.Operator=11]="Operator",G[G.Unit=12]="Unit",G[G.Value=13]="Value",G[G.Constant=14]="Constant",G[G.Enum=15]="Enum",G[G.EnumMember=16]="EnumMember",G[G.Keyword=17]="Keyword",G[G.Text=18]="Text",G[G.Color=19]="Color",G[G.File=20]="File",G[G.Reference=21]="Reference",G[G.Customcolor=22]="Customcolor",G[G.Folder=23]="Folder",G[G.TypeParameter=24]="TypeParameter",G[G.User=25]="User",G[G.Issue=26]="Issue",G[G.Snippet=27]="Snippet"}(ce||(ce={})),function(G){G[G.Deprecated=1]="Deprecated"}(fe||(fe={})),function(G){G[G.Invoke=0]="Invoke",G[G.TriggerCharacter=1]="TriggerCharacter",G[G.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(me||(me={})),function(G){G[G.EXACT=0]="EXACT",G[G.ABOVE=1]="ABOVE",G[G.BELOW=2]="BELOW"}(ge||(ge={})),function(G){G[G.NotSet=0]="NotSet",G[G.ContentFlush=1]="ContentFlush",G[G.RecoverFromMarkers=2]="RecoverFromMarkers",G[G.Explicit=3]="Explicit",G[G.Paste=4]="Paste",G[G.Undo=5]="Undo",G[G.Redo=6]="Redo"}(Ce||(Ce={})),function(G){G[G.LF=1]="LF",G[G.CRLF=2]="CRLF"}(Se||(Se={})),function(G){G[G.Text=0]="Text",G[G.Read=1]="Read",G[G.Write=2]="Write"}(Me||(Me={})),function(G){G[G.None=0]="None",G[G.Keep=1]="Keep",G[G.Brackets=2]="Brackets",G[G.Advanced=3]="Advanced",G[G.Full=4]="Full"}(ke||(ke={})),function(G){G[G.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",G[G.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",G[G.accessibilitySupport=2]="accessibilitySupport",G[G.accessibilityPageSize=3]="accessibilityPageSize",G[G.ariaLabel=4]="ariaLabel",G[G.autoClosingBrackets=5]="autoClosingBrackets",G[G.autoClosingDelete=6]="autoClosingDelete",G[G.autoClosingOvertype=7]="autoClosingOvertype",G[G.autoClosingQuotes=8]="autoClosingQuotes",G[G.autoIndent=9]="autoIndent",G[G.automaticLayout=10]="automaticLayout",G[G.autoSurround=11]="autoSurround",G[G.codeLens=12]="codeLens",G[G.codeLensFontFamily=13]="codeLensFontFamily",G[G.codeLensFontSize=14]="codeLensFontSize",G[G.colorDecorators=15]="colorDecorators",G[G.columnSelection=16]="columnSelection",G[G.comments=17]="comments",G[G.contextmenu=18]="contextmenu",G[G.copyWithSyntaxHighlighting=19]="copyWithSyntaxHighlighting",G[G.cursorBlinking=20]="cursorBlinking",G[G.cursorSmoothCaretAnimation=21]="cursorSmoothCaretAnimation",G[G.cursorStyle=22]="cursorStyle",G[G.cursorSurroundingLines=23]="cursorSurroundingLines",G[G.cursorSurroundingLinesStyle=24]="cursorSurroundingLinesStyle",G[G.cursorWidth=25]="cursorWidth",G[G.disableLayerHinting=26]="disableLayerHinting",G[G.disableMonospaceOptimizations=27]="disableMonospaceOptimizations",G[G.domReadOnly=28]="domReadOnly",G[G.dragAndDrop=29]="dragAndDrop",G[G.emptySelectionClipboard=30]="emptySelectionClipboard",G[G.extraEditorClassName=31]="extraEditorClassName",G[G.fastScrollSensitivity=32]="fastScrollSensitivity",G[G.find=33]="find",G[G.fixedOverflowWidgets=34]="fixedOverflowWidgets",G[G.folding=35]="folding",G[G.foldingStrategy=36]="foldingStrategy",G[G.foldingHighlight=37]="foldingHighlight",G[G.foldingImportsByDefault=38]="foldingImportsByDefault",G[G.unfoldOnClickAfterEndOfLine=39]="unfoldOnClickAfterEndOfLine",G[G.fontFamily=40]="fontFamily",G[G.fontInfo=41]="fontInfo",G[G.fontLigatures=42]="fontLigatures",G[G.fontSize=43]="fontSize",G[G.fontWeight=44]="fontWeight",G[G.formatOnPaste=45]="formatOnPaste",G[G.formatOnType=46]="formatOnType",G[G.glyphMargin=47]="glyphMargin",G[G.gotoLocation=48]="gotoLocation",G[G.hideCursorInOverviewRuler=49]="hideCursorInOverviewRuler",G[G.highlightActiveIndentGuide=50]="highlightActiveIndentGuide",G[G.hover=51]="hover",G[G.inDiffEditor=52]="inDiffEditor",G[G.inlineSuggest=53]="inlineSuggest",G[G.letterSpacing=54]="letterSpacing",G[G.lightbulb=55]="lightbulb",G[G.lineDecorationsWidth=56]="lineDecorationsWidth",G[G.lineHeight=57]="lineHeight",G[G.lineNumbers=58]="lineNumbers",G[G.lineNumbersMinChars=59]="lineNumbersMinChars",G[G.linkedEditing=60]="linkedEditing",G[G.links=61]="links",G[G.matchBrackets=62]="matchBrackets",G[G.minimap=63]="minimap",G[G.mouseStyle=64]="mouseStyle",G[G.mouseWheelScrollSensitivity=65]="mouseWheelScrollSensitivity",G[G.mouseWheelZoom=66]="mouseWheelZoom",G[G.multiCursorMergeOverlapping=67]="multiCursorMergeOverlapping",G[G.multiCursorModifier=68]="multiCursorModifier",G[G.multiCursorPaste=69]="multiCursorPaste",G[G.occurrencesHighlight=70]="occurrencesHighlight",G[G.overviewRulerBorder=71]="overviewRulerBorder",G[G.overviewRulerLanes=72]="overviewRulerLanes",G[G.padding=73]="padding",G[G.parameterHints=74]="parameterHints",G[G.peekWidgetDefaultFocus=75]="peekWidgetDefaultFocus",G[G.definitionLinkOpensInPeek=76]="definitionLinkOpensInPeek",G[G.quickSuggestions=77]="quickSuggestions",G[G.quickSuggestionsDelay=78]="quickSuggestionsDelay",G[G.readOnly=79]="readOnly",G[G.renameOnType=80]="renameOnType",G[G.renderControlCharacters=81]="renderControlCharacters",G[G.renderIndentGuides=82]="renderIndentGuides",G[G.renderFinalNewline=83]="renderFinalNewline",G[G.renderLineHighlight=84]="renderLineHighlight",G[G.renderLineHighlightOnlyWhenFocus=85]="renderLineHighlightOnlyWhenFocus",G[G.renderValidationDecorations=86]="renderValidationDecorations",G[G.renderWhitespace=87]="renderWhitespace",G[G.revealHorizontalRightPadding=88]="revealHorizontalRightPadding",G[G.roundedSelection=89]="roundedSelection",G[G.rulers=90]="rulers",G[G.scrollbar=91]="scrollbar",G[G.scrollBeyondLastColumn=92]="scrollBeyondLastColumn",G[G.scrollBeyondLastLine=93]="scrollBeyondLastLine",G[G.scrollPredominantAxis=94]="scrollPredominantAxis",G[G.selectionClipboard=95]="selectionClipboard",G[G.selectionHighlight=96]="selectionHighlight",G[G.selectOnLineNumbers=97]="selectOnLineNumbers",G[G.showFoldingControls=98]="showFoldingControls",G[G.showUnused=99]="showUnused",G[G.snippetSuggestions=100]="snippetSuggestions",G[G.smartSelect=101]="smartSelect",G[G.smoothScrolling=102]="smoothScrolling",G[G.stickyTabStops=103]="stickyTabStops",G[G.stopRenderingLineAfter=104]="stopRenderingLineAfter",G[G.suggest=105]="suggest",G[G.suggestFontSize=106]="suggestFontSize",G[G.suggestLineHeight=107]="suggestLineHeight",G[G.suggestOnTriggerCharacters=108]="suggestOnTriggerCharacters",G[G.suggestSelection=109]="suggestSelection",G[G.tabCompletion=110]="tabCompletion",G[G.tabIndex=111]="tabIndex",G[G.unusualLineTerminators=112]="unusualLineTerminators",G[G.useShadowDOM=113]="useShadowDOM",G[G.useTabStops=114]="useTabStops",G[G.wordSeparators=115]="wordSeparators",G[G.wordWrap=116]="wordWrap",G[G.wordWrapBreakAfterCharacters=117]="wordWrapBreakAfterCharacters",G[G.wordWrapBreakBeforeCharacters=118]="wordWrapBreakBeforeCharacters",G[G.wordWrapColumn=119]="wordWrapColumn",G[G.wordWrapOverride1=120]="wordWrapOverride1",G[G.wordWrapOverride2=121]="wordWrapOverride2",G[G.wrappingIndent=122]="wrappingIndent",G[G.wrappingStrategy=123]="wrappingStrategy",G[G.showDeprecated=124]="showDeprecated",G[G.inlayHints=125]="inlayHints",G[G.editorClassName=126]="editorClassName",G[G.pixelRatio=127]="pixelRatio",G[G.tabFocusMode=128]="tabFocusMode",G[G.layoutInfo=129]="layoutInfo",G[G.wrappingInfo=130]="wrappingInfo"}(xe||(xe={})),function(G){G[G.TextDefined=0]="TextDefined",G[G.LF=1]="LF",G[G.CRLF=2]="CRLF"}(De||(De={})),function(G){G[G.LF=0]="LF",G[G.CRLF=1]="CRLF"}(Ie||(Ie={})),function(G){G[G.None=0]="None",G[G.Indent=1]="Indent",G[G.IndentOutdent=2]="IndentOutdent",G[G.Outdent=3]="Outdent"}(Re||(Re={})),function(G){G[G.Other=0]="Other",G[G.Type=1]="Type",G[G.Parameter=2]="Parameter"}(ze||(ze={})),function(G){G[G.Automatic=0]="Automatic",G[G.Explicit=1]="Explicit"}($e||($e={})),function(G){G[G.DependsOnKbLayout=-1]="DependsOnKbLayout",G[G.Unknown=0]="Unknown",G[G.Backspace=1]="Backspace",G[G.Tab=2]="Tab",G[G.Enter=3]="Enter",G[G.Shift=4]="Shift",G[G.Ctrl=5]="Ctrl",G[G.Alt=6]="Alt",G[G.PauseBreak=7]="PauseBreak",G[G.CapsLock=8]="CapsLock",G[G.Escape=9]="Escape",G[G.Space=10]="Space",G[G.PageUp=11]="PageUp",G[G.PageDown=12]="PageDown",G[G.End=13]="End",G[G.Home=14]="Home",G[G.LeftArrow=15]="LeftArrow",G[G.UpArrow=16]="UpArrow",G[G.RightArrow=17]="RightArrow",G[G.DownArrow=18]="DownArrow",G[G.Insert=19]="Insert",G[G.Delete=20]="Delete",G[G.KEY_0=21]="KEY_0",G[G.KEY_1=22]="KEY_1",G[G.KEY_2=23]="KEY_2",G[G.KEY_3=24]="KEY_3",G[G.KEY_4=25]="KEY_4",G[G.KEY_5=26]="KEY_5",G[G.KEY_6=27]="KEY_6",G[G.KEY_7=28]="KEY_7",G[G.KEY_8=29]="KEY_8",G[G.KEY_9=30]="KEY_9",G[G.KEY_A=31]="KEY_A",G[G.KEY_B=32]="KEY_B",G[G.KEY_C=33]="KEY_C",G[G.KEY_D=34]="KEY_D",G[G.KEY_E=35]="KEY_E",G[G.KEY_F=36]="KEY_F",G[G.KEY_G=37]="KEY_G",G[G.KEY_H=38]="KEY_H",G[G.KEY_I=39]="KEY_I",G[G.KEY_J=40]="KEY_J",G[G.KEY_K=41]="KEY_K",G[G.KEY_L=42]="KEY_L",G[G.KEY_M=43]="KEY_M",G[G.KEY_N=44]="KEY_N",G[G.KEY_O=45]="KEY_O",G[G.KEY_P=46]="KEY_P",G[G.KEY_Q=47]="KEY_Q",G[G.KEY_R=48]="KEY_R",G[G.KEY_S=49]="KEY_S",G[G.KEY_T=50]="KEY_T",G[G.KEY_U=51]="KEY_U",G[G.KEY_V=52]="KEY_V",G[G.KEY_W=53]="KEY_W",G[G.KEY_X=54]="KEY_X",G[G.KEY_Y=55]="KEY_Y",G[G.KEY_Z=56]="KEY_Z",G[G.Meta=57]="Meta",G[G.ContextMenu=58]="ContextMenu",G[G.F1=59]="F1",G[G.F2=60]="F2",G[G.F3=61]="F3",G[G.F4=62]="F4",G[G.F5=63]="F5",G[G.F6=64]="F6",G[G.F7=65]="F7",G[G.F8=66]="F8",G[G.F9=67]="F9",G[G.F10=68]="F10",G[G.F11=69]="F11",G[G.F12=70]="F12",G[G.F13=71]="F13",G[G.F14=72]="F14",G[G.F15=73]="F15",G[G.F16=74]="F16",G[G.F17=75]="F17",G[G.F18=76]="F18",G[G.F19=77]="F19",G[G.NumLock=78]="NumLock",G[G.ScrollLock=79]="ScrollLock",G[G.US_SEMICOLON=80]="US_SEMICOLON",G[G.US_EQUAL=81]="US_EQUAL",G[G.US_COMMA=82]="US_COMMA",G[G.US_MINUS=83]="US_MINUS",G[G.US_DOT=84]="US_DOT",G[G.US_SLASH=85]="US_SLASH",G[G.US_BACKTICK=86]="US_BACKTICK",G[G.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",G[G.US_BACKSLASH=88]="US_BACKSLASH",G[G.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",G[G.US_QUOTE=90]="US_QUOTE",G[G.OEM_8=91]="OEM_8",G[G.OEM_102=92]="OEM_102",G[G.NUMPAD_0=93]="NUMPAD_0",G[G.NUMPAD_1=94]="NUMPAD_1",G[G.NUMPAD_2=95]="NUMPAD_2",G[G.NUMPAD_3=96]="NUMPAD_3",G[G.NUMPAD_4=97]="NUMPAD_4",G[G.NUMPAD_5=98]="NUMPAD_5",G[G.NUMPAD_6=99]="NUMPAD_6",G[G.NUMPAD_7=100]="NUMPAD_7",G[G.NUMPAD_8=101]="NUMPAD_8",G[G.NUMPAD_9=102]="NUMPAD_9",G[G.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",G[G.NUMPAD_ADD=104]="NUMPAD_ADD",G[G.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",G[G.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",G[G.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",G[G.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",G[G.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",G[G.ABNT_C1=110]="ABNT_C1",G[G.ABNT_C2=111]="ABNT_C2",G[G.MAX_VALUE=112]="MAX_VALUE"}(Je||(Je={})),function(G){G[G.Hint=1]="Hint",G[G.Info=2]="Info",G[G.Warning=4]="Warning",G[G.Error=8]="Error"}(it||(it={})),function(G){G[G.Unnecessary=1]="Unnecessary",G[G.Deprecated=2]="Deprecated"}(ot||(ot={})),function(G){G[G.Inline=1]="Inline",G[G.Gutter=2]="Gutter"}(at||(at={})),function(G){G[G.UNKNOWN=0]="UNKNOWN",G[G.TEXTAREA=1]="TEXTAREA",G[G.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",G[G.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",G[G.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",G[G.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",G[G.CONTENT_TEXT=6]="CONTENT_TEXT",G[G.CONTENT_EMPTY=7]="CONTENT_EMPTY",G[G.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",G[G.CONTENT_WIDGET=9]="CONTENT_WIDGET",G[G.OVERVIEW_RULER=10]="OVERVIEW_RULER",G[G.SCROLLBAR=11]="SCROLLBAR",G[G.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",G[G.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(st||(st={})),function(G){G[G.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",G[G.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",G[G.TOP_CENTER=2]="TOP_CENTER"}(ct||(ct={})),function(G){G[G.Left=1]="Left",G[G.Center=2]="Center",G[G.Right=4]="Right",G[G.Full=7]="Full"}(ut||(ut={})),function(G){G[G.Off=0]="Off",G[G.On=1]="On",G[G.Relative=2]="Relative",G[G.Interval=3]="Interval",G[G.Custom=4]="Custom"}(dt||(dt={})),function(G){G[G.None=0]="None",G[G.Text=1]="Text",G[G.Blocks=2]="Blocks"}(ht||(ht={})),function(G){G[G.Smooth=0]="Smooth",G[G.Immediate=1]="Immediate"}(ft||(ft={})),function(G){G[G.Auto=1]="Auto",G[G.Hidden=2]="Hidden",G[G.Visible=3]="Visible"}(_t||(_t={})),function(G){G[G.LTR=0]="LTR",G[G.RTL=1]="RTL"}(yt||(yt={})),function(G){G[G.Invoke=1]="Invoke",G[G.TriggerCharacter=2]="TriggerCharacter",G[G.ContentChange=3]="ContentChange"}(vt||(vt={})),function(G){G[G.File=0]="File",G[G.Module=1]="Module",G[G.Namespace=2]="Namespace",G[G.Package=3]="Package",G[G.Class=4]="Class",G[G.Method=5]="Method",G[G.Property=6]="Property",G[G.Field=7]="Field",G[G.Constructor=8]="Constructor",G[G.Enum=9]="Enum",G[G.Interface=10]="Interface",G[G.Function=11]="Function",G[G.Variable=12]="Variable",G[G.Constant=13]="Constant",G[G.String=14]="String",G[G.Number=15]="Number",G[G.Boolean=16]="Boolean",G[G.Array=17]="Array",G[G.Object=18]="Object",G[G.Key=19]="Key",G[G.Null=20]="Null",G[G.EnumMember=21]="EnumMember",G[G.Struct=22]="Struct",G[G.Event=23]="Event",G[G.Operator=24]="Operator",G[G.TypeParameter=25]="TypeParameter"}(wt||(wt={})),function(G){G[G.Deprecated=1]="Deprecated"}(Ct||(Ct={})),function(G){G[G.Hidden=0]="Hidden",G[G.Blink=1]="Blink",G[G.Smooth=2]="Smooth",G[G.Phase=3]="Phase",G[G.Expand=4]="Expand",G[G.Solid=5]="Solid"}(St||(St={})),function(G){G[G.Line=1]="Line",G[G.Block=2]="Block",G[G.Underline=3]="Underline",G[G.LineThin=4]="LineThin",G[G.BlockOutline=5]="BlockOutline",G[G.UnderlineThin=6]="UnderlineThin"}(Mt||(Mt={})),function(G){G[G.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",G[G.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",G[G.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",G[G.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(kt||(kt={})),function(G){G[G.None=0]="None",G[G.Same=1]="Same",G[G.Indent=2]="Indent",G[G.DeepIndent=3]="DeepIndent"}(xt||(xt={}));class standaloneBase_KeyMod{static chord(G,Z){return Object(Dt.a)(G,Z)}}function createMonacoBaseAPI(){return{editor:void 0,languages:void 0,CancellationTokenSource:Tt.b,Emitter:At.b,KeyCode:Je,KeyMod:standaloneBase_KeyMod,Position:jt.a,Range:It.a,Selection:Nt.a,SelectionDirection:yt,MarkerSeverity:it,MarkerTag:ot,Uri:Et.a,Token:Rt.a}}standaloneBase_KeyMod.CtrlCmd=2048,standaloneBase_KeyMod.Shift=1024,standaloneBase_KeyMod.Alt=512,standaloneBase_KeyMod.WinCtrl=256;ne(7628);var zt,qt=ne(127),Wt=ne(6),Bt=ne(376),Ft=ne(234),Ht=ne(1675),$t=ne(143),Vt=ne(181),Yt=ne(98);!function(G){G[G.API=0]="API",G[G.USER=1]="USER"}(zt||(zt={}));var Ut=ne(306),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let Kt=class CommandOpener{constructor(G){this._commandService=G}open(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(!Object(Ut.c)(G,$t.c.command))return!1;if(!(null==Z?void 0:Z.allowCommands))return!0;"string"==typeof G&&(G=Et.a.parse(G));let ne=[];try{ne=Object(Ht.a)(decodeURIComponent(G.query))}catch(Z){try{ne=Object(Ht.a)(G.query)}catch(G){}}return Array.isArray(ne)||(ne=[ne]),yield this._commandService.executeCommand(G.path,...ne),!0}))}};Kt=__decorate([__param(0,Yt.b)],Kt);let Gt=class EditorOpener{constructor(G){this._editorService=G}open(G,Z){return __awaiter(this,void 0,void 0,(function*(){"string"==typeof G&&(G=Et.a.parse(G));let ne=void 0;const ie=/^L?(\d+)(?:,(\d+))?/.exec(G.fragment);return ie&&(ne={startLineNumber:parseInt(ie[1]),startColumn:ie[2]?parseInt(ie[2]):1},G=G.with({fragment:""})),G.scheme===$t.c.file&&(G=Object(Vt.h)(G)),yield this._editorService.openCodeEditor({resource:G,options:Object.assign({selection:ne,context:(null==Z?void 0:Z.fromUserGesture)?zt.USER:zt.API},null==Z?void 0:Z.editorOptions)},this._editorService.getFocusedCodeEditor(),null==Z?void 0:Z.openToSide),!0}))}};Gt=__decorate([__param(0,qt.a)],Gt);let Zt=class OpenerService{constructor(G,Z){this._openers=new Bt.a,this._validators=new Bt.a,this._resolvers=new Bt.a,this._resolvedUriTargets=new Ft.b(G=>G.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Bt.a,this._defaultExternalOpener={openExternal:G=>__awaiter(this,void 0,void 0,(function*(){return Object(Ut.c)(G,$t.c.http)||Object(Ut.c)(G,$t.c.https)?Wt.Z(G):window.location.href=G,!0}))},this._openers.push({open:(G,Z)=>__awaiter(this,void 0,void 0,(function*(){return!!((null==Z?void 0:Z.openExternal)||Object(Ut.c)(G,$t.c.mailto)||Object(Ut.c)(G,$t.c.http)||Object(Ut.c)(G,$t.c.https))&&(yield this._doOpenExternal(G,Z),!0)}))}),this._openers.push(new Kt(Z)),this._openers.push(new Gt(G))}registerOpener(G){return{dispose:this._openers.unshift(G)}}registerValidator(G){return{dispose:this._validators.push(G)}}registerExternalUriResolver(G){return{dispose:this._resolvers.push(G)}}setDefaultExternalOpener(G){this._defaultExternalOpener=G}registerExternalOpener(G){return{dispose:this._externalOpeners.push(G)}}open(G,Z){var ne;return __awaiter(this,void 0,void 0,(function*(){const ie="string"==typeof G?Et.a.parse(G):G,se=null!==(ne=this._resolvedUriTargets.get(ie))&&void 0!==ne?ne:G;for(const G of this._validators)if(!(yield G.shouldOpen(se)))return!1;for(const ne of this._openers){if(yield ne.open(G,Z))return!0}return!1}))}resolveExternalUri(G,Z){return __awaiter(this,void 0,void 0,(function*(){for(const ne of this._resolvers)try{const ie=yield ne.resolveExternalUri(G,Z);if(ie)return this._resolvedUriTargets.has(ie.resolved)||this._resolvedUriTargets.set(ie.resolved,G),ie}catch(G){}throw new Error("Could not resolve external URI: "+G.toString())}))}_doOpenExternal(G,Z){return __awaiter(this,void 0,void 0,(function*(){const ne="string"==typeof G?Et.a.parse(G):G;let ie,se;try{ie=(yield this.resolveExternalUri(ne,Z)).resolved}catch(G){ie=ne}if(se="string"==typeof G&&ne.toString()===ie.toString()?G:encodeURI(ie.toString(!0)),null==Z?void 0:Z.allowContributedOpeners){const G="string"==typeof(null==Z?void 0:Z.allowContributedOpeners)?null==Z?void 0:Z.allowContributedOpeners:void 0;for(const Z of this._externalOpeners){if(yield Z.openExternal(se,{sourceUri:ne,preferredOpenerId:G},Tt.a.None))return!0}}return this._defaultExternalOpener.openExternal(se,{sourceUri:ne},Tt.a.None)}))}dispose(){this._validators.clear()}};Zt=__decorate([__param(0,qt.a),__param(1,Yt.b)],Zt);var Jt=ne(1362),Qt=ne(10),on=ne(166);const sn={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class diffNavigator_DiffNavigator extends Qt.a{constructor(G,Z={}){super(),this._onDidUpdate=this._register(new At.b),this._editor=G,this._options=on.f(Z,sn,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(G=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(G=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(G){this.ranges=[],G&&G.forEach(G=>{!this._options.ignoreCharChanges&&G.charChanges?G.charChanges.forEach(G=>{this.ranges.push({rhs:!0,range:new It.a(G.modifiedStartLineNumber,G.modifiedStartColumn,G.modifiedEndLineNumber,G.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new It.a(G.modifiedStartLineNumber,1,G.modifiedStartLineNumber,1)})}),this.ranges.sort((G,Z)=>G.range.getStartPosition().isBeforeOrEqual(Z.range.getStartPosition())?-1:Z.range.getStartPosition().isBeforeOrEqual(G.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(G){let Z=!1,ne=this._editor.getPosition();if(ne){for(let ie=0,se=this.ranges.length;ie=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let ne=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let G=ne.range.getStartPosition();this._editor.setPosition(G),this._editor.revealPositionInCenter(G,Z)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(G=0){this._move(!0,G)}previous(G=0){this._move(!1,G)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}var cn=ne(1002),dn=ne(773),mn=ne(194),_n=ne(35),gn=ne(365),bn=ne(418),yn=ne(373),vn=ne(417),wn=ne(57),Cn=ne(51),On=ne(46),Mn=ne(54);let kn=!1;function logOnceWebWorkerWarning(G){On.i&&(kn||(kn=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(G.message))}class simpleWorker_SimpleWorkerProtocol{constructor(G){this._workerId=-1,this._handler=G,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(G){this._workerId=G}sendMessage(G,Z){let ne=String(++this._lastSentReq);return new Promise((ie,se)=>{this._pendingReplies[ne]={resolve:ie,reject:se},this._send({vsWorker:this._workerId,req:ne,method:G,args:Z})})}handleMessage(G){G&&G.vsWorker&&(-1!==this._workerId&&G.vsWorker!==this._workerId||this._handleMessage(G))}_handleMessage(G){if(G.seq){let Z=G;if(!this._pendingReplies[Z.seq])return void console.warn("Got reply to unknown seq");let ne=this._pendingReplies[Z.seq];if(delete this._pendingReplies[Z.seq],Z.err){let G=Z.err;return Z.err.$isError&&(G=new Error,G.name=Z.err.name,G.message=Z.err.message,G.stack=Z.err.stack),void ne.reject(G)}return void ne.resolve(Z.res)}let Z=G,ne=Z.req;this._handler.handleMessage(Z.method,Z.args).then(G=>{this._send({vsWorker:this._workerId,seq:ne,res:G,err:void 0})},G=>{G.detail instanceof Error&&(G.detail=Object(Cn.g)(G.detail)),this._send({vsWorker:this._workerId,seq:ne,res:void 0,err:Object(Cn.g)(G)})})}_send(G){let Z=[];if(G.req){const ne=G;for(let G=0;G{this._protocol.handleMessage(G)},G=>{ie&&ie(G)})),this._protocol=new simpleWorker_SimpleWorkerProtocol({sendMessage:(G,Z)=>{this._worker.postMessage(G,Z)},handleMessage:(G,Z)=>{if("function"!=typeof ne[G])return Promise.reject(new Error("Missing method "+G+" on main thread host."));try{return Promise.resolve(ne[G].apply(ne,Z))}catch(G){return Promise.reject(G)}}}),this._protocol.setWorkerId(this._worker.getId());let se=null;void 0!==self.require&&"function"==typeof self.require.getConfig?se=self.require.getConfig():void 0!==self.requirejs&&(se=self.requirejs.s.contexts._.config);const ce=Mn.e(ne);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(se)),Z,ce]);const proxyMethodRequest=(G,Z)=>this._request(G,Z);this._lazyProxy=new Promise((G,ne)=>{ie=ne,this._onModuleLoaded.then(Z=>{G(Mn.d(Z,proxyMethodRequest))},G=>{ne(G),this._onError("Worker failed to load "+Z,G)})})}getProxyObject(){return this._lazyProxy}_request(G,Z){return new Promise((ne,ie)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(G,Z).then(ne,ie)},ie)})}_onError(G,Z){console.error(G),console.info(Z)}}var xn;const Tn=null===(xn=window.trustedTypes)||void 0===xn?void 0:xn.createPolicy("defaultWorkerFactory",{createScriptURL:G=>G});class WebWorker{constructor(G,Z,ne,ie,se){this.id=Z;const ce=function getWorker(G,Z){if(On.b.MonacoEnvironment){if("function"==typeof On.b.MonacoEnvironment.getWorker)return On.b.MonacoEnvironment.getWorker(G,Z);if("function"==typeof On.b.MonacoEnvironment.getWorkerUrl){const ne=On.b.MonacoEnvironment.getWorkerUrl(G,Z);return new Worker(Tn?Tn.createScriptURL(ne):ne,{name:Z})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",ne);!function isPromiseLike(G){return"function"==typeof G.then}(ce)?this.worker=Promise.resolve(ce):this.worker=ce,this.postMessage(G,[]),this.worker.then(G=>{G.onmessage=function(G){ie(G.data)},G.onmessageerror=se,"function"==typeof G.addEventListener&&G.addEventListener("error",se)})}getId(){return this.id}postMessage(G,Z){this.worker&&this.worker.then(ne=>ne.postMessage(G,Z))}dispose(){this.worker&&this.worker.then(G=>G.terminate()),this.worker=null}}class defaultWorkerFactory_DefaultWorkerFactory{constructor(G){this._label=G,this._webWorkerFailedBeforeError=!1}create(G,Z,ne){let ie=++defaultWorkerFactory_DefaultWorkerFactory.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new WebWorker(G,ie,this._label||"anonymous"+ie,Z,G=>{logOnceWebWorkerWarning(G),this._webWorkerFailedBeforeError=G,ne(G)})}}defaultWorkerFactory_DefaultWorkerFactory.LAST_WORKER_ID=0;var Dn=ne(122),En=ne(999),jn=ne(27);function computeDiff(G,Z,ne,ie){return new En.a(G,Z,ne).ComputeDiff(ie)}class LineSequence{constructor(G){const Z=[],ne=[];for(let ie=0,se=G.length;ie0&&Z.originalLength<20&&Z.modifiedLength>0&&Z.modifiedLength<20&&se()){const ce=ne.createCharSequence(G,Z.originalStart,Z.originalStart+Z.originalLength-1),me=ie.createCharSequence(G,Z.modifiedStart,Z.modifiedStart+Z.modifiedLength-1);let ge=computeDiff(ce,me,se,!0).changes;fe&&(ge=function postProcessCharChanges(G){if(G.length<=1)return G;const Z=[G[0]];let ne=Z[0];for(let ie=1,se=G.length;ie1&&fe>1;){if(G.charCodeAt(ne-2)!==Z.charCodeAt(fe-2))break;ne--,fe--}(ne>1||fe>1)&&this._pushTrimWhitespaceCharChange(ie,se+1,1,ne,ce+1,1,fe)}{let ne=getLastNonBlankColumn(G,1),fe=getLastNonBlankColumn(Z,1);const me=G.length+1,ge=Z.length+1;for(;ne!0;const Z=Date.now();return()=>Date.now()-ZZ&&(Z=ce),se>ne&&(ne=se),fe>ne&&(ne=fe)}Z++,ne++;let ie=new Uint8Matrix(ne,Z,0);for(let Z=0,ne=G.length;Z=this._maxCharCode?0:this._states.get(G,Z)}}let Wn=null;let Bn=null;class LinkComputer{static _createLink(G,Z,ne,ie,se){let ce=se-1;do{const ne=Z.charCodeAt(ce);if(2!==G.get(ne))break;ce--}while(ce>ie);if(ie>0){const G=Z.charCodeAt(ie-1),ne=Z.charCodeAt(ce);(40===G&&41===ne||91===G&&93===ne||123===G&&125===ne)&&ce--}return{range:{startLineNumber:ne,startColumn:ie+1,endLineNumber:ne,endColumn:ce+2},url:Z.substring(ie,ce+1)}}static computeLinks(G,Z=function getStateMachine(){return null===Wn&&(Wn=new StateMachine([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Wn}()){const ne=function getClassifier(){if(null===Bn){Bn=new qn.a(0);const G=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let Z=0;Z=0?(ie+=ne?1:-1,ie<0?ie=G.length-1:ie%=G.length,G[ie]):null}}BasicInplaceReplace.INSTANCE=new BasicInplaceReplace;var Hn=ne(607),editorSimpleWorker_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class editorSimpleWorker_MirrorModel extends class mirrorTextModel_MirrorTextModel{constructor(G,Z,ne,ie){this._uri=G,this._lines=Z,this._eol=ne,this._versionId=ie,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(G){G.eol&&G.eol!==this._eol&&(this._eol=G.eol,this._lineStarts=null);const Z=G.changes;for(const G of Z)this._acceptDeleteRange(G.range),this._acceptInsertText(new jt.a(G.range.startLineNumber,G.range.startColumn),G.text);this._versionId=G.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const G=this._eol.length,Z=this._lines.length,ne=new Uint32Array(Z);for(let ie=0;iethis._lines.length)Z=this._lines.length,ne=this._lines[Z-1].length+1,ie=!0;else{let G=this._lines[Z-1].length+1;ne<1?(ne=1,ie=!0):ne>G&&(ne=G,ie=!0)}return ie?{lineNumber:Z,column:ne}:G}}class editorSimpleWorker_EditorSimpleWorker{constructor(G,Z){this._host=G,this._models=Object.create(null),this._foreignModuleFactory=Z,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(G){return this._models[G]}_getModels(){let G=[];return Object.keys(this._models).forEach(Z=>G.push(this._models[Z])),G}acceptNewModel(G){this._models[G.url]=new editorSimpleWorker_MirrorModel(Et.a.parse(G.url),G.lines,G.EOL,G.versionId)}acceptModelChanged(G,Z){if(!this._models[G])return;this._models[G].onEvents(Z)}acceptRemovedModel(G){this._models[G]&&delete this._models[G]}computeDiff(G,Z,ne,ie){return editorSimpleWorker_awaiter(this,void 0,void 0,(function*(){const se=this._getModel(G),ce=this._getModel(Z);if(!se||!ce)return null;const fe=se.getLinesContent(),me=ce.getLinesContent(),ge=new DiffComputer(fe,me,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:ne,shouldMakePrettyDiff:!0,maxComputationTime:ie}).computeDiff(),Ce=!(ge.changes.length>0)&&this._modelsAreIdentical(se,ce);return{quitEarly:ge.quitEarly,identical:Ce,changes:ge.changes}}))}_modelsAreIdentical(G,Z){const ne=G.getLineCount();if(ne!==Z.getLineCount())return!1;for(let ie=1;ie<=ne;ie++){if(G.getLineContent(ie)!==Z.getLineContent(ie))return!1}return!0}computeMoreMinimalEdits(G,Z){return editorSimpleWorker_awaiter(this,void 0,void 0,(function*(){const ne=this._getModel(G);if(!ne)return Z;const ie=[];let se=void 0;Z=Z.slice(0).sort((G,Z)=>{if(G.range&&Z.range)return It.a.compareRangesUsingStarts(G.range,Z.range);return(G.range?0:1)-(Z.range?0:1)});for(let{range:G,text:ce,eol:fe}of Z){if("number"==typeof fe&&(se=fe),It.a.isEmpty(G)&&!ce)continue;const Z=ne.getValueInRange(G);if(ce=ce.replace(/\r\n|\n|\r/g,ne.eol),Z===ce)continue;if(Math.max(ce.length,Z.length)>editorSimpleWorker_EditorSimpleWorker._diffLimit){ie.push({range:G,text:ce});continue}const me=Object(En.b)(Z,ce,!1),ge=ne.offsetAt(It.a.lift(G).getStartPosition());for(const G of me){const Z=ne.positionAt(ge+G.originalStart),se=ne.positionAt(ge+G.originalStart+G.originalLength),fe={text:ce.substr(G.modifiedStart,G.modifiedLength),range:{startLineNumber:Z.lineNumber,startColumn:Z.column,endLineNumber:se.lineNumber,endColumn:se.column}};ne.getValueInRange(fe.range)!==fe.text&&ie.push(fe)}}return"number"==typeof se&&ie.push({eol:se,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),ie}))}computeLinks(G){return editorSimpleWorker_awaiter(this,void 0,void 0,(function*(){let Z=this._getModel(G);return Z?function computeLinks(G){return G&&"function"==typeof G.getLineCount&&"function"==typeof G.getLineContent?LinkComputer.computeLinks(G):[]}(Z):null}))}textualSuggest(G,Z,ne,ie){return editorSimpleWorker_awaiter(this,void 0,void 0,(function*(){const se=new Hn.a(!0),ce=new RegExp(ne,ie),fe=new Set;e:for(let ne of G){const G=this._getModel(ne);if(G)for(let ne of G.words(ce))if(ne!==Z&&isNaN(Number(ne))&&(fe.add(ne),fe.size>editorSimpleWorker_EditorSimpleWorker._suggestionsLimit))break e}return{words:Array.from(fe),duration:se.elapsed()}}))}computeWordRanges(G,Z,ne,ie){return editorSimpleWorker_awaiter(this,void 0,void 0,(function*(){let se=this._getModel(G);if(!se)return Object.create(null);const ce=new RegExp(ne,ie),fe=Object.create(null);for(let G=Z.startLineNumber;Gthis._host.fhr(G,Z)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(ie,Z),Promise.resolve(Mn.e(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(G,Z){if(!this._foreignModule||"function"!=typeof this._foreignModule[G])return Promise.reject(new Error("Missing requestHandler or method: "+G));try{return Promise.resolve(this._foreignModule[G].apply(this._foreignModule,Z))}catch(G){return Promise.reject(G)}}}editorSimpleWorker_EditorSimpleWorker._diffLimit=1e5,editorSimpleWorker_EditorSimpleWorker._suggestionsLimit=1e4,"function"==typeof importScripts&&(On.b.monaco=createMonacoBaseAPI());var $n=ne(187),Vn=ne(905),Un=ne(69),Kn=ne(352),editorWorkerServiceImpl_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},editorWorkerServiceImpl_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},editorWorkerServiceImpl_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function canSyncModel(G,Z){let ne=G.getModel(Z);return!!ne&&!ne.isTooLargeForSyncing()}let Xn=class EditorWorkerServiceImpl extends Qt.a{constructor(G,Z,ne){super(),this._modelService=G,this._workerManager=this._register(new editorWorkerServiceImpl_WorkerManager(this._modelService)),this._logService=ne,this._register(_n.v.register("*",{provideLinks:(G,Z)=>canSyncModel(this._modelService,G.uri)?this._workerManager.withWorker().then(Z=>Z.computeLinks(G.uri)).then(G=>G&&{links:G}):Promise.resolve({links:[]})})),this._register(_n.d.register("*",new editorWorkerServiceImpl_WordBasedCompletionItemProvider(this._workerManager,Z,this._modelService)))}dispose(){super.dispose()}canComputeDiff(G,Z){return canSyncModel(this._modelService,G)&&canSyncModel(this._modelService,Z)}computeDiff(G,Z,ne,ie){return this._workerManager.withWorker().then(se=>se.computeDiff(G,Z,ne,ie))}computeMoreMinimalEdits(G,Z){if(Object(Un.n)(Z)){if(!canSyncModel(this._modelService,G))return Promise.resolve(Z);const ne=Hn.a.create(!0),ie=this._workerManager.withWorker().then(ne=>ne.computeMoreMinimalEdits(G,Z));return ie.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",G.toString(!0),ne.elapsed())),Promise.race([ie,Object(wn.n)(1e3).then(()=>Z)])}return Promise.resolve(void 0)}canNavigateValueSet(G){return canSyncModel(this._modelService,G)}navigateValueSet(G,Z,ne){return this._workerManager.withWorker().then(ie=>ie.navigateValueSet(G,Z,ne))}canComputeWordRanges(G){return canSyncModel(this._modelService,G)}computeWordRanges(G,Z){return this._workerManager.withWorker().then(ne=>ne.computeWordRanges(G,Z))}};Xn=editorWorkerServiceImpl_decorate([editorWorkerServiceImpl_param(0,$n.a),editorWorkerServiceImpl_param(1,Vn.a),editorWorkerServiceImpl_param(2,Kn.b)],Xn);class editorWorkerServiceImpl_WordBasedCompletionItemProvider{constructor(G,Z,ne){this._debugDisplayName="wordbasedCompletions",this._workerManager=G,this._configurationService=Z,this._modelService=ne}provideCompletionItems(G,Z){return editorWorkerServiceImpl_awaiter(this,void 0,void 0,(function*(){const ne=this._configurationService.getValue(G.uri,Z,"editor");if(!ne.wordBasedSuggestions)return;const ie=[];if("currentDocument"===ne.wordBasedSuggestionsMode)canSyncModel(this._modelService,G.uri)&&ie.push(G.uri);else for(const Z of this._modelService.getModels())canSyncModel(this._modelService,Z.uri)&&(Z===G?ie.unshift(Z.uri):"allDocuments"!==ne.wordBasedSuggestionsMode&&Z.getLanguageIdentifier().id!==G.getLanguageIdentifier().id||ie.push(Z.uri));if(0===ie.length)return;const se=Dn.a.getWordDefinition(G.getLanguageIdentifier().id),ce=G.getWordAtPosition(Z),fe=ce?new It.a(Z.lineNumber,ce.startColumn,Z.lineNumber,ce.endColumn):It.a.fromPositions(Z),me=fe.setEndPosition(Z.lineNumber,Z.column),ge=yield this._workerManager.withWorker(),Ce=yield ge.textualSuggest(ie,null==ce?void 0:ce.word,se);return Ce?{duration:Ce.duration,suggestions:Ce.words.map(G=>({kind:18,label:G,insertText:G,range:{insert:me,replace:fe}}))}:void 0}))}}class editorWorkerServiceImpl_WorkerManager extends Qt.a{constructor(G){super(),this._modelService=G,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new wn.c).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(G=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;(new Date).getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new editorWorkerServiceImpl_EditorWorkerClient(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class editorWorkerServiceImpl_EditorModelManager extends Qt.a{constructor(G,Z,ne){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=G,this._modelService=Z,!ne){let G=new wn.c;G.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(G)}}dispose(){for(let G in this._syncedModels)Object(Qt.f)(this._syncedModels[G]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(G){for(const Z of G){let G=Z.toString();this._syncedModels[G]||this._beginModelSync(Z),this._syncedModels[G]&&(this._syncedModelsLastUsedTime[G]=(new Date).getTime())}}_checkStopModelSync(){let G=(new Date).getTime(),Z=[];for(let ne in this._syncedModelsLastUsedTime){G-this._syncedModelsLastUsedTime[ne]>6e4&&Z.push(ne)}for(const G of Z)this._stopModelSync(G)}_beginModelSync(G){let Z=this._modelService.getModel(G);if(!Z)return;if(Z.isTooLargeForSyncing())return;let ne=G.toString();this._proxy.acceptNewModel({url:Z.uri.toString(),lines:Z.getLinesContent(),EOL:Z.getEOL(),versionId:Z.getVersionId()});const ie=new Qt.b;ie.add(Z.onDidChangeContent(G=>{this._proxy.acceptModelChanged(ne.toString(),G)})),ie.add(Z.onWillDispose(()=>{this._stopModelSync(ne)})),ie.add(Object(Qt.i)(()=>{this._proxy.acceptRemovedModel(ne)})),this._syncedModels[ne]=ie}_stopModelSync(G){let Z=this._syncedModels[G];delete this._syncedModels[G],delete this._syncedModelsLastUsedTime[G],Object(Qt.f)(Z)}}class SynchronousWorkerClient{constructor(G){this._instance=G,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class EditorWorkerHost{constructor(G){this._workerClient=G}fhr(G,Z){return this._workerClient.fhr(G,Z)}}class editorWorkerServiceImpl_EditorWorkerClient extends Qt.a{constructor(G,Z,ne){super(),this._disposed=!1,this._modelService=G,this._keepIdleModels=Z,this._workerFactory=new defaultWorkerFactory_DefaultWorkerFactory(ne),this._worker=null,this._modelManager=null}fhr(G,Z){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new simpleWorker_SimpleWorkerClient(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new EditorWorkerHost(this)))}catch(G){logOnceWebWorkerWarning(G),this._worker=new SynchronousWorkerClient(new editorSimpleWorker_EditorSimpleWorker(new EditorWorkerHost(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,G=>(logOnceWebWorkerWarning(G),this._worker=new SynchronousWorkerClient(new editorSimpleWorker_EditorSimpleWorker(new EditorWorkerHost(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(G){return this._modelManager||(this._modelManager=this._register(new editorWorkerServiceImpl_EditorModelManager(G,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(G){return this._disposed?Promise.reject(Object(Cn.a)()):this._getProxy().then(Z=>(this._getOrCreateModelManager(Z).ensureSyncedResources(G),Z))}computeDiff(G,Z,ne,ie){return this._withSyncedResources([G,Z]).then(se=>se.computeDiff(G.toString(),Z.toString(),ne,ie))}computeMoreMinimalEdits(G,Z){return this._withSyncedResources([G]).then(ne=>ne.computeMoreMinimalEdits(G.toString(),Z))}computeLinks(G){return this._withSyncedResources([G]).then(Z=>Z.computeLinks(G.toString()))}textualSuggest(G,Z,ne){return editorWorkerServiceImpl_awaiter(this,void 0,void 0,(function*(){const ie=yield this._withSyncedResources(G),se=ne.source,ce=Object(jn.N)(ne);return ie.textualSuggest(G.map(G=>G.toString()),Z,se,ce)}))}computeWordRanges(G,Z){return this._withSyncedResources([G]).then(ne=>{let ie=this._modelService.getModel(G);if(!ie)return Promise.resolve(null);let se=Dn.a.getWordDefinition(ie.getLanguageIdentifier().id),ce=se.source,fe=Object(jn.N)(se);return ne.computeWordRanges(G.toString(),Z,ce,fe)})}navigateValueSet(G,Z,ne){return this._withSyncedResources([G]).then(ie=>{let se=this._modelService.getModel(G);if(!se)return null;let ce=Dn.a.getWordDefinition(se.getLanguageIdentifier().id),fe=ce.source,me=Object(jn.N)(ce);return ie.navigateValueSet(G.toString(),Z,ne,fe,me)})}dispose(){super.dispose(),this._disposed=!0}}class webWorker_MonacoWebWorkerImpl extends editorWorkerServiceImpl_EditorWorkerClient{constructor(G,Z){super(G,Z.keepIdleModels||!1,Z.label),this._foreignModuleId=Z.moduleId,this._foreignModuleCreateData=Z.createData||null,this._foreignModuleHost=Z.host||null,this._foreignProxy=null}fhr(G,Z){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[G])return Promise.reject(new Error("Missing method "+G+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[G].apply(this._foreignModuleHost,Z))}catch(G){return Promise.reject(G)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(G=>{const Z=this._foreignModuleHost?Mn.e(this._foreignModuleHost):[];return G.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,Z).then(Z=>{this._foreignModuleCreateData=null;const proxyMethodRequest=(Z,ne)=>G.fmr(Z,ne),createProxyMethod=(G,Z)=>function(){const ne=Array.prototype.slice.call(arguments,0);return Z(G,ne)};let ne={};for(const G of Z)ne[G]=createProxyMethod(G,proxyMethodRequest);return ne})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(G){return this._withSyncedResources(G).then(G=>this.getProxy())}}var Gn=ne(397),Zn=ne(380),Jn=ne(219);function isFuzzyAction(G){return!function isFuzzyActionArr(G){return Array.isArray(G)}(G)}function isString(G){return"string"==typeof G}function isIAction(G){return!isString(G)}function empty(G){return!G}function fixCase(G,Z){return G.ignoreCase&&Z?Z.toLowerCase():Z}function sanitize(G){return G.replace(/[&<>'"_]/g,"-")}function createError(G,Z){return new Error(`${G.languageId}: ${Z}`)}function substituteMatches(G,Z,ne,ie,se){let ce=null;return Z.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(Z,fe,me,ge,Ce,Se,Me,ke,xe){return empty(me)?empty(ge)?!empty(Ce)&&Ce0;){const Z=G.tokenizer[ne];if(Z)return Z;const ie=ne.lastIndexOf(".");ne=ie<0?null:ne.substr(0,ie)}return null}class MonarchStackElementFactory{constructor(G){this._maxCacheDepth=G,this._entries=Object.create(null)}static create(G,Z){return this._INSTANCE.create(G,Z)}create(G,Z){if(null!==G&&G.depth>=this._maxCacheDepth)return new MonarchStackElement(G,Z);let ne=MonarchStackElement.getStackElementId(G);ne.length>0&&(ne+="|"),ne+=Z;let ie=this._entries[ne];return ie||(ie=new MonarchStackElement(G,Z),this._entries[ne]=ie,ie)}}MonarchStackElementFactory._INSTANCE=new MonarchStackElementFactory(5);class MonarchStackElement{constructor(G,Z){this.parent=G,this.state=Z,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(G){let Z="";for(;null!==G;)Z.length>0&&(Z+="|"),Z+=G.state,G=G.parent;return Z}static _equals(G,Z){for(;null!==G&&null!==Z;){if(G===Z)return!0;if(G.state!==Z.state)return!1;G=G.parent,Z=Z.parent}return null===G&&null===Z}equals(G){return MonarchStackElement._equals(this,G)}push(G){return MonarchStackElementFactory.create(this,G)}pop(){return this.parent}popall(){let G=this;for(;G.parent;)G=G.parent;return G}switchTo(G){return MonarchStackElementFactory.create(this.parent,G)}}class EmbeddedModeData{constructor(G,Z){this.modeId=G,this.state=Z}equals(G){return this.modeId===G.modeId&&this.state.equals(G.state)}clone(){return this.state.clone()===this.state?this:new EmbeddedModeData(this.modeId,this.state)}}class MonarchLineStateFactory{constructor(G){this._maxCacheDepth=G,this._entries=Object.create(null)}static create(G,Z){return this._INSTANCE.create(G,Z)}create(G,Z){if(null!==Z)return new MonarchLineState(G,Z);if(null!==G&&G.depth>=this._maxCacheDepth)return new MonarchLineState(G,Z);let ne=MonarchStackElement.getStackElementId(G),ie=this._entries[ne];return ie||(ie=new MonarchLineState(G,null),this._entries[ne]=ie,ie)}}MonarchLineStateFactory._INSTANCE=new MonarchLineStateFactory(5);class MonarchLineState{constructor(G,Z){this.stack=G,this.embeddedModeData=Z}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:MonarchLineStateFactory.create(this.stack,this.embeddedModeData)}equals(G){return G instanceof MonarchLineState&&(!!this.stack.equals(G.stack)&&(null===this.embeddedModeData&&null===G.embeddedModeData||null!==this.embeddedModeData&&null!==G.embeddedModeData&&this.embeddedModeData.equals(G.embeddedModeData)))}}class monarchLexer_MonarchClassicTokensCollector{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(G,Z){this._language=Z}emit(G,Z){this._lastTokenType===Z&&this._lastTokenLanguage===this._language||(this._lastTokenType=Z,this._lastTokenLanguage=this._language,this._tokens.push(new Rt.a(G,Z,this._language)))}nestedModeTokenize(G,Z,ne,ie){const se=ne.modeId,ce=ne.state,fe=_n.F.get(se);if(!fe)return this.enterMode(ie,se),this.emit(ie,""),ce;let me=fe.tokenize(G,Z,ce,ie);return this._tokens=this._tokens.concat(me.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,me.endState}finalize(G){return new Rt.b(this._tokens,G)}}class monarchLexer_MonarchModernTokensCollector{constructor(G,Z){this._modeService=G,this._theme=Z,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(G,Z){this._currentLanguageId=this._modeService.getLanguageIdentifier(Z).id}emit(G,Z){let ne=this._theme.match(this._currentLanguageId,Z);this._lastTokenMetadata!==ne&&(this._lastTokenMetadata=ne,this._tokens.push(G),this._tokens.push(ne))}static _merge(G,Z,ne){let ie=null!==G?G.length:0,se=Z.length,ce=null!==ne?ne.length:0;if(0===ie&&0===se&&0===ce)return new Uint32Array(0);if(0===ie&&0===se)return ne;if(0===se&&0===ce)return G;let fe=new Uint32Array(ie+se+ce);null!==G&&fe.set(G);for(let G=0;G{if(se)return;let Z=!1;for(let ne=0,ie=G.changedLanguages.length;ne{})}}getInitialState(){let G=MonarchStackElementFactory.create(null,this._lexer.start);return MonarchLineStateFactory.create(G,null)}tokenize(G,Z,ne,ie){let se=new monarchLexer_MonarchClassicTokensCollector,ce=this._tokenize(G,Z,ne,ie,se);return se.finalize(ce)}tokenize2(G,Z,ne,ie){let se=new monarchLexer_MonarchModernTokensCollector(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),ce=this._tokenize(G,Z,ne,ie,se);return se.finalize(ce)}_tokenize(G,Z,ne,ie,se){return ne.embeddedModeData?this._nestedTokenize(G,Z,ne,ie,se):this._myTokenize(G,Z,ne,ie,se)}_findLeavingNestedModeOffset(G,Z){let ne=this._lexer.tokenizer[Z.stack.state];if(!ne&&(ne=findRules(this._lexer,Z.stack.state),!ne))throw createError(this._lexer,"tokenizer state is not defined: "+Z.stack.state);let ie=-1,se=!1;for(const Z of ne){if(!isIAction(Z.action)||"@pop"!==Z.action.nextEmbedded)continue;se=!0;let ne=Z.regex,ce=Z.regex.source;if("^(?:"===ce.substr(0,4)&&")"===ce.substr(ce.length-1,1)){let G=(ne.ignoreCase?"i":"")+(ne.unicode?"u":"");ne=new RegExp(ce.substr(4,ce.length-5),G)}let fe=G.search(ne);-1===fe||0!==fe&&Z.matchOnlyAtLineStart||(-1===ie||fe0&&se.nestedModeTokenize(fe,!1,ne.embeddedModeData,ie);let me=G.substring(ce);return this._myTokenize(me,Z,ne,ie+ce,se)}_safeRuleName(G){return G?G.name:"(unknown)"}_myTokenize(G,Z,ne,ie,se){se.enterMode(ie,this._modeId);const ce=G.length,fe=Z&&this._lexer.includeLF?G+"\n":G,me=fe.length;let ge=ne.embeddedModeData,Ce=ne.stack,Se=0,Me=null,ke=!0;for(;ke||Se=me)break;ke=!1;let G=this._lexer.tokenizer[ze];if(!G&&(G=findRules(this._lexer,ze),!G))throw createError(this._lexer,"tokenizer state is not defined: "+ze);let Z=fe.substr(Se);for(const ne of G)if((0===Se||!ne.matchOnlyAtLineStart)&&($e=Z.match(ne.regex),$e)){Je=$e[0],it=ne.action;break}}if($e||($e=[""],Je=""),it||(Se=this._lexer.maxStack)throw createError(this._lexer,"maximum tokenizer stack size reached: ["+Ce.state+","+Ce.parent.state+",...]");Ce=Ce.push(ze)}else if("@pop"===it.next){if(Ce.depth<=1)throw createError(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(ot));Ce=Ce.pop()}else if("@popall"===it.next)Ce=Ce.popall();else{let G=substituteMatches(this._lexer,it.next,Je,$e,ze);if("@"===G[0]&&(G=G.substr(1)),!findRules(this._lexer,G))throw createError(this._lexer,"trying to set a next state '"+G+"' that is undefined in rule: "+this._safeRuleName(ot));Ce=Ce.push(G)}}it.log&&"string"==typeof it.log&&(xe=this._lexer,De=this._lexer.languageId+": "+substituteMatches(this._lexer,it.log,Je,$e,ze),console.log(`${xe.languageId}: ${De}`))}if(null===st)throw createError(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(ot));const computeNewStateForEmbeddedMode=ne=>{let ce=this._modeService.getModeIdForLanguageName(ne);ce&&(ne=ce);const fe=this._getNestedEmbeddedModeData(ne);if(Se0)throw createError(this._lexer,"groups cannot be nested: "+this._safeRuleName(ot));if($e.length!==st.length+1)throw createError(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(ot));let G=0;for(let Z=1;Z<$e.length;Z++)G+=$e[Z].length;if(G!==Je.length)throw createError(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(ot));Me={rule:ot,matches:$e,groups:[]};for(let G=0;GG});class colorizer_Colorizer{static colorizeElement(G,Z,ne,ie){let se=(ie=ie||{}).theme||"vs",ce=ie.mimeType||ne.getAttribute("lang")||ne.getAttribute("data-lang");if(!ce)return console.error("Mode not detected"),Promise.resolve();G.setTheme(se);let fe=ne.firstChild?ne.firstChild.nodeValue:"";ne.className+=" "+se;return this.colorize(Z,fe||"",ce,ie).then(G=>{var Z;const ie=null!==(Z=null==er?void 0:er.createHTML(G))&&void 0!==Z?Z:G;ne.innerHTML=ie},G=>console.error(G))}static colorize(G,Z,ne,ie){let se=4;ie&&"number"==typeof ie.tabSize&&(se=ie.tabSize),jn.T(Z)&&(Z=Z.substr(1));let ce=jn.R(Z),fe=G.getModeId(ne);if(!fe)return Promise.resolve(_fakeColorize(ce,se));G.triggerMode(fe);const me=_n.F.get(fe);if(me)return _colorize(ce,se,me);const ge=_n.F.getPromise(fe);return new Promise(ge?(G,Z)=>{ge.then(ne=>{_colorize(ce,se,ne).then(G,Z)},Z)}:(G,Z)=>{let ne=null,ie=null;const execute=()=>{ne&&(ne.dispose(),ne=null),ie&&(ie.dispose(),ie=null);const me=_n.F.get(fe);me?_colorize(ce,se,me).then(G,Z):G(_fakeColorize(ce,se))};ie=new wn.g,ie.cancelAndSet(execute,500),ne=_n.F.onDidChange(G=>{G.changedLanguages.indexOf(fe)>=0&&execute()})})}static colorizeLine(G,Z,ne,ie,se=4){const ce=Jn.f.isBasicASCII(G,Z),fe=Jn.f.containsRTL(G,ce,ne);return Object(Zn.e)(new Zn.c(!1,!0,G,!1,ce,fe,0,ie,[],se,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(G,Z,ne=4){let ie=G.getLineContent(Z);G.forceTokenization(Z);let se=G.getLineTokens(Z).inflate();return this.colorizeLine(ie,G.mightContainNonBasicASCII(),G.mightContainRTL(),se,ne)}}function _colorize(G,Z,ne){return new Promise((ie,se)=>{const execute=()=>{const ce=function _actualColorize(G,Z,ne){let ie=[],se=ne.getInitialState();for(let ce=0,fe=G.length;ce"),se=me.endState}return ie.join("")}(G,Z,ne);if(ne instanceof monarchLexer_MonarchTokenizer){const G=ne.getLoadStatus();if(!1===G.loaded)return void G.promise.then(execute,se)}ie(ce)};execute()})}function _fakeColorize(G,Z){let ne=[];const ie=new Uint32Array(2);ie[0]=0,ie[1]=16793600;for(let se=0,ce=G.length;se")}return ne.join("")}var tr=ne(205),nr=ne(235),rr=ne(497),ir=ne(826),ar=ne(1001),sr=ne(221),lr=ne(156),ur=ne(608);class configurationModels_ConfigurationModel{constructor(G={},Z=[],ne=[]){this._contents=G,this._keys=Z,this._overrides=ne,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(G){return G?Object(lr.d)(this.contents,G):this.contents}override(G){const Z=this.getContentsForOverrideIdentifer(G);if(!Z||"object"!=typeof Z||!Object.keys(Z).length)return this;let ne={};for(const G of Un.f([...Object.keys(this.contents),...Object.keys(Z)])){let ie=this.contents[G],se=Z[G];se&&("object"==typeof ie&&"object"==typeof se?(ie=on.b(ie),this.mergeContents(ie,se)):ie=se),ne[G]=ie}return new configurationModels_ConfigurationModel(ne,this.keys,this.overrides)}merge(...G){const Z=on.b(this.contents),ne=on.b(this.overrides),ie=[...this.keys];for(const se of G){this.mergeContents(Z,se.contents);for(const G of se.overrides){const[Z]=ne.filter(Z=>Un.h(Z.identifiers,G.identifiers));Z?this.mergeContents(Z.contents,G.contents):ne.push(on.b(G))}for(const G of se.keys)-1===ie.indexOf(G)&&ie.push(G)}return new configurationModels_ConfigurationModel(Z,ie,ne)}freeze(){return this.isFrozen=!0,this}mergeContents(G,Z){for(const ne of Object.keys(Z))ne in G&&Mn.j(G[ne])&&Mn.j(Z[ne])?this.mergeContents(G[ne],Z[ne]):G[ne]=on.b(Z[ne])}checkAndFreeze(G){return this.isFrozen&&!Object.isFrozen(G)?on.c(G):G}getContentsForOverrideIdentifer(G){for(const Z of this.overrides)if(-1!==Z.identifiers.indexOf(G))return Z.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(G,Z){this.addKey(G),Object(lr.b)(this.contents,G,Z,G=>{throw new Error(G)})}removeValue(G){this.removeKey(G)&&Object(lr.f)(this.contents,G)}addKey(G){let Z=this.keys.length;for(let ne=0;neconsole.error("Conflict in default settings file: "+G))});super(G,Z,ne)}}class configurationModels_Configuration{constructor(G,Z,ne=new configurationModels_ConfigurationModel,ie=new configurationModels_ConfigurationModel,se=new Ft.b,ce=new configurationModels_ConfigurationModel,fe=new Ft.b,me=!0){this._defaultConfiguration=G,this._localUserConfiguration=Z,this._remoteUserConfiguration=ne,this._workspaceConfiguration=ie,this._folderConfigurations=se,this._memoryConfiguration=ce,this._memoryConfigurationByResource=fe,this._freeze=me,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Ft.b,this._userConfiguration=null}getValue(G,Z,ne){return this.getConsolidateConfigurationModel(Z,ne).getValue(G)}updateValue(G,Z,ne={}){let ie;ne.resource?(ie=this._memoryConfigurationByResource.get(ne.resource),ie||(ie=new configurationModels_ConfigurationModel,this._memoryConfigurationByResource.set(ne.resource,ie))):ie=this._memoryConfiguration,void 0===Z?ie.removeValue(G):ie.setValue(G,Z),ne.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(G,Z){let ne=this.getConsolidatedConfigurationModelForResource(G,Z);return G.overrideIdentifier?ne.override(G.overrideIdentifier):ne}getConsolidatedConfigurationModelForResource({resource:G},Z){let ne=this.getWorkspaceConsolidatedConfiguration();if(Z&&G){const ie=Z.getFolder(G);ie&&(ne=this.getFolderConsolidatedConfiguration(ie.uri)||ne);const se=this._memoryConfigurationByResource.get(G);se&&(ne=ne.merge(se))}return ne}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(G){let Z=this._foldersConsolidatedConfigurations.get(G);if(!Z){const ne=this.getWorkspaceConsolidatedConfiguration(),ie=this._folderConfigurations.get(G);ie?(Z=ne.merge(ie),this._freeze&&(Z=Z.freeze()),this._foldersConsolidatedConfigurations.set(G,Z)):Z=ne}return Z}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((G,Z)=>{const{contents:ne,overrides:ie,keys:se}=this._folderConfigurations.get(Z);return G.push([Z,{contents:ne,overrides:ie,keys:se}]),G},[])}}static parse(G){const Z=this.parseConfigurationModel(G.defaults),ne=this.parseConfigurationModel(G.user),ie=this.parseConfigurationModel(G.workspace),se=G.folders.reduce((G,Z)=>(G.set(Et.a.revive(Z[0]),this.parseConfigurationModel(Z[1])),G),new Ft.b);return new configurationModels_Configuration(Z,ne,new configurationModels_ConfigurationModel,ie,se,new configurationModels_ConfigurationModel,new Ft.b,!1)}static parseConfigurationModel(G){return new configurationModels_ConfigurationModel(G.contents,G.keys,G.overrides).freeze()}}class configurationModels_ConfigurationChangeEvent{constructor(G,Z,ne,ie){this.change=G,this.previous=Z,this.currentConfiguraiton=ne,this.currentWorkspace=ie,this._previousConfiguration=void 0;const se=new Set;G.keys.forEach(G=>se.add(G)),G.overrides.forEach(([,G])=>G.forEach(G=>se.add(G))),this.affectedKeys=[...se.values()];const ce=new configurationModels_ConfigurationModel;this.affectedKeys.forEach(G=>ce.setValue(G,{})),this.affectedKeysTree=ce.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=configurationModels_Configuration.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(G,Z){var ne;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,G)){if(Z){const ie=this.previousConfiguration?this.previousConfiguration.getValue(G,Z,null===(ne=this.previous)||void 0===ne?void 0:ne.workspace):void 0,se=this.currentConfiguraiton.getValue(G,Z,this.currentWorkspace);return!on.d(ie,se)}return!0}return!1}doesAffectedKeysTreeContains(G,Z){let ne,ie=Object(lr.g)({[Z]:!0},()=>{});for(;"object"==typeof ie&&(ne=Object.keys(ie)[0]);){if(!(G=G[ne]))return!1;ie=ie[ne]}return!0}}var dr=ne(4);class abstractKeybindingService_AbstractKeybindingService extends Qt.a{constructor(G,Z,ne,ie,se){super(),this._contextKeyService=G,this._commandService=Z,this._telemetryService=ne,this._notificationService=ie,this._logService=se,this._onDidUpdateKeybindings=this._register(new At.b),this._currentChord=null,this._currentChordChecker=new wn.c,this._currentChordStatusMessage=null,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new wn.g,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:At.c.None}dispose(){super.dispose()}_log(G){this._logging&&this._logService.info("[KeybindingService]: "+G)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(G,Z){const ne=this._getResolver().lookupPrimaryKeybinding(G,Z||this._contextKeyService);if(ne)return ne.resolvedKeybinding}dispatchEvent(G,Z){return this._dispatch(G,Z)}softDispatch(G,Z){const ne=this.resolveKeyboardEvent(G);if(ne.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[ie]=ne.getDispatchParts();if(null===ie)return null;const se=this._contextKeyService.getContext(Z),ce=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(se,ce,ie)}_enterChordMode(G,Z){this._currentChord={keypress:G,label:Z},this._currentChordStatusMessage=this._notificationService.status(dr.a("first.chord","({0}) was pressed. Waiting for second key of chord...",Z));const ne=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-ne>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(G,Z){return this._doDispatch(this.resolveKeyboardEvent(G),Z,!1)}_singleModifierDispatch(G,Z){const ne=this.resolveKeyboardEvent(G),[ie]=ne.getSingleModifierDispatchParts();return null!==ie&&null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${ie}.`),this._currentSingleModifier=ie,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):null!==ie&&ie===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${ie} ${ie}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(ne,Z,!0)):(this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1)}_doDispatch(G,Z,ne=!1){let ie=!1;if(G.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let se=null,ce=null;if(ne){const[Z]=G.getSingleModifierDispatchParts();se=Z,ce=Z}else[se]=G.getDispatchParts(),ce=this._currentChord?this._currentChord.keypress:null;if(null===se)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),ie;const fe=this._contextKeyService.getContext(Z),me=G.getLabel(),ge=this._getResolver().resolve(fe,ce,se);return this._logService.trace("KeybindingService#dispatch",me,null==ge?void 0:ge.commandId),ge&&ge.enterChord?(ie=!0,this._enterChordMode(se,me),ie):(this._currentChord&&(ge&&ge.commandId||(this._notificationService.status(dr.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,me),{hideAfter:1e4}),ie=!0)),this._leaveChordMode(),ge&&ge.commandId&&(ge.bubble||(ie=!0),void 0===ge.commandArgs?this._commandService.executeCommand(ge.commandId).then(void 0,G=>this._notificationService.warn(G)):this._commandService.executeCommand(ge.commandId,ge.commandArgs).then(void 0,G=>this._notificationService.warn(G)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:ge.commandId,from:"keybinding"})),ie)}mightProducePrintableCharacter(G){return!G.ctrlKey&&!G.metaKey&&(G.keyCode>=31&&G.keyCode<=56||G.keyCode>=21&&G.keyCode<=30)}}class KeybindingResolver{constructor(G,Z,ne){this._log=ne,this._defaultKeybindings=G,this._defaultBoundCommands=new Map;for(let Z=0,ne=G.length;Z=0;ne--)this._isTargetedForRemoval(G[ne],se,ce,Z,fe)&&G.splice(ne,1)}return G.concat(ne)}_addKeyPress(G,Z){const ne=this._map.get(G);if(void 0===ne)return this._map.set(G,[Z]),void this._addToLookupMap(Z);for(let G=ne.length-1;G>=0;G--){let ie=ne[G];if(ie.command===Z.command)continue;const se=ie.keypressParts.length>1,ce=Z.keypressParts.length>1;se&&ce&&ie.keypressParts[1]!==Z.keypressParts[1]||KeybindingResolver.whenIsEntirelyIncluded(ie.when,Z.when)&&this._removeFromLookupMap(ie)}ne.push(Z),this._addToLookupMap(Z)}_addToLookupMap(G){if(!G.command)return;let Z=this._lookupMap.get(G.command);void 0===Z?(Z=[G],this._lookupMap.set(G.command,Z)):Z.push(G)}_removeFromLookupMap(G){if(!G.command)return;let Z=this._lookupMap.get(G.command);if(void 0!==Z)for(let ne=0,ie=Z.length;ne9===G.type?G.expr:[G];let ne=terminals(G.negate()).concat(terminals(Z));for(let G=0;G=0;G--){const ie=ne[G];if(Z.contextMatchesRules(ie.when))return ie}return ne[ne.length-1]}resolve(G,Z,ne){this._log(`| Resolving ${ne}${Z?" chorded from "+Z:""}`);let ie=null;if(null!==Z){const G=this._map.get(Z);if(void 0===G)return this._log("\\ No keybinding entries."),null;ie=[];for(let Z=0,se=G.length;Z1&&null!==se.keypressParts[1]?(this._log(`\\ From ${ie.length} keybinding entries, matched chord, when: ${printWhenExplanation(se.when)}, source: ${printSourceExplanation(se)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${ie.length} keybinding entries, matched ${se.command}, when: ${printWhenExplanation(se.when)}, source: ${printSourceExplanation(se)}.`),{enterChord:!1,leaveChord:se.keypressParts.length>1,commandId:se.command,commandArgs:se.commandArgs,bubble:se.bubble}):(this._log(`\\ From ${ie.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(G,Z){for(let ne=Z.length-1;ne>=0;ne--){let ie=Z[ne];if(KeybindingResolver.contextMatchesRules(G,ie.when))return ie}return null}static contextMatchesRules(G,Z){return!Z||Z.evaluate(G)}}function printWhenExplanation(G){return G?""+G.serialize():"no when condition"}function printSourceExplanation(G){return G.extensionId?G.isBuiltinExtension?"built-in extension "+G.extensionId:"user extension "+G.extensionId:G.isDefault?"built-in":"user"}var pr=ne(378);class ResolvedKeybindingItem{constructor(G,Z,ne,ie,se,ce,fe){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=G,this.keypressParts=G?removeElementsAfterNulls(G.getDispatchParts()):[],G&&0===this.keypressParts.length&&(this.keypressParts=removeElementsAfterNulls(G.getSingleModifierDispatchParts())),this.bubble=!!Z&&94===Z.charCodeAt(0),this.command=this.bubble?Z.substr(1):Z,this.commandArgs=ne,this.when=ie,this.isDefault=se,this.extensionId=ce,this.isBuiltinExtension=fe}}function removeElementsAfterNulls(G){let Z=[];for(let ne=0,ie=G.length;nethis._getLabel(G))}getAriaLabel(){return fr.a.toLabel(this._os,this._parts,G=>this._getAriaLabel(G))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(G=>this._getPart(G))}_getPart(G){return new Dt.d(G.ctrlKey,G.shiftKey,G.altKey,G.metaKey,this._getLabel(G),this._getAriaLabel(G))}getDispatchParts(){return this._parts.map(G=>this._getDispatchPart(G))}getSingleModifierDispatchParts(){return this._parts.map(G=>this._getSingleModifierDispatchPart(G))}}class usLayoutResolvedKeybinding_USLayoutResolvedKeybinding extends baseResolvedKeybinding_BaseResolvedKeybinding{constructor(G,Z){super(Z,G.parts)}_keyCodeToUILabel(G){if(2===this._os)switch(G){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return Dt.b.toString(G)}_getLabel(G){return G.isDuplicateModifierCase()?"":this._keyCodeToUILabel(G.keyCode)}_getAriaLabel(G){return G.isDuplicateModifierCase()?"":Dt.b.toString(G.keyCode)}_getDispatchPart(G){return usLayoutResolvedKeybinding_USLayoutResolvedKeybinding.getDispatchStr(G)}static getDispatchStr(G){if(G.isModifierKey())return null;let Z="";return G.ctrlKey&&(Z+="ctrl+"),G.shiftKey&&(Z+="shift+"),G.altKey&&(Z+="alt+"),G.metaKey&&(Z+="meta+"),Z+=Dt.b.toString(G.keyCode),Z}_getSingleModifierDispatchPart(G){return 5!==G.keyCode||G.shiftKey||G.altKey||G.metaKey?4!==G.keyCode||G.ctrlKey||G.altKey||G.metaKey?6!==G.keyCode||G.ctrlKey||G.shiftKey||G.metaKey?57!==G.keyCode||G.ctrlKey||G.shiftKey||G.altKey?null:"meta":"alt":"shift":"ctrl"}}var mr=ne(193),_r=ne(1351),gr=ne(188),simpleServices_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},simpleServices_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},simpleServices_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class simpleServices_SimpleModel{constructor(G){this.disposed=!1,this.model=G,this._onWillDispose=new At.b}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let yr=class SimpleEditorModelResolverService{constructor(G){this.modelService=G}setEditor(G){this.editor=G}createModelReference(G){let Z=null;return this.editor&&(Z=function withTypedEditor(G,Z,ne){return Object(rr.b)(G)?Z(G):ne(G)}(this.editor,Z=>this.findModel(Z,G),Z=>this.findModel(Z.getOriginalEditor(),G)||this.findModel(Z.getModifiedEditor(),G))),Z?Promise.resolve(new Qt.c(new simpleServices_SimpleModel(Z))):Promise.reject(new Error("Model not found"))}findModel(G,Z){let ne=this.modelService.getModel(Z);return ne&&ne.uri.toString()!==Z.toString()?null:ne}};yr=simpleServices_decorate([simpleServices_param(0,$n.a)],yr);class SimpleEditorProgressService{show(){return SimpleEditorProgressService.NULL_PROGRESS_RUNNER}showWhile(G,Z){return simpleServices_awaiter(this,void 0,void 0,(function*(){yield G}))}}SimpleEditorProgressService.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class SimpleDialogService{confirm(G){return this.doConfirm(G).then(G=>({confirmed:G,checkboxChecked:!1}))}doConfirm(G){let Z=G.message;return G.detail&&(Z=Z+"\n\n"+G.detail),Promise.resolve(window.confirm(Z))}show(G,Z,ne,ie){return Promise.resolve({choice:0})}}class simpleServices_SimpleNotificationService{info(G){return this.notify({severity:nr.a.Info,message:G})}warn(G){return this.notify({severity:nr.a.Warning,message:G})}error(G){return this.notify({severity:nr.a.Error,message:G})}notify(G){switch(G.severity){case nr.a.Error:console.error(G.message);break;case nr.a.Warning:console.warn(G.message);break;default:console.log(G.message)}return simpleServices_SimpleNotificationService.NO_OP}status(G,Z){return Qt.a.None}}simpleServices_SimpleNotificationService.NO_OP=new mr.b;class simpleServices_StandaloneCommandService{constructor(G){this._onWillExecuteCommand=new At.b,this._onDidExecuteCommand=new At.b,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=G}executeCommand(G,...Z){const ne=Yt.a.getCommand(G);if(!ne)return Promise.reject(new Error(`command '${G}' not found`));try{this._onWillExecuteCommand.fire({commandId:G,args:Z});const ie=this._instantiationService.invokeFunction.apply(this._instantiationService,[ne.handler,...Z]);return this._onDidExecuteCommand.fire({commandId:G,args:Z}),Promise.resolve(ie)}catch(G){return Promise.reject(G)}}}class simpleServices_StandaloneKeybindingService extends abstractKeybindingService_AbstractKeybindingService{constructor(G,Z,ne,ie,se,ce){super(G,Z,ne,ie,se),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(Wt.i(ce,Wt.d.KEY_DOWN,G=>{const Z=new tr.a(G);this._dispatch(Z,Z.target)&&(Z.preventDefault(),Z.stopPropagation())})),this._register(Wt.i(window,Wt.d.KEY_UP,G=>{const Z=new tr.a(G);this._singleModifierDispatch(Z,Z.target)&&Z.preventDefault()}))}addDynamicKeybinding(G,Z,ne,ie){const se=Object(Dt.f)(Z,On.a),ce=new Qt.b;return se&&(this._dynamicKeybindings.push({keybinding:se,command:G,when:ie,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),ce.add(Object(Qt.i)(()=>{for(let Z=0;Zthis._log(G))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(G,Z){let ne=[],ie=0;for(const se of G){const G=se.when||void 0,ce=se.keybinding;if(ce){const fe=this.resolveKeybinding(ce);for(const ce of fe)ne[ie++]=new ResolvedKeybindingItem(ce,se.command,se.commandArgs,G,Z,null,!1)}else ne[ie++]=new ResolvedKeybindingItem(void 0,se.command,se.commandArgs,G,Z,null,!1)}return ne}resolveKeybinding(G){return[new usLayoutResolvedKeybinding_USLayoutResolvedKeybinding(G,On.a)]}resolveKeyboardEvent(G){let Z=new Dt.e(G.ctrlKey,G.shiftKey,G.altKey,G.metaKey,G.keyCode).toChord();return new usLayoutResolvedKeybinding_USLayoutResolvedKeybinding(Z,On.a)}}function isConfigurationOverrides(G){return G&&"object"==typeof G&&(!G.overrideIdentifier||"string"==typeof G.overrideIdentifier)&&(!G.resource||G.resource instanceof Et.a)}class simpleServices_SimpleConfigurationService{constructor(){this._onDidChangeConfiguration=new At.b,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new configurationModels_Configuration(new configurationModels_DefaultConfigurationModel,new configurationModels_ConfigurationModel)}getValue(G,Z){const ne="string"==typeof G?G:void 0,ie=isConfigurationOverrides(G)?G:isConfigurationOverrides(Z)?Z:{};return this._configuration.getValue(ne,ie,void 0)}updateValues(G){const Z={data:this._configuration.toData()};let ne=[];for(const Z of G){const[G,ie]=Z;this.getValue(G)!==ie&&(this._configuration.updateValue(G,ie),ne.push(G))}if(ne.length>0){const G=new configurationModels_ConfigurationChangeEvent({keys:ne,overrides:[]},Z,this._configuration);G.source=7,G.sourceConfig=null,this._onDidChangeConfiguration.fire(G)}return Promise.resolve()}}class simpleServices_SimpleResourceConfigurationService{constructor(G){this.configurationService=G,this._onDidChangeConfiguration=new At.b,this.configurationService.onDidChangeConfiguration(G=>{this._onDidChangeConfiguration.fire({affectedKeys:G.affectedKeys,affectsConfiguration:(Z,ne)=>G.affectsConfiguration(ne)})})}getValue(G,Z,ne){const ie=(jt.a.isIPosition(Z)?Z:null)?"string"==typeof ne?ne:void 0:"string"==typeof Z?Z:void 0;return void 0===ie?this.configurationService.getValue():this.configurationService.getValue(ie)}}let vr=class SimpleResourcePropertiesService{constructor(G){this.configurationService=G}getEOL(G,Z){const ne=this.configurationService.getValue("files.eol",{overrideIdentifier:Z,resource:G});return ne&&"string"==typeof ne&&"auto"!==ne?ne:On.d||On.f?"\n":"\r\n"}};vr=simpleServices_decorate([simpleServices_param(0,lr.a)],vr);class StandaloneTelemetryService{publicLog(G,Z){return Promise.resolve(void 0)}publicLog2(G,Z){return this.publicLog(G,Z)}}class simpleServices_SimpleWorkspaceContextService{constructor(){const G=Et.a.from({scheme:simpleServices_SimpleWorkspaceContextService.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new _r.b({uri:G,name:"",index:0})]}}getWorkspace(){return this.workspace}}function updateConfigurationService(G,Z,ne){if(!Z)return;if(!(G instanceof simpleServices_SimpleConfigurationService))return;let ie=[];Object.keys(Z).forEach(G=>{Object(ar.d)(G)&&ie.push(["editor."+G,Z[G]]),ne&&Object(ar.c)(G)&&ie.push(["diffEditor."+G,Z[G]])}),ie.length>0&&G.updateValues(ie)}simpleServices_SimpleWorkspaceContextService.SCHEME="inmemory";class simpleServices_SimpleBulkEditService{constructor(G){this._modelService=G}hasPreviewHandler(){return!1}apply(G,Z){return simpleServices_awaiter(this,void 0,void 0,(function*(){const Z=new Map;for(let ne of G){if(!(ne instanceof ir.c))throw new Error("bad edit - only text edits are supported");const G=this._modelService.getModel(ne.resource);if(!G)throw new Error("bad edit - model not found");if("number"==typeof ne.versionId&&G.getVersionId()!==ne.versionId)throw new Error("bad state - model changed in the meantime");let ie=Z.get(G);ie||(ie=[],Z.set(G,ie)),ie.push(sr.a.replaceMove(It.a.lift(ne.textEdit.range),ne.textEdit.text))}let ne=0,ie=0;for(const[G,se]of Z)G.pushStackElement(),G.pushEditOperations([],se,()=>[]),G.pushStackElement(),ie+=1,ne+=se.length;return{ariaSummary:jn.w(gr.g.bulkEditServiceSummary,ne,ie)}}))}}class SimpleUriLabelService{getUriLabel(G,Z){return"file"===G.scheme?G.fsPath:G.path}}class simpleServices_SimpleLayoutService{constructor(G,Z){this._codeEditorService=G,this._container=Z,this.onDidLayout=At.c.None}get dimension(){return this._dimension||(this._dimension=Wt.z(window.document.body)),this._dimension}get container(){return this._container}focus(){var G;null===(G=this._codeEditorService.getFocusedCodeEditor())||void 0===G||G.focus()}}var wr,Cr=ne(215),Or=ne(1352),Sr=(ne(7630),ne(128)),Mr=ne(537),kr=ne(317),xr=ne(332),Lr=(ne(7632),ne(535)),Tr=ne(416),Ar=ne(196),Dr=ne(14),Er=ne(168),jr=ne(26),Pr=ne(13),Ir=ne(50),Nr=ne(67),Rr=ne(296),diffReview_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class DiffEntry{constructor(G,Z,ne,ie){this.originalLineStart=G,this.originalLineEnd=Z,this.modifiedLineStart=ne,this.modifiedLineEnd=ie}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class Diff{constructor(G){this.entries=G}}const zr=Object(Rr.b)("diff-review-insert",Nr.b.add,dr.a("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),qr=Object(Rr.b)("diff-review-remove",Nr.b.remove,dr.a("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),Wr=Object(Rr.b)("diff-review-close",Nr.b.close,dr.a("diffReviewCloseIcon","Icon for 'Close' in diff review."));class diffReview_DiffReview extends Qt.a{constructor(G){super(),this._width=0,this._diffEditor=G,this._isVisible=!1,this.shadow=Object(Sr.b)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(Sr.b)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new Lr.a(this.actionBarContainer.domNode)),this._actionBar.push(new Ar.a("diffreview.close",dr.a("label.close","Close"),"close-diff-review "+Ir.d.asClassName(Wr),!0,()=>diffReview_awaiter(this,void 0,void 0,(function*(){return this.hide()}))),{label:!1,icon:!0}),this.domNode=Object(Sr.b)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(Sr.b)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new Tr.a(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(G.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(G.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(Wt.o(this.domNode.domNode,"click",G=>{G.preventDefault();let Z=Wt.x(G.target,"diff-review-row");Z&&this._goToRow(Z)})),this._register(Wt.o(this.domNode.domNode,"keydown",G=>{(G.equals(18)||G.equals(2066)||G.equals(530))&&(G.preventDefault(),this._goToRow(this._getNextRow())),(G.equals(16)||G.equals(2064)||G.equals(528))&&(G.preventDefault(),this._goToRow(this._getPrevRow())),(G.equals(9)||G.equals(2057)||G.equals(521)||G.equals(1033))&&(G.preventDefault(),this.hide()),(G.equals(10)||G.equals(3))&&(G.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let G=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let Z=-1;for(let G=0,ne=this._diffs.length;G0){const Z=G[ce-1];ie=0===Z.originalEndLineNumber?Z.originalStartLineNumber+1:Z.originalEndLineNumber+1,se=0===Z.modifiedEndLineNumber?Z.modifiedStartLineNumber+1:Z.modifiedEndLineNumber+1}let fe=Z-3+1,me=ne-3+1;if(feme){const G=me-Ie;Ie+=G,Re+=G}if(Re>De){const G=De-Re;Ie+=G,Re+=G}ke[xe++]=new DiffEntry(ie,Ie,se,Re)}ie[se++]=new Diff(ke)}let ce=ie[0].entries,fe=[],me=0;for(let G=1,Z=ie.length;GSe)&&(Se=ie),0!==se&&(0===Me||seke)&&(ke=ce)}let xe=document.createElement("div");xe.className="diff-review-row";let De=document.createElement("div");De.className="diff-review-cell diff-review-summary";const Ie=Se-Ce+1,Re=ke-Me+1;De.appendChild(document.createTextNode(`${fe+1}/${this._diffs.length}: @@ -${Ce},${Ie} +${Me},${Re} @@`)),xe.setAttribute("data-line",String(Me));const getAriaLines=G=>0===G?dr.a("no_lines_changed","no lines changed"):1===G?dr.a("one_line_changed","1 line changed"):dr.a("more_lines_changed","{0} lines changed",G),ze=getAriaLines(Ie),$e=getAriaLines(Re);xe.setAttribute("aria-label",dr.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",fe+1,this._diffs.length,Ce,ze,Me,$e)),xe.appendChild(De),xe.setAttribute("role","listitem"),ge.appendChild(xe);const Je=Z.get(57);let it=Me;for(let fe=0,Ce=me.length;feG}),Object(Ir.f)((G,Z)=>{const ne=G.getColor(Er.k);ne&&Z.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${ne}; }`);const ie=G.getColor(Pr.yc);ie&&Z.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${ie} 0 -6px 6px -6px inset; }`)});class diffReview_DiffReviewNext extends Dr.b{constructor(){super({id:"editor.action.diffReview.next",label:dr.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:jr.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(G,Z){const ne=findFocusedDiffEditor(G);ne&&ne.diffReviewNext()}}class diffReview_DiffReviewPrev extends Dr.b{constructor(){super({id:"editor.action.diffReview.prev",label:dr.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:jr.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(G,Z){const ne=findFocusedDiffEditor(G);ne&&ne.diffReviewPrev()}}function findFocusedDiffEditor(G){const Z=G.get(qt.a),ne=Z.listDiffEditors(),ie=Z.getActiveCodeEditor();if(!ie)return null;for(let G=0,Z=ne.length;Gie.modifiedStartLineNumber?dr.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):dr.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>inlineDiffMargin_awaiter(this,void 0,void 0,(function*(){const G=new It.a(ie.originalStartLineNumber,1,ie.originalEndLineNumber+1,1),Z=ie.originalModel.getValueInRange(G);yield this._clipboardService.writeText(Z)}))));let Ce=0,Se=void 0;ie.originalEndLineNumber>ie.modifiedStartLineNumber&&(Se=new Ar.a("diff.clipboard.copyDeletedLineContent",dr.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",ie.originalStartLineNumber),void 0,!0,()=>inlineDiffMargin_awaiter(this,void 0,void 0,(function*(){const G=ie.originalModel.getLineContent(ie.originalStartLineNumber+Ce);yield this._clipboardService.writeText(G)}))),ge.push(Se));ne.getOption(79)||ge.push(new Ar.a("diff.inline.revertChange",dr.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>inlineDiffMargin_awaiter(this,void 0,void 0,(function*(){const G=new It.a(ie.originalStartLineNumber,1,ie.originalEndLineNumber,ie.originalModel.getLineMaxColumn(ie.originalEndLineNumber)),Z=ie.originalModel.getValueInRange(G);if(0===ie.modifiedEndLineNumber){const G=ne.getModel().getLineMaxColumn(ie.modifiedStartLineNumber);ne.executeEdits("diffEditor",[{range:new It.a(ie.modifiedStartLineNumber,G,ie.modifiedStartLineNumber,G),text:me+Z}])}else{const G=ne.getModel().getLineMaxColumn(ie.modifiedEndLineNumber);ne.executeEdits("diffEditor",[{range:new It.a(ie.modifiedStartLineNumber,1,ie.modifiedEndLineNumber,G),text:Z}])}}))));const showContextMenu=(G,Z)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:G,y:Z}),getActions:()=>(Se&&(Se.label=dr.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",ie.originalStartLineNumber+Ce)),ge),autoSelectFirstItem:!0})};this._register(Wt.o(this._diffActions,"mousedown",G=>{const{top:Z,height:ne}=Wt.D(this._diffActions);let ie=Math.floor(fe/3);G.preventDefault(),showContextMenu(G.posx,Z+ne+ie)})),this._register(ne.onMouseMove(G=>{if(8===G.target.type||5===G.target.type){G.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,Ce=this._updateLightBulbPosition(this._marginDomNode,G.event.browserEvent.y,fe)):this.visibility=!1}else this.visibility=!1})),this._register(ne.onMouseDown(G=>{if(G.event.rightButton&&(8===G.target.type||5===G.target.type)){G.target.detail.viewZoneId===this._viewZoneId&&(G.event.preventDefault(),Ce=this._updateLightBulbPosition(this._marginDomNode,G.event.browserEvent.y,fe),showContextMenu(G.event.posx,G.event.posy+fe))}}))}get visibility(){return this._visibility}set visibility(G){this._visibility!==G&&(this._visibility=G,this._diffActions.style.visibility=G?"visible":"hidden")}_updateLightBulbPosition(G,Z,ne){const{top:ie}=Wt.D(G),se=Z-ie,ce=Math.floor(se/ne),fe=ce*ne;if(this._diffActions.style.top=fe+"px",this.diff.viewLineCounts){let G=0;for(let Z=0;Z=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},diffEditorWidget_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class diffEditorWidget_VisualEditorState{constructor(G,Z){this._contextMenuService=G,this._clipboardService=Z,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(G){return G.filter(G=>!this._zonesMap[String(G.id)])}clean(G){this._zones.length>0&&G.changeViewZones(G=>{for(const Z of this._zones)G.removeZone(Z)}),this._zones=[],this._zonesMap={},this._decorations=G.deltaDecorations(this._decorations,[])}apply(G,Z,ne,ie){const se=ie?xr.c.capture(G):null;G.changeViewZones(Z=>{for(const G of this._zones)Z.removeZone(G);for(const G of this._inlineDiffMargins)G.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let ie=0,se=ne.zones.length;ieG});let ri=class DiffEditorWidget extends Qt.a{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me){super(),this._editorProgressService=Me,this._onDidDispose=this._register(new At.b),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new At.b),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new At.b),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=se,this._codeEditorService=me,this._contextKeyService=this._register(ce.createScoped(G)),this._instantiationService=fe.createChild(new Yr.a([jr.b,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=ge,this._notificationService=Ce,this._id=++Qr,this._state=0,this._updatingDiffProgress=null,this._domElement=G,Z=Z||{},this._renderSideBySide=!0,void 0!==Z.renderSideBySide&&(this._renderSideBySide=Z.renderSideBySide),this._maxComputationTime=5e3,void 0!==Z.maxComputationTime&&(this._maxComputationTime=Z.maxComputationTime),this._ignoreTrimWhitespace=!0,void 0!==Z.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=Z.ignoreTrimWhitespace),this._renderIndicators=!0,void 0!==Z.renderIndicators&&(this._renderIndicators=Z.renderIndicators),this._originalIsEditable=Object(Lt.k)(Z.originalEditable,!1),this._diffCodeLens=Object(Lt.k)(Z.diffCodeLens,!1),this._diffWordWrap=validateDiffWordWrap(Z.diffWordWrap,"inherit"),void 0!==Z.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",Z.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._renderOverviewRuler=!0,void 0!==Z.renderOverviewRuler&&(this._renderOverviewRuler=Boolean(Z.renderOverviewRuler)),this._updateDecorationsRunner=this._register(new wn.e(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=DiffEditorWidget._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(Sr.b)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(Wt.o(this._overviewDomElement,"mousedown",G=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(G)})),this._renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new diffEditorWidget_VisualEditorState(Se,ie),this._modifiedEditorState=new diffEditorWidget_VisualEditorState(Se,ie),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new Zr.a(this._containerDomElement,Z.dimension,()=>this._onDidContainerSizeChanged())),Z.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(Z,ne.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(Z,ne.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new diffReview_DiffReview(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,void 0!==Z.enableSplitViewResizing&&(this._enableSplitViewResizing=Z.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new diffEditorWidget_DiffEditorWidgetSideBySide(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new diffEditorWidget_DiffEditorWidgetInline(this._createDataSource(),this._enableSplitViewResizing)),this._register(ge.onDidColorThemeChange(G=>{this._strategy&&this._strategy.applyColors(G)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=DiffEditorWidget._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));const ke=Dr.d.getDiffEditorContributions();for(const G of ke)try{this._register(fe.createInstance(G.ctor,this))}catch(G){Object(Cn.e)(G)}this._codeEditorService.addDiffEditor(this)}_setState(G){this._state!==G&&(this._state=G,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(G,Z){let ne="monaco-diff-editor monaco-editor-background ";return Z&&(ne+="side-by-side "),ne+=Object(Ir.e)(G.type),ne}_recreateOverviewRulers(){this._renderOverviewRuler&&(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(G,Z){const ne=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(G),Z);this._register(ne.onDidScrollChange(G=>{this._isHandlingScrollEvent||(G.scrollTopChanged||G.scrollLeftChanged||G.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:G.scrollLeft,scrollTop:G.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ne.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ne.onDidChangeConfiguration(G=>{ne.getModel()&&(G.hasChanged(41)&&this._updateDecorationsRunner.schedule(),G.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(ne.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const ie=this._contextKeyService.createKey("isInDiffLeftEditor",ne.hasWidgetFocus());return this._register(ne.onDidFocusEditorWidget(()=>ie.set(!0))),this._register(ne.onDidBlurEditorWidget(()=>ie.set(!1))),this._register(ne.onDidContentSizeChange(G=>{const Z=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+DiffEditorWidget.ONE_OVERVIEW_WIDTH,ne=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:ne,contentWidth:Z,contentHeightChanged:G.contentHeightChanged,contentWidthChanged:G.contentWidthChanged})})),ne}_createRightHandSideEditor(G,Z){const ne=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(G),Z);this._register(ne.onDidScrollChange(G=>{this._isHandlingScrollEvent||(G.scrollTopChanged||G.scrollLeftChanged||G.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:G.scrollLeft,scrollTop:G.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(ne.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(ne.onDidChangeConfiguration(G=>{ne.getModel()&&(G.hasChanged(41)&&this._updateDecorationsRunner.schedule(),G.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(ne.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(ne.onDidChangeModelOptions(G=>{G.tabSize&&this._updateDecorationsRunner.schedule()}));const ie=this._contextKeyService.createKey("isInDiffRightEditor",ne.hasWidgetFocus());return this._register(ne.onDidFocusEditorWidget(()=>ie.set(!0))),this._register(ne.onDidBlurEditorWidget(()=>ie.set(!1))),this._register(ne.onDidContentSizeChange(G=>{const Z=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+DiffEditorWidget.ONE_OVERVIEW_WIDTH,ne=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:ne,contentWidth:Z,contentHeightChanged:G.contentHeightChanged,contentWidthChanged:G.contentWidthChanged})})),ne}_createInnerEditor(G,Z,ne,ie){return G.createInstance(Or.a,Z,ne,ie)}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return dn.a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(G){let Z=!1;void 0!==G.renderSideBySide&&this._renderSideBySide!==G.renderSideBySide&&(this._renderSideBySide=G.renderSideBySide,Z=!0),void 0!==G.maxComputationTime&&(this._maxComputationTime=G.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let ne=!1;void 0!==G.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==G.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=G.ignoreTrimWhitespace,ne=!0),void 0!==G.renderIndicators&&this._renderIndicators!==G.renderIndicators&&(this._renderIndicators=G.renderIndicators,ne=!0),ne&&this._beginUpdateDecorations(),this._originalIsEditable=Object(Lt.k)(G.originalEditable,this._originalIsEditable),this._diffCodeLens=Object(Lt.k)(G.diffCodeLens,this._diffCodeLens),this._diffWordWrap=validateDiffWordWrap(G.diffWordWrap,this._diffWordWrap),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(G)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(G)),void 0!==G.enableSplitViewResizing&&(this._enableSplitViewResizing=G.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),Z&&(this._renderSideBySide?this._setStrategy(new diffEditorWidget_DiffEditorWidgetSideBySide(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new diffEditorWidget_DiffEditorWidgetInline(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=DiffEditorWidget._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)),void 0!==G.renderOverviewRuler&&this._renderOverviewRuler!==G.renderOverviewRuler&&(this._renderOverviewRuler=G.renderOverviewRuler,this._renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(G){if(G&&(!G.original||!G.modified))throw new Error(G.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(G?G.original:null),this._modifiedEditor.setModel(G?G.modified:null),this._updateDecorationsRunner.cancel(),G&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),G&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(G){return this._modifiedEditor.getVisibleColumnFromPosition(G)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(G){this._modifiedEditor.setPosition(G)}revealLine(G,Z=0){this._modifiedEditor.revealLine(G,Z)}revealLineInCenter(G,Z=0){this._modifiedEditor.revealLineInCenter(G,Z)}revealLineInCenterIfOutsideViewport(G,Z=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(G,Z)}revealLineNearTop(G,Z=0){this._modifiedEditor.revealLineNearTop(G,Z)}revealPosition(G,Z=0){this._modifiedEditor.revealPosition(G,Z)}revealPositionInCenter(G,Z=0){this._modifiedEditor.revealPositionInCenter(G,Z)}revealPositionInCenterIfOutsideViewport(G,Z=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(G,Z)}revealPositionNearTop(G,Z=0){this._modifiedEditor.revealPositionNearTop(G,Z)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(G){this._modifiedEditor.setSelection(G)}setSelections(G){this._modifiedEditor.setSelections(G)}revealLines(G,Z,ne=0){this._modifiedEditor.revealLines(G,Z,ne)}revealLinesInCenter(G,Z,ne=0){this._modifiedEditor.revealLinesInCenter(G,Z,ne)}revealLinesInCenterIfOutsideViewport(G,Z,ne=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(G,Z,ne)}revealLinesNearTop(G,Z,ne=0){this._modifiedEditor.revealLinesNearTop(G,Z,ne)}revealRange(G,Z=0,ne=!1,ie=!0){this._modifiedEditor.revealRange(G,Z,ne,ie)}revealRangeInCenter(G,Z=0){this._modifiedEditor.revealRangeInCenter(G,Z)}revealRangeInCenterIfOutsideViewport(G,Z=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(G,Z)}revealRangeNearTop(G,Z=0){this._modifiedEditor.revealRangeNearTop(G,Z)}revealRangeNearTopIfOutsideViewport(G,Z=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(G,Z)}revealRangeAtTop(G,Z=0){this._modifiedEditor.revealRangeAtTop(G,Z)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){return{original:this._originalEditor.saveViewState(),modified:this._modifiedEditor.saveViewState()}}restoreViewState(G){if(G&&G.original&&G.modified){const Z=G;this._originalEditor.restoreViewState(Z.original),this._modifiedEditor.restoreViewState(Z.modified)}}layout(G){this._elementSizeObserver.observe(G)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(G,Z,ne){this._modifiedEditor.trigger(G,Z,ne)}changeDecorations(G){return this._modifiedEditor.changeDecorations(G)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._renderOverviewRuler)return;if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const G=this._elementSizeObserver.getHeight(),Z=this._getReviewHeight(),ne=DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH-2*DiffEditorWidget.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:DiffEditorWidget.ONE_OVERVIEW_WIDTH,right:ne+DiffEditorWidget.ONE_OVERVIEW_WIDTH,height:G-Z}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:DiffEditorWidget.ONE_OVERVIEW_WIDTH,height:G-Z}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),DiffEditorWidget.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(G,Z){return!G&&!Z||!(!G||!Z)&&G.toString()===Z.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const G=this._originalEditor.getModel(),Z=this._modifiedEditor.getModel();if(!G||!Z)return;this._diffComputationToken++;const ne=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(G.uri,Z.uri)?this._editorWorkerService.computeDiff(G.uri,Z.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(ie=>{ne===this._diffComputationToken&&G===this._originalEditor.getModel()&&Z===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=ie,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},ie=>{ne===this._diffComputationToken&&G===this._originalEditor.getModel()&&Z===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):DiffEditorWidget._equals(G.uri,this._lastOriginalWarning)&&DiffEditorWidget._equals(Z.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=G.uri,this._lastModifiedWarning=Z.uri,this._notificationService.warn(dr.a("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const G=this._diffComputationResult?this._diffComputationResult.changes:[],Z=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),ne=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),ie=this._strategy.getEditorsDiffDecorations(G,this._ignoreTrimWhitespace,this._renderIndicators,Z,ne);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,ie.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,ie.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(G){const Z=Object.assign({},G);return Z.inDiffEditor=!0,Z.automaticLayout=!1,Z.scrollbar=Object.assign({},Z.scrollbar||{}),Z.scrollbar.vertical="visible",Z.folding=!1,Z.codeLens=this._diffCodeLens,Z.fixedOverflowWidgets=!0,Z.minimap=Object.assign({},Z.minimap||{}),Z.minimap.enabled=!1,Z}_adjustOptionsForLeftHandSide(G){const Z=this._adjustOptionsForSubEditor(G);return this._renderSideBySide?Z.wordWrapOverride1=this._diffWordWrap:Z.wordWrapOverride1="off",G.originalAriaLabel&&(Z.ariaLabel=G.originalAriaLabel),Z.readOnly=!this._originalIsEditable,Z.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},Z),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(G){const Z=this._adjustOptionsForSubEditor(G);return G.modifiedAriaLabel&&(Z.ariaLabel=G.modifiedAriaLabel),Z.wordWrapOverride1=this._diffWordWrap,Z.revealHorizontalRightPadding=Lt.g.revealHorizontalRightPadding.defaultValue+DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH,Z.scrollbar.verticalHasArrows=!1,Z.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},Z),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const G=this._elementSizeObserver.getWidth(),Z=this._elementSizeObserver.getHeight(),ne=this._getReviewHeight(),ie=this._strategy.layout();this._originalDomNode.style.width=ie+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=G-ie+"px",this._modifiedDomNode.style.left=ie+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=Z-ne+"px",this._overviewDomElement.style.width=DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=G-DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:ie,height:Z-ne}),this._modifiedEditor.layout({width:G-ie-(this._renderOverviewRuler?DiffEditorWidget.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:Z-ne}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(Z-ne,G,ne),this._layoutOverviewViewport()}_layoutOverviewViewport(){const G=this._computeOverviewViewport();G?(this._overviewViewportDomElement.setTop(G.top),this._overviewViewportDomElement.setHeight(G.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const G=this._modifiedEditor.getLayoutInfo();if(!G)return null;const Z=this._modifiedEditor.getScrollTop(),ne=this._modifiedEditor.getScrollHeight(),ie=Math.max(0,G.height),se=Math.max(0,ie-0),ce=ne>0?se/ne:0;return{height:Math.max(0,Math.floor(G.height*ce)),top:Math.floor(Z*ce)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(G){this._strategy&&this._strategy.dispose(),this._strategy=G,G.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(G,Z){const ne=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===ne.length||G=me?ie=ce+1:(ie=ce,se=ce)}return ne[ie]}_getEquivalentLineForOriginalLineNumber(G){const Z=this._getLineChangeAtOrBeforeLineNumber(G,G=>G.originalStartLineNumber);if(!Z)return G;const ne=Z.originalStartLineNumber+(Z.originalEndLineNumber>0?-1:0),ie=Z.modifiedStartLineNumber+(Z.modifiedEndLineNumber>0?-1:0),se=Z.originalEndLineNumber>0?Z.originalEndLineNumber-Z.originalStartLineNumber+1:0,ce=Z.modifiedEndLineNumber>0?Z.modifiedEndLineNumber-Z.modifiedStartLineNumber+1:0,fe=G-ne;return fe<=se?ie+Math.min(fe,ce):ie+ce-se+fe}_getEquivalentLineForModifiedLineNumber(G){const Z=this._getLineChangeAtOrBeforeLineNumber(G,G=>G.modifiedStartLineNumber);if(!Z)return G;const ne=Z.originalStartLineNumber+(Z.originalEndLineNumber>0?-1:0),ie=Z.modifiedStartLineNumber+(Z.modifiedEndLineNumber>0?-1:0),se=Z.originalEndLineNumber>0?Z.originalEndLineNumber-Z.originalStartLineNumber+1:0,ce=Z.modifiedEndLineNumber>0?Z.modifiedEndLineNumber-Z.modifiedStartLineNumber+1:0,fe=G-ie;return fe<=ce?ne+Math.min(fe,se):ne+se-ce+fe}getDiffLineInformationForOriginal(G){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(G)}:null}getDiffLineInformationForModified(G){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(G)}:null}};ri.ONE_OVERVIEW_WIDTH=15,ri.ENTIRE_DIFF_OVERVIEW_WIDTH=30,ri.UPDATE_DIFF_DECORATIONS_DELAY=200,ri=diffEditorWidget_decorate([diffEditorWidget_param(3,Xr.a),diffEditorWidget_param(4,bn.a),diffEditorWidget_param(5,jr.b),diffEditorWidget_param(6,Vr.a),diffEditorWidget_param(7,qt.a),diffEditorWidget_param(8,Ir.b),diffEditorWidget_param(9,mr.a),diffEditorWidget_param(10,Ur.a),diffEditorWidget_param(11,Gr.a)],ri);class diffEditorWidget_DiffEditorWidgetStyle extends Qt.a{constructor(G){super(),this._dataSource=G,this._insertColor=null,this._removeColor=null}applyColors(G){const Z=(G.getColor(Pr.m)||Pr.i).transparent(2),ne=(G.getColor(Pr.o)||Pr.j).transparent(2),ie=!Z.equals(this._insertColor)||!ne.equals(this._removeColor);return this._insertColor=Z,this._removeColor=ne,ie}getEditorsDiffDecorations(G,Z,ne,ie,se){se=se.sort((G,Z)=>G.afterLineNumber-Z.afterLineNumber),ie=ie.sort((G,Z)=>G.afterLineNumber-Z.afterLineNumber);const ce=this._getViewZones(G,ie,se,ne),fe=this._getOriginalEditorDecorations(G,Z,ne),me=this._getModifiedEditorDecorations(G,Z,ne);return{original:{decorations:fe.decorations,overviewZones:fe.overviewZones,zones:ce.original},modified:{decorations:me.decorations,overviewZones:me.overviewZones,zones:ce.modified}}}}class ForeignViewZonesIterator{constructor(G){this._source=G,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexG.afterLineNumber-Z.afterLineNumber,addAndCombineIfPossible=(G,Z)=>{if(null===Z.domNode&&G.length>0){const ne=G[G.length-1];if(ne.afterLineNumber===Z.afterLineNumber&&null===ne.domNode)return void(ne.heightInLines+=Z.heightInLines)}G.push(Z)},Re=new ForeignViewZonesIterator(this._modifiedForeignVZ),ze=new ForeignViewZonesIterator(this._originalForeignVZ);let $e=1,Je=1;for(let ne=0,ie=this._lineChanges.length;ne<=ie;ne++){const it=ne0?-1:0),xe=it.modifiedStartLineNumber+(it.modifiedEndLineNumber>0?-1:0),Me=it.originalEndLineNumber>0?ViewZonesComputer._getViewLineCount(this._originalEditor,it.originalStartLineNumber,it.originalEndLineNumber):0,Se=it.modifiedEndLineNumber>0?ViewZonesComputer._getViewLineCount(this._modifiedEditor,it.modifiedStartLineNumber,it.modifiedEndLineNumber):0,De=Math.max(it.originalStartLineNumber,it.originalEndLineNumber),Ie=Math.max(it.modifiedStartLineNumber,it.modifiedEndLineNumber)):(ke+=1e7+Me,xe+=1e7+Se,De=ke,Ie=xe);let ot=[],at=[];if(se){let G;G=it?it.originalEndLineNumber>0?it.originalStartLineNumber-$e:it.modifiedStartLineNumber-Je:ce.getLineCount()-$e;for(let Z=0;Zse&&at.push({afterLineNumber:ne,heightInLines:ie-se,domNode:null,marginDomNode:null})}it&&($e=(it.originalEndLineNumber>0?it.originalEndLineNumber:it.originalStartLineNumber)+1,Je=(it.modifiedEndLineNumber>0?it.modifiedEndLineNumber:it.modifiedStartLineNumber)+1)}for(;Re.current&&Re.current.afterLineNumber<=Ie;){let G;G=Re.current.afterLineNumber<=xe?ke-xe+Re.current.afterLineNumber:De;let ne=null;it&&it.modifiedStartLineNumber<=Re.current.afterLineNumber&&Re.current.afterLineNumber<=it.modifiedEndLineNumber&&(ne=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),ot.push({afterLineNumber:G,heightInLines:Re.current.height/Z,domNode:null,marginDomNode:ne}),Re.advance()}for(;ze.current&&ze.current.afterLineNumber<=De;){let Z;Z=ze.current.afterLineNumber<=ke?xe-ke+ze.current.afterLineNumber:Ie,at.push({afterLineNumber:Z,heightInLines:ze.current.height/G,domNode:null}),ze.advance()}if(null!==it&&isChangeOrInsert(it)){const G=this._produceOriginalFromDiff(it,Me,Se);G&&ot.push(G)}if(null!==it&&isChangeOrDelete(it)){const G=this._produceModifiedFromDiff(it,Me,Se);G&&at.push(G)}let st=0,ct=0;for(ot=ot.sort(sortMyViewZones),at=at.sort(sortMyViewZones);st=Z.heightInLines?(G.heightInLines-=Z.heightInLines,ct++):(Z.heightInLines-=G.heightInLines,st++)}for(;st(G.domNode||(G.domNode=createFakeLinesDiv()),G))}}function createDecoration(G,Z,ne,ie,se){return{range:new It.a(G,Z,ne,ie),options:se}}const ii={charDelete:Fr.a.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:Fr.a.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:Fr.a.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:Fr.a.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:Fr.a.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Fr.a.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+Ir.d.asClassName(ei),marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Fr.a.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Fr.a.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+Ir.d.asClassName(ti),marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Fr.a.register({description:"diff-editor-line-delete-margin",marginClassName:"line-delete"})};class diffEditorWidget_DiffEditorWidgetSideBySide extends diffEditorWidget_DiffEditorWidgetStyle{constructor(G,Z){super(G),this._disableSash=!1===Z,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new Mr.b(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(G=>this._onSashDrag(G)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(G){const Z=!1===G;this._disableSash!==Z&&(this._disableSash=Z,this._sash.state=this._disableSash?0:3)}layout(G=this._sashRatio){const Z=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ri.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let ne=Math.floor((G||.5)*Z);const ie=Math.floor(.5*Z);return ne=this._disableSash?ie:ne||ie,Z>2*diffEditorWidget_DiffEditorWidgetSideBySide.MINIMUM_EDITOR_WIDTH?(neZ-diffEditorWidget_DiffEditorWidgetSideBySide.MINIMUM_EDITOR_WIDTH&&(ne=Z-diffEditorWidget_DiffEditorWidgetSideBySide.MINIMUM_EDITOR_WIDTH)):ne=ie,this._sashPosition!==ne&&(this._sashPosition=ne,this._sash.layout()),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(G){const Z=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?ri.ENTIRE_DIFF_OVERVIEW_WIDTH:0),ne=this.layout((this._startSashPosition+(G.currentX-G.startX))/Z);this._sashRatio=ne/Z,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(G){return 0}getVerticalSashLeft(G){return this._sashPosition}getVerticalSashHeight(G){return this._dataSource.getHeight()}_getViewZones(G,Z,ne){const ie=this._dataSource.getOriginalEditor(),se=this._dataSource.getModifiedEditor();return new SideBySideViewZonesComputer(G,Z,ne,ie,se).getViewZones()}_getOriginalEditorDecorations(G,Z,ne){const ie=this._dataSource.getOriginalEditor(),se=String(this._removeColor),ce={decorations:[],overviewZones:[]},fe=ie.getModel(),me=ie._getViewModel();for(const ie of G)if(isChangeOrDelete(ie)){ce.decorations.push({range:new It.a(ie.originalStartLineNumber,1,ie.originalEndLineNumber,1073741824),options:ne?ii.lineDeleteWithSign:ii.lineDelete}),isChangeOrInsert(ie)&&ie.charChanges||ce.decorations.push(createDecoration(ie.originalStartLineNumber,1,ie.originalEndLineNumber,1073741824,ii.charDeleteWholeLine));const G=getViewRange(fe,me,ie.originalStartLineNumber,ie.originalEndLineNumber);if(ce.overviewZones.push(new Hr.a(G.startLineNumber,G.endLineNumber,se)),ie.charChanges)for(const G of ie.charChanges)if(isChangeOrDelete(G))if(Z)for(let Z=G.originalStartLineNumber;Z<=G.originalEndLineNumber;Z++){let ne,ie;ne=Z===G.originalStartLineNumber?G.originalStartColumn:fe.getLineFirstNonWhitespaceColumn(Z),ie=Z===G.originalEndLineNumber?G.originalEndColumn:fe.getLineLastNonWhitespaceColumn(Z),ce.decorations.push(createDecoration(Z,ne,Z,ie,ii.charDelete))}else ce.decorations.push(createDecoration(G.originalStartLineNumber,G.originalStartColumn,G.originalEndLineNumber,G.originalEndColumn,ii.charDelete))}return ce}_getModifiedEditorDecorations(G,Z,ne){const ie=this._dataSource.getModifiedEditor(),se=String(this._insertColor),ce={decorations:[],overviewZones:[]},fe=ie.getModel(),me=ie._getViewModel();for(const ie of G)if(isChangeOrInsert(ie)){ce.decorations.push({range:new It.a(ie.modifiedStartLineNumber,1,ie.modifiedEndLineNumber,1073741824),options:ne?ii.lineInsertWithSign:ii.lineInsert}),isChangeOrDelete(ie)&&ie.charChanges||ce.decorations.push(createDecoration(ie.modifiedStartLineNumber,1,ie.modifiedEndLineNumber,1073741824,ii.charInsertWholeLine));const G=getViewRange(fe,me,ie.modifiedStartLineNumber,ie.modifiedEndLineNumber);if(ce.overviewZones.push(new Hr.a(G.startLineNumber,G.endLineNumber,se)),ie.charChanges)for(const G of ie.charChanges)if(isChangeOrInsert(G))if(Z)for(let Z=G.modifiedStartLineNumber;Z<=G.modifiedEndLineNumber;Z++){let ne,ie;ne=Z===G.modifiedStartLineNumber?G.modifiedStartColumn:fe.getLineFirstNonWhitespaceColumn(Z),ie=Z===G.modifiedEndLineNumber?G.modifiedEndColumn:fe.getLineLastNonWhitespaceColumn(Z),ce.decorations.push(createDecoration(Z,ne,Z,ie,ii.charInsert))}else ce.decorations.push(createDecoration(G.modifiedStartLineNumber,G.modifiedStartColumn,G.modifiedEndLineNumber,G.modifiedEndColumn,ii.charInsert))}return ce}}diffEditorWidget_DiffEditorWidgetSideBySide.MINIMUM_EDITOR_WIDTH=100;class SideBySideViewZonesComputer extends ViewZonesComputer{constructor(G,Z,ne,ie,se){super(G,Z,ne,ie,se)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(G,Z,ne){return ne>Z?{afterLineNumber:Math.max(G.originalStartLineNumber,G.originalEndLineNumber),heightInLines:ne-Z,domNode:null}:null}_produceModifiedFromDiff(G,Z,ne){return Z>ne?{afterLineNumber:Math.max(G.modifiedStartLineNumber,G.modifiedEndLineNumber),heightInLines:Z-ne,domNode:null}:null}}class diffEditorWidget_DiffEditorWidgetInline extends diffEditorWidget_DiffEditorWidgetStyle{constructor(G,Z){super(G),this._decorationsLeft=G.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(G.getOriginalEditor().onDidLayoutChange(Z=>{this._decorationsLeft!==Z.decorationsLeft&&(this._decorationsLeft=Z.decorationsLeft,G.relayoutEditors())}))}setEnableSplitViewResizing(G){}_getViewZones(G,Z,ne,ie){const se=this._dataSource.getOriginalEditor(),ce=this._dataSource.getModifiedEditor();return new diffEditorWidget_InlineViewZonesComputer(G,Z,ne,se,ce,ie).getViewZones()}_getOriginalEditorDecorations(G,Z,ne){const ie=String(this._removeColor),se={decorations:[],overviewZones:[]},ce=this._dataSource.getOriginalEditor(),fe=ce.getModel(),me=ce._getViewModel();for(const Z of G)if(isChangeOrDelete(Z)){se.decorations.push({range:new It.a(Z.originalStartLineNumber,1,Z.originalEndLineNumber,1073741824),options:ii.lineDeleteMargin});const G=getViewRange(fe,me,Z.originalStartLineNumber,Z.originalEndLineNumber);se.overviewZones.push(new Hr.a(G.startLineNumber,G.endLineNumber,ie))}return se}_getModifiedEditorDecorations(G,Z,ne){const ie=this._dataSource.getModifiedEditor(),se=String(this._insertColor),ce={decorations:[],overviewZones:[]},fe=ie.getModel(),me=ie._getViewModel();for(const ie of G)if(isChangeOrInsert(ie)){ce.decorations.push({range:new It.a(ie.modifiedStartLineNumber,1,ie.modifiedEndLineNumber,1073741824),options:ne?ii.lineInsertWithSign:ii.lineInsert});const G=getViewRange(fe,me,ie.modifiedStartLineNumber,ie.modifiedEndLineNumber);if(ce.overviewZones.push(new Hr.a(G.startLineNumber,G.endLineNumber,se)),ie.charChanges){for(const G of ie.charChanges)if(isChangeOrInsert(G))if(Z)for(let Z=G.modifiedStartLineNumber;Z<=G.modifiedEndLineNumber;Z++){let ne,ie;ne=Z===G.modifiedStartLineNumber?G.modifiedStartColumn:fe.getLineFirstNonWhitespaceColumn(Z),ie=Z===G.modifiedEndLineNumber?G.modifiedEndColumn:fe.getLineLastNonWhitespaceColumn(Z),ce.decorations.push(createDecoration(Z,ne,Z,ie,ii.charInsert))}else ce.decorations.push(createDecoration(G.modifiedStartLineNumber,G.modifiedStartColumn,G.modifiedEndLineNumber,G.modifiedEndColumn,ii.charInsert))}else ce.decorations.push(createDecoration(ie.modifiedStartLineNumber,1,ie.modifiedEndLineNumber,1073741824,ii.charInsertWholeLine))}return ce}layout(){return Math.max(5,this._decorationsLeft)}}class diffEditorWidget_InlineViewZonesComputer extends ViewZonesComputer{constructor(G,Z,ne,ie,se,ce){super(G,Z,ne,ie,se),this._originalModel=ie.getModel(),this._renderIndicators=ce,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){const G=super.getViewZones();return this._finalize(G),G}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){const G=document.createElement("div");return G.className="inline-added-margin-view-zone",G}_produceOriginalFromDiff(G,Z,ne){const ie=document.createElement("div");return ie.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(G.originalStartLineNumber,G.originalEndLineNumber),heightInLines:ne,domNode:document.createElement("div"),marginDomNode:ie}}_produceModifiedFromDiff(G,Z,ne){const ie=document.createElement("div");ie.className="view-lines line-delete "+Jr.a;const se=document.createElement("div");se.className="inline-deleted-margin-view-zone";const ce={shouldNotShrink:!0,afterLineNumber:0===G.modifiedEndLineNumber?G.modifiedStartLineNumber:G.modifiedStartLineNumber-1,heightInLines:Z,minWidthInPx:0,domNode:ie,marginDomNode:se,diff:{originalStartLineNumber:G.originalStartLineNumber,originalEndLineNumber:G.originalEndLineNumber,modifiedStartLineNumber:G.modifiedStartLineNumber,modifiedEndLineNumber:G.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let Z=G.originalStartLineNumber;Z<=G.originalEndLineNumber;Z++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(Z),null,null);return this._pendingLineChange.push(G),this._pendingViewZones.push(ce),ce}_finalize(G){const Z=this._modifiedEditor.getOptions(),ne=this._modifiedEditor.getModel().getOptions().tabSize,ie=Z.get(41),se=Z.get(27),ce=ie.typicalHalfwidthCharacterWidth,fe=Z.get(92),me=this._originalModel.mightContainNonBasicASCII(),ge=this._originalModel.mightContainRTL(),Ce=Z.get(57),Se=Z.get(129).decorationsWidth,Me=Z.get(104),ke=Z.get(87),xe=Z.get(81),De=Z.get(42),Ie=this._lineBreaksComputer.finalize();let Re=0;for(let Z=0;Z0,st=Object(Br.a)(1e4);let ct=0,ut=0,dt=null;for(let Z=ze.originalStartLineNumber;Z<=ze.originalEndLineNumber;Z++){const ce=Z-ze.originalStartLineNumber,fe=this._originalModel.getLineTokens(Z),Je=fe.getLineContent(),ht=Ie[Re++],ft=$r.a.filter(ot,Z,1,Je.length+1);if(ht){let Ie=0;for(const G of ht.breakOffsets){const Z=fe.sliceAndInflate(Ie,G,0),ce=Je.substring(Ie,G);ct=Math.max(ct,this._renderOriginalLine(ut++,ce,Z,$r.a.extractWrapped(ft,Ie,G),at,me,ge,ie,se,Ce,Se,Me,ke,xe,De,ne,st,it)),Ie=G}for(dt||(dt=[]);dt.lengthG.afterLineNumber-Z.afterLineNumber)}_renderOriginalLine(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze){Re.appendASCIIString('
    ');const $e=Jn.f.isBasicASCII(Z,ce),Je=Jn.f.containsRTL(Z,$e,fe),it=Object(Zn.d)(new Zn.c(me.isMonospace&&!ge,me.canUseHalfwidthRightwardsArrow,Z,!1,$e,Je,0,ne,ie,Ie,0,me.spaceWidth,me.middotWidth,me.wsmiddotWidth,Me,ke,xe,De!==Lt.e.OFF,null),Re);if(Re.appendASCIIString("
    "),this._renderIndicators){const Z=document.createElement("div");Z.className="delete-sign "+Ir.d.asClassName(ti),Z.setAttribute("style",`position:absolute;top:${G*Ce}px;width:${Se}px;height:${Ce}px;right:0;`),ze.appendChild(Z)}return it.characterMapping.getAbsoluteOffset(it.characterMapping.length)}}function validateDiffWordWrap(G,Z){return Object(Lt.n)(G,Z,["off","on","inherit"])}function isChangeOrInsert(G){return G.modifiedEndLineNumber>0}function isChangeOrDelete(G){return G.originalEndLineNumber>0}function createFakeLinesDiv(){const G=document.createElement("div");return G.className="diagonal-fill",G}function getViewRange(G,Z,ne,ie){const se=G.getLineCount();return ne=Math.min(se,Math.max(1,ne)),ie=Math.min(se,Math.max(1,ie)),Z.coordinatesConverter.convertModelRangeToViewRange(new It.a(ne,G.getLineMinColumn(ne),ie,G.getLineMaxColumn(ie)))}Object(Ir.f)((G,Z)=>{const ne=G.getColor(Pr.m);ne&&(Z.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${ne}; }`),Z.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${ne}; }`),Z.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${ne}; }`));const ie=G.getColor(Pr.o);ie&&(Z.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${ie}; }`),Z.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${ie}; }`),Z.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${ie}; }`));const se=G.getColor(Pr.n);se&&Z.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===G.type?"dashed":"solid"} ${se}; }`);const ce=G.getColor(Pr.p);ce&&Z.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===G.type?"dashed":"solid"} ${ce}; }`);const fe=G.getColor(Pr.yc);fe&&Z.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${fe}; }`);const me=G.getColor(Pr.k);me&&Z.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${me}; }`);const ge=G.getColor(Pr.Ac);ge&&Z.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${ge};\n\t\t\t}\n\t\t`);const Ce=G.getColor(Pr.Bc);Ce&&Z.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${Ce};\n\t\t\t}\n\t\t`);const Se=G.getColor(Pr.zc);Se&&Z.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${Se};\n\t\t\t}\n\t\t`);const Me=G.getColor(Pr.l);Z.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${Me} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${Me} 50%, ${Me} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)});var oi=ne(2107),ai=ne(704),si=ne(92),li=ne(175),ci=ne(295);class abstractCodeEditorService_AbstractCodeEditorService extends Qt.a{constructor(){super(),this._onCodeEditorAdd=this._register(new At.b),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new At.b),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new At.b),this._onDiffEditorRemove=this._register(new At.b),this._onDecorationTypeRegistered=this._register(new At.b),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(G){this._codeEditors[G.getId()]=G,this._onCodeEditorAdd.fire(G)}removeCodeEditor(G){delete this._codeEditors[G.getId()]&&this._onCodeEditorRemove.fire(G)}listCodeEditors(){return Object.keys(this._codeEditors).map(G=>this._codeEditors[G])}addDiffEditor(G){this._diffEditors[G.getId()]=G,this._onDiffEditorAdd.fire(G)}removeDiffEditor(G){delete this._diffEditors[G.getId()]&&this._onDiffEditorRemove.fire(G)}listDiffEditors(){return Object.keys(this._diffEditors).map(G=>this._diffEditors[G])}getFocusedCodeEditor(){let G=null;const Z=this.listCodeEditors();for(const ne of Z){if(ne.hasTextFocus())return ne;ne.hasWidgetFocus()&&(G=ne)}return G}setModelProperty(G,Z,ne){const ie=G.toString();let se;this._modelProperties.has(ie)?se=this._modelProperties.get(ie):(se=new Map,this._modelProperties.set(ie,se)),se.set(Z,ne)}getModelProperty(G,Z){const ne=G.toString();if(this._modelProperties.has(ne)){return this._modelProperties.get(ne).get(Z)}}}var codeEditorServiceImpl_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},codeEditorServiceImpl_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class codeEditorServiceImpl_RefCountedStyleSheet{constructor(G,Z,ne){this._parent=G,this._editorId=Z,this._styleSheet=ne,this._refCount=0}ref(){this._refCount++}unref(){var G;this._refCount--,0===this._refCount&&(null===(G=this._styleSheet.parentNode)||void 0===G||G.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(G,Z){this._styleSheet.sheet.insertRule(G,Z)}removeRulesContainingSelector(G){Wt.Q(G,this._styleSheet)}}class codeEditorServiceImpl_GlobalStyleSheet{constructor(G){this._styleSheet=G}ref(){}unref(){}insertRule(G,Z){this._styleSheet.sheet.insertRule(G,Z)}removeRulesContainingSelector(G){Wt.Q(G,this._styleSheet)}}let ui=class CodeEditorServiceImpl extends abstractCodeEditorService_AbstractCodeEditorService{constructor(G,Z){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=G||null,this._themeService=Z}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new codeEditorServiceImpl_GlobalStyleSheet(Wt.w())),this._globalStyleSheet}_getOrCreateStyleSheet(G){if(!G)return this._getOrCreateGlobalStyleSheet();const Z=G.getContainerDomNode();if(!Wt.O(Z))return this._getOrCreateGlobalStyleSheet();const ne=G.getId();if(!this._editorStyleSheets.has(ne)){const G=new codeEditorServiceImpl_RefCountedStyleSheet(this,ne,Wt.w(Z));this._editorStyleSheets.set(ne,G)}return this._editorStyleSheets.get(ne)}_removeEditorStyleSheets(G){this._editorStyleSheets.delete(G)}registerDecorationType(G,Z,ne,ie,se){let ce=this._decorationOptionProviders.get(Z);if(!ce){const fe=this._getOrCreateStyleSheet(se),me={styleSheet:fe,key:Z,parentTypeKey:ie,options:ne||Object.create(null)};ce=ie?new DecorationSubTypeOptionsProvider(this._themeService,fe,me):new codeEditorServiceImpl_DecorationTypeOptionsProvider(G,this._themeService,fe,me),this._decorationOptionProviders.set(Z,ce),this._onDecorationTypeRegistered.fire(Z)}ce.refCount++}removeDecorationType(G){const Z=this._decorationOptionProviders.get(G);Z&&(Z.refCount--,Z.refCount<=0&&(this._decorationOptionProviders.delete(G),Z.dispose(),this.listCodeEditors().forEach(Z=>Z.removeDecorations(G))))}resolveDecorationOptions(G,Z){const ne=this._decorationOptionProviders.get(G);if(!ne)throw new Error("Unknown decoration type key: "+G);return ne.getOptions(this,Z)}};ui=codeEditorServiceImpl_decorate([codeEditorServiceImpl_param(1,Ir.b)],ui);class DecorationSubTypeOptionsProvider{constructor(G,Z,ne){this._styleSheet=Z,this._styleSheet.ref(),this._parentTypeKey=ne.parentTypeKey,this.refCount=0,this._beforeContentRules=new codeEditorServiceImpl_DecorationCSSRules(3,ne,G),this._afterContentRules=new codeEditorServiceImpl_DecorationCSSRules(4,ne,G)}getOptions(G,Z){const ne=G.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(ne.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(ne.afterContentClassName=this._afterContentRules.className),ne}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class codeEditorServiceImpl_DecorationTypeOptionsProvider{constructor(G,Z,ne,ie){this._disposables=new Qt.b,this.description=G,this._styleSheet=ne,this._styleSheet.ref(),this.refCount=0;const createCSSRules=G=>{const ne=new codeEditorServiceImpl_DecorationCSSRules(G,ie,Z);if(this._disposables.add(ne),ne.hasContent)return ne.className},createInlineCSSRules=G=>{const ne=new codeEditorServiceImpl_DecorationCSSRules(G,ie,Z);return this._disposables.add(ne),ne.hasContent?{className:ne.className,hasLetterSpacing:ne.hasLetterSpacing}:null};this.className=createCSSRules(0);const se=createInlineCSSRules(1);if(se&&(this.inlineClassName=se.className,this.inlineClassNameAffectsLetterSpacing=se.hasLetterSpacing),this.beforeContentClassName=createCSSRules(3),this.afterContentClassName=createCSSRules(4),ie.options.beforeInjectedText&&ie.options.beforeInjectedText.contentText){const G=createInlineCSSRules(5);this.beforeInjectedText={content:ie.options.beforeInjectedText.contentText,inlineClassName:null==G?void 0:G.className,inlineClassNameAffectsLetterSpacing:(null==G?void 0:G.hasLetterSpacing)||ie.options.beforeInjectedText.affectsLetterSpacing}}if(ie.options.afterInjectedText&&ie.options.afterInjectedText.contentText){const G=createInlineCSSRules(6);this.afterInjectedText={content:ie.options.afterInjectedText.contentText,inlineClassName:null==G?void 0:G.className,inlineClassNameAffectsLetterSpacing:(null==G?void 0:G.hasLetterSpacing)||ie.options.afterInjectedText.affectsLetterSpacing}}this.glyphMarginClassName=createCSSRules(2);const ce=ie.options;this.isWholeLine=Boolean(ce.isWholeLine),this.stickiness=ce.rangeBehavior;const fe=ce.light&&ce.light.overviewRulerColor||ce.overviewRulerColor,me=ce.dark&&ce.dark.overviewRulerColor||ce.overviewRulerColor;void 0===fe&&void 0===me||(this.overviewRuler={color:fe||me,darkColor:me||fe,position:ce.overviewRulerLane||mn.d.Center})}getOptions(G,Z){return Z?{description:this.description,inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness,before:this.beforeInjectedText}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const di={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",fontSize:"font-size:{0};",fontFamily:"font-family:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",padding:"padding:{0};",width:"width:{0};",height:"height:{0};"};class codeEditorServiceImpl_DecorationCSSRules{constructor(G,Z,ne){this._theme=ne.getColorTheme(),this._ruleType=G,this._providerArgs=Z,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let ie=CSSNameHelper.getClassName(this._providerArgs.key,G);this._providerArgs.parentTypeKey&&(ie=ie+" "+CSSNameHelper.getClassName(this._providerArgs.parentTypeKey,G)),this._className=ie,this._unThemedSelector=CSSNameHelper.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,G),this._buildCSS(),this._usesThemeColors?this._themeListener=ne.onDidColorThemeChange(G=>{this._theme=ne.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){const G=this._providerArgs.options;let Z,ne,ie;switch(this._ruleType){case 0:Z=this.getCSSTextForModelDecorationClassName(G),ne=this.getCSSTextForModelDecorationClassName(G.light),ie=this.getCSSTextForModelDecorationClassName(G.dark);break;case 1:Z=this.getCSSTextForModelDecorationInlineClassName(G),ne=this.getCSSTextForModelDecorationInlineClassName(G.light),ie=this.getCSSTextForModelDecorationInlineClassName(G.dark);break;case 2:Z=this.getCSSTextForModelDecorationGlyphMarginClassName(G),ne=this.getCSSTextForModelDecorationGlyphMarginClassName(G.light),ie=this.getCSSTextForModelDecorationGlyphMarginClassName(G.dark);break;case 3:Z=this.getCSSTextForModelDecorationContentClassName(G.before),ne=this.getCSSTextForModelDecorationContentClassName(G.light&&G.light.before),ie=this.getCSSTextForModelDecorationContentClassName(G.dark&&G.dark.before);break;case 4:Z=this.getCSSTextForModelDecorationContentClassName(G.after),ne=this.getCSSTextForModelDecorationContentClassName(G.light&&G.light.after),ie=this.getCSSTextForModelDecorationContentClassName(G.dark&&G.dark.after);break;case 5:Z=this.getCSSTextForModelDecorationContentClassName(G.beforeInjectedText),ne=this.getCSSTextForModelDecorationContentClassName(G.light&&G.light.beforeInjectedText),ie=this.getCSSTextForModelDecorationContentClassName(G.dark&&G.dark.beforeInjectedText);break;case 6:Z=this.getCSSTextForModelDecorationContentClassName(G.afterInjectedText),ne=this.getCSSTextForModelDecorationContentClassName(G.light&&G.light.afterInjectedText),ie=this.getCSSTextForModelDecorationContentClassName(G.dark&&G.dark.afterInjectedText);break;default:throw new Error("Unknown rule type: "+this._ruleType)}const se=this._providerArgs.styleSheet;let ce=!1;Z.length>0&&(se.insertRule(`${this._unThemedSelector} {${Z}}`,0),ce=!0),ne.length>0&&(se.insertRule(`.vs${this._unThemedSelector} {${ne}}`,0),ce=!0),ie.length>0&&(se.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${ie}}`,0),ce=!0),this._hasContent=ce}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(G){if(!G)return"";const Z=[];return this.collectCSSText(G,["backgroundColor"],Z),this.collectCSSText(G,["outline","outlineColor","outlineStyle","outlineWidth"],Z),this.collectBorderSettingsCSSText(G,Z),Z.join("")}getCSSTextForModelDecorationInlineClassName(G){if(!G)return"";const Z=[];return this.collectCSSText(G,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],Z),G.letterSpacing&&(this._hasLetterSpacing=!0),Z.join("")}getCSSTextForModelDecorationContentClassName(G){if(!G)return"";const Z=[];if(void 0!==G){if(this.collectBorderSettingsCSSText(G,Z),void 0!==G.contentIconPath&&Z.push(jn.w(di.contentIconPath,Wt.s(Et.a.revive(G.contentIconPath)))),"string"==typeof G.contentText){const ne=G.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");Z.push(jn.w(di.contentText,ne))}this.collectCSSText(G,["fontStyle","fontWeight","fontSize","fontFamily","textDecoration","color","opacity","backgroundColor","margin","padding"],Z),this.collectCSSText(G,["width","height"],Z)&&Z.push("display:inline-block;")}return Z.join("")}getCSSTextForModelDecorationGlyphMarginClassName(G){if(!G)return"";const Z=[];return void 0!==G.gutterIconPath&&(Z.push(jn.w(di.gutterIconPath,Wt.s(Et.a.revive(G.gutterIconPath)))),void 0!==G.gutterIconSize&&Z.push(jn.w(di.gutterIconSize,G.gutterIconSize))),Z.join("")}collectBorderSettingsCSSText(G,Z){return!!this.collectCSSText(G,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],Z)&&(Z.push(jn.w("box-sizing: border-box;")),!0)}collectCSSText(G,Z,ne){const ie=ne.length;for(let ie of Z){const Z=this.resolveValue(G[ie]);"string"==typeof Z&&ne.push(jn.w(di[ie],Z))}return ne.length!==ie}resolveValue(G){if(Object(dn.b)(G)){this._usesThemeColors=!0;const Z=this._theme.getColor(G.id);return Z?Z.toString():"transparent"}return G}}class CSSNameHelper{static getClassName(G,Z){return"ced-"+G+"-"+Z}static getSelector(G,Z,ne){let ie=".monaco-editor ."+this.getClassName(G,ne);return Z&&(ie=ie+"."+this.getClassName(Z,ne)),3===ne?ie+="::before":4===ne&&(ie+="::after"),ie}}var standaloneCodeServiceImpl_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},standaloneCodeServiceImpl_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let pi=class StandaloneCodeEditorServiceImpl extends ui{constructor(G,Z,ne){super(G,ne),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=Z.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let G=!1;for(const Z of this.listCodeEditors())if(!Z.isSimpleWidget){G=!0;break}this._editorIsOpen.set(G)}setActiveCodeEditor(G){this._activeCodeEditor=G}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(G,Z,ne){return Z?Promise.resolve(this.doOpenEditor(Z,G)):Promise.resolve(null)}doOpenEditor(G,Z){if(!this.findModel(G,Z.resource)){if(Z.resource){const ne=Z.resource.scheme;if(ne===$t.c.http||ne===$t.c.https)return Object(Wt.Z)(Z.resource.toString()),G}return null}const ne=Z.options?Z.options.selection:null;if(ne)if("number"==typeof ne.endLineNumber&&"number"==typeof ne.endColumn)G.setSelection(ne),G.revealRangeInCenter(ne,1);else{const Z={lineNumber:ne.startLineNumber,column:ne.startColumn};G.setPosition(Z),G.revealPositionInCenter(Z,1)}return G}findModel(G,Z){const ne=G.getModel();return ne&&ne.uri.toString()!==Z.toString()?null:ne}};pi=standaloneCodeServiceImpl_decorate([standaloneCodeServiceImpl_param(1,jr.b),standaloneCodeServiceImpl_param(2,Ir.b)],pi);var hi=ne(578),standaloneCodeEditor_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},standaloneCodeEditor_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let fi=0,mi=!1;let _i=class StandaloneCodeEditor extends Or.a{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce){const Se=Object.assign({},Z);Se.ariaLabel=Se.ariaLabel||gr.h.editorViewAccessibleLabel,Se.ariaLabel=Se.ariaLabel+";"+gr.h.accessibilityHelpMessage,super(G,Se,{},ne,ie,se,ce,me,ge,Ce),this._standaloneKeybindingService=fe instanceof simpleServices_StandaloneKeybindingService?fe:null,function createAriaDomNode(){mi||(mi=!0,Cr.b(document.body))}()}addCommand(G,Z,ne){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let ie="DYNAMIC_"+ ++fi,se=jr.a.deserialize(ne);return this._standaloneKeybindingService.addDynamicKeybinding(ie,G,Z,se),ie}createContextKey(G,Z){return this._contextKeyService.createKey(G,Z)}addAction(G){if("string"!=typeof G.id||"string"!=typeof G.label||"function"!=typeof G.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Qt.a.None;const Z=G.id,ne=G.label,ie=jr.a.and(jr.a.equals("editorId",this.getId()),jr.a.deserialize(G.precondition)),se=G.keybindings,ce=jr.a.and(ie,jr.a.deserialize(G.keybindingContext)),fe=G.contextMenuGroupId||null,me=G.contextMenuOrder||0,run=(Z,...ne)=>Promise.resolve(G.run(this,...ne)),ge=new Qt.b,Ce=this.getId()+":"+Z;if(ge.add(Yt.a.registerCommand(Ce,run)),fe){let G={command:{id:Ce,title:ne},when:ie,group:fe,order:me};ge.add(si.d.appendMenuItem(si.b.EditorContext,G))}if(Array.isArray(se))for(const G of se)ge.add(this._standaloneKeybindingService.addDynamicKeybinding(Ce,G,run,ce));let Se=new oi.a(Ce,ne,ne,ie,run,this._contextKeyService);return this._actions[Z]=Se,ge.add(Object(Qt.i)(()=>{delete this._actions[Z]})),ge}_triggerCommand(G,Z){if(this._codeEditorService instanceof pi)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(G,Z)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(G,Z)}};_i=standaloneCodeEditor_decorate([standaloneCodeEditor_param(2,Vr.a),standaloneCodeEditor_param(3,qt.a),standaloneCodeEditor_param(4,Yt.b),standaloneCodeEditor_param(5,jr.b),standaloneCodeEditor_param(6,li.a),standaloneCodeEditor_param(7,Ir.b),standaloneCodeEditor_param(8,mr.a),standaloneCodeEditor_param(9,ci.b)],_i);let gi=class StandaloneEditor extends _i{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De){const Ie=Object.assign({},Z);updateConfigurationService(Me,Ie,!1);const Re=Ce.registerEditorContainer(G);"string"==typeof Ie.theme&&Ce.setTheme(Ie.theme),void 0!==Ie.autoDetectHighContrast&&Ce.setAutoDetectHighContrast(Boolean(Ie.autoDetectHighContrast));let ze,$e=Ie.model;if(delete Ie.model,super(G,Ie,ie,se,ce,fe,me,Ce,Se,ke),this._contextViewService=ge,this._configurationService=Me,this._standaloneThemeService=Ce,this._register(ne),this._register(Re),void 0===$e?(ze=createTextModel(xe,De,Ie.value||"",Ie.language||hi.a.text,void 0),this._ownsModel=!0):(ze=$e,this._ownsModel=!1),this._attachModel(ze),ze){let G={oldModelUrl:null,newModelUrl:ze.uri};this._onDidChangeModel.fire(G)}}dispose(){super.dispose()}updateOptions(G){updateConfigurationService(this._configurationService,G,!1),"string"==typeof G.theme&&this._standaloneThemeService.setTheme(G.theme),void 0!==G.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(G.autoDetectHighContrast)),super.updateOptions(G)}_attachModel(G){super._attachModel(G),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(G){super._postDetachModelCleanup(G),G&&this._ownsModel&&(G.dispose(),this._ownsModel=!1)}};gi=standaloneCodeEditor_decorate([standaloneCodeEditor_param(3,Vr.a),standaloneCodeEditor_param(4,qt.a),standaloneCodeEditor_param(5,Yt.b),standaloneCodeEditor_param(6,jr.b),standaloneCodeEditor_param(7,li.a),standaloneCodeEditor_param(8,Ur.b),standaloneCodeEditor_param(9,ai.a),standaloneCodeEditor_param(10,mr.a),standaloneCodeEditor_param(11,lr.a),standaloneCodeEditor_param(12,ci.b),standaloneCodeEditor_param(13,$n.a),standaloneCodeEditor_param(14,yn.a)],gi);let bi=class StandaloneDiffEditor extends ri{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De){const Ie=Object.assign({},Z);updateConfigurationService(Me,Ie,!0);const Re=Ce.registerEditorContainer(G);"string"==typeof Ie.theme&&Ce.setTheme(Ie.theme),void 0!==Ie.autoDetectHighContrast&&Ce.setAutoDetectHighContrast(Boolean(Ie.autoDetectHighContrast)),super(G,Ie,{},De,me,se,ie,ge,Ce,Se,ke,xe),this._contextViewService=fe,this._configurationService=Me,this._standaloneThemeService=Ce,this._register(ne),this._register(Re),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(G){updateConfigurationService(this._configurationService,G,!0),"string"==typeof G.theme&&this._standaloneThemeService.setTheme(G.theme),void 0!==G.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(G.autoDetectHighContrast)),super.updateOptions(G)}_createInnerEditor(G,Z,ne){return G.createInstance(_i,Z,ne)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(G,Z,ne){return this.getModifiedEditor().addCommand(G,Z,ne)}createContextKey(G,Z){return this.getModifiedEditor().createContextKey(G,Z)}addAction(G){return this.getModifiedEditor().addAction(G)}};function createTextModel(G,Z,ne,ie,se){if(ne=ne||"",!ie){const ie=ne.indexOf("\n");let ce=ne;return-1!==ie&&(ce=ne.substring(0,ie)),doCreateModel(G,ne,Z.createByFilepathOrFirstLine(se||null,ce),se)}return doCreateModel(G,ne,Z.create(ie),se)}function doCreateModel(G,Z,ne,ie){return G.createModel(Z,ne,ie)}bi=standaloneCodeEditor_decorate([standaloneCodeEditor_param(3,Vr.a),standaloneCodeEditor_param(4,jr.b),standaloneCodeEditor_param(5,li.a),standaloneCodeEditor_param(6,Ur.b),standaloneCodeEditor_param(7,bn.a),standaloneCodeEditor_param(8,qt.a),standaloneCodeEditor_param(9,ai.a),standaloneCodeEditor_param(10,mr.a),standaloneCodeEditor_param(11,lr.a),standaloneCodeEditor_param(12,Ur.a),standaloneCodeEditor_param(13,Gr.a),standaloneCodeEditor_param(14,Xr.a)],bi);class FrankensteinMode{constructor(G){this._languageIdentifier=G}getId(){return this._languageIdentifier.language}}var yi=ne(776),vi=ne(180);const wi=Object.prototype.hasOwnProperty;class languagesRegistry_LanguagesRegistry extends Qt.a{constructor(G=!0,Z=!1){super(),this._onDidChange=this._register(new At.b),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=Z,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},G&&(this._initializeFromRegistry(),this._register(yi.a.onDidChangeLanguages(G=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};const G=yi.a.getLanguages();this._registerLanguages(G)}_registerLanguages(G){for(const Z of G)this._registerLanguage(Z);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(G=>{let Z=this._languages[G];Z.name&&(this._nameMap[Z.name]=Z.identifier),Z.aliases.forEach(G=>{this._lowercaseNameMap[G.toLowerCase()]=Z.identifier}),Z.mimetypes.forEach(G=>{this._mimeTypesMap[G]=Z.identifier})}),vi.a.as(ur.a.Configuration).registerOverrideIdentifiers(yi.a.getLanguages().map(G=>G.id)),this._onDidChange.fire()}_getLanguageId(G){if(this._languageToLanguageId[G])return this._languageToLanguageId[G];const Z=this._nextLanguageId2++;return this._languageIdToLanguage[Z]=G,this._languageToLanguageId[G]=Z,Z}_registerLanguage(G){const Z=G.id;let ne;if(wi.call(this._languages,Z))ne=this._languages[Z];else{const G=this._getLanguageId(Z);ne={identifier:new _n.u(Z,G),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[Z]=ne}this._mergeLanguage(ne,G)}_mergeLanguage(G,Z){const ne=Z.id;let ie=null;if(Array.isArray(Z.mimetypes)&&Z.mimetypes.length>0&&(G.mimetypes.push(...Z.mimetypes),ie=Z.mimetypes[0]),ie||(ie="text/x-"+ne,G.mimetypes.push(ie)),Array.isArray(Z.extensions)){Z.configuration?G.extensions=Z.extensions.concat(G.extensions):G.extensions=G.extensions.concat(Z.extensions);for(let G of Z.extensions)hi.c({id:ne,mime:ie,extension:G},this._warnOnOverwrite)}if(Array.isArray(Z.filenames))for(let se of Z.filenames)hi.c({id:ne,mime:ie,filename:se},this._warnOnOverwrite),G.filenames.push(se);if(Array.isArray(Z.filenamePatterns))for(let G of Z.filenamePatterns)hi.c({id:ne,mime:ie,filepattern:G},this._warnOnOverwrite);if("string"==typeof Z.firstLine&&Z.firstLine.length>0){let G=Z.firstLine;"^"!==G.charAt(0)&&(G="^"+G);try{let Z=new RegExp(G);jn.O(Z)||hi.c({id:ne,mime:ie,firstline:Z},this._warnOnOverwrite)}catch(G){Object(Cn.e)(G)}}G.aliases.push(ne);let se=null;if(void 0!==Z.aliases&&Array.isArray(Z.aliases)&&(se=0===Z.aliases.length?[null]:Z.aliases),null!==se)for(const Z of se)Z&&0!==Z.length&&G.aliases.push(Z);let ce=null!==se&&se.length>0;if(ce&&null===se[0]);else{let Z=(ce?se[0]:null)||ne;!ce&&G.name||(G.name=Z)}Z.configuration&&G.configurationFiles.push(Z.configuration)}isRegisteredMode(G){return!!wi.call(this._mimeTypesMap,G)||wi.call(this._languages,G)}getModeIdForLanguageNameLowercase(G){return wi.call(this._lowercaseNameMap,G)?this._lowercaseNameMap[G].language:null}extractModeIds(G){return G?G.split(",").map(G=>G.trim()).map(G=>wi.call(this._mimeTypesMap,G)?this._mimeTypesMap[G].language:G).filter(G=>wi.call(this._languages,G)):[]}getLanguageIdentifier(G){if(G===gn.b||0===G)return gn.a;let Z;if("string"==typeof G)Z=G;else if(Z=this._languageIdToLanguage[G],!Z)return null;return wi.call(this._languages,Z)?this._languages[Z].identifier:null}getModeIdsFromFilepathOrFirstLine(G,Z){if(!G&&!Z)return[];let ne=hi.b(G,Z);return this.extractModeIds(ne.join(","))}}class modeServiceImpl_LanguageSelection{constructor(G,Z){let ne;this._selector=Z,this.languageIdentifier=this._selector(),this._onDidChange=new At.b({onFirstListenerAdd:()=>{ne=G(()=>this._evaluate())},onLastListenerRemove:()=>{ne.dispose()}}),this.onDidChange=this._onDidChange.event}_evaluate(){let G=this._selector();G.id!==this.languageIdentifier.id&&(this.languageIdentifier=G,this._onDidChange.fire(this.languageIdentifier))}}class modeServiceImpl_ModeServiceImpl extends Qt.a{constructor(G=!1){super(),this._onDidCreateMode=this._register(new At.b),this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=this._register(new At.b({leakWarningThreshold:200})),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=this._register(new languagesRegistry_LanguagesRegistry(!0,G)),this._register(this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire()))}isRegisteredMode(G){return this._registry.isRegisteredMode(G)}getModeIdForLanguageName(G){return this._registry.getModeIdForLanguageNameLowercase(G)}getModeIdByFilepathOrFirstLine(G,Z){const ne=this._registry.getModeIdsFromFilepathOrFirstLine(G,Z);return Object(Un.j)(ne,null)}getModeId(G){const Z=this._registry.extractModeIds(G);return Object(Un.j)(Z,null)}getLanguageIdentifier(G){return this._registry.getLanguageIdentifier(G)}create(G){return new modeServiceImpl_LanguageSelection(this.onLanguagesMaybeChanged,()=>{const Z=this.getModeId(G);return this._createModeAndGetLanguageIdentifier(Z)})}createByFilepathOrFirstLine(G,Z){return new modeServiceImpl_LanguageSelection(this.onLanguagesMaybeChanged,()=>{const ne=this.getModeIdByFilepathOrFirstLine(G,Z);return this._createModeAndGetLanguageIdentifier(ne)})}_createModeAndGetLanguageIdentifier(G){const Z=this.getLanguageIdentifier(G||"plaintext")||gn.a;return this._getOrCreateMode(Z.language),Z}triggerMode(G){const Z=this.getModeId(G);this._getOrCreateMode(Z||"plaintext")}_getOrCreateMode(G){if(!this._instantiatedModes.hasOwnProperty(G)){let Z=this.getLanguageIdentifier(G)||gn.a;this._instantiatedModes[G]=new FrankensteinMode(Z),this._onDidCreateMode.fire(this._instantiatedModes[G])}return this._instantiatedModes[G]}}var Ci=ne(1679),Oi=ne(44);class ParsedTokenThemeRule{constructor(G,Z,ne,ie,se){this._parsedThemeRuleBrand=void 0,this.token=G,this.index=Z,this.fontStyle=ne,this.foreground=ie,this.background=se}}const Si=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class tokenization_ColorMap{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(G){if(null===G)return 0;const Z=G.match(Si);if(!Z)throw new Error("Illegal value for token color: "+G);G=Z[1].toUpperCase();let ne=this._color2id.get(G);return ne||(ne=++this._lastColorId,this._color2id.set(G,ne),this._id2color[ne]=Oi.a.fromHex("#"+G),ne)}getColorMap(){return this._id2color.slice(0)}}class TokenTheme{constructor(G,Z){this._colorMap=G,this._root=Z,this._cache=new Map}static createFromRawTokenTheme(G,Z){return this.createFromParsedTokenTheme(function parseTokenTheme(G){if(!G||!Array.isArray(G))return[];let Z=[],ne=0;for(let ie=0,se=G.length;ie{let ne=function strcmp(G,Z){if(GZ)return 1;return 0}(G.token,Z.token);return 0!==ne?ne:G.index-Z.index});let ne=0,ie="000000",se="ffffff";for(;G.length>=1&&""===G[0].token;){let Z=G.shift();-1!==Z.fontStyle&&(ne=Z.fontStyle),null!==Z.foreground&&(ie=Z.foreground),null!==Z.background&&(se=Z.background)}let ce=new tokenization_ColorMap;for(let G of Z)ce.getId(G);let fe=ce.getId(ie),me=ce.getId(se),ge=new ThemeTrieElementRule(ne,fe,me),Ce=new ThemeTrieElement(ge);for(let Z=0,ne=G.length;Z>>0,this._cache.set(Z,ne)}return(ne|G<<0)>>>0}}const Mi=/\b(comment|string|regex|regexp)\b/;class ThemeTrieElementRule{constructor(G,Z,ne){this._themeTrieElementRuleBrand=void 0,this._fontStyle=G,this._foreground=Z,this._background=ne,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new ThemeTrieElementRule(this._fontStyle,this._foreground,this._background)}acceptOverwrite(G,Z,ne){-1!==G&&(this._fontStyle=G),0!==Z&&(this._foreground=Z),0!==ne&&(this._background=ne),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class ThemeTrieElement{constructor(G){this._themeTrieElementBrand=void 0,this._mainRule=G,this._children=new Map}match(G){if(""===G)return this._mainRule;let Z,ne,ie=G.indexOf(".");-1===ie?(Z=G,ne=""):(Z=G.substring(0,ie),ne=G.substring(ie+1));let se=this._children.get(Z);return void 0!==se?se.match(ne):this._mainRule}insert(G,Z,ne,ie){if(""===G)return void this._mainRule.acceptOverwrite(Z,ne,ie);let se,ce,fe=G.indexOf(".");-1===fe?(se=G,ce=""):(se=G.substring(0,fe),ce=G.substring(fe+1));let me=this._children.get(se);void 0===me&&(me=new ThemeTrieElement(this._mainRule.clone()),this._children.set(se,me)),me.insert(ce,Z,ne,ie)}}const ki={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[Pr.r]:"#FFFFFE",[Pr.B]:"#000000",[Pr.J]:"#E5EBF1",[Er.h]:"#D3D3D3",[Er.a]:"#939393",[Pr.T]:"#ADD6FF4D"}},xi={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Pr.r]:"#1E1E1E",[Pr.B]:"#D4D4D4",[Pr.J]:"#3A3D41",[Er.h]:"#404040",[Er.a]:"#707070",[Pr.T]:"#ADD6FF26"}},Li={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Pr.r]:"#000000",[Pr.B]:"#FFFFFF",[Er.h]:"#FFFFFF",[Er.a]:"#FFFFFF"}};var Ti=ne(495);const Ai=vi.a.as(Pr.a.ColorContribution),Di=vi.a.as(Ir.a.ThemingContribution);class standaloneThemeServiceImpl_StandaloneTheme{constructor(G,Z){this.semanticHighlighting=!1,this.themeData=Z;let ne=Z.base;G.length>0?(isBuiltinTheme(G)?this.id=G:this.id=ne+" "+G,this.themeName=G):(this.id=ne,this.themeName=ne),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const G=new Map;for(let Z in this.themeData.colors)G.set(Z,Oi.a.fromHex(this.themeData.colors[Z]));if(this.themeData.inherit){let Z=getBuiltinRules(this.themeData.base);for(let ne in Z.colors)G.has(ne)||G.set(ne,Oi.a.fromHex(Z.colors[ne]))}this.colors=G}return this.colors}getColor(G,Z){const ne=this.getColors().get(G);return ne||(!1!==Z?this.getDefault(G):void 0)}getDefault(G){let Z=this.defaultColors[G];return Z||(Z=Ai.resolveDefaultColor(G,this),this.defaultColors[G]=Z,Z)}defines(G){return Object.prototype.hasOwnProperty.call(this.getColors(),G)}get type(){switch(this.base){case"vs":return Ti.a.LIGHT;case"hc-black":return Ti.a.HIGH_CONTRAST;default:return Ti.a.DARK}}get tokenTheme(){if(!this._tokenTheme){let G=[],Z=[];if(this.themeData.inherit){let ne=getBuiltinRules(this.themeData.base);G=ne.rules,ne.encodedTokensColors&&(Z=ne.encodedTokensColors)}G=G.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(Z=this.themeData.encodedTokensColors),this._tokenTheme=TokenTheme.createFromRawTokenTheme(G,Z)}return this._tokenTheme}getTokenStyleMetadata(G,Z,ne){const ie=this.tokenTheme._match([G].concat(Z).join(".")).metadata,se=_n.E.getForeground(ie),ce=_n.E.getFontStyle(ie);return{foreground:se,italic:Boolean(1&ce),bold:Boolean(2&ce),underline:Boolean(4&ce)}}}function isBuiltinTheme(G){return"vs"===G||"vs-dark"===G||"hc-black"===G}function getBuiltinRules(G){switch(G){case"vs":return ki;case"vs-dark":return xi;case"hc-black":return Li}}function newBuiltInTheme(G){let Z=getBuiltinRules(G);return new standaloneThemeServiceImpl_StandaloneTheme(G,Z)}class standaloneThemeServiceImpl_StandaloneThemeServiceImpl extends Qt.a{constructor(){super(),this._onColorThemeChange=this._register(new At.b),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set("vs",newBuiltInTheme("vs")),this._knownThemes.set("vs-dark",newBuiltInTheme("vs-dark")),this._knownThemes.set("hc-black",newBuiltInTheme("hc-black"));const G=function getIconsStyleSheet(){const G=new At.b,Z=Object(Rr.a)();return Z.onDidChange(()=>G.fire()),{onDidChange:G.event,getCSS(){const G={},formatIconRule=ne=>{let ie=ne.defaults;for(;Ir.d.isThemeIcon(ie);){const G=Z.getIcon(ie.id);if(!G)return;ie=G.defaults}const se=ie.fontId;if(se){const ce=Z.getIconFont(se);if(ce)return G[se]=ce,`.codicon-${ne.id}:before { content: '${ie.fontCharacter}'; font-family: ${Object(Wt.r)(se)}; }`}return`.codicon-${ne.id}:before { content: '${ie.fontCharacter}'; }`},ne=[];for(let G of Z.getIcons()){const Z=formatIconRule(G);Z&&ne.push(Z)}for(let Z in G){const ie=G[Z].definition.src.map(G=>`${Object(Wt.s)(G.location)} format('${G.format}')`).join(", ");ne.push(`@font-face { src: ${ie}; font-family: ${Object(Wt.r)(Z)}; }`)}return ne.join("\n")}}}();this._codiconCSS=G.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme("vs"),G.onDidChange(()=>{this._codiconCSS=G.getCSS(),this._updateCSS()}),Wt.m("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(G){return Wt.O(G)?this._registerShadowDomContainer(G):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Wt.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),Qt.a.None}_registerShadowDomContainer(G){const Z=Wt.w(G);return Z.className="monaco-colors",Z.textContent=this._allCSS,this._styleElements.push(Z),{dispose:()=>{for(let G=0;G{Z.base===G&&Z.notifyBaseUpdated()}),this._theme.themeName===G&&this.setTheme(G)}getColorTheme(){return this._theme}setColorMapOverride(G){this._colorMapOverride=G,this._updateThemeOrColorMap()}setTheme(G){let Z;Z=this._knownThemes.has(G)?this._knownThemes.get(G):this._knownThemes.get("vs"),this._desiredTheme=Z,this._updateActualTheme()}_updateActualTheme(){const G=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get("hc-black"):this._desiredTheme;this._theme!==G&&(this._theme=G,this._updateThemeOrColorMap())}setAutoDetectHighContrast(G){this._autoDetectHighContrast=G,this._updateActualTheme()}_updateThemeOrColorMap(){let G=[],Z={},ne={addRule:ne=>{Z[ne]||(G.push(ne),Z[ne]=!0)}};Di.getThemingParticipants().forEach(G=>G(this._theme,ne,this._environment));const ie=this._colorMapOverride||this._theme.tokenTheme.getColorMap();ne.addRule(function generateTokensCSSForColorMap(G){let Z=[];for(let ne=1,ie=G.length;neG.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var Ei=ne(151),contextKeyService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},contextKeyService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class Context{constructor(G,Z){this._id=G,this._parent=Z,this._value=Object.create(null),this._value._contextId=G}setValue(G,Z){return this._value[G]!==Z&&(this._value[G]=Z,!0)}removeValue(G){return G in this._value&&(delete this._value[G],!0)}getValue(G){const Z=this._value[G];return void 0===Z&&this._parent?this._parent.getValue(G):Z}}class NullContext extends Context{constructor(){super(-1,null)}setValue(G,Z){return!1}removeValue(G){return!1}getValue(G){}}NullContext.INSTANCE=new NullContext;class contextKeyService_ConfigAwareContextValuesContainer extends Context{constructor(G,Z,ne){super(G,null),this._configurationService=Z,this._values=Ft.c.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(G=>{if(6===G.source){const G=Array.from(Ei.a.map(this._values,([G])=>G));this._values.clear(),ne.fire(new ArrayContextKeyChangeEvent(G))}else{const Z=[];for(const ne of G.affectedKeys){const G="config."+ne,ie=this._values.findSuperstr(G);void 0!==ie&&(Z.push(...Ei.a.map(ie,([G])=>G)),this._values.deleteSuperstr(G)),this._values.has(G)&&(Z.push(G),this._values.delete(G))}ne.fire(new ArrayContextKeyChangeEvent(Z))}})}dispose(){this._listener.dispose()}getValue(G){if(0!==G.indexOf(contextKeyService_ConfigAwareContextValuesContainer._keyPrefix))return super.getValue(G);if(this._values.has(G))return this._values.get(G);const Z=G.substr(contextKeyService_ConfigAwareContextValuesContainer._keyPrefix.length),ne=this._configurationService.getValue(Z);let ie=void 0;switch(typeof ne){case"number":case"boolean":case"string":ie=ne;break;default:ie=Array.isArray(ne)?JSON.stringify(ne):ne}return this._values.set(G,ie),ie}setValue(G,Z){return super.setValue(G,Z)}removeValue(G){return super.removeValue(G)}}contextKeyService_ConfigAwareContextValuesContainer._keyPrefix="config.";class ContextKey{constructor(G,Z,ne){this._service=G,this._key=Z,this._defaultValue=ne,this.reset()}set(G){this._service.setContext(this._key,G)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class SimpleContextKeyChangeEvent{constructor(G){this.key=G}affectsSome(G){return G.has(this.key)}}class ArrayContextKeyChangeEvent{constructor(G){this.keys=G}affectsSome(G){for(const Z of this.keys)if(G.has(Z))return!0;return!1}}class CompositeContextKeyChangeEvent{constructor(G){this.events=G}affectsSome(G){for(const Z of this.events)if(Z.affectsSome(G))return!0;return!1}}class contextKeyService_AbstractContextKeyService{constructor(G){this._onDidChangeContext=new At.e({merge:G=>new CompositeContextKeyChangeEvent(G)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=G}createKey(G,Z){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new ContextKey(this,G,Z)}bufferChangeEvents(G){this._onDidChangeContext.pause();try{G()}finally{this._onDidChangeContext.resume()}}createScoped(G){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new contextKeyService_ScopedContextKeyService(this,G)}contextMatchesRules(G){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const Z=this.getContextValuesContainer(this._myContextId);return KeybindingResolver.contextMatchesRules(Z,G)}getContextKeyValue(G){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(G)}setContext(G,Z){if(this._isDisposed)return;const ne=this.getContextValuesContainer(this._myContextId);ne&&ne.setValue(G,Z)&&this._onDidChangeContext.fire(new SimpleContextKeyChangeEvent(G))}removeContext(G){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(G)&&this._onDidChangeContext.fire(new SimpleContextKeyChangeEvent(G))}getContext(G){return this._isDisposed?NullContext.INSTANCE:this.getContextValuesContainer(function findContextAttr(G){for(;G;){if(G.hasAttribute("data-keybinding-context")){const Z=G.getAttribute("data-keybinding-context");return Z?parseInt(Z,10):NaN}G=G.parentElement}return 0}(G))}}let ji=class ContextKeyService extends contextKeyService_AbstractContextKeyService{constructor(G){super(0),this._contexts=new Map,this._toDispose=new Qt.b,this._lastContextId=0;const Z=new contextKeyService_ConfigAwareContextValuesContainer(this._myContextId,G,this._onDidChangeContext);this._contexts.set(this._myContextId,Z),this._toDispose.add(Z)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(G){return this._isDisposed?NullContext.INSTANCE:this._contexts.get(G)||NullContext.INSTANCE}createChildContext(G=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let Z=++this._lastContextId;return this._contexts.set(Z,new Context(Z,this.getContextValuesContainer(G))),Z}disposeContext(G){this._isDisposed||this._contexts.delete(G)}};ji=contextKeyService_decorate([contextKeyService_param(0,lr.a)],ji);class contextKeyService_ScopedContextKeyService extends contextKeyService_AbstractContextKeyService{constructor(G,Z){if(super(G.createChildContext()),this._parentChangeListener=new Qt.d,this._parent=G,this._updateParentChangeListener(),this._domNode=Z,this._domNode.hasAttribute("data-keybinding-context")){let G="";this._domNode.classList&&(G=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(G?": "+G:""))}this._domNode.setAttribute("data-keybinding-context",String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute("data-keybinding-context"),this._isDisposed=!0)}getContextValuesContainer(G){return this._isDisposed?NullContext.INSTANCE:this._parent.getContextValuesContainer(G)}createChildContext(G=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(G)}disposeContext(G){this._isDisposed||this._parent.disposeContext(G)}}Yt.a.registerCommand(jr.d,(function(G,Z,ne){G.get(jr.b).createKey(String(Z),ne)})),Yt.a.registerCommand({id:"getContextKeyInfo",handler:()=>[...jr.c.all()].sort((G,Z)=>G.key.localeCompare(Z.key)),description:{description:Object(dr.a)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),Yt.a.registerCommand("_generateContextKeyInfo",(function(){const G=[],Z=new Set;for(let ne of jr.c.all())Z.has(ne.key)||(Z.add(ne.key),G.push(ne));G.sort((G,Z)=>G.key.localeCompare(Z.key)),console.log(JSON.stringify(G,void 0,2))}));ne(7634),ne(7636);var Pi,Ii=ne(398),Ni=ne(1188);function layout(G,Z,ne){const ie=ne.mode===Pi.ALIGN?ne.offset:ne.offset+ne.size,se=ne.mode===Pi.ALIGN?ne.offset+ne.size:ne.offset;return 0===ne.position?Z<=G-ie?ie:Z<=se?se-Z:Math.max(G-Z,0):Z<=se?se-Z:Z<=G-ie?ie:0}!function(G){G[G.AVOID=0]="AVOID",G[G.ALIGN=1]="ALIGN"}(Pi||(Pi={}));class contextview_ContextView extends Qt.a{constructor(G,Z){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=Qt.a.None,this.toDisposeOnSetContainer=Qt.a.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=Wt.a(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Wt.K(this.view),this.setContainer(G,Z),this._register(Object(Qt.i)(()=>this.setContainer(null,1)))}setContainer(G,Z){var ne;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(ne=this.shadowRootHostElement)||void 0===ne||ne.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),G){if(this.container=G,this.useFixedPosition=1!==Z,this.useShadowDOM=3===Z,this.useShadowDOM){this.shadowRootHostElement=Wt.a(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const G=document.createElement("style");G.textContent=Ri,this.shadowRoot.appendChild(G),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(Wt.a("slot"))}else this.container.appendChild(this.view);const ne=new Qt.b;contextview_ContextView.BUBBLE_UP_EVENTS.forEach(G=>{ne.add(Wt.o(this.container,G,G=>{this.onDOMEvent(G,!1)}))}),contextview_ContextView.BUBBLE_DOWN_EVENTS.forEach(G=>{ne.add(Wt.o(this.container,G,G=>{this.onDOMEvent(G,!0)},!0))}),this.toDisposeOnSetContainer=ne}}show(G){this.isVisible()&&this.hide(),Wt.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",Wt.W(this.view),this.toDisposeOnClean=G.render(this.view)||Qt.a.None,this.delegate=G,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||On.c&&Ni.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let G,Z=this.delegate.getAnchor();if(Wt.M(Z)){let ne=Wt.D(Z);G={top:ne.top,left:ne.left,width:ne.width,height:ne.height}}else G={top:Z.y,left:Z.x,width:Z.width||1,height:Z.height||2};const ne=Wt.I(this.view),ie=Wt.H(this.view),se=this.delegate.anchorPosition||0,ce=this.delegate.anchorAlignment||0;let fe,me;if(0===(this.delegate.anchorAxisAlignment||0)){const Z={offset:G.top-window.pageYOffset,size:G.height,position:0===se?0:1},ge={offset:G.left,size:G.width,position:0===ce?0:1,mode:Pi.ALIGN};fe=layout(window.innerHeight,ie,Z)+window.pageYOffset,Ii.a.intersects({start:fe,end:fe+ie},{start:Z.offset,end:Z.offset+Z.size})&&(ge.mode=Pi.AVOID),me=layout(window.innerWidth,ne,ge)}else{const Z={offset:G.left,size:G.width,position:0===ce?0:1},ge={offset:G.top,size:G.height,position:0===se?0:1,mode:Pi.ALIGN};me=layout(window.innerWidth,ne,Z),Ii.a.intersects({start:me,end:me+ne},{start:Z.offset,end:Z.offset+Z.size})&&(ge.mode=Pi.AVOID),fe=layout(window.innerHeight,ie,ge)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===se?"bottom":"top"),this.view.classList.add(0===ce?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const ge=Wt.D(this.container);this.view.style.top=fe-(this.useFixedPosition?Wt.D(this.view).top:ge.top)+"px",this.view.style.left=me-(this.useFixedPosition?Wt.D(this.view).left:ge.left)+"px",this.view.style.width="initial"}hide(G){const Z=this.delegate;this.delegate=null,(null==Z?void 0:Z.onHide)&&Z.onHide(G),this.toDisposeOnClean.dispose(),Wt.K(this.view)}isVisible(){return!!this.delegate}onDOMEvent(G,Z){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(G,document.activeElement):Z&&!Wt.L(G.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}contextview_ContextView.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],contextview_ContextView.BUBBLE_DOWN_EVENTS=["click"];let Ri='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var zi=ne(536),qi=ne(1667),Wi=ne(130),Bi=ne(279),Fi=ne(496);const Hi=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,$i=/(&)?(&)([^\s&])/g,Vi=Object(Nr.e)("menu-selection",Nr.b.check),Yi=Object(Nr.e)("menu-submenu",Nr.b.chevronRight);var Ui;!function(G){G[G.Right=0]="Right",G[G.Left=1]="Left"}(Ui||(Ui={}));class menu_Menu extends Lr.a{constructor(G,Z,ne={}){G.classList.add("monaco-menu-container"),G.setAttribute("role","presentation");const ie=document.createElement("div");ie.classList.add("monaco-menu"),ie.setAttribute("role","presentation"),super(ie,{orientation:1,actionViewItemProvider:G=>this.doGetActionViewItem(G,ne,se),context:ne.context,actionRunner:ne.actionRunner,ariaLabel:ne.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...On.f||On.d?[10]:[]],keyDown:!0}}),this.menuElement=ie,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Qt.b),this.initializeStyleSheet(G),Object(Wt.i)(ie,Wt.d.KEY_DOWN,G=>{new tr.a(G).equals(2)&&G.preventDefault()}),ne.enableMnemonics&&this.menuDisposables.add(Object(Wt.i)(ie,Wt.d.KEY_DOWN,G=>{const Z=G.key.toLocaleLowerCase();if(this.mnemonics.has(Z)){Wt.c.stop(G,!0);const ne=this.mnemonics.get(Z);if(1===ne.length&&(ne[0]instanceof menu_SubmenuMenuActionViewItem&&ne[0].container&&this.focusItemByElement(ne[0].container),ne[0].onClick(G)),ne.length>1){const G=ne.shift();G&&G.container&&(this.focusItemByElement(G.container),ne.push(G)),this.mnemonics.set(Z,ne)}}})),On.d&&this._register(Object(Wt.i)(ie,Wt.d.KEY_DOWN,G=>{const Z=new tr.a(G);Z.equals(14)||Z.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Wt.c.stop(G,!0)):(Z.equals(13)||Z.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Wt.c.stop(G,!0))})),this._register(Object(Wt.i)(this.domNode,Wt.d.MOUSE_OUT,G=>{let Z=G.relatedTarget;Object(Wt.L)(Z,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),G.stopPropagation())})),this._register(Object(Wt.i)(this.actionsList,Wt.d.MOUSE_OVER,G=>{let Z=G.target;if(Z&&Object(Wt.L)(Z,this.actionsList)&&Z!==this.actionsList){for(;Z.parentElement!==this.actionsList&&null!==Z.parentElement;)Z=Z.parentElement;if(Z.classList.contains("action-item")){const G=this.focusedItem;this.setFocusedItem(Z),G!==this.focusedItem&&this.updateFocus()}}}));let se={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Tr.a(ie,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const ce=this.scrollableElement.getDomNode();ce.style.position="",this._register(Object(Wt.i)(ce,Wt.d.MOUSE_UP,G=>{G.preventDefault()})),ie.style.maxHeight=Math.max(10,window.innerHeight-G.getBoundingClientRect().top-35)+"px",Z=Z.filter(G=>{var Z;return!(null===(Z=ne.submenuIds)||void 0===Z?void 0:Z.has(G.id))||(console.warn("Found submenu cycle: "+G.id),!1)}),this.push(Z,{icon:!0,label:!0,isMenu:!0}),G.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(G=>!(G instanceof menu_MenuSeparatorActionViewItem)).forEach((G,Z,ne)=>{G.updatePositionInSet(Z+1,ne.length)})}initializeStyleSheet(G){Object(Wt.O)(G)?(this.styleSheet=Object(Wt.w)(G),this.styleSheet.textContent=Ki):(menu_Menu.globalStyleSheet||(menu_Menu.globalStyleSheet=Object(Wt.w)(),menu_Menu.globalStyleSheet.textContent=Ki),this.styleSheet=menu_Menu.globalStyleSheet)}style(G){const Z=this.getContainer(),ne=G.foregroundColor?""+G.foregroundColor:"",ie=G.backgroundColor?""+G.backgroundColor:"",se=G.borderColor?"1px solid "+G.borderColor:"",ce=G.shadowColor?"0 2px 4px "+G.shadowColor:"";Z.style.border=se,this.domNode.style.color=ne,this.domNode.style.backgroundColor=ie,Z.style.boxShadow=ce,this.viewItems&&this.viewItems.forEach(Z=>{(Z instanceof menu_BaseMenuActionViewItem||Z instanceof menu_MenuSeparatorActionViewItem)&&Z.style(G)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(G){const Z=this.focusedItem;this.setFocusedItem(G),Z!==this.focusedItem&&this.updateFocus()}setFocusedItem(G){for(let Z=0;Z{this.element&&(this._register(Object(Wt.i)(this.element,Wt.d.MOUSE_UP,G=>{if(Wt.c.stop(G,!0),Wi.g){if(new Bi.a(G).rightButton)return;this.onClick(G)}else setTimeout(()=>{this.onClick(G)},0)})),this._register(Object(Wt.i)(this.element,Wt.d.CONTEXT_MENU,G=>{Wt.c.stop(G,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(G){super.render(G),this.element&&(this.container=G,this.item=Object(Wt.q)(this.element,Object(Wt.a)("a.action-menu-item")),this._action.id===Ar.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(Wt.q)(this.item,Object(Wt.a)("span.menu-item-check"+Vi.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(Wt.q)(this.item,Object(Wt.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(Wt.q)(this.item,Object(Wt.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(G,Z){this.item&&(this.item.setAttribute("aria-posinset",""+G),this.item.setAttribute("aria-setsize",""+Z))}updateLabel(){if(this.label&&this.options.label){Object(Wt.t)(this.label);let G=Object(Fi.e)(this.getAction().label);if(G){const Z=function cleanMnemonic(G){const Z=Hi,ne=Z.exec(G);if(!ne)return G;const ie=!ne[1];return G.replace(Z,ie?"$2$3":"").trim()}(G);this.options.enableMnemonics||(G=Z),this.label.setAttribute("aria-label",Z.replace(/&&/g,"&"));const ne=Hi.exec(G);if(ne){G=jn.t(G),$i.lastIndex=0;let Z=$i.exec(G);for(;Z&&Z[1];)Z=$i.exec(G);const replaceDoubleEscapes=G=>G.replace(/&&/g,"&");Z?this.label.append(jn.K(replaceDoubleEscapes(G.substr(0,Z.index))," "),Object(Wt.a)("u",{"aria-hidden":"true"},Z[3]),jn.P(replaceDoubleEscapes(G.substr(Z.index+Z[0].length))," ")):this.label.innerText=replaceDoubleEscapes(G).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(ne[1]?ne[1]:ne[3]).toLocaleLowerCase())}else this.label.innerText=G.replace(/&&/g,"&").trim()}}}updateTooltip(){let G=null;this.getAction().tooltip?G=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(G=this.getAction().label,this.options.keybinding&&(G=dr.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",G,this.options.keybinding))),G&&this.item&&(this.item.title=G)}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){this.item&&(this.getAction().checked?(this.item.classList.add("checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(this.item.classList.remove("checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const G=this.element&&this.element.classList.contains("focused"),Z=G&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,ne=G&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,ie=G&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=Z?Z.toString():"",this.item.style.backgroundColor=ne?ne.toString():""),this.check&&(this.check.style.color=Z?Z.toString():""),this.container&&(this.container.style.border=ie)}style(G){this.menuStyle=G,this.applyStyle()}}class menu_SubmenuMenuActionViewItem extends menu_BaseMenuActionViewItem{constructor(G,Z,ne,ie){super(G,G,ie),this.submenuActions=Z,this.parentData=ne,this.submenuOptions=ie,this.mysubmenu=null,this.submenuDisposables=this._register(new Qt.b),this.mouseOver=!1,this.expandDirection=ie&&void 0!==ie.expandDirection?ie.expandDirection:Ui.Right,this.showScheduler=new wn.e(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new wn.e(()=>{this.element&&!Object(Wt.L)(Object(Wt.y)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(G){super.render(G),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(Wt.q)(this.item,Object(Wt.a)("span.submenu-indicator"+Yi.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(Wt.i)(this.element,Wt.d.KEY_UP,G=>{let Z=new tr.a(G);(Z.equals(17)||Z.equals(3))&&(Wt.c.stop(G,!0),this.createSubmenu(!0))})),this._register(Object(Wt.i)(this.element,Wt.d.KEY_DOWN,G=>{let Z=new tr.a(G);Object(Wt.y)()===this.item&&(Z.equals(17)||Z.equals(3))&&Wt.c.stop(G,!0)})),this._register(Object(Wt.i)(this.element,Wt.d.MOUSE_OVER,G=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(Wt.i)(this.element,Wt.d.MOUSE_LEAVE,G=>{this.mouseOver=!1})),this._register(Object(Wt.i)(this.element,Wt.d.FOCUS_OUT,G=>{this.element&&!Object(Wt.L)(Object(Wt.y)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(G){Wt.c.stop(G,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(G){if(this.parentData.submenu&&(G||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(G){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(G,Z,ne,ie){const se={top:0,left:0};return se.left=layout(G.width,Z.width,{position:ie===Ui.Right?0:1,offset:ne.left,size:ne.width}),se.left>=ne.left&&se.left{new tr.a(G).equals(15)&&(Wt.c.stop(G,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(Wt.i)(this.submenuContainer,Wt.d.KEY_DOWN,G=>{new tr.a(G).equals(15)&&Wt.c.stop(G,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(G),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(G){var Z;this.item&&(null===(Z=this.item)||void 0===Z||Z.setAttribute("aria-expanded",G))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const G=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=G?""+G:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class menu_MenuSeparatorActionViewItem extends zi.a{style(G){this.label&&(this.label.style.borderBottomColor=G.separatorColor?""+G.separatorColor:"")}}let Ki=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${Object(qi.a)(Vi)}\n${Object(qi.a)(Yi)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;var Xi=ne(319);class contextMenuHandler_ContextMenuHandler{constructor(G,Z,ne,ie,se){this.contextViewService=G,this.telemetryService=Z,this.notificationService=ne,this.keybindingService=ie,this.themeService=se,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(G){this.options=G}showContextMenu(G){const Z=G.getActions();if(!Z.length)return;let ne;this.focusToReturn=document.activeElement;let ie=Object(Wt.M)(G.domForShadowRoot)?G.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>G.getAnchor(),canRelayout:!1,anchorAlignment:G.anchorAlignment,anchorAxisAlignment:G.anchorAxisAlignment,render:ie=>{let se=G.getMenuClassName?G.getMenuClassName():"";se&&(ie.className+=" "+se),this.options.blockMouse&&(this.block=ie.appendChild(Object(Wt.a)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(Wt.i)(this.block,Wt.d.MOUSE_DOWN,G=>G.stopPropagation()));const ce=new Qt.b,fe=G.actionRunner||new Ar.b;return fe.onBeforeRun(this.onActionRun,this,ce),fe.onDidRun(this.onDidActionRun,this,ce),ne=new menu_Menu(ie,Z,{actionViewItemProvider:G.getActionViewItem,context:G.getActionsContext?G.getActionsContext():null,actionRunner:fe,getKeyBinding:G.getKeyBinding?G.getKeyBinding:G=>this.keybindingService.lookupKeybinding(G.id)}),ce.add(Object(Xi.c)(ne,this.themeService)),ne.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,ce),ne.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,ce),ce.add(Object(Wt.i)(window,Wt.d.BLUR,()=>this.contextViewService.hideContextView(!0))),ce.add(Object(Wt.i)(window,Wt.d.MOUSE_DOWN,G=>{if(G.defaultPrevented)return;let Z=new Bi.a(G),ne=Z.target;if(!Z.rightButton){for(;ne;){if(ne===ie)return;ne=ne.parentElement}this.contextViewService.hideContextView(!0)}})),Object(Qt.e)(ce,ne)},focus:()=>{ne&&ne.focus(!!G.autoSelectFirstItem)},onHide:Z=>{G.onHide&&G.onHide(!!Z),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},ie,!!ie)}onActionRun(G){this.telemetryService.publicLog2("workbenchActionExecuted",{id:G.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(G){G.error&&!Object(Cn.d)(G.error)&&this.notificationService.error(G.error)}}var Gi=ne(574),contextMenuService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},contextMenuService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Zi=class ContextMenuService extends Qt.a{constructor(G,Z,ne,ie,se){super(),this.contextMenuHandler=new contextMenuHandler_ContextMenuHandler(ne,G,Z,ie,se)}configure(G){this.contextMenuHandler.configure(G)}showContextMenu(G){this.contextMenuHandler.showContextMenu(G),Wt.e.getInstance().resetKeyStatus()}};Zi=contextMenuService_decorate([contextMenuService_param(0,Gi.a),contextMenuService_param(1,mr.a),contextMenuService_param(2,Ur.b),contextMenuService_param(3,li.a),contextMenuService_param(4,Ir.b)],Zi);const Ji=Object(Vr.c)("layoutService");var contextViewService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},contextViewService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Qi=class ContextViewService extends Qt.a{constructor(G){super(),this.layoutService=G,this.currentViewDisposable=Qt.a.None,this.container=G.container,this.contextView=this._register(new contextview_ContextView(this.container,1)),this.layout(),this._register(G.onDidLayout(()=>this.layout()))}setContainer(G,Z){this.contextView.setContainer(G,Z||1)}showContextView(G,Z,ne){Z?Z!==this.container&&(this.container=Z,this.setContainer(Z,ne?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(G);const ie=Object(Qt.i)(()=>{this.currentViewDisposable===ie&&this.hideContextView()});return this.currentViewDisposable=ie,ie}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(G){this.contextView.hide(G)}};Qi=contextViewService_decorate([contextViewService_param(0,Ji)],Qi);var eo=ne(821);class Node{constructor(G){this.incoming=new Map,this.outgoing=new Map,this.data=G}}class Graph{constructor(G){this._hashFn=G,this._nodes=new Map}roots(){const G=[];for(let Z of this._nodes.values())0===Z.outgoing.size&&G.push(Z);return G}insertEdge(G,Z){const ne=this.lookupOrInsertNode(G),ie=this.lookupOrInsertNode(Z);ne.outgoing.set(this._hashFn(Z),ie),ie.incoming.set(this._hashFn(G),ne)}removeNode(G){const Z=this._hashFn(G);this._nodes.delete(Z);for(let G of this._nodes.values())G.outgoing.delete(Z),G.incoming.delete(Z)}lookupOrInsertNode(G){const Z=this._hashFn(G);let ne=this._nodes.get(Z);return ne||(ne=new Node(G),this._nodes.set(Z,ne)),ne}isEmpty(){return 0===this._nodes.size}toString(){let G=[];for(let[Z,ne]of this._nodes)G.push(`${Z}, (incoming)[${[...ne.incoming.keys()].join(", ")}], (outgoing)[${[...ne.outgoing.keys()].join(",")}]`);return G.join("\n")}findCycleSlow(){for(let[G,Z]of this._nodes){const ne=new Set([G]),ie=this._findCycle(Z,ne);if(ie)return ie}}_findCycle(G,Z){for(let[ne,ie]of G.outgoing){if(Z.has(ne))return[...Z,ne].join(" -> ");Z.add(ne);const G=this._findCycle(ie,Z);if(G)return G;Z.delete(ne)}}}var to=ne(831);class CyclicDependencyError extends Error{constructor(G){var Z;super("cyclic dependency between services"),this.message=null!==(Z=G.findCycleSlow())&&void 0!==Z?Z:"UNABLE to detect cycle, dumping graph: \n"+G.toString()}}class instantiationService_InstantiationService{constructor(G=new Yr.a,Z=!1,ne){this._activeInstantiations=new Set,this._services=G,this._strict=Z,this._parent=ne,this._services.set(Vr.a,this)}createChild(G){return new instantiationService_InstantiationService(G,this._strict,this)}invokeFunction(G,...Z){let ne=Trace.traceInvocation(G),ie=!1;try{return G({get:(G,Z)=>{if(ie)throw Object(Cn.c)("service accessor is only valid during the invocation of its target method");const se=this._getOrCreateServiceInstance(G,ne);if(!se&&Z!==Vr.d)throw new Error(`[invokeFunction] unknown service '${G}'`);return se}},...Z)}finally{ie=!0,ne.stop()}}createInstance(G,...Z){let ne,ie;return G instanceof to.a?(ne=Trace.traceCreation(G.ctor),ie=this._createInstance(G.ctor,G.staticArguments.concat(Z),ne)):(ne=Trace.traceCreation(G),ie=this._createInstance(G,Z,ne)),ne.stop(),ie}_createInstance(G,Z=[],ne){let ie=Vr.b.getServiceDependencies(G).sort((G,Z)=>G.index-Z.index),se=[];for(const Z of ie){let ie=this._getOrCreateServiceInstance(Z.id,ne);if(!ie&&this._strict&&!Z.optional)throw new Error(`[createInstance] ${G.name} depends on UNKNOWN service ${Z.id}.`);se.push(ie)}let ce=ie.length>0?ie[0].index:Z.length;if(Z.length!==ce){console.warn(`[createInstance] First service dependency of ${G.name} at position ${ce+1} conflicts with ${Z.length} static arguments`);let ne=ce-Z.length;Z=ne>0?Z.concat(new Array(ne)):Z.slice(0,ce)}return new G(...[...Z,...se])}_setServiceInstance(G,Z){if(this._services.get(G)instanceof to.a)this._services.set(G,Z);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(G,Z)}}_getServiceInstanceOrDescriptor(G){let Z=this._services.get(G);return!Z&&this._parent?this._parent._getServiceInstanceOrDescriptor(G):Z}_getOrCreateServiceInstance(G,Z){let ne=this._getServiceInstanceOrDescriptor(G);return ne instanceof to.a?this._safeCreateAndCacheServiceInstance(G,ne,Z.branch(G,!0)):(Z.branch(G,!1),ne)}_safeCreateAndCacheServiceInstance(G,Z,ne){if(this._activeInstantiations.has(G))throw new Error(`illegal state - RECURSIVELY instantiating service '${G}'`);this._activeInstantiations.add(G);try{return this._createAndCacheServiceInstance(G,Z,ne)}finally{this._activeInstantiations.delete(G)}}_createAndCacheServiceInstance(G,Z,ne){const ie=new Graph(G=>G.id.toString());let se=0;const ce=[{id:G,desc:Z,_trace:ne}];for(;ce.length;){const Z=ce.pop();if(ie.lookupOrInsertNode(Z),se++>1e3)throw new CyclicDependencyError(ie);for(let ne of Vr.b.getServiceDependencies(Z.desc.ctor)){let se=this._getServiceInstanceOrDescriptor(ne.id);if(se||ne.optional||console.warn(`[createInstance] ${G} depends on ${ne.id} which is NOT registered.`),se instanceof to.a){const G={id:ne.id,desc:se,_trace:Z._trace.branch(ne.id,!0)};ie.insertEdge(Z,G),ce.push(G)}}}for(;;){const G=ie.roots();if(0===G.length){if(!ie.isEmpty())throw new CyclicDependencyError(ie);break}for(const{data:Z}of G){if(this._getServiceInstanceOrDescriptor(Z.id)instanceof to.a){const G=this._createServiceInstanceWithOwner(Z.id,Z.desc.ctor,Z.desc.staticArguments,Z.desc.supportsDelayedInstantiation,Z._trace);this._setServiceInstance(Z.id,G)}ie.removeNode(Z)}}return this._getServiceInstanceOrDescriptor(G)}_createServiceInstanceWithOwner(G,Z,ne=[],ie,se){if(this._services.get(G)instanceof to.a)return this._createServiceInstance(Z,ne,ie,se);if(this._parent)return this._parent._createServiceInstanceWithOwner(G,Z,ne,ie,se);throw new Error("illegalState - creating UNKNOWN service instance "+Z.name)}_createServiceInstance(G,Z=[],ne,ie){if(ne){const ne=new wn.b(()=>this._createInstance(G,Z,ie));return new Proxy(Object.create(null),{get(G,Z){if(Z in G)return G[Z];let ie=ne.value,se=ie[Z];return"function"!=typeof se||(se=se.bind(ie),G[Z]=se),se},set:(G,Z,ie)=>(ne.value[Z]=ie,!0)})}return this._createInstance(G,Z,ie)}}class Trace{constructor(G,Z){this.type=G,this.name=Z,this._start=Date.now(),this._dep=[]}static traceInvocation(G){return Trace._None}static traceCreation(G){return Trace._None}branch(G,Z){let ne=new Trace(2,G.toString());return this._dep.push([G,Z,ne]),ne}stop(){let G=Date.now()-this._start;Trace._totals+=G;let Z=!1;let ne=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,""+function printChild(G,ne){let ie=[],se=new Array(G+1).join("\t");for(const[ce,fe,me]of ne._dep)if(fe&&me){Z=!0,ie.push(`${se}CREATES -> ${ce}`);let ne=printChild(G+1,me);ne&&ie.push(ne)}else ie.push(`${se}uses -> ${ce}`);return ie.join("\n")}(1,this),`DONE, took ${G.toFixed(2)}ms (grand total ${Trace._totals.toFixed(2)}ms)`];(G>2||Z)&&console.log(ne.join("\n"))}}Trace._None=new class extends Trace{constructor(){super(-1,null)}stop(){}branch(){return this}},Trace._totals=0;var no=ne(820),ro=ne(649),io=ne(222);class markerService_DoubleResourceMap{constructor(){this._byResource=new Ft.b,this._byOwner=new Map}set(G,Z,ne){let ie=this._byResource.get(G);ie||(ie=new Map,this._byResource.set(G,ie)),ie.set(Z,ne);let se=this._byOwner.get(Z);se||(se=new Ft.b,this._byOwner.set(Z,se)),se.set(G,ne)}get(G,Z){let ne=this._byResource.get(G);return null==ne?void 0:ne.get(Z)}delete(G,Z){let ne=!1,ie=!1,se=this._byResource.get(G);se&&(ne=se.delete(Z));let ce=this._byOwner.get(Z);if(ce&&(ie=ce.delete(G)),ne!==ie)throw new Error("illegal state");return ne&&ie}values(G){var Z,ne,ie,se;return"string"==typeof G?null!==(ne=null===(Z=this._byOwner.get(G))||void 0===Z?void 0:Z.values())&&void 0!==ne?ne:Ei.a.empty():Et.a.isUri(G)?null!==(se=null===(ie=this._byResource.get(G))||void 0===ie?void 0:ie.values())&&void 0!==se?se:Ei.a.empty():Ei.a.map(Ei.a.concat(...this._byOwner.values()),G=>G[1])}}class markerService_MarkerStats{constructor(G){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Ft.b,this._service=G,this._subscription=G.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(G){for(const Z of G){const G=this._data.get(Z);G&&this._substract(G);const ne=this._resourceStats(Z);this._add(ne),this._data.set(Z,ne)}}_resourceStats(G){const Z={errors:0,warnings:0,infos:0,unknowns:0};if(G.scheme===$t.c.inMemory||G.scheme===$t.c.walkThrough||G.scheme===$t.c.walkThroughSnippet)return Z;for(const{severity:ne}of this._service.read({resource:G}))ne===io.c.Error?Z.errors+=1:ne===io.c.Warning?Z.warnings+=1:ne===io.c.Info?Z.infos+=1:Z.unknowns+=1;return Z}_substract(G){this.errors-=G.errors,this.warnings-=G.warnings,this.infos-=G.infos,this.unknowns-=G.unknowns}_add(G){this.errors+=G.errors,this.warnings+=G.warnings,this.infos+=G.infos,this.unknowns+=G.unknowns}}class markerService_MarkerService{constructor(){this._onMarkerChanged=new At.a({delay:0,merge:markerService_MarkerService._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new markerService_DoubleResourceMap,this._stats=new markerService_MarkerStats(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(G,Z){for(const ne of Z||[])this.changeOne(G,ne,[])}changeOne(G,Z,ne){if(Object(Un.m)(ne)){this._data.delete(Z,G)&&this._onMarkerChanged.fire([Z])}else{const ie=[];for(const se of ne){const ne=markerService_MarkerService._toMarker(G,Z,se);ne&&ie.push(ne)}this._data.set(Z,G,ie),this._onMarkerChanged.fire([Z])}}static _toMarker(G,Z,ne){let{code:ie,severity:se,message:ce,source:fe,startLineNumber:me,startColumn:ge,endLineNumber:Ce,endColumn:Se,relatedInformation:Me,tags:ke}=ne;if(ce)return me=me>0?me:1,ge=ge>0?ge:1,Ce=Ce>=me?Ce:me,Se=Se>0?Se:ge,{resource:Z,owner:G,code:ie,severity:se,message:ce,source:fe,startLineNumber:me,startColumn:ge,endLineNumber:Ce,endColumn:Se,relatedInformation:Me,tags:ke}}read(G=Object.create(null)){let{owner:Z,resource:ne,severities:ie,take:se}=G;if((!se||se<0)&&(se=-1),Z&&ne){const G=this._data.get(ne,Z);if(G){const Z=[];for(const ne of G)if(markerService_MarkerService._accept(ne,ie)){const G=Z.push(ne);if(se>0&&G===se)break}return Z}return[]}if(Z||ne){const G=this._data.values(null!=ne?ne:Z),ce=[];for(const Z of G)for(const G of Z)if(markerService_MarkerService._accept(G,ie)){const Z=ce.push(G);if(se>0&&Z===se)return ce}return ce}{const G=[];for(let Z of this._data.values())for(let ne of Z)if(markerService_MarkerService._accept(ne,ie)){const Z=G.push(ne);if(se>0&&Z===se)return G}return G}}static _accept(G,Z){return void 0===Z||(Z&G.severity)===G.severity}static _merge(G){const Z=new Ft.b;for(let ne of G)for(let G of ne)Z.set(G,!0);return Array.from(Z.keys())}}var oo=ne(375),menuService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},menuService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let ao=class MenuService{constructor(G){this._commandService=G}createMenu(G,Z,ne=!1){return new so(G,ne,this._commandService,Z,this)}};ao=menuService_decorate([menuService_param(0,Yt.b)],ao);let so=class Menu{constructor(G,Z,ne,ie,se){this._id=G,this._fireEventsForSubmenuChanges=Z,this._commandService=ne,this._contextKeyService=ie,this._menuService=se,this._disposables=new Qt.b,this._menuGroups=[],this._contextKeys=new Set,this._build();const ce=new wn.e(()=>{this._build(),this._onDidChange.fire(this)},50);this._disposables.add(ce),this._disposables.add(si.d.onDidChangeMenu(Z=>{Z.has(G)&&ce.schedule()}));const fe=this._disposables.add(new Qt.b);this._onDidChange=new At.b({onFirstListenerAdd:()=>{const G=new wn.e(()=>this._onDidChange.fire(this),50);fe.add(G),fe.add(ie.onDidChangeContext(Z=>{Z.affectsSome(this._contextKeys)&&G.schedule()}))},onLastListenerRemove:fe.clear.bind(fe)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const G=si.d.getMenuItems(this._id);let Z;G.sort(Menu._compareMenuItems);for(const ne of G){const G=ne.group||"";Z&&Z[0]===G||(Z=[G,[]],this._menuGroups.push(Z)),Z[1].push(ne),this._collectContextKeys(ne)}}_collectContextKeys(G){if(Menu._fillInKbExprKeys(G.when,this._contextKeys),Object(si.f)(G)){if(G.command.precondition&&Menu._fillInKbExprKeys(G.command.precondition,this._contextKeys),G.command.toggled){const Z=G.command.toggled.condition||G.command.toggled;Menu._fillInKbExprKeys(Z,this._contextKeys)}}else this._fireEventsForSubmenuChanges&&si.d.getMenuItems(G.submenu).forEach(this._collectContextKeys,this)}getActions(G){const Z=[];for(let ne of this._menuGroups){const[ie,se]=ne,ce=[];for(const Z of se)if(this._contextKeyService.contextMatchesRules(Z.when)){const ne=Object(si.f)(Z)?new si.c(Z.command,Z.alt,G,this._contextKeyService,this._commandService):new si.e(Z,this._menuService,this._contextKeyService,G);ce.push(ne)}ce.length>0&&Z.push([ie,ce])}return Z}static _fillInKbExprKeys(G,Z){if(G)for(let ne of G.keys())Z.add(ne)}static _compareMenuItems(G,Z){let ne=G.group,ie=Z.group;if(ne!==ie){if(!ne)return 1;if(!ie)return-1;if("navigation"===ne)return-1;if("navigation"===ie)return 1;let G=ne.localeCompare(ie);if(0!==G)return G}let se=G.order||0,ce=Z.order||0;return sece?1:Menu._compareTitles(Object(si.f)(G)?G.command.title:G.title,Object(si.f)(Z)?Z.command.title:Z.title)}static _compareTitles(G,Z){const ne="string"==typeof G?G:G.original,ie="string"==typeof Z?Z:Z.original;return ne.localeCompare(ie)}};so=menuService_decorate([menuService_param(2,Yt.b),menuService_param(3,jr.b),menuService_param(4,si.a)],so);var lo=ne(1350),markerDecorationsServiceImpl_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},markerDecorationsServiceImpl_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};class markerDecorationsServiceImpl_MarkerDecorations extends Qt.a{constructor(G){super(),this.model=G,this._markersData=new Map,this._register(Object(Qt.i)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(G,Z){const ne=[...this._markersData.keys()];this._markersData.clear();const ie=this.model.deltaDecorations(ne,Z);for(let Z=0;Zthis._onModelAdded(G)),this._register(G.onModelAdded(this._onModelAdded,this)),this._register(G.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(G=>G.dispose()),this._markerDecorations.clear()}getMarker(G,Z){const ne=this._markerDecorations.get(G);return ne&&ne.getMarker(Z)||null}_handleMarkerChange(G){G.forEach(G=>{const Z=this._markerDecorations.get(G);Z&&this._updateDecorations(Z)})}_onModelAdded(G){const Z=new markerDecorationsServiceImpl_MarkerDecorations(G);this._markerDecorations.set(G.uri,Z),this._updateDecorations(Z)}_onModelRemoved(G){const Z=this._markerDecorations.get(G.uri);Z&&(Z.dispose(),this._markerDecorations.delete(G.uri)),G.uri.scheme!==$t.c.inMemory&&G.uri.scheme!==$t.c.internal&&G.uri.scheme!==$t.c.vscode||this._markerService&&this._markerService.read({resource:G.uri}).map(G=>G.owner).forEach(Z=>this._markerService.remove(Z,[G.uri]))}_updateDecorations(G){const Z=this._markerService.read({resource:G.model.uri,take:500});let ne=Z.map(Z=>({range:this._createDecorationRange(G.model,Z),options:this._createDecorationOption(Z)}));G.update(Z,ne)&&this._onDidChangeMarker.fire(G.model)}_createDecorationRange(G,Z){let ne=It.a.lift(Z);if(Z.severity!==io.c.Hint||this._hasMarkerTag(Z,1)||this._hasMarkerTag(Z,2)||(ne=ne.setEndPosition(ne.startLineNumber,ne.startColumn+2)),ne=G.validateRange(ne),ne.isEmpty()){let Z=G.getWordAtPosition(ne.getStartPosition());if(Z)ne=new It.a(ne.startLineNumber,Z.startColumn,ne.endLineNumber,Z.endColumn);else{let Z=G.getLineLastNonWhitespaceColumn(ne.startLineNumber)||G.getLineMaxColumn(ne.startLineNumber);1===Z||(ne=ne.endColumn>=Z?new It.a(ne.startLineNumber,Z-1,ne.endLineNumber,Z):new It.a(ne.startLineNumber,ne.startColumn,ne.endLineNumber,ne.endColumn+1))}}else if(Z.endColumn===Number.MAX_VALUE&&1===Z.startColumn&&ne.startLineNumber===ne.endLineNumber){let ie=G.getLineFirstNonWhitespaceColumn(Z.startLineNumber);ie=0}};co=markerDecorationsServiceImpl_decorate([markerDecorationsServiceImpl_param(0,$n.a),markerDecorationsServiceImpl_param(1,io.b)],co);var uo=ne(533),accessibilityService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},accessibilityService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let po=class AccessibilityService extends Qt.a{constructor(G,Z){super(),this._contextKeyService=G,this._configurationService=Z,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new At.b,this._accessibilityModeEnabledContext=ci.a.bindTo(this._contextKeyService);const updateContextKey=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(G=>{G.affectsConfiguration("editor.accessibilitySupport")&&(updateContextKey(),this._onDidChangeScreenReaderOptimized.fire())})),updateContextKey(),this.onDidChangeScreenReaderOptimized(()=>updateContextKey())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const G=this._configurationService.getValue("editor.accessibilitySupport");return"on"===G||"auto"===G&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};po=accessibilityService_decorate([accessibilityService_param(0,jr.b),accessibilityService_param(1,lr.a)],po);var clipboardService_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class clipboardService_BrowserClipboardService{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(G,Z){return clipboardService_awaiter(this,void 0,void 0,(function*(){if(Z)return void this.mapTextToType.set(Z,G);try{return yield navigator.clipboard.writeText(G)}catch(G){console.error(G)}const ne=document.activeElement,ie=document.body.appendChild(Object(Wt.a)("textarea",{"aria-hidden":!0}));ie.style.height="1px",ie.style.width="1px",ie.style.position="absolute",ie.value=G,ie.focus(),ie.select(),document.execCommand("copy"),ne instanceof HTMLElement&&ne.focus(),document.body.removeChild(ie)}))}readText(G){return clipboardService_awaiter(this,void 0,void 0,(function*(){if(G)return this.mapTextToType.get(G)||"";try{return yield navigator.clipboard.readText()}catch(G){return console.error(G),""}}))}readFindText(){return clipboardService_awaiter(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(G){return clipboardService_awaiter(this,void 0,void 0,(function*(){this.findText=G}))}}var ho=ne(540),undoRedoService_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},undoRedoService_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},undoRedoService_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function getResourceLabel(G){return G.scheme===$t.c.file?G.fsPath:G.path}let fo=0;class ResourceStackElement{constructor(G,Z,ne,ie,se,ce,fe){this.id=++fo,this.type=0,this.actual=G,this.label=G.label,this.confirmBeforeUndo=G.confirmBeforeUndo||!1,this.resourceLabel=Z,this.strResource=ne,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=ie,this.groupOrder=se,this.sourceId=ce,this.sourceOrder=fe,this.isValid=!0}setValid(G){this.isValid=G}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ResourceReasonPair{constructor(G,Z){this.resourceLabel=G,this.reason=Z}}class undoRedoService_RemovedResources{constructor(){this.elements=new Map}createMessage(){const G=[],Z=[];for(const[,ne]of this.elements){(0===ne.reason?G:Z).push(ne.resourceLabel)}let ne=[];return G.length>0&&ne.push(dr.a({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",G.join(", "))),Z.length>0&&ne.push(dr.a({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",Z.join(", "))),ne.join("\n")}get size(){return this.elements.size}has(G){return this.elements.has(G)}set(G,Z){this.elements.set(G,Z)}delete(G){return this.elements.delete(G)}}class WorkspaceStackElement{constructor(G,Z,ne,ie,se,ce,fe){this.id=++fo,this.type=1,this.actual=G,this.label=G.label,this.confirmBeforeUndo=G.confirmBeforeUndo||!1,this.resourceLabels=Z,this.strResources=ne,this.groupId=ie,this.groupOrder=se,this.sourceId=ce,this.sourceOrder=fe,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(G,Z,ne){this.removedResources||(this.removedResources=new undoRedoService_RemovedResources),this.removedResources.has(Z)||this.removedResources.set(Z,new ResourceReasonPair(G,ne))}setValid(G,Z,ne){ne?this.invalidatedResources&&(this.invalidatedResources.delete(Z),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new undoRedoService_RemovedResources),this.invalidatedResources.has(Z)||this.invalidatedResources.set(Z,new ResourceReasonPair(G,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class undoRedoService_ResourceEditStack{constructor(G,Z){this.resourceLabel=G,this.strResource=Z,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const G of this._past)1===G.type&&G.removeResource(this.resourceLabel,this.strResource,0);for(const G of this._future)1===G.type&&G.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let G=[];G.push(`* ${this.strResource}:`);for(let Z=0;Z=0;Z--)G.push(" * [REDO] "+this._future[Z]);return G.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(G,Z){1===G.type?G.setValid(this.resourceLabel,this.strResource,Z):G.setValid(Z)}setElementsValidFlag(G,Z){for(const ne of this._past)Z(ne.actual)&&this._setElementValidFlag(ne,G);for(const ne of this._future)Z(ne.actual)&&this._setElementValidFlag(ne,G)}pushElement(G){for(const G of this._future)1===G.type&&G.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(G),this.versionId++}createSnapshot(G){const Z=[];for(let G=0,ne=this._past.length;G=0;G--)Z.push(this._future[G].id);return new ho.b(G,Z)}restoreSnapshot(G){const Z=G.elements.length;let ne=!0,ie=0,se=-1;for(let ce=0,fe=this._past.length;ce=Z||fe.id!==G.elements[ie])&&(ne=!1,se=0),ne||1!==fe.type||fe.removeResource(this.resourceLabel,this.strResource,0)}let ce=-1;for(let se=this._future.length-1;se>=0;se--,ie++){const fe=this._future[se];ne&&(ie>=Z||fe.id!==G.elements[ie])&&(ne=!1,ce=se),ne||1!==fe.type||fe.removeResource(this.resourceLabel,this.strResource,0)}-1!==se&&(this._past=this._past.slice(0,se)),-1!==ce&&(this._future=this._future.slice(ce+1)),this.versionId++}getElements(){const G=[],Z=[];for(const Z of this._past)G.push(Z.actual);for(const G of this._future)Z.push(G.actual);return{past:G,future:Z}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(G,Z){for(let ne=this._past.length-1;ne>=0;ne--)if(this._past[ne]===G){Z.has(this.strResource)?this._past[ne]=Z.get(this.strResource):this._past.splice(ne,1);break}this.versionId++}splitFutureWorkspaceElement(G,Z){for(let ne=this._future.length-1;ne>=0;ne--)if(this._future[ne]===G){Z.has(this.strResource)?this._future[ne]=Z.get(this.strResource):this._future.splice(ne,1);break}this.versionId++}moveBackward(G){this._past.pop(),this._future.push(G),this.versionId++}moveForward(G){this._future.pop(),this._past.push(G),this.versionId++}}class EditStackSnapshot{constructor(G){this.editStacks=G,this._versionIds=[];for(let G=0,Z=this.editStacks.length;GZ.sourceOrder)&&(Z=ce,ne=ie))}return[Z,ne]}canUndo(G){if(G instanceof ho.d){const[,Z]=this._findClosestUndoElementWithSource(G.id);return!!Z}const Z=this.getUriComparisonKey(G);if(this._editStacks.has(Z)){return this._editStacks.get(Z).hasPastElements()}return!1}_onError(G,Z){Object(Cn.e)(G);for(const G of Z.strResources)this.removeElements(G);this._notificationService.error(G)}_acquireLocks(G){for(const Z of G.editStacks)if(Z.locked)throw new Error("Cannot acquire edit stack lock");for(const Z of G.editStacks)Z.locked=!0;return()=>{for(const Z of G.editStacks)Z.locked=!1}}_safeInvokeWithLocks(G,Z,ne,ie,se){const ce=this._acquireLocks(ne);let fe;try{fe=Z()}catch(Z){return ce(),ie.dispose(),this._onError(Z,G)}return fe?fe.then(()=>(ce(),ie.dispose(),se()),Z=>(ce(),ie.dispose(),this._onError(Z,G))):(ce(),ie.dispose(),se())}_invokeWorkspacePrepare(G){return undoRedoService_awaiter(this,void 0,void 0,(function*(){if(void 0===G.actual.prepareUndoRedo)return Qt.a.None;const Z=G.actual.prepareUndoRedo();return void 0===Z?Qt.a.None:Z}))}_invokeResourcePrepare(G,Z){if(1!==G.actual.type||void 0===G.actual.prepareUndoRedo)return Z(Qt.a.None);const ne=G.actual.prepareUndoRedo();return ne?Object(Qt.g)(ne)?Z(ne):ne.then(G=>Z(G)):Z(Qt.a.None)}_getAffectedEditStacks(G){const Z=[];for(const ne of G.strResources)Z.push(this._editStacks.get(ne)||mo);return new EditStackSnapshot(Z)}_tryToSplitAndUndo(G,Z,ne,ie){if(Z.canSplit())return this._splitPastWorkspaceElement(Z,ne),this._notificationService.warn(ie),new WorkspaceVerificationError(this._undo(G,0,!0));for(const G of Z.strResources)this.removeElements(G);return this._notificationService.warn(ie),new WorkspaceVerificationError}_checkWorkspaceUndo(G,Z,ne,ie){if(Z.removedResources)return this._tryToSplitAndUndo(G,Z,Z.removedResources,dr.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",Z.label,Z.removedResources.createMessage()));if(ie&&Z.invalidatedResources)return this._tryToSplitAndUndo(G,Z,Z.invalidatedResources,dr.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",Z.label,Z.invalidatedResources.createMessage()));const se=[];for(const G of ne.editStacks)G.getClosestPastElement()!==Z&&se.push(G.resourceLabel);if(se.length>0)return this._tryToSplitAndUndo(G,Z,null,dr.a({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",Z.label,se.join(", ")));const ce=[];for(const G of ne.editStacks)G.locked&&ce.push(G.resourceLabel);return ce.length>0?this._tryToSplitAndUndo(G,Z,null,dr.a({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",Z.label,ce.join(", "))):ne.isValid()?null:this._tryToSplitAndUndo(G,Z,null,dr.a({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",Z.label))}_workspaceUndo(G,Z,ne){const ie=this._getAffectedEditStacks(Z),se=this._checkWorkspaceUndo(G,Z,ie,!1);return se?se.returnValue:this._confirmAndExecuteWorkspaceUndo(G,Z,ie,ne)}_isPartOfUndoGroup(G){if(!G.groupId)return!1;for(const[,Z]of this._editStacks){const ne=Z.getClosestPastElement();if(ne){if(ne===G){const ne=Z.getSecondClosestPastElement();if(ne&&ne.groupId===G.groupId)return!0}if(ne.groupId===G.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(G,Z,ne,ie){return undoRedoService_awaiter(this,void 0,void 0,(function*(){if(Z.canSplit()&&!this._isPartOfUndoGroup(Z)){const se=yield this._dialogService.show(nr.a.Info,dr.a("confirmWorkspace","Would you like to undo '{0}' across all files?",Z.label),[dr.a({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",ne.editStacks.length),dr.a("nok","Undo this File"),dr.a("cancel","Cancel")],{cancelId:2});if(2===se.choice)return;if(1===se.choice)return this._splitPastWorkspaceElement(Z,null),this._undo(G,0,!0);const ce=this._checkWorkspaceUndo(G,Z,ne,!1);if(ce)return ce.returnValue;ie=!0}let se;try{se=yield this._invokeWorkspacePrepare(Z)}catch(G){return this._onError(G,Z)}const ce=this._checkWorkspaceUndo(G,Z,ne,!0);if(ce)return se.dispose(),ce.returnValue;for(const G of ne.editStacks)G.moveBackward(Z);return this._safeInvokeWithLocks(Z,()=>Z.actual.undo(),ne,se,()=>this._continueUndoInGroup(Z.groupId,ie))}))}_resourceUndo(G,Z,ne){if(Z.isValid){if(!G.locked)return this._invokeResourcePrepare(Z,ie=>(G.moveBackward(Z),this._safeInvokeWithLocks(Z,()=>Z.actual.undo(),new EditStackSnapshot([G]),ie,()=>this._continueUndoInGroup(Z.groupId,ne))));{const G=dr.a({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",Z.label);this._notificationService.warn(G)}}else G.flushAllElements()}_findClosestUndoElementInGroup(G){if(!G)return[null,null];let Z=null,ne=null;for(const[ie,se]of this._editStacks){const ce=se.getClosestPastElement();ce&&(ce.groupId===G&&(!Z||ce.groupOrder>Z.groupOrder)&&(Z=ce,ne=ie))}return[Z,ne]}_continueUndoInGroup(G,Z){if(!G)return;const[,ne]=this._findClosestUndoElementInGroup(G);return ne?this._undo(ne,0,Z):void 0}undo(G){if(G instanceof ho.d){const[,Z]=this._findClosestUndoElementWithSource(G.id);return Z?this._undo(Z,G.id,!1):void 0}return"string"==typeof G?this._undo(G,0,!1):this._undo(this.getUriComparisonKey(G),0,!1)}_undo(G,Z=0,ne){if(!this._editStacks.has(G))return;const ie=this._editStacks.get(G),se=ie.getClosestPastElement();if(!se)return;if(se.groupId){const[G,ie]=this._findClosestUndoElementInGroup(se.groupId);if(se!==G&&ie)return this._undo(ie,Z,ne)}if((se.sourceId!==Z||se.confirmBeforeUndo)&&!ne)return this._confirmAndContinueUndo(G,Z,se);try{return 1===se.type?this._workspaceUndo(G,se,ne):this._resourceUndo(ie,se,ne)}finally{0}}_confirmAndContinueUndo(G,Z,ne){return undoRedoService_awaiter(this,void 0,void 0,(function*(){if(1!==(yield this._dialogService.show(nr.a.Info,dr.a("confirmDifferentSource","Would you like to undo '{0}'?",ne.label),[dr.a("confirmDifferentSource.yes","Yes"),dr.a("cancel","Cancel")],{cancelId:1})).choice)return this._undo(G,Z,!0)}))}_findClosestRedoElementWithSource(G){if(!G)return[null,null];let Z=null,ne=null;for(const[ie,se]of this._editStacks){const ce=se.getClosestFutureElement();ce&&(ce.sourceId===G&&(!Z||ce.sourceOrder0)return this._tryToSplitAndRedo(G,Z,null,dr.a({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",Z.label,se.join(", ")));const ce=[];for(const G of ne.editStacks)G.locked&&ce.push(G.resourceLabel);return ce.length>0?this._tryToSplitAndRedo(G,Z,null,dr.a({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",Z.label,ce.join(", "))):ne.isValid()?null:this._tryToSplitAndRedo(G,Z,null,dr.a({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",Z.label))}_workspaceRedo(G,Z){const ne=this._getAffectedEditStacks(Z),ie=this._checkWorkspaceRedo(G,Z,ne,!1);return ie?ie.returnValue:this._executeWorkspaceRedo(G,Z,ne)}_executeWorkspaceRedo(G,Z,ne){return undoRedoService_awaiter(this,void 0,void 0,(function*(){let ie;try{ie=yield this._invokeWorkspacePrepare(Z)}catch(G){return this._onError(G,Z)}const se=this._checkWorkspaceRedo(G,Z,ne,!0);if(se)return ie.dispose(),se.returnValue;for(const G of ne.editStacks)G.moveForward(Z);return this._safeInvokeWithLocks(Z,()=>Z.actual.redo(),ne,ie,()=>this._continueRedoInGroup(Z.groupId))}))}_resourceRedo(G,Z){if(Z.isValid){if(!G.locked)return this._invokeResourcePrepare(Z,ne=>(G.moveForward(Z),this._safeInvokeWithLocks(Z,()=>Z.actual.redo(),new EditStackSnapshot([G]),ne,()=>this._continueRedoInGroup(Z.groupId))));{const G=dr.a({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",Z.label);this._notificationService.warn(G)}}else G.flushAllElements()}_findClosestRedoElementInGroup(G){if(!G)return[null,null];let Z=null,ne=null;for(const[ie,se]of this._editStacks){const ce=se.getClosestFutureElement();ce&&(ce.groupId===G&&(!Z||ce.groupOrder{const G=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:G,collatorIsNumeric:G.resolvedOptions().numeric}});function compareAnything(G,Z,ne){const ie=G.toLowerCase(),se=Z.toLowerCase(),ce=function compareByPrefix(G,Z,ne){const ie=G.toLowerCase(),se=Z.toLowerCase(),ce=ie.startsWith(ne),fe=se.startsWith(ne);if(ce!==fe)return ce?-1:1;if(ce&&fe){if(ie.lengthse.length)return 1}return 0}(G,Z,ne);if(ce)return ce;const fe=ie.endsWith(ne);if(fe!==se.endsWith(ne))return fe?-1:1;const me=function compareFileNames(G,Z,ne=!1){const ie=G||"",se=Z||"",ce=yo.value.collator.compare(ie,se);return yo.value.collatorIsNumeric&&0===ce&&ie!==se?ie=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},quickInputList_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const xo=Wt.a;class quickInputList_ListElement{constructor(G){this.hidden=!1,this._onChecked=new At.b,this.onChecked=this._onChecked.event,Object.assign(this,G)}get checked(){return!!this._checked}set checked(G){G!==this._checked&&(this._checked=G,this._onChecked.fire(G))}dispose(){this._onChecked.dispose()}}class quickInputList_ListElementRenderer{get templateId(){return quickInputList_ListElementRenderer.ID}renderTemplate(G){const Z=Object.create(null);Z.toDisposeElement=[],Z.toDisposeTemplate=[],Z.entry=Wt.q(G,xo(".quick-input-list-entry"));const ne=Wt.q(Z.entry,xo("label.quick-input-list-label"));Z.toDisposeTemplate.push(Wt.o(ne,Wt.d.CLICK,G=>{Z.checkbox.offsetParent||G.preventDefault()})),Z.checkbox=Wt.q(ne,xo("input.quick-input-list-checkbox")),Z.checkbox.type="checkbox",Z.toDisposeTemplate.push(Wt.o(Z.checkbox,Wt.d.CHANGE,G=>{Z.element.checked=Z.checkbox.checked}));const ie=Wt.q(ne,xo(".quick-input-list-rows")),se=Wt.q(ie,xo(".quick-input-list-row")),ce=Wt.q(ie,xo(".quick-input-list-row"));Z.label=new vo.a(se,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const fe=Wt.q(se,xo(".quick-input-list-entry-keybinding"));Z.keybinding=new keybindingLabel_KeybindingLabel(fe,On.a);const me=Wt.q(ce,xo(".quick-input-list-label-meta"));return Z.detail=new wo.a(me,!0),Z.separator=Wt.q(Z.entry,xo(".quick-input-list-separator")),Z.actionBar=new Lr.a(Z.entry),Z.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),Z.toDisposeTemplate.push(Z.actionBar),Z}renderElement(G,Z,ne){ne.toDisposeElement=Object(Qt.f)(ne.toDisposeElement),ne.element=G,ne.checkbox.checked=G.checked,ne.toDisposeElement.push(G.onChecked(G=>ne.checkbox.checked=G));const{labelHighlights:ie,descriptionHighlights:se,detailHighlights:ce}=G,fe=Object.create(null);fe.matches=ie||[],fe.descriptionTitle=G.saneDescription,fe.descriptionMatches=se||[],fe.extraClasses=G.item.iconClasses,fe.italic=G.item.italic,fe.strikethrough=G.item.strikethrough,ne.label.setLabel(G.saneLabel,G.saneDescription,fe),ne.keybinding.set(G.item.keybinding),ne.detail.set(G.saneDetail,ce),G.separator&&G.separator.label?(ne.separator.textContent=G.separator.label,ne.separator.style.display=""):ne.separator.style.display="none",ne.entry.classList.toggle("quick-input-list-separator-border",!!G.separator),ne.actionBar.clear();const me=G.item.buttons;me&&me.length?(ne.actionBar.push(me.map((Z,ne)=>{let ie=Z.iconClass||(Z.iconPath?getIconClass(Z.iconPath):void 0);Z.alwaysVisible&&(ie=ie?ie+" always-visible":"always-visible");const se=new Ar.a("id-"+ne,"",ie,!0,()=>quickInputList_awaiter(this,void 0,void 0,(function*(){G.fireButtonTriggered({button:Z,item:G.item})})));return se.tooltip=Z.tooltip||"",se}),{icon:!0,label:!1}),ne.entry.classList.add("has-actions")):ne.entry.classList.remove("has-actions")}disposeElement(G,Z,ne){ne.toDisposeElement=Object(Qt.f)(ne.toDisposeElement)}disposeTemplate(G){G.toDisposeElement=Object(Qt.f)(G.toDisposeElement),G.toDisposeTemplate=Object(Qt.f)(G.toDisposeTemplate)}}quickInputList_ListElementRenderer.ID="listelement";class ListElementDelegate{getHeight(G){return G.saneDetail?44:22}getTemplateId(G){return quickInputList_ListElementRenderer.ID}}var Lo;!function(G){G[G.First=1]="First",G[G.Second=2]="Second",G[G.Last=3]="Last",G[G.Next=4]="Next",G[G.Previous=5]="Previous",G[G.NextPage=6]="NextPage",G[G.PreviousPage=7]="PreviousPage"}(Lo||(Lo={}));class quickInputList_QuickInputList{constructor(G,Z,ne){this.parent=G,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new At.b,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new At.b,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new At.b,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new At.b,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new At.b,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new At.b,this.onKeyDown=this._onKeyDown.event,this._onLeave=new At.b,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=Z,this.container=Wt.q(this.parent,xo(".quick-input-list"));const ie=new ListElementDelegate,se=new quickInputList_QuickInputAccessibilityProvider;this.list=ne.createList("QuickInput",this.container,ie,[new quickInputList_ListElementRenderer],{identityProvider:{getId:G=>G.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:se}),this.list.getHTMLElement().id=Z,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(G=>{const Z=new tr.a(G);switch(Z.keyCode){case 10:this.toggleCheckbox();break;case 31:(On.f?G.metaKey:G.ctrlKey)&&this.list.setFocus(Object(Un.r)(this.list.length));break;case 16:const Z=this.list.getFocus();1===Z.length&&0===Z[0]&&this._onLeave.fire();break;case 18:const ne=this.list.getFocus();1===ne.length&&ne[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(Z)})),this.disposables.push(this.list.onMouseDown(G=>{2!==G.browserEvent.button&&G.browserEvent.preventDefault()})),this.disposables.push(Wt.i(this.container,Wt.d.CLICK,G=>{(G.x||G.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(G=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(G=>{"number"==typeof G.index&&(G.browserEvent.preventDefault(),this.list.setSelection([G.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return At.c.map(this.list.onDidChangeFocus,G=>G.elements.map(G=>G.item))}get onDidChangeSelection(){return At.c.map(this.list.onDidChangeSelection,G=>({items:G.elements.map(G=>G.item),event:G.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(G,Z=!0){for(let ne=0,ie=G.length;ne{Z.hidden||(Z.checked=G)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(G){this.elementDisposables=Object(Qt.f)(this.elementDisposables);const fireButtonTriggered=G=>this.fireButtonTriggered(G);this.inputElements=G,this.elements=G.reduce((Z,ne,ie)=>{var se,ce,fe;if("separator"!==ne.type){const me=ie&&G[ie-1],ge=ne.label&&ne.label.replace(/\r?\n/g," "),Ce=ne.meta&&ne.meta.replace(/\r?\n/g," "),Se=ne.description&&ne.description.replace(/\r?\n/g," "),Me=ne.detail&&ne.detail.replace(/\r?\n/g," "),ke=ne.ariaLabel||[ge,Se,Me].map(G=>Object(Nr.c)(G)).filter(G=>!!G).join(", ");Z.push(new quickInputList_ListElement({index:ie,item:ne,saneLabel:ge,saneMeta:Ce,saneAriaLabel:ke,saneDescription:Se,saneDetail:Me,labelHighlights:null===(se=ne.highlights)||void 0===se?void 0:se.label,descriptionHighlights:null===(ce=ne.highlights)||void 0===ce?void 0:ce.description,detailHighlights:null===(fe=ne.highlights)||void 0===fe?void 0:fe.detail,checked:!1,separator:me&&"separator"===me.type?me:void 0,fireButtonTriggered:fireButtonTriggered}))}return Z},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(G=>G.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((G,Z,ne)=>(G.set(Z.item,ne),G),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(G=>G.item)}setFocusedElements(G){if(this.list.setFocus(G.filter(G=>this.elementsToIndexes.has(G)).map(G=>this.elementsToIndexes.get(G))),G.length>0){const G=this.list.getFocus()[0];"number"==typeof G&&this.list.reveal(G)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(G){this.list.setSelection(G.filter(G=>this.elementsToIndexes.has(G)).map(G=>this.elementsToIndexes.get(G)))}getCheckedElements(){return this.elements.filter(G=>G.checked).map(G=>G.item)}setCheckedElements(G){try{this._fireCheckedEvents=!1;const Z=new Set;for(const ne of G)Z.add(ne);for(const G of this.elements)G.checked=Z.has(G.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(G){this.list.getHTMLElement().style.pointerEvents=G?"":"none"}focus(G){if(!this.list.length)return;switch(G===Lo.Next&&this.list.getFocus()[0]===this.list.length-1&&(G=Lo.First),G===Lo.Previous&&0===this.list.getFocus()[0]&&(G=Lo.Last),G===Lo.Second&&this.list.length<2&&(G=Lo.First),G){case Lo.First:this.list.focusFirst();break;case Lo.Second:this.list.focusNth(1);break;case Lo.Last:this.list.focusLast();break;case Lo.Next:this.list.focusNext();break;case Lo.Previous:this.list.focusPrevious();break;case Lo.NextPage:this.list.focusNextPage();break;case Lo.PreviousPage:this.list.focusPreviousPage()}const Z=this.list.getFocus()[0];"number"==typeof Z&&this.list.reveal(Z)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(G){this.list.getHTMLElement().style.maxHeight=G?`calc(${44*Math.floor(G/44)}px)`:"",this.list.layout()}filter(G){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if((G=G.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let Z;this.elements.forEach(ne=>{const ie=this.matchOnLabel?Object(Mn.o)(Object(Fi.c)(G,Object(Fi.d)(ne.saneLabel))):void 0,se=this.matchOnDescription?Object(Mn.o)(Object(Fi.c)(G,Object(Fi.d)(ne.saneDescription||""))):void 0,ce=this.matchOnDetail?Object(Mn.o)(Object(Fi.c)(G,Object(Fi.d)(ne.saneDetail||""))):void 0,fe=this.matchOnMeta?Object(Mn.o)(Object(Fi.c)(G,Object(Fi.d)(ne.saneMeta||""))):void 0;if(ie||se||ce||fe?(ne.labelHighlights=ie,ne.descriptionHighlights=se,ne.detailHighlights=ce,ne.hidden=!1):(ne.labelHighlights=void 0,ne.descriptionHighlights=void 0,ne.detailHighlights=void 0,ne.hidden=!ne.item.alwaysShow),ne.separator=void 0,!this.sortByLabel){const G=ne.index&&this.inputElements[ne.index-1];Z=G&&"separator"===G.type?G:Z,Z&&!ne.hidden&&(ne.separator=Z,Z=void 0)}})}else this.elements.forEach(G=>{G.labelHighlights=void 0,G.descriptionHighlights=void 0,G.detailHighlights=void 0,G.hidden=!1;const Z=G.index&&this.inputElements[G.index-1];G.separator=Z&&"separator"===Z.type?Z:void 0});const Z=this.elements.filter(G=>!G.hidden);if(this.sortByLabel&&G){const ne=G.toLowerCase();Z.sort((G,Z)=>function compareEntries(G,Z,ne){const ie=G.labelHighlights||[],se=Z.labelHighlights||[];if(ie.length&&!se.length)return-1;if(!ie.length&&se.length)return 1;if(0===ie.length&&0===se.length)return 0;return compareAnything(G.saneLabel,Z.saneLabel,ne)}(G,Z,ne))}return this.elementsToIndexes=Z.reduce((G,Z,ne)=>(G.set(Z.item,ne),G),new Map),this.list.splice(0,this.list.length,Z),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(Z.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const G=this.list.getFocusedElements(),Z=this.allVisibleChecked(G);for(const ne of G)ne.checked=!Z}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(G){this.container.style.display=G?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Object(Qt.f)(this.elementDisposables),this.disposables=Object(Qt.f)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(G){this._onButtonTriggered.fire(G)}style(G){this.list.style(G)}}quickInputList_decorate([Co.a],quickInputList_QuickInputList.prototype,"onDidChangeFocus",null),quickInputList_decorate([Co.a],quickInputList_QuickInputList.prototype,"onDidChangeSelection",null);class quickInputList_QuickInputAccessibilityProvider{getWidgetAriaLabel(){return Object(dr.a)("quickInput","Quick Input")}getAriaLabel(G){return G.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var To=ne(1355);const Ao=Wt.a;class quickInputBox_QuickInputBox extends Qt.a{constructor(G){super(),this.parent=G,this.onKeyDown=G=>Wt.i(this.inputBox.inputElement,Wt.d.KEY_DOWN,Z=>{G(new tr.a(Z))}),this.onMouseDown=G=>Wt.i(this.inputBox.inputElement,Wt.d.MOUSE_DOWN,Z=>{G(new Bi.a(Z))}),this.onDidChange=G=>this.inputBox.onDidChange(G),this.container=Wt.q(this.parent,Ao(".quick-input-box")),this.inputBox=this._register(new To.b(this.container,void 0))}get value(){return this.inputBox.value}set value(G){this.inputBox.value=G}select(G=null){this.inputBox.select(G)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(G){this.inputBox.setPlaceHolder(G)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(G){this.inputBox.setAriaLabel(G)}get password(){return"password"===this.inputBox.inputElement.type}set password(G){this.inputBox.inputElement.type=G?"password":"text"}setAttribute(G,Z){this.inputBox.inputElement.setAttribute(G,Z)}removeAttribute(G){this.inputBox.inputElement.removeAttribute(G)}showDecoration(G){G===nr.a.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:G===nr.a.Info?1:G===nr.a.Warning?2:3,content:""})}stylesForType(G){return this.inputBox.stylesForType(G===nr.a.Info?1:G===nr.a.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(G){this.inputBox.style(G)}}var Do=ne(1676);ne(7643);const Eo={progressBarBackground:Oi.a.fromHex("#0E70C0")};class progressbar_ProgressBar extends Qt.a{constructor(G,Z){super(),this.options=Z||Object.create(null),Object(on.f)(this.options,Eo,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new wn.e(()=>Object(Wt.W)(this.element),0)),this.create(G)}create(G){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),G.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove("active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(G){return this.element.classList.add("done"),this.element.classList.contains("infinite")?(this.bit.style.opacity="0",G?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",G?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove("discrete","done"),this.element.classList.add("active","infinite"),this}getContainer(){return this.element}style(G){this.progressBarBackground=G.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const G=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=G}}}ne(7645);var jo=ne(209),Po=ne(703);const Io={buttonBackground:Oi.a.fromHex("#0E639C"),buttonHoverBackground:Oi.a.fromHex("#006BB3"),buttonForeground:Oi.a.white};class button_Button extends Qt.a{constructor(G,Z){super(),this._onDidClick=this._register(new At.b),this.options=Z||Object.create(null),Object(on.f)(this.options,Io,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),G.appendChild(this._element),this._register(jo.b.addTarget(this._element)),[Wt.d.CLICK,jo.a.Tap].forEach(G=>{this._register(Object(Wt.i)(this._element,G,G=>{this.enabled?this._onDidClick.fire(G):Wt.c.stop(G)}))}),this._register(Object(Wt.i)(this._element,Wt.d.KEY_DOWN,G=>{const Z=new tr.a(G);let ne=!1;this.enabled&&(Z.equals(3)||Z.equals(10))?(this._onDidClick.fire(G),ne=!0):Z.equals(9)&&(this._element.blur(),ne=!0),ne&&Wt.c.stop(Z,!0)})),this._register(Object(Wt.i)(this._element,Wt.d.MOUSE_OVER,G=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(Object(Wt.i)(this._element,Wt.d.MOUSE_OUT,G=>{this.applyStyles()})),this.focusTracker=this._register(Object(Wt.Y)(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let G;G=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,G&&(this._element.style.backgroundColor=G)}style(G){this.buttonForeground=G.buttonForeground,this.buttonBackground=G.buttonBackground,this.buttonHoverBackground=G.buttonHoverBackground,this.buttonSecondaryForeground=G.buttonSecondaryForeground,this.buttonSecondaryBackground=G.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=G.buttonSecondaryHoverBackground,this.buttonBorder=G.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let G,Z;this.options.secondary?(Z=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",G=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(Z=this.buttonForeground?this.buttonForeground.toString():"",G=this.buttonBackground?this.buttonBackground.toString():"");const ne=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=Z,this._element.style.backgroundColor=G,this._element.style.borderWidth=ne?"1px":"",this._element.style.borderStyle=ne?"solid":"",this._element.style.borderColor=ne}}get element(){return this._element}set label(G){this._element.classList.add("monaco-text-button"),this.options.supportIcons?Object(Wt.R)(this._element,...Object(Po.a)(G)):this._element.textContent=G,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=G)}set enabled(G){G?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}var quickInput_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const No=Wt.a,Ro={iconClass:Object(Nr.e)("quick-input-back",Nr.b.arrowLeft).classNames,tooltip:Object(dr.a)("quickInput.back","Back"),handle:-1};class quickInput_QuickInput extends Qt.a{constructor(G){super(),this.ui=G,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=quickInput_QuickInput.noPromptMessage,this._severity=nr.a.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new At.b),this.onDidHideEmitter=this._register(new At.b),this.onDisposeEmitter=this._register(new At.b),this.visibleDisposables=this._register(new Qt.b),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(G){this._title=G,this.update()}get description(){return this._description}set description(G){this._description=G,this.update()}get step(){return this._steps}set step(G){this._steps=G,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(G){this._totalSteps=G,this.update()}get enabled(){return this._enabled}set enabled(G){this._enabled=G,this.update()}get contextKey(){return this._contextKey}set contextKey(G){this._contextKey=G,this.update()}get busy(){return this._busy}set busy(G){this._busy=G,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(G){const Z=this._ignoreFocusOut!==G&&!On.c;this._ignoreFocusOut=G&&!On.c,Z&&this.update()}get buttons(){return this._buttons}set buttons(G){this._buttons=G,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(G){this._validationMessage=G,this.update()}get severity(){return this._severity}set severity(G){this._severity=G,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(G=>{-1!==this.buttons.indexOf(G)&&this.onDidTriggerButtonEmitter.fire(G)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(G=bo.c.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:G})}update(){if(!this.visible)return;const G=this.getTitle();G&&this.ui.title.textContent!==G?this.ui.title.textContent=G:G||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ;");const Z=this.getDescription();if(this.ui.description1.textContent!==Z&&(this.ui.description1.textContent=Z),this.ui.description2.textContent!==Z&&(this.ui.description2.textContent=Z),this.busy&&!this.busyDelay&&(this.busyDelay=new wn.g,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const G=this.buttons.filter(G=>G===Ro);this.ui.leftActionBar.push(G.map((G,Z)=>{const ne=new Ar.a("id-"+Z,"",G.iconClass||getIconClass(G.iconPath),!0,()=>quickInput_awaiter(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(G)})));return ne.tooltip=G.tooltip||"",ne}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const Z=this.buttons.filter(G=>G!==Ro);this.ui.rightActionBar.push(Z.map((G,Z)=>{const ne=new Ar.a("id-"+Z,"",G.iconClass||getIconClass(G.iconPath),!0,()=>quickInput_awaiter(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(G)})));return ne.tooltip=G.tooltip||"",ne}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const ne=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==ne&&(this._lastValidationMessage=ne,Wt.R(this.ui.message,...Object(Po.a)(ne))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(dr.a)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(G){if(this.ui.inputBox.showDecoration(G),G!==nr.a.Ignore){const Z=this.ui.inputBox.stylesForType(G);this.ui.message.style.color=Z.foreground?""+Z.foreground:"",this.ui.message.style.backgroundColor=Z.background?""+Z.background:"",this.ui.message.style.border=Z.border?"1px solid "+Z.border:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}quickInput_QuickInput.noPromptMessage=Object(dr.a)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class quickInput_QuickPick extends quickInput_QuickInput{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new At.b),this.onWillAcceptEmitter=this._register(new At.b),this.onDidAcceptEmitter=this._register(new At.b),this.onDidCustomEmitter=this._register(new At.b),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?bo.a.NONE:bo.a.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new At.b),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new At.b),this.onDidTriggerItemButtonEmitter=this._register(new At.b),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=G=>G,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(G){this._quickNavigate=G,this.update()}get value(){return this._value}set value(G){this._value!==G&&(this._value=G||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(G){this._ariaLabel=G,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(G){this._placeholder=G,this.update()}get items(){return this._items}set items(G){this._items=G,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(G){this._canSelectMany=G,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(G){this._canAcceptInBackground=G}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(G){this._matchOnDescription=G,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(G){this._matchOnDetail=G,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(G){this._matchOnLabel=G,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(G){this._sortByLabel=G,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(G){this._autoFocusOnList=G,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(G){this._itemActivation=G}get activeItems(){return this._activeItems}set activeItems(G){this._activeItems=G,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(G){this._selectedItems=G,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?bo.b:this.ui.keyMods}set valueSelection(G){this._valueSelection=G,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(G){this._customButton=G,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(G){this._customButtonLabel=G,this.update()}get customHover(){return this._customButtonHover}set customHover(G){this._customButtonHover=G,this.update()}get ok(){return this._ok}set ok(G){this._ok=G,this.update()}get hideInput(){return!!this._hideInput}set hideInput(G){this._hideInput=G,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Lo.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(G=>{if(G===this.value)return;this._value=G;this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(G)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(G=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(G=>{switch(G.keyCode){case 18:this.ui.list.focus(Lo.Next),this.canSelectMany&&this.ui.list.domFocus(),Wt.c.stop(G,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Lo.Previous):this.ui.list.focus(Lo.Last),this.canSelectMany&&this.ui.list.domFocus(),Wt.c.stop(G,!0);break;case 12:this.ui.list.focus(Lo.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Wt.c.stop(G,!0);break;case 11:this.ui.list.focus(Lo.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Wt.c.stop(G,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!G.ctrlKey&&!G.metaKey||G.shiftKey||G.altKey||(this.ui.list.focus(Lo.First),Wt.c.stop(G,!0));break;case 13:!G.ctrlKey&&!G.metaKey||G.shiftKey||G.altKey||(this.ui.list.focus(Lo.Last),Wt.c.stop(G,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(G=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(Un.h)(G,this._activeItems,(G,Z)=>G===Z)||(this._activeItems=G,this.onDidChangeActiveEmitter.fire(G))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:G,event:Z})=>{this.canSelectMany?G.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(Un.h)(G,this._selectedItems,(G,Z)=>G===Z)||(this._selectedItems=G,this.onDidChangeSelectionEmitter.fire(G),G.length&&this.handleAccept(Z instanceof MouseEvent&&1===Z.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(G=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(Un.h)(G,this._selectedItems,(G,Z)=>G===Z)||(this._selectedItems=G,this.onDidChangeSelectionEmitter.fire(G)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(G=>this.onDidTriggerItemButtonEmitter.fire(G))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(G){let Z=!1;this.onWillAcceptEmitter.fire({veto:()=>Z=!0}),Z||this.onDidAcceptEmitter.fire({inBackground:G})}registerQuickNavigation(){return Wt.i(this.ui.container,Wt.d.KEY_UP,G=>{if(this.canSelectMany||!this._quickNavigate)return;const Z=new tr.a(G),ne=Z.keyCode;this._quickNavigate.keybindings.some(G=>{const[ie,se]=G.getParts();return!se&&(ie.shiftKey&&4===ne?!(Z.ctrlKey||Z.altKey||Z.metaKey):!(!ie.altKey||6!==ne)||(!(!ie.ctrlKey||5!==ne)||!(!ie.metaKey||57!==ne)))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const G=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",G&&!this.description);const Z={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!G,progressBar:!G,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(Z),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const ne=this.ariaLabel||this.placeholder||quickInput_QuickPick.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==ne&&(this.ui.inputBox.ariaLabel=ne),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case bo.a.NONE:this._itemActivation=bo.a.FIRST;break;case bo.a.SECOND:this.ui.list.focus(Lo.Second),this._itemActivation=bo.a.FIRST;break;case bo.a.LAST:this.ui.list.focus(Lo.Last),this._itemActivation=bo.a.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),Z.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Lo.First))}}quickInput_QuickPick.DEFAULT_ARIA_LABEL=Object(dr.a)("quickInputBox.ariaLabel","Type to narrow down results.");class quickInput_QuickInputController extends Qt.a{constructor(G){super(),this.options=G,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new At.b),this.onDidCustomEmitter=this._register(new At.b),this.onDidTriggerButtonEmitter=this._register(new At.b),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new At.b),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new At.b),this.onHide=this.onHideEmitter.event,this.idPrefix=G.idPrefix,this.parentElement=G.container,this.styles=G.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const listener=G=>{this.keyMods.ctrlCmd=G.ctrlKey||G.metaKey,this.keyMods.alt=G.altKey};this._register(Wt.i(window,Wt.d.KEY_DOWN,listener,!0)),this._register(Wt.i(window,Wt.d.KEY_UP,listener,!0)),this._register(Wt.i(window,Wt.d.MOUSE_DOWN,listener,!0))}getUI(){if(this.ui)return this.ui;const G=Wt.q(this.parentElement,No(".quick-input-widget.show-file-icons"));G.tabIndex=-1,G.style.display="none";const Z=Wt.w(G),ne=Wt.q(G,No(".quick-input-titlebar")),ie=this._register(new Lr.a(ne));ie.domNode.classList.add("quick-input-left-action-bar");const se=Wt.q(ne,No(".quick-input-title")),ce=this._register(new Lr.a(ne));ce.domNode.classList.add("quick-input-right-action-bar");const fe=Wt.q(G,No(".quick-input-description")),me=Wt.q(G,No(".quick-input-header")),ge=Wt.q(me,No("input.quick-input-check-all"));ge.type="checkbox",this._register(Wt.o(ge,Wt.d.CHANGE,G=>{const Z=ge.checked;at.setAllVisibleChecked(Z)})),this._register(Wt.i(ge,Wt.d.CLICK,G=>{(G.x||G.y)&&ke.setFocus()}));const Ce=Wt.q(me,No(".quick-input-description")),Se=Wt.q(me,No(".quick-input-and-message")),Me=Wt.q(Se,No(".quick-input-filter")),ke=this._register(new quickInputBox_QuickInputBox(Me));ke.setAttribute("aria-describedby",this.idPrefix+"message");const xe=Wt.q(Me,No(".quick-input-visible-count"));xe.setAttribute("aria-live","polite"),xe.setAttribute("aria-atomic","true");const De=new Do.a(xe,{countFormat:Object(dr.a)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),Ie=Wt.q(Me,No(".quick-input-count"));Ie.setAttribute("aria-live","polite");const Re=new Do.a(Ie,{countFormat:Object(dr.a)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),ze=Wt.q(me,No(".quick-input-action")),$e=new button_Button(ze);$e.label=Object(dr.a)("ok","OK"),this._register($e.onDidClick(G=>{this.onDidAcceptEmitter.fire()}));const Je=Wt.q(me,No(".quick-input-action")),it=new button_Button(Je);it.label=Object(dr.a)("custom","Custom"),this._register(it.onDidClick(G=>{this.onDidCustomEmitter.fire()}));const ot=Wt.q(Se,No(`#${this.idPrefix}message.quick-input-message`)),at=this._register(new quickInputList_QuickInputList(G,this.idPrefix+"list",this.options));this._register(at.onChangedAllVisibleChecked(G=>{ge.checked=G})),this._register(at.onChangedVisibleCount(G=>{De.setCount(G)})),this._register(at.onChangedCheckedCount(G=>{Re.setCount(G)})),this._register(at.onLeave(()=>{setTimeout(()=>{ke.setFocus(),this.controller instanceof quickInput_QuickPick&&this.controller.canSelectMany&&at.clearFocus()},0)})),this._register(at.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const st=new progressbar_ProgressBar(G);st.getContainer().classList.add("quick-input-progress");const ct=Wt.Y(G);return this._register(ct),this._register(Wt.i(G,Wt.d.FOCUS,G=>{this.previousFocusElement=G.relatedTarget instanceof HTMLElement?G.relatedTarget:void 0},!0)),this._register(ct.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(bo.c.Blur),this.previousFocusElement=void 0})),this._register(Wt.i(G,Wt.d.FOCUS,G=>{ke.setFocus()})),this._register(Wt.i(G,Wt.d.KEY_DOWN,Z=>{const ne=new tr.a(Z);switch(ne.keyCode){case 3:Wt.c.stop(Z,!0),this.onDidAcceptEmitter.fire();break;case 9:Wt.c.stop(Z,!0),this.hide(bo.c.Gesture);break;case 2:if(!ne.altKey&&!ne.ctrlKey&&!ne.metaKey){const ie=[".action-label.codicon"];G.classList.contains("show-checkboxes")?ie.push("input"):ie.push("input[type=text]"),this.getUI().list.isDisplayed()&&ie.push(".monaco-list");const se=G.querySelectorAll(ie.join(", "));ne.shiftKey&&ne.target===se[0]?(Wt.c.stop(Z,!0),se[se.length-1].focus()):ne.shiftKey||ne.target!==se[se.length-1]||(Wt.c.stop(Z,!0),se[0].focus())}}})),this.ui={container:G,styleSheet:Z,leftActionBar:ie,titleBar:ne,title:se,description1:fe,description2:Ce,rightActionBar:ce,checkAll:ge,filterContainer:Me,inputBox:ke,visibleCountContainer:xe,visibleCount:De,countContainer:Ie,count:Re,okContainer:ze,ok:$e,message:ot,customButtonContainer:Je,customButton:it,list:at,progressBar:st,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:G=>this.show(G),hide:()=>this.hide(),setVisibilities:G=>this.setVisibilities(G),setComboboxAccessibility:G=>this.setComboboxAccessibility(G),setEnabled:G=>this.setEnabled(G),setContextKey:G=>this.options.setContextKey(G)},this.updateStyles(),this.ui}pick(G,Z={},ne=Tt.a.None){return new Promise((ie,se)=>{let resolve=G=>{resolve=ie,Z.onKeyMods&&Z.onKeyMods(ce.keyMods),ie(G)};if(ne.isCancellationRequested)return void resolve(void 0);const ce=this.createQuickPick();let fe;const me=[ce,ce.onDidAccept(()=>{if(ce.canSelectMany)resolve(ce.selectedItems.slice()),ce.hide();else{const G=ce.activeItems[0];G&&(resolve(G),ce.hide())}}),ce.onDidChangeActive(G=>{const ne=G[0];ne&&Z.onDidFocus&&Z.onDidFocus(ne)}),ce.onDidChangeSelection(G=>{if(!ce.canSelectMany){const Z=G[0];Z&&(resolve(Z),ce.hide())}}),ce.onDidTriggerItemButton(G=>Z.onDidTriggerItemButton&&Z.onDidTriggerItemButton(Object.assign(Object.assign({},G),{removeItem:()=>{const Z=ce.items.indexOf(G.item);if(-1!==Z){const G=ce.items.slice(),ne=G.splice(Z,1),ie=ce.activeItems.filter(G=>G!==ne[0]);ce.items=G,ie&&(ce.activeItems=ie)}}}))),ce.onDidChangeValue(G=>{!fe||G||1===ce.activeItems.length&&ce.activeItems[0]===fe||(ce.activeItems=[fe])}),ne.onCancellationRequested(()=>{ce.hide()}),ce.onDidHide(()=>{Object(Qt.f)(me),resolve(void 0)})];ce.title=Z.title,ce.canSelectMany=!!Z.canPickMany,ce.placeholder=Z.placeHolder,ce.ignoreFocusOut=!!Z.ignoreFocusLost,ce.matchOnDescription=!!Z.matchOnDescription,ce.matchOnDetail=!!Z.matchOnDetail,ce.matchOnLabel=void 0===Z.matchOnLabel||Z.matchOnLabel,ce.autoFocusOnList=void 0===Z.autoFocusOnList||Z.autoFocusOnList,ce.quickNavigate=Z.quickNavigate,ce.contextKey=Z.contextKey,ce.busy=!0,Promise.all([G,Z.activeItem]).then(([G,Z])=>{fe=Z,ce.busy=!1,ce.items=G,ce.canSelectMany&&(ce.selectedItems=G.filter(G=>"separator"!==G.type&&G.picked)),fe&&(ce.activeItems=[fe])}),ce.show(),Promise.resolve(G).then(void 0,G=>{se(G),ce.hide()})})}createQuickPick(){const G=this.getUI();return new quickInput_QuickPick(G)}show(G){const Z=this.getUI();this.onShowEmitter.fire();const ne=this.controller;this.controller=G,ne&&ne.didHide(),this.setEnabled(!0),Z.leftActionBar.clear(),Z.title.textContent="",Z.description1.textContent="",Z.description2.textContent="",Z.rightActionBar.clear(),Z.checkAll.checked=!1,Z.inputBox.placeholder="",Z.inputBox.password=!1,Z.inputBox.showDecoration(nr.a.Ignore),Z.visibleCount.setCount(0),Z.count.setCount(0),Wt.R(Z.message),Z.progressBar.stop(),Z.list.setElements([]),Z.list.matchOnDescription=!1,Z.list.matchOnDetail=!1,Z.list.matchOnLabel=!0,Z.list.sortByLabel=!0,Z.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),Z.inputBox.ariaLabel="";const ie=this.options.backKeybindingLabel();Ro.tooltip=ie?Object(dr.a)("quickInput.backWithKeybinding","Back ({0})",ie):Object(dr.a)("quickInput.back","Back"),Z.container.style.display="",this.updateLayout(),Z.inputBox.setFocus()}setVisibilities(G){const Z=this.getUI();Z.title.style.display=G.title?"":"none",Z.description1.style.display=G.description&&(G.inputBox||G.checkAll)?"":"none",Z.description2.style.display=!G.description||G.inputBox||G.checkAll?"none":"",Z.checkAll.style.display=G.checkAll?"":"none",Z.filterContainer.style.display=G.inputBox?"":"none",Z.visibleCountContainer.style.display=G.visibleCount?"":"none",Z.countContainer.style.display=G.count?"":"none",Z.okContainer.style.display=G.ok?"":"none",Z.customButtonContainer.style.display=G.customButton?"":"none",Z.message.style.display=G.message?"":"none",Z.progressBar.getContainer().style.display=G.progressBar?"":"none",Z.list.display(!!G.list),Z.container.classList[G.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(G){if(G!==this.comboboxAccessibility){const Z=this.getUI();this.comboboxAccessibility=G,this.comboboxAccessibility?(Z.inputBox.setAttribute("role","combobox"),Z.inputBox.setAttribute("aria-haspopup","true"),Z.inputBox.setAttribute("aria-autocomplete","list"),Z.inputBox.setAttribute("aria-activedescendant",Z.list.getActiveDescendant()||"")):(Z.inputBox.removeAttribute("role"),Z.inputBox.removeAttribute("aria-haspopup"),Z.inputBox.removeAttribute("aria-autocomplete"),Z.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(G){if(G!==this.enabled){this.enabled=G;for(const Z of this.getUI().leftActionBar.viewItems)Z.getAction().enabled=G;for(const Z of this.getUI().rightActionBar.viewItems)Z.getAction().enabled=G;this.getUI().checkAll.disabled=!G,this.getUI().ok.enabled=G,this.getUI().list.enabled=G}}hide(G){var Z;const ne=this.controller;if(ne){const ie=!(null===(Z=this.ui)||void 0===Z?void 0:Z.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",ie||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),ne.didHide(G)}}layout(G,Z){this.dimension=G,this.titleBarOffset=Z,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";const G=this.ui.container.style,Z=Math.min(.62*this.dimension.width,quickInput_QuickInputController.MAX_WIDTH);G.width=Z+"px",G.marginLeft="-"+Z/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(G){this.styles=G,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:G,quickInputBackground:Z,quickInputForeground:ne,contrastBorder:ie,widgetShadow:se}=this.styles.widget;this.ui.titleBar.style.backgroundColor=G?G.toString():"",this.ui.container.style.backgroundColor=Z?Z.toString():"",this.ui.container.style.color=ne?ne.toString():"",this.ui.container.style.border=ie?"1px solid "+ie:"",this.ui.container.style.boxShadow=se?"0 0 8px 2px "+se:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const ce=[];this.styles.list.pickerGroupBorder&&ce.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&ce.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(ce.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&ce.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&ce.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&ce.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&ce.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&ce.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),ce.push("}"));const fe=ce.join("\n");fe!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=fe)}}}quickInput_QuickInputController.MAX_WIDTH=600;var zo=ne(493),qo=ne(647),Wo=ne(534),quickAccess_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},quickAccess_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Bo=class QuickAccessController extends Qt.a{constructor(G,Z){super(),this.quickInputService=G,this.instantiationService=Z,this.registry=vi.a.as(qo.b.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(G="",Z){this.doShowOrPick(G,!1,Z)}doShowOrPick(G,Z,ne){var ie;const[se,ce]=this.getOrInstantiateProvider(G),fe=this.visibleQuickAccess,me=null==fe?void 0:fe.descriptor;if(fe&&ce&&me===ce)return G===ce.prefix||(null==ne?void 0:ne.preserveValue)||(fe.picker.value=G),void this.adjustValueSelection(fe.picker,ce,ne);if(ce&&!(null==ne?void 0:ne.preserveValue)){let Z=void 0;if(fe&&me&&me!==ce){const G=fe.value.substr(me.prefix.length);G&&(Z=`${ce.prefix}${G}`)}if(!Z){const G=null==se?void 0:se.defaultFilterValue;G===qo.a.LAST?Z=this.lastAcceptedPickerValues.get(ce):"string"==typeof G&&(Z=`${ce.prefix}${G}`)}"string"==typeof Z&&(G=Z)}const ge=new Qt.b,Ce=ge.add(this.quickInputService.createQuickPick());Ce.value=G,this.adjustValueSelection(Ce,ce,ne),Ce.placeholder=null==ce?void 0:ce.placeholder,Ce.quickNavigate=null==ne?void 0:ne.quickNavigateConfiguration,Ce.hideInput=!!Ce.quickNavigate&&!fe,("number"==typeof(null==ne?void 0:ne.itemActivation)||(null==ne?void 0:ne.quickNavigateConfiguration))&&(Ce.itemActivation=null!==(ie=null==ne?void 0:ne.itemActivation)&&void 0!==ie?ie:zo.b.SECOND),Ce.contextKey=null==ce?void 0:ce.contextKey,Ce.filterValue=G=>G.substring(ce?ce.prefix.length:0),(null==ce?void 0:ce.placeholder)&&(Ce.ariaLabel=null==ce?void 0:ce.placeholder);let Se=void 0,Me=void 0;Z&&(Se=new Promise(G=>Me=G),ge.add(Object(Wo.a)(Ce.onWillAccept)(G=>{G.veto(),Ce.hide()}))),ge.add(this.registerPickerListeners(Ce,se,ce,G));const ke=ge.add(new Tt.b);return se&&ge.add(se.provide(Ce,ke.token)),Object(Wo.a)(Ce.onDidHide)(()=>{0===Ce.selectedItems.length&&ke.cancel(),ge.dispose(),null==Me||Me(Ce.selectedItems)}),Ce.show(),Z?Se:void 0}adjustValueSelection(G,Z,ne){var ie;let se;se=(null==ne?void 0:ne.preserveValue)?[G.value.length,G.value.length]:[null!==(ie=null==Z?void 0:Z.prefix.length)&&void 0!==ie?ie:0,G.value.length],G.valueSelection=se}registerPickerListeners(G,Z,ne,ie){const se=new Qt.b,ce=this.visibleQuickAccess={picker:G,descriptor:ne,value:ie};return se.add(Object(Qt.i)(()=>{ce===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),se.add(G.onDidChangeValue(G=>{const[ne]=this.getOrInstantiateProvider(G);ne!==Z?this.show(G,{preserveValue:!0}):ce.value=G})),ne&&se.add(G.onDidAccept(()=>{this.lastAcceptedPickerValues.set(ne,G.value)})),se}getOrInstantiateProvider(G){const Z=this.registry.getQuickAccessProvider(G);if(!Z)return[void 0,void 0];let ne=this.mapProviderToDescriptor.get(Z);return ne||(ne=this.instantiationService.createInstance(Z.ctor),this.mapProviderToDescriptor.set(Z,ne)),[ne,Z]}};Bo=quickAccess_decorate([quickAccess_param(0,zo.a),quickAccess_param(1,Vr.a)],Bo);var quickInput_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},quickInput_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Fo=class QuickInputService extends Ir.c{constructor(G,Z,ne,ie,se){super(ne),this.instantiationService=G,this.contextKeyService=Z,this.accessibilityService=ie,this.layoutService=se,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Bo))),this._quickAccess}createController(G=this.layoutService,Z){var ne,ie;const se={idPrefix:"quickInput_",container:G.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:G=>this.setContextKey(G),returnFocus:()=>G.focus(),createList:(G,Z,ne,ie,se)=>this.instantiationService.createInstance(ro.d,G,Z,ne,ie,se),styles:this.computeStyles()},ce=this._register(new quickInput_QuickInputController(Object.assign(Object.assign({},se),Z)));return ce.layout(G.dimension,null!==(ie=null===(ne=G.offset)||void 0===ne?void 0:ne.top)&&void 0!==ie?ie:0),this._register(G.onDidLayout(Z=>{var ne,ie;return ce.layout(Z,null!==(ie=null===(ne=G.offset)||void 0===ne?void 0:ne.top)&&void 0!==ie?ie:0)})),this._register(ce.onShow(()=>this.resetContextKeys())),this._register(ce.onHide(()=>this.resetContextKeys())),ce}setContextKey(G){let Z;G&&(Z=this.contexts.get(G),Z||(Z=new jr.c(G,!1).bindTo(this.contextKeyService),this.contexts.set(G,Z))),Z&&Z.get()||(this.resetContextKeys(),Z&&Z.set(!0))}resetContextKeys(){this.contexts.forEach(G=>{G.get()&&G.reset()})}pick(G,Z={},ne=Tt.a.None){return this.controller.pick(G,Z,ne)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(Xi.d)(this.theme,{quickInputBackground:Pr.qc,quickInputForeground:Pr.rc,quickInputTitleBackground:Pr.vc,contrastBorder:Pr.h,widgetShadow:Pr.Mc})),inputBox:Object(Xi.d)(this.theme,{inputForeground:Pr.lb,inputBackground:Pr.jb,inputBorder:Pr.kb,inputValidationInfoBackground:Pr.pb,inputValidationInfoForeground:Pr.rb,inputValidationInfoBorder:Pr.qb,inputValidationWarningBackground:Pr.sb,inputValidationWarningForeground:Pr.ub,inputValidationWarningBorder:Pr.tb,inputValidationErrorBackground:Pr.mb,inputValidationErrorForeground:Pr.ob,inputValidationErrorBorder:Pr.nb}),countBadge:Object(Xi.d)(this.theme,{badgeBackground:Pr.c,badgeForeground:Pr.d,badgeBorder:Pr.h}),button:Object(Xi.d)(this.theme,{buttonForeground:Pr.f,buttonBackground:Pr.e,buttonHoverBackground:Pr.g,buttonBorder:Pr.h}),progressBar:Object(Xi.d)(this.theme,{progressBarBackground:Pr.pc}),keybindingLabel:Object(Xi.d)(this.theme,{keybindingLabelBackground:Pr.vb,keybindingLabelForeground:Pr.yb,keybindingLabelBorder:Pr.wb,keybindingLabelBottomBorder:Pr.xb,keybindingLabelShadow:Pr.Mc}),list:Object(Xi.d)(this.theme,{listBackground:Pr.qc,listInactiveFocusForeground:Pr.tc,listInactiveSelectionIconForeground:Pr.uc,listInactiveFocusBackground:Pr.sc,listFocusOutline:Pr.b,listInactiveFocusOutline:Pr.b,pickerGroupBorder:Pr.kc,pickerGroupForeground:Pr.lc})}}};Fo=quickInput_decorate([quickInput_param(0,Vr.a),quickInput_param(1,jr.b),quickInput_param(2,Ir.b),quickInput_param(3,ci.b),quickInput_param(4,Ji)],Fo);var standaloneQuickInputServiceImpl_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},standaloneQuickInputServiceImpl_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ho=class EditorScopedQuickInputServiceImpl extends Fo{constructor(G,Z,ne,ie,se,ce){super(Z,ne,ie,se,ce),this.host=void 0;const fe=QuickInputEditorContribution.get(G);this.host={_serviceBrand:void 0,get container(){return fe.widget.getDomNode()},get dimension(){return G.getLayoutInfo()},get onDidLayout(){return G.onDidLayoutChange},focus:()=>G.focus()}}createController(){return super.createController(this.host)}};Ho=standaloneQuickInputServiceImpl_decorate([standaloneQuickInputServiceImpl_param(1,Vr.a),standaloneQuickInputServiceImpl_param(2,jr.b),standaloneQuickInputServiceImpl_param(3,Ir.b),standaloneQuickInputServiceImpl_param(4,ci.b),standaloneQuickInputServiceImpl_param(5,Ji)],Ho);let $o=class StandaloneQuickInputServiceImpl{constructor(G,Z){this.instantiationService=G,this.codeEditorService=Z,this.mapEditorToService=new Map}get activeService(){const G=this.codeEditorService.getFocusedCodeEditor();if(!G)throw new Error("Quick input service needs a focused editor to work.");let Z=this.mapEditorToService.get(G);if(!Z){const ne=Z=this.instantiationService.createInstance(Ho,G);this.mapEditorToService.set(G,Z),Object(Wo.a)(G.onDidDispose)(()=>{ne.dispose(),this.mapEditorToService.delete(G)})}return Z}get quickAccess(){return this.activeService.quickAccess}pick(G,Z={},ne=Tt.a.None){return this.activeService.pick(G,Z,ne)}createQuickPick(){return this.activeService.createQuickPick()}};$o=standaloneQuickInputServiceImpl_decorate([standaloneQuickInputServiceImpl_param(0,Vr.a),standaloneQuickInputServiceImpl_param(1,qt.a)],$o);class QuickInputEditorContribution{constructor(G){this.editor=G,this.widget=new QuickInputEditorWidget(this.editor)}static get(G){return G.getContribution(QuickInputEditorContribution.ID)}dispose(){this.widget.dispose()}}QuickInputEditorContribution.ID="editor.controller.quickInput";class QuickInputEditorWidget{constructor(G){this.codeEditor=G,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return QuickInputEditorWidget.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}var Vo;QuickInputEditorWidget.ID="editor.contrib.quickInputWidget",Object(Dr.l)(QuickInputEditorContribution.ID,QuickInputEditorContribution),function(G){const Z=new Yr.a;class LazyStaticService{constructor(G,Z){this._serviceId=G,this._factory=Z,this._value=null}get id(){return this._serviceId}get(G){if(!this._value){if(G&&(this._value=G[this._serviceId.toString()]),this._value||(this._value=this._factory(G)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");Z.set(this._serviceId,this._value)}return this._value}}G.LazyStaticService=LazyStaticService;let ne=[];function define(G,Z){let ie=new LazyStaticService(G,Z);return ne.push(ie),ie}G.init=function init(G){let Z=new Yr.a;for(const[G,ne]of Object(uo.a)())Z.set(G,ne);for(let ne in G)G.hasOwnProperty(ne)&&Z.set(Object(Vr.c)(ne),G[ne]);ne.forEach(ne=>Z.set(ne.id,ne.get(G)));let ie=new instantiationService_InstantiationService(Z,!0);return Z.set(Vr.a,ie),[Z,ie]},G.instantiationService=define(Vr.a,()=>new instantiationService_InstantiationService(Z,!0));const ie=new simpleServices_SimpleConfigurationService;G.configurationService=define(lr.a,()=>ie),G.resourceConfigurationService=define(Vn.a,()=>new simpleServices_SimpleResourceConfigurationService(ie)),G.resourcePropertiesService=define(Vn.b,()=>new vr(ie)),G.contextService=define(_r.a,()=>new simpleServices_SimpleWorkspaceContextService),G.labelService=define(no.a,()=>new SimpleUriLabelService),G.telemetryService=define(Gi.a,()=>new StandaloneTelemetryService),G.dialogService=define(eo.a,()=>new SimpleDialogService),G.notificationService=define(mr.a,()=>new simpleServices_SimpleNotificationService),G.markerService=define(io.b,()=>new markerService_MarkerService),G.modeService=define(yn.a,G=>new modeServiceImpl_ModeServiceImpl),G.standaloneThemeService=define(ai.a,()=>new standaloneThemeServiceImpl_StandaloneThemeServiceImpl),G.logService=define(Kn.b,()=>new Kn.d(new Kn.a)),G.undoRedoService=define(ho.a,Z=>new _o(G.dialogService.get(Z),G.notificationService.get(Z))),G.modelService=define($n.a,Z=>new Ci.a(G.configurationService.get(Z),G.resourcePropertiesService.get(Z),G.standaloneThemeService.get(Z),G.logService.get(Z),G.undoRedoService.get(Z))),G.markerDecorationsService=define(lo.a,Z=>new co(G.modelService.get(Z),G.markerService.get(Z))),G.contextKeyService=define(jr.b,Z=>new ji(G.configurationService.get(Z))),G.codeEditorService=define(qt.a,Z=>new pi(null,G.contextKeyService.get(Z),G.standaloneThemeService.get(Z))),G.editorProgressService=define(Gr.a,()=>new SimpleEditorProgressService),G.storageService=define(oo.a,()=>new oo.b),G.editorWorkerService=define(bn.a,Z=>new Xn(G.modelService.get(Z),G.resourceConfigurationService.get(Z),G.logService.get(Z)))}(Vo||(Vo={}));class standaloneServices_DynamicStandaloneServices extends Qt.a{constructor(G,Z){super();const[ne,ie]=Vo.init(Z);this._serviceCollection=ne,this._instantiationService=ie;const se=this.get(lr.a),ce=this.get(mr.a),fe=this.get(Gi.a),me=this.get(Ir.b),ge=this.get(Kn.b),Ce=this.get(jr.b);let ensure=(G,ne)=>{let ie=null;return Z&&(ie=Z[G.toString()]),ie||(ie=ne()),this._serviceCollection.set(G,ie),ie};ensure(ci.b,()=>new po(Ce,se)),ensure(ro.a,()=>new ro.b(me));let Se=ensure(Yt.b,()=>new simpleServices_StandaloneCommandService(this._instantiationService)),Me=ensure(li.a,()=>this._register(new simpleServices_StandaloneKeybindingService(Ce,Se,fe,ce,ge,G))),ke=ensure(Ji,()=>new simpleServices_SimpleLayoutService(Vo.codeEditorService.get(qt.a),G));ensure(zo.a,()=>new $o(ie,Vo.codeEditorService.get(qt.a)));let xe=ensure(Ur.b,()=>this._register(new Qi(ke)));ensure(Xr.a,()=>new clipboardService_BrowserClipboardService),ensure(Ur.a,()=>{const G=new Zi(fe,ce,xe,Me,me);return G.configure({blockMouse:!1}),this._register(G)}),ensure(si.a,()=>new ao(Se)),ensure(ir.a,()=>new simpleServices_SimpleBulkEditService(Vo.modelService.get($n.a)))}get(G){let Z=this._serviceCollection.get(G);if(!Z)throw new Error("Missing service "+G);return Z}set(G,Z){this._serviceCollection.set(G,Z)}has(G){return this._serviceCollection.has(G)}}function withAllStandaloneServices(G,Z,ne){let ie=new standaloneServices_DynamicStandaloneServices(G,Z),se=null;ie.has(vn.a)||(se=new yr(Vo.modelService.get()),ie.set(vn.a,se)),ie.has(Ut.a)||ie.set(Ut.a,new Zt(ie.get(qt.a),ie.get(Yt.b)));let ce=ne(ie);return se&&se.setEditor(ce),ce}function standaloneEditor_create(G,Z,ne){return withAllStandaloneServices(G,ne||{},ne=>new gi(G,Z,ne,ne.get(Vr.a),ne.get(qt.a),ne.get(Yt.b),ne.get(jr.b),ne.get(li.a),ne.get(Ur.b),ne.get(ai.a),ne.get(mr.a),ne.get(lr.a),ne.get(ci.b),ne.get($n.a),ne.get(yn.a)))}function onDidCreateEditor(G){return Vo.codeEditorService.get().onCodeEditorAdd(Z=>{G(Z)})}function createDiffEditor(G,Z,ne){return withAllStandaloneServices(G,ne||{},ne=>new bi(G,Z,ne,ne.get(Vr.a),ne.get(jr.b),ne.get(li.a),ne.get(Ur.b),ne.get(bn.a),ne.get(qt.a),ne.get(ai.a),ne.get(mr.a),ne.get(lr.a),ne.get(Ur.a),ne.get(Gr.a),ne.get(Xr.a)))}function createDiffNavigator(G,Z){return new diffNavigator_DiffNavigator(G,Z)}function createModel(G,Z,ne){return createTextModel(Vo.modelService.get(),Vo.modeService.get(),G,Z,ne)}function setModelLanguage(G,Z){Vo.modelService.get().setMode(G,Vo.modeService.get().create(Z))}function setModelMarkers(G,Z,ne){G&&Vo.markerService.get().changeOne(Z,G.uri,ne)}function getModelMarkers(G){return Vo.markerService.get().read(G)}function onDidChangeMarkers(G){return Vo.markerService.get().onMarkerChanged(G)}function getModel(G){return Vo.modelService.get().getModel(G)}function getModels(){return Vo.modelService.get().getModels()}function onDidCreateModel(G){return Vo.modelService.get().onModelAdded(G)}function onWillDisposeModel(G){return Vo.modelService.get().onModelRemoved(G)}function onDidChangeModelLanguage(G){return Vo.modelService.get().onModelModeChanged(Z=>{G({model:Z.model,oldLanguage:Z.oldModeId})})}function standaloneEditor_createWebWorker(G){return function createWebWorker(G,Z){return new webWorker_MonacoWebWorkerImpl(G,Z)}(Vo.modelService.get(),G)}function colorizeElement(G,Z){const ne=Vo.standaloneThemeService.get();return ne.registerEditorContainer(G),colorizer_Colorizer.colorizeElement(ne,Vo.modeService.get(),G,Z)}function colorize(G,Z,ne){return Vo.standaloneThemeService.get().registerEditorContainer(document.body),colorizer_Colorizer.colorize(Vo.modeService.get(),G,Z,ne)}function colorizeModelLine(G,Z,ne=4){return Vo.standaloneThemeService.get().registerEditorContainer(document.body),colorizer_Colorizer.colorizeModelLine(G,Z,ne)}function tokenize(G,Z){Vo.modeService.get().triggerMode(Z);let ne=function getSafeTokenizationSupport(G){let Z=_n.F.get(G);return Z||{getInitialState:()=>gn.c,tokenize:(Z,ne,ie,se)=>Object(gn.d)(G,Z,ie,se)}}(Z),ie=Object(jn.R)(G),se=[],ce=ne.getInitialState();for(let G=0,Z=ie.length;G=100){ie-=100;let G=ne.split(".");if(G.unshift(ne),ie0&&"^"===ne[0],this.name=this.name+": "+ne,this.regex=compileRegExp(G,"^(?:"+(this.matchOnlyAtLineStart?ne.substr(1):ne)+")")}setAction(G,Z){this.action=function compileAction(G,Z,ne){if(ne){if("string"==typeof ne)return ne;if(ne.token||""===ne.token){if("string"!=typeof ne.token)throw createError(G,"a 'token' attribute must be of type string, in rule: "+Z);{let ie={token:ne.token};if(ne.token.indexOf("$")>=0&&(ie.tokenSubst=!0),"string"==typeof ne.bracket)if("@open"===ne.bracket)ie.bracket=1;else{if("@close"!==ne.bracket)throw createError(G,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+Z);ie.bracket=-1}if(ne.next){if("string"!=typeof ne.next)throw createError(G,"the next state must be a string value in rule: "+Z);{let se=ne.next;if(!/^(@pop|@push|@popall)$/.test(se)&&("@"===se[0]&&(se=se.substr(1)),se.indexOf("$")<0&&!function stateExists(G,Z){let ne=Z;for(;ne&&ne.length>0;){if(G.stateNames[ne])return!0;const Z=ne.lastIndexOf(".");ne=Z<0?null:ne.substr(0,Z)}return!1}(G,substituteMatches(G,se,"",[],""))))throw createError(G,"the next state '"+ne.next+"' is not defined in rule: "+Z);ie.next=se}}return"number"==typeof ne.goBack&&(ie.goBack=ne.goBack),"string"==typeof ne.switchTo&&(ie.switchTo=ne.switchTo),"string"==typeof ne.log&&(ie.log=ne.log),"string"==typeof ne.nextEmbedded&&(ie.nextEmbedded=ne.nextEmbedded,G.usesEmbedded=!0),ie}}if(Array.isArray(ne)){let ie=[];for(let se=0,ce=ne.length;se{ie.getId()===G&&(ne.dispose(),Z())});return ne}function setLanguageConfiguration(G,Z){let ne=Vo.modeService.get().getLanguageIdentifier(G);if(!ne)throw new Error("Cannot set configuration for unknown language "+G);return Dn.a.register(ne,Z,100)}class standaloneLanguages_EncodedTokenizationSupport2Adapter{constructor(G,Z){this._languageIdentifier=G,this._actual=Z}getInitialState(){return this._actual.getInitialState()}tokenize(G,Z,ne,ie){if("function"==typeof this._actual.tokenize)return standaloneLanguages_TokenizationSupport2Adapter.adaptTokenize(this._languageIdentifier.language,this._actual,G,ne,ie);throw new Error("Not supported!")}tokenize2(G,Z,ne){let ie=this._actual.tokenizeEncoded(G,ne);return new Rt.c(ie.tokens,ie.endState)}}class standaloneLanguages_TokenizationSupport2Adapter{constructor(G,Z,ne){this._standaloneThemeService=G,this._languageIdentifier=Z,this._actual=ne}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(G,Z,ne){let ie=[],se=0;for(let ce=0,fe=G.length;ce0&&se[ce-1]===Ce)continue;let Se=ge.startIndex;0===me?Se=0:Sefunction isEncodedTokensProvider(G){return"tokenizeEncoded"in G}(G)?new standaloneLanguages_EncodedTokenizationSupport2Adapter(ne,G):new standaloneLanguages_TokenizationSupport2Adapter(Vo.standaloneThemeService.get(),ne,G);return isThenable(Z)?_n.F.registerPromise(G,Z.then(G=>create(G))):_n.F.register(G,create(Z))}function setMonarchTokensProvider(G,Z){const create=Z=>function createTokenizationSupport(G,Z,ne,ie){return new monarchLexer_MonarchTokenizer(G,Z,ne,ie)}(Vo.modeService.get(),Vo.standaloneThemeService.get(),G,function compile(G,Z){if(!Z||"object"!=typeof Z)throw new Error("Monarch: expecting a language definition object");let ne={};ne.languageId=G,ne.includeLF=bool(Z.includeLF,!1),ne.noThrow=!1,ne.maxStack=100,ne.start="string"==typeof Z.start?Z.start:null,ne.ignoreCase=bool(Z.ignoreCase,!1),ne.unicode=bool(Z.unicode,!1),ne.tokenPostfix=string(Z.tokenPostfix,"."+ne.languageId),ne.defaultToken=string(Z.defaultToken,"source"),ne.usesEmbedded=!1;let ie=Z;function addRules(G,se,ce){for(const fe of ce){let ce=fe.include;if(ce){if("string"!=typeof ce)throw createError(ne,"an 'include' attribute must be a string at: "+G);if("@"===ce[0]&&(ce=ce.substr(1)),!Z.tokenizer[ce])throw createError(ne,"include target '"+ce+"' is not defined at: "+G);addRules(G+"."+ce,se,Z.tokenizer[ce])}else{const Z=new monarchCompile_Rule(G);if(Array.isArray(fe)&&fe.length>=1&&fe.length<=3)if(Z.setRegex(ie,fe[0]),fe.length>=3)if("string"==typeof fe[1])Z.setAction(ie,{token:fe[1],next:fe[2]});else{if("object"!=typeof fe[1])throw createError(ne,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+G);{const G=fe[1];G.next=fe[2],Z.setAction(ie,G)}}else Z.setAction(ie,fe[1]);else{if(!fe.regex)throw createError(ne,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+G);fe.name&&"string"==typeof fe.name&&(Z.name=fe.name),fe.matchOnlyAtStart&&(Z.matchOnlyAtLineStart=bool(fe.matchOnlyAtLineStart,!1)),Z.setRegex(ie,fe.regex),Z.setAction(ie,fe.action)}se.push(Z)}}}if(ie.languageId=G,ie.includeLF=ne.includeLF,ie.ignoreCase=ne.ignoreCase,ie.unicode=ne.unicode,ie.noThrow=ne.noThrow,ie.usesEmbedded=ne.usesEmbedded,ie.stateNames=Z.tokenizer,ie.defaultToken=ne.defaultToken,!Z.tokenizer||"object"!=typeof Z.tokenizer)throw createError(ne,"a language definition must define the 'tokenizer' attribute as an object");ne.tokenizer=[];for(let G in Z.tokenizer)if(Z.tokenizer.hasOwnProperty(G)){ne.start||(ne.start=G);const ie=Z.tokenizer[G];ne.tokenizer[G]=new Array,addRules("tokenizer."+G,ne.tokenizer[G],ie)}if(ne.usesEmbedded=ie.usesEmbedded,Z.brackets){if(!Array.isArray(Z.brackets))throw createError(ne,"the 'brackets' attribute must be defined as an array")}else Z.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let se=[];for(let G of Z.brackets){let Z=G;if(Z&&Array.isArray(Z)&&3===Z.length&&(Z={token:Z[2],open:Z[0],close:Z[1]}),Z.open===Z.close)throw createError(ne,"open and close brackets in a 'brackets' attribute must be different: "+Z.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof Z.open||"string"!=typeof Z.token||"string"!=typeof Z.close)throw createError(ne,"every element in the 'brackets' array must be a '{open,close,token}' object or array");se.push({token:Z.token+ne.tokenPostfix,open:fixCase(ne,Z.open),close:fixCase(ne,Z.close)})}return ne.brackets=se,ne.noThrow=!0,ne}(G,Z));return isThenable(Z)?_n.F.registerPromise(G,Z.then(G=>create(G))):_n.F.register(G,create(Z))}function registerReferenceProvider(G,Z){return _n.y.register(G,Z)}function registerRenameProvider(G,Z){return _n.z.register(G,Z)}function registerSignatureHelpProvider(G,Z){return _n.B.register(G,Z)}function registerHoverProvider(G,Z){return _n.p.register(G,{provideHover:(G,ne,ie)=>{let se=G.getWordAtPosition(ne);return Promise.resolve(Z.provideHover(G,ne,ie)).then(G=>{if(G)return!G.range&&se&&(G.range=new It.a(ne.lineNumber,se.startColumn,ne.lineNumber,se.endColumn)),G.range||(G.range=new It.a(ne.lineNumber,ne.column,ne.lineNumber,ne.column)),G})}})}function registerDocumentSymbolProvider(G,Z){return _n.m.register(G,Z)}function registerDocumentHighlightProvider(G,Z){return _n.i.register(G,Z)}function registerLinkedEditingRangeProvider(G,Z){return _n.w.register(G,Z)}function registerDefinitionProvider(G,Z){return _n.f.register(G,Z)}function registerImplementationProvider(G,Z){return _n.q.register(G,Z)}function registerTypeDefinitionProvider(G,Z){return _n.G.register(G,Z)}function registerCodeLensProvider(G,Z){return _n.b.register(G,Z)}function registerCodeActionProvider(G,Z){return _n.a.register(G,{provideCodeActions:(G,ne,ie,se)=>{let ce=Vo.markerService.get().read({resource:G.uri}).filter(G=>It.a.areIntersectingOrTouching(G,ne));return Z.provideCodeActions(G,ne,{markers:ce,only:ie.only},se)}})}function registerDocumentFormattingEditProvider(G,Z){return _n.g.register(G,Z)}function registerDocumentRangeFormattingEditProvider(G,Z){return _n.j.register(G,Z)}function registerOnTypeFormattingEditProvider(G,Z){return _n.x.register(G,Z)}function registerLinkProvider(G,Z){return _n.v.register(G,Z)}function registerCompletionItemProvider(G,Z){return _n.d.register(G,Z)}function registerColorProvider(G,Z){return _n.c.register(G,Z)}function registerFoldingRangeProvider(G,Z){return _n.o.register(G,Z)}function registerDeclarationProvider(G,Z){return _n.e.register(G,Z)}function registerSelectionRangeProvider(G,Z){return _n.A.register(G,Z)}function registerDocumentSemanticTokensProvider(G,Z){return _n.l.register(G,Z)}function registerDocumentRangeSemanticTokensProvider(G,Z){return _n.k.register(G,Z)}function registerInlineCompletionsProvider(G,Z){return _n.t.register(G,Z)}function registerInlayHintsProvider(G,Z){return _n.r.register(G,Z)}var Yo,Uo=ne(1007);Lt.g.wrappingIndent.defaultValue=0,Lt.g.glyphMargin.defaultValue=!1,Lt.g.autoIndent.defaultValue=3,Lt.g.overviewRulerLanes.defaultValue=2,Uo.a.setFormatterSelector((G,Z,ne)=>Promise.resolve(G[0]));const Ko=createMonacoBaseAPI();Ko.editor=function createMonacoEditorAPI(){return{create:standaloneEditor_create,onDidCreateEditor:onDidCreateEditor,createDiffEditor:createDiffEditor,createDiffNavigator:createDiffNavigator,createModel:createModel,setModelLanguage:setModelLanguage,setModelMarkers:setModelMarkers,getModelMarkers:getModelMarkers,onDidChangeMarkers:onDidChangeMarkers,getModels:getModels,getModel:getModel,onDidCreateModel:onDidCreateModel,onWillDisposeModel:onWillDisposeModel,onDidChangeModelLanguage:onDidChangeModelLanguage,createWebWorker:standaloneEditor_createWebWorker,colorizeElement:colorizeElement,colorize:colorize,colorizeModelLine:colorizeModelLine,tokenize:tokenize,defineTheme:defineTheme,setTheme:setTheme,remeasureFonts:remeasureFonts,registerCommand:registerCommand,AccessibilitySupport:ie,ContentWidgetPositionPreference:ge,CursorChangeReason:Ce,DefaultEndOfLine:Se,EditorAutoIndentStrategy:ke,EditorOption:xe,EndOfLinePreference:De,EndOfLineSequence:Ie,MinimapPosition:at,MouseTargetType:st,OverlayWidgetPositionPreference:ct,OverviewRulerLane:ut,RenderLineNumbersType:dt,RenderMinimap:ht,ScrollbarVisibility:_t,ScrollType:ft,TextEditorCursorBlinkingStyle:St,TextEditorCursorStyle:Mt,TrackedRangeStickiness:kt,WrappingIndent:xt,ConfigurationChangedEvent:Lt.b,BareFontInfo:cn.a,FontInfo:cn.b,TextModelResolvedOptions:mn.e,FindMatch:mn.b,EditorType:dn.a,EditorOptions:Lt.g}}(),Ko.languages=function createMonacoLanguagesAPI(){return{register:register,getLanguages:getLanguages,onLanguage:onLanguage,getEncodedLanguageId:getEncodedLanguageId,setLanguageConfiguration:setLanguageConfiguration,setColorMap:setColorMap,setTokensProvider:setTokensProvider,setMonarchTokensProvider:setMonarchTokensProvider,registerReferenceProvider:registerReferenceProvider,registerRenameProvider:registerRenameProvider,registerCompletionItemProvider:registerCompletionItemProvider,registerSignatureHelpProvider:registerSignatureHelpProvider,registerHoverProvider:registerHoverProvider,registerDocumentSymbolProvider:registerDocumentSymbolProvider,registerDocumentHighlightProvider:registerDocumentHighlightProvider,registerLinkedEditingRangeProvider:registerLinkedEditingRangeProvider,registerDefinitionProvider:registerDefinitionProvider,registerImplementationProvider:registerImplementationProvider,registerTypeDefinitionProvider:registerTypeDefinitionProvider,registerCodeLensProvider:registerCodeLensProvider,registerCodeActionProvider:registerCodeActionProvider,registerDocumentFormattingEditProvider:registerDocumentFormattingEditProvider,registerDocumentRangeFormattingEditProvider:registerDocumentRangeFormattingEditProvider,registerOnTypeFormattingEditProvider:registerOnTypeFormattingEditProvider,registerLinkProvider:registerLinkProvider,registerColorProvider:registerColorProvider,registerFoldingRangeProvider:registerFoldingRangeProvider,registerDeclarationProvider:registerDeclarationProvider,registerSelectionRangeProvider:registerSelectionRangeProvider,registerDocumentSemanticTokensProvider:registerDocumentSemanticTokensProvider,registerDocumentRangeSemanticTokensProvider:registerDocumentRangeSemanticTokensProvider,registerInlineCompletionsProvider:registerInlineCompletionsProvider,registerInlayHintsProvider:registerInlayHintsProvider,DocumentHighlightKind:Me,CompletionItemKind:ce,CompletionItemTag:fe,CompletionItemInsertTextRule:se,SymbolKind:wt,SymbolTag:Ct,IndentAction:Re,CompletionTriggerKind:me,SignatureHelpTriggerKind:vt,InlayHintKind:ze,InlineCompletionTriggerKind:$e,FoldingRangeKind:_n.n}}();const Xo=Ko.CancellationTokenSource,Go=Ko.Emitter,Zo=Ko.KeyCode,Jo=Ko.KeyMod,Qo=Ko.Position,ea=Ko.Range,na=Ko.Selection,aa=Ko.SelectionDirection,la=Ko.MarkerSeverity,ua=Ko.MarkerTag,pa=Ko.Uri,ma=Ko.Token,_a=Ko.editor,ka=Ko.languages;((null===(Yo=On.b.MonacoEnvironment)||void 0===Yo?void 0:Yo.globalAPI)||"function"==typeof define&&ne(7647))&&(self.monaco=Ko),void 0!==self.require&&"function"==typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},8401:function(G,Z,ne){"use strict";function isContainer(G){switch(G._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}ne.r(Z),ne.d(Z,"Node",(function(){return ce})),ne.d(Z,"Parser",(function(){return Ut})),ne.d(Z,"Renderer",(function(){return Kt})),ne.d(Z,"HtmlRenderer",(function(){return Jt})),ne.d(Z,"XmlRenderer",(function(){return on}));var resumeAt=function(G,Z){this.current=G,this.entering=!0===Z},node_next=function(){var G=this.current,Z=this.entering;if(null===G)return null;var ne=isContainer(G);return Z&&ne?G._firstChild?(this.current=G._firstChild,this.entering=!0):this.entering=!1:G===this.root?this.current=null:null===G._next?(this.current=G._parent,this.entering=!1):(this.current=G._next,this.entering=!0),{entering:Z,node:G}},NodeWalker=function(G){return{current:G,root:G,entering:!0,next:node_next,resumeAt:resumeAt}},Node=function(G,Z){this._type=G,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=Z,this._lastLineBlank=!1,this._lastLineChecked=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},ie=Node.prototype;Object.defineProperty(ie,"isContainer",{get:function(){return isContainer(this)}}),Object.defineProperty(ie,"type",{get:function(){return this._type}}),Object.defineProperty(ie,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(ie,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(ie,"next",{get:function(){return this._next}}),Object.defineProperty(ie,"prev",{get:function(){return this._prev}}),Object.defineProperty(ie,"parent",{get:function(){return this._parent}}),Object.defineProperty(ie,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(ie,"literal",{get:function(){return this._literal},set:function(G){this._literal=G}}),Object.defineProperty(ie,"destination",{get:function(){return this._destination},set:function(G){this._destination=G}}),Object.defineProperty(ie,"title",{get:function(){return this._title},set:function(G){this._title=G}}),Object.defineProperty(ie,"info",{get:function(){return this._info},set:function(G){this._info=G}}),Object.defineProperty(ie,"level",{get:function(){return this._level},set:function(G){this._level=G}}),Object.defineProperty(ie,"listType",{get:function(){return this._listData.type},set:function(G){this._listData.type=G}}),Object.defineProperty(ie,"listTight",{get:function(){return this._listData.tight},set:function(G){this._listData.tight=G}}),Object.defineProperty(ie,"listStart",{get:function(){return this._listData.start},set:function(G){this._listData.start=G}}),Object.defineProperty(ie,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(G){this._listData.delimiter=G}}),Object.defineProperty(ie,"onEnter",{get:function(){return this._onEnter},set:function(G){this._onEnter=G}}),Object.defineProperty(ie,"onExit",{get:function(){return this._onExit},set:function(G){this._onExit=G}}),Node.prototype.appendChild=function(G){G.unlink(),G._parent=this,this._lastChild?(this._lastChild._next=G,G._prev=this._lastChild,this._lastChild=G):(this._firstChild=G,this._lastChild=G)},Node.prototype.prependChild=function(G){G.unlink(),G._parent=this,this._firstChild?(this._firstChild._prev=G,G._next=this._firstChild,this._firstChild=G):(this._firstChild=G,this._lastChild=G)},Node.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},Node.prototype.insertAfter=function(G){G.unlink(),G._next=this._next,G._next&&(G._next._prev=G),G._prev=this,this._next=G,G._parent=this._parent,G._next||(G._parent._lastChild=G)},Node.prototype.insertBefore=function(G){G.unlink(),G._prev=this._prev,G._prev&&(G._prev._next=G),G._next=this,this._prev=G,G._parent=this._parent,G._prev||(G._parent._firstChild=G)},Node.prototype.walker=function(){return new NodeWalker(this)};var se,ce=Node,fe=ne(1184),me=ne.n(fe),ge=ne(699),Ce="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",Se="<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",Me="]",ke=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?][\\s\\S]*?[?][>]|]*>|)"),xe=/[\\&]/,De="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",Ie=new RegExp("\\\\"+De+"|"+Ce,"gi"),Re=new RegExp('[&<>"]',"g"),unescapeChar=function(G){return 92===G.charCodeAt(0)?G.charAt(1):Object(ge.decodeHTML)(G)},unescapeString=function(G){return xe.test(G)?G.replace(Ie,unescapeChar):G},replaceUnsafeChar=function(G){switch(G){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return G}},escapeXml=function(G){return Re.test(G)?G.replace(Re,replaceUnsafeChar):G};function fromCodePoint(G){return se(G)}if(String.fromCodePoint)se=function(G){try{return String.fromCodePoint(G)}catch(G){if(G instanceof RangeError)return String.fromCharCode(65533);throw G}};else{var ze=String.fromCharCode,$e=Math.floor;se=function(){var G,Z,ne=16384,ie=[],se=-1,ce=arguments.length;if(!ce)return"";for(var fe="";++se1114111||$e(me)!==me)return String.fromCharCode(65533);me<=65535?ie.push(me):(G=55296+((me-=65536)>>10),Z=me%1024+56320,ie.push(G,Z)),(se+1===ce||ie.length>ne)&&(fe+=ze.apply(null,ie),ie.length=0)}return fe}}ne(1811);var inlines_normalizeURI=function(G){try{return me()(G)}catch(Z){return G}},Je=unescapeString,it="\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",ot=ke,at=new RegExp(/^[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),st=new RegExp('^(?:"('+it+'|[^"\\x00])*"|\'('+it+"|[^'\\x00])*'|\\(("+it+"|[^()\\x00])*\\))"),ct=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,ut=new RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),dt=new RegExp("^&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});","i"),ht=/`+/,ft=/^`+/,_t=/\.\.\./g,yt=/--+/g,vt=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,wt=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Ct=/^ *(?:\n *)?/,St=/^[ \t\n\x0b\x0c\x0d]/,Mt=/^\s/,kt=/ *$/,xt=/^ */,Lt=/^ *(?:\n|$)/,Tt=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/s,At=/^[^\n`\[\]\\!<&*_'"]+/m,inlines_text=function(G){var Z=new ce("text");return Z._literal=G,Z},normalizeReference=function(G){return G.slice(1,G.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()},inlines_match=function(G){var Z=G.exec(this.subject.slice(this.pos));return null===Z?null:(this.pos+=Z.index+Z[0].length,Z[0])},peek=function(){return this.pos0&&null!==se.match(/[^ ]/)&&" "==se[0]&&" "==se[se.length-1]?ie._literal=se.slice(1,se.length-1):ie._literal=se,G.appendChild(ie),!0;return this.pos=fe,G.appendChild(inlines_text(Z)),!0},parseBackslash=function(G){var Z,ne=this.subject;return this.pos+=1,10===this.peek()?(this.pos+=1,Z=new ce("linebreak"),G.appendChild(Z)):ut.test(ne.charAt(this.pos))?(G.appendChild(inlines_text(ne.charAt(this.pos))),this.pos+=1):G.appendChild(inlines_text("\\")),!0},parseAutolink=function(G){var Z,ne,ie;return(Z=this.match(vt))?(ne=Z.slice(1,Z.length-1),(ie=new ce("link"))._destination=inlines_normalizeURI("mailto:"+ne),ie._title="",ie.appendChild(inlines_text(ne)),G.appendChild(ie),!0):!!(Z=this.match(wt))&&(ne=Z.slice(1,Z.length-1),(ie=new ce("link"))._destination=inlines_normalizeURI(ne),ie._title="",ie.appendChild(inlines_text(ne)),G.appendChild(ie),!0)},parseHtmlTag=function(G){var Z=this.match(ot);if(null===Z)return!1;var ne=new ce("html_inline");return ne._literal=Z,G.appendChild(ne),!0},scanDelims=function(G){var Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke=0,xe=this.pos;if(39===G||34===G)ke++,this.pos++;else for(;this.peek()===G;)ke++,this.pos++;return 0===ke?null:(Z=0===xe?"\n":this.subject.charAt(xe-1),ne=-1===(ie=this.peek())?"\n":fromCodePoint(ie),ge=Mt.test(ne),Ce=at.test(ne),Se=Mt.test(Z),Me=at.test(Z),se=!ge&&(!Ce||Se||Me),ce=!Se&&(!Me||ge||Ce),95===G?(fe=se&&(!ce||Me),me=ce&&(!se||Ce)):39===G||34===G?(fe=se&&!ce,me=ce):(fe=se,me=ce),this.pos=xe,{numdelims:ke,can_open:fe,can_close:me})},handleDelim=function(G,Z){var ne=this.scanDelims(G);if(!ne)return!1;var ie,se=ne.numdelims,ce=this.pos;this.pos+=se,ie=39===G?"’":34===G?"“":this.subject.slice(ce,this.pos);var fe=inlines_text(ie);return Z.appendChild(fe),(ne.can_open||ne.can_close)&&(this.options.smart||39!==G&&34!==G)&&(this.delimiters={cc:G,numdelims:se,origdelims:se,node:fe,previous:this.delimiters,next:null,can_open:ne.can_open,can_close:ne.can_close},null!==this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},removeDelimiter=function(G){null!==G.previous&&(G.previous.next=G.next),null===G.next?this.delimiters=G.previous:G.next.previous=G.previous},processEmphasis=function(G){for(var Z,ne,ie,se,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie=[],Re=!1,ze=0;ze<8;ze++)Ie[ze]=G;for(ne=this.delimiters;null!==ne&&ne.previous!==G;)ne=ne.previous;for(;null!==ne;){var $e=ne.cc;if(ne.can_close){switch(Z=ne.previous,Me=!1,$e){case 39:ke=0;break;case 34:ke=1;break;case 95:ke=2;break;case 42:ke=3+(ne.can_open?3:0)+ne.origdelims%3}for(;null!==Z&&Z!==G&&Z!==Ie[ke];){if(Re=(ne.can_open||Z.can_close)&&ne.origdelims%3!=0&&(Z.origdelims+ne.origdelims)%3==0,Z.cc===ne.cc&&Z.can_open&&!Re){Me=!0;break}Z=Z.previous}if(ie=ne,42===$e||95===$e)if(Me){ge=ne.numdelims>=2&&Z.numdelims>=2?2:1,se=Z.node,fe=ne.node,Z.numdelims-=ge,ne.numdelims-=ge,se._literal=se._literal.slice(0,se._literal.length-ge),fe._literal=fe._literal.slice(0,fe._literal.length-ge);var Je=new ce(1===ge?"emph":"strong");for(Ce=se._next;Ce&&Ce!==fe;)Se=Ce._next,Ce.unlink(),Je.appendChild(Ce),Ce=Se;se.insertAfter(Je),De=ne,(xe=Z).next!==De&&(xe.next=De,De.previous=xe),0===Z.numdelims&&(se.unlink(),this.removeDelimiter(Z)),0===ne.numdelims&&(fe.unlink(),me=ne.next,this.removeDelimiter(ne),ne=me)}else ne=ne.next;else 39===$e?(ne.node._literal="’",Me&&(Z.node._literal="‘"),ne=ne.next):34===$e&&(ne.node._literal="”",Me&&(Z.node.literal="“"),ne=ne.next);Me||(Ie[ke]=ie.previous,ie.can_open||this.removeDelimiter(ie))}else ne=ne.next}for(;null!==this.delimiters&&this.delimiters!==G;)this.removeDelimiter(this.delimiters)},parseLinkTitle=function(){var G=this.match(st);return null===G?null:Je(G.substr(1,G.length-2))},parseLinkDestination=function(){var G=this.match(ct);if(null===G){if(60===this.peek())return null;for(var Z,ne=this.pos,ie=0;-1!==(Z=this.peek());)if(92===Z&&ut.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(40===Z)this.pos+=1,ie+=1;else if(41===Z){if(ie<1)break;this.pos+=1,ie-=1}else{if(null!==St.exec(fromCodePoint(Z)))break;this.pos+=1}return this.pos===ne&&41!==Z||0!==ie?null:(G=this.subject.substr(ne,this.pos-ne),inlines_normalizeURI(Je(G)))}return inlines_normalizeURI(Je(G.substr(1,G.length-2)))},parseLinkLabel=function(){var G=this.match(Tt);return null===G||G.length>1001?0:G.length},parseOpenBracket=function(G){var Z=this.pos;this.pos+=1;var ne=inlines_text("[");return G.appendChild(ne),this.addBracket(ne,Z,!1),!0},parseBang=function(G){var Z=this.pos;if(this.pos+=1,91===this.peek()){this.pos+=1;var ne=inlines_text("![");G.appendChild(ne),this.addBracket(ne,Z+1,!0)}else G.appendChild(inlines_text("!"));return!0},parseCloseBracket=function(G){var Z,ne,ie,se,fe,me,ge=!1;if(this.pos+=1,Z=this.pos,null===(me=this.brackets))return G.appendChild(inlines_text("]")),!0;if(!me.active)return G.appendChild(inlines_text("]")),this.removeBracket(),!0;ne=me.image;var Ce=this.pos;if(40===this.peek()&&(this.pos++,this.spnl()&&null!==(ie=this.parseLinkDestination())&&this.spnl()&&(St.test(this.subject.charAt(this.pos-1))&&(se=this.parseLinkTitle()),1)&&this.spnl()&&41===this.peek()?(this.pos+=1,ge=!0):this.pos=Ce),!ge){var Se=this.pos,Me=this.parseLinkLabel();if(Me>2?fe=this.subject.slice(Se,Se+Me):me.bracketAfter||(fe=this.subject.slice(me.index,Z)),0===Me&&(this.pos=Ce),fe){var ke=this.refmap[normalizeReference(fe)];ke&&(ie=ke.destination,se=ke.title,ge=!0)}}if(ge){var xe,De,Ie=new ce(ne?"image":"link");for(Ie._destination=ie,Ie._title=se||"",xe=me.node._next;xe;)De=xe._next,xe.unlink(),Ie.appendChild(xe),xe=De;if(G.appendChild(Ie),this.processEmphasis(me.previousDelimiter),this.removeBracket(),me.node.unlink(),!ne)for(me=this.brackets;null!==me;)me.image||(me.active=!1),me=me.previous;return!0}return this.removeBracket(),this.pos=Z,G.appendChild(inlines_text("]")),!0},addBracket=function(G,Z,ne){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:G,previous:this.brackets,previousDelimiter:this.delimiters,index:Z,image:ne,active:!0}},removeBracket=function(){this.brackets=this.brackets.previous},parseEntity=function(G){var Z;return!!(Z=this.match(dt))&&(G.appendChild(inlines_text(Object(ge.decodeHTML)(Z))),!0)},parseString=function(G){var Z;return!!(Z=this.match(At))&&(this.options.smart?G.appendChild(inlines_text(Z.replace(_t,"…").replace(yt,(function(G){var Z=0,ne=0;return G.length%3==0?ne=G.length/3:G.length%2==0?Z=G.length/2:G.length%3==2?(Z=1,ne=(G.length-2)/3):(Z=2,ne=(G.length-4)/3),"—".repeat(ne)+"–".repeat(Z)})))):G.appendChild(inlines_text(Z)),!0)},parseNewline=function(G){this.pos+=1;var Z=G._lastChild;if(Z&&"text"===Z.type&&" "===Z._literal[Z._literal.length-1]){var ne=" "===Z._literal[Z._literal.length-2];Z._literal=Z._literal.replace(kt,""),G.appendChild(new ce(ne?"linebreak":"softbreak"))}else G.appendChild(new ce("softbreak"));return this.match(xt),!0},parseReference=function(G,Z){var ne,ie,se,ce;this.subject=G,this.pos=0;var fe=this.pos;if(0===(ce=this.parseLinkLabel()))return 0;if(ne=this.subject.substr(0,ce),58!==this.peek())return this.pos=fe,0;if(this.pos++,this.spnl(),null===(ie=this.parseLinkDestination()))return this.pos=fe,0;var me=this.pos;this.spnl(),this.pos!==me&&(se=this.parseLinkTitle()),null===se&&(se="",this.pos=me);var ge=!0;if(null===this.match(Lt)&&(""===se?ge=!1:(se="",this.pos=me,ge=null!==this.match(Lt))),!ge)return this.pos=fe,0;var Ce=normalizeReference(ne);return""===Ce?(this.pos=fe,0):(Z[Ce]||(Z[Ce]={destination:ie,title:se}),this.pos-fe)},parseInline=function(G){var Z=!1,ne=this.peek();if(-1===ne)return!1;switch(ne){case 10:Z=this.parseNewline(G);break;case 92:Z=this.parseBackslash(G);break;case 96:Z=this.parseBackticks(G);break;case 42:case 95:Z=this.handleDelim(ne,G);break;case 39:case 34:Z=this.options.smart&&this.handleDelim(ne,G);break;case 91:Z=this.parseOpenBracket(G);break;case 33:Z=this.parseBang(G);break;case 93:Z=this.parseCloseBracket(G);break;case 60:Z=this.parseAutolink(G)||this.parseHtmlTag(G);break;case 38:Z=this.parseEntity(G);break;default:Z=this.parseString(G)}return Z||(this.pos+=1,G.appendChild(inlines_text(fromCodePoint(ne)))),!0},parseInlines=function(G){for(this.subject=G._string_content.trim(),this.pos=0,this.delimiters=null,this.brackets=null;this.parseInline(G););G._string_content=null,this.processEmphasis(null)};var Dt=function InlineParser(G){return{subject:"",delimiters:null,brackets:null,pos:0,refmap:{},match:inlines_match,peek:peek,spnl:spnl,parseBackticks:parseBackticks,parseBackslash:parseBackslash,parseAutolink:parseAutolink,parseHtmlTag:parseHtmlTag,scanDelims:scanDelims,handleDelim:handleDelim,parseLinkTitle:parseLinkTitle,parseLinkDestination:parseLinkDestination,parseLinkLabel:parseLinkLabel,parseOpenBracket:parseOpenBracket,parseBang:parseBang,parseCloseBracket:parseCloseBracket,addBracket:addBracket,removeBracket:removeBracket,parseEntity:parseEntity,parseString:parseString,parseNewline:parseNewline,parseReference:parseReference,parseInline:parseInline,processEmphasis:processEmphasis,removeDelimiter:removeDelimiter,options:G||{},parse:parseInlines}},Et=[/./,/^<(?:script|pre|textarea|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],It=/^(?:\*[ \t]*){3,}$|^(?:_[ \t]*){3,}$|^(?:-[ \t]*){3,}$/,Nt=/^[#`~*+_=<>0-9-]/,Rt=/[^ \t\f\v\r\n]/,zt=/^[*+-]/,qt=/^(\d{1,9})([.)])/,Wt=/^#{1,6}(?:[ \t]+|$)/,Bt=/^`{3,}(?!.*`)|^~{3,}/,Ft=/^(?:`{3,}|~{3,})(?= *$)/,Ht=/^(?:=+|-+)[ \t]*$/,$t=/\r\n|\n|\r/,isSpaceOrTab=function(G){return 32===G||9===G},blocks_peek=function(G,Z){return Z=Z._listData.markerOffset+Z._listData.padding))return 1;G.advanceOffset(Z._listData.markerOffset+Z._listData.padding,!0)}return 0},finalize:function(){},canContain:function(G){return"item"!==G},acceptsLines:!1},heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematic_break:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},code_block:{continue:function(G,Z){var ne=G.currentLine,ie=G.indent;if(Z._isFenced){var se=ie<=3&&ne.charAt(G.nextNonspace)===Z._fenceChar&&ne.slice(G.nextNonspace).match(Ft);if(se&&se[0].length>=Z._fenceLength)return G.lastLineLength=G.offset+ie+se[0].length,G.finalize(Z,G.lineNumber),2;for(var ce=Z._fenceOffset;ce>0&&isSpaceOrTab(blocks_peek(ne,G.offset));)G.advanceOffset(1,!0),ce--}else if(ie>=4)G.advanceOffset(4,!0);else{if(!G.blank)return 1;G.advanceNextNonspace()}return 0},finalize:function(G,Z){if(Z._isFenced){var ne=Z._string_content,ie=ne.indexOf("\n"),se=ne.slice(0,ie),ce=ne.slice(ie+1);Z.info=unescapeString(se.trim()),Z._literal=ce}else Z._literal=Z._string_content.replace(/(\n *)+$/,"\n");Z._string_content=null},canContain:function(){return!1},acceptsLines:!0},html_block:{continue:function(G,Z){return!G.blank||6!==Z._htmlBlockType&&7!==Z._htmlBlockType?0:1},finalize:function(G,Z){Z._literal=Z._string_content.replace(/(\n *)+$/,""),Z._string_content=null},canContain:function(){return!1},acceptsLines:!0},paragraph:{continue:function(G){return G.blank?1:0},finalize:function(G,Z){for(var ne,ie,se=!1;91===blocks_peek(Z._string_content,0)&&(ne=G.inlineParser.parseReference(Z._string_content,G.refmap));)Z._string_content=Z._string_content.slice(ne),se=!0;se&&(ie=Z._string_content,!Rt.test(ie))&&Z.unlink()},canContain:function(){return!1},acceptsLines:!0}},Yt=[function(G){return G.indented||62!==blocks_peek(G.currentLine,G.nextNonspace)?0:(G.advanceNextNonspace(),G.advanceOffset(1,!1),isSpaceOrTab(blocks_peek(G.currentLine,G.offset))&&G.advanceOffset(1,!0),G.closeUnmatchedBlocks(),G.addChild("block_quote",G.nextNonspace),1)},function(G){var Z;if(!G.indented&&(Z=G.currentLine.slice(G.nextNonspace).match(Wt))){G.advanceNextNonspace(),G.advanceOffset(Z[0].length,!1),G.closeUnmatchedBlocks();var ne=G.addChild("heading",G.nextNonspace);return ne.level=Z[0].trim().length,ne._string_content=G.currentLine.slice(G.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),G.advanceOffset(G.currentLine.length-G.offset),2}return 0},function(G){var Z;if(!G.indented&&(Z=G.currentLine.slice(G.nextNonspace).match(Bt))){var ne=Z[0].length;G.closeUnmatchedBlocks();var ie=G.addChild("code_block",G.nextNonspace);return ie._isFenced=!0,ie._fenceLength=ne,ie._fenceChar=Z[0][0],ie._fenceOffset=G.indent,G.advanceNextNonspace(),G.advanceOffset(ne,!1),2}return 0},function(G,Z){if(!G.indented&&60===blocks_peek(G.currentLine,G.nextNonspace)){var ne,ie=G.currentLine.slice(G.nextNonspace);for(ne=1;ne<=7;ne++){if(Et[ne].test(ie)&&(ne<7||"paragraph"!==Z.type&&(G.allClosed||G.blank||"paragraph"!==G.tip.type)))return G.closeUnmatchedBlocks(),G.addChild("html_block",G.offset)._htmlBlockType=ne,2}}return 0},function(G,Z){var ne;if(!G.indented&&"paragraph"===Z.type&&(ne=G.currentLine.slice(G.nextNonspace).match(Ht))){var ie;for(G.closeUnmatchedBlocks();91===blocks_peek(Z._string_content,0)&&(ie=G.inlineParser.parseReference(Z._string_content,G.refmap));)Z._string_content=Z._string_content.slice(ie);if(Z._string_content.length>0){var se=new ce("heading",Z.sourcepos);return se.level="="===ne[0][0]?1:2,se._string_content=Z._string_content,Z.insertAfter(se),Z.unlink(),G.tip=se,G.advanceOffset(G.currentLine.length-G.offset,!1),2}return 0}return 0},function(G){return!G.indented&&It.test(G.currentLine.slice(G.nextNonspace))?(G.closeUnmatchedBlocks(),G.addChild("thematic_break",G.nextNonspace),G.advanceOffset(G.currentLine.length-G.offset,!1),2):0},function(G,Z){var ne,ie,se;return G.indented&&"list"!==Z.type||!(ne=function(G,Z){var ne,ie,se,ce,fe=G.currentLine.slice(G.nextNonspace),me={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:G.indent};if(G.indent>=4)return null;if(ne=fe.match(zt))me.type="bullet",me.bulletChar=ne[0][0];else{if(!(ne=fe.match(qt))||"paragraph"===Z.type&&1!=ne[1])return null;me.type="ordered",me.start=parseInt(ne[1]),me.delimiter=ne[2]}if(-1!==(ie=blocks_peek(G.currentLine,G.nextNonspace+ne[0].length))&&9!==ie&&32!==ie)return null;if("paragraph"===Z.type&&!G.currentLine.slice(G.nextNonspace+ne[0].length).match(Rt))return null;G.advanceNextNonspace(),G.advanceOffset(ne[0].length,!0),se=G.column,ce=G.offset;do{G.advanceOffset(1,!0),ie=blocks_peek(G.currentLine,G.offset)}while(G.column-se<5&&isSpaceOrTab(ie));var ge=-1===blocks_peek(G.currentLine,G.offset),Ce=G.column-se;return Ce>=5||Ce<1||ge?(me.padding=ne[0].length+1,G.column=se,G.offset=ce,isSpaceOrTab(blocks_peek(G.currentLine,G.offset))&&G.advanceOffset(1,!0)):me.padding=ne[0].length+Ce,me}(G,Z))?0:(G.closeUnmatchedBlocks(),"list"===G.tip.type&&(ie=Z._listData,se=ne,ie.type===se.type&&ie.delimiter===se.delimiter&&ie.bulletChar===se.bulletChar)||((Z=G.addChild("list",G.nextNonspace))._listData=ne),(Z=G.addChild("item",G.nextNonspace))._listData=ne,1)},function(G){return G.indented&&"paragraph"!==G.tip.type&&!G.blank?(G.advanceOffset(4,!0),G.closeUnmatchedBlocks(),G.addChild("code_block",G.offset),2):0}],advanceOffset=function(G,Z){for(var ne,ie,se,ce=this.currentLine;G>0&&(se=ce[this.offset]);)"\t"===se?(ne=4-this.column%4,Z?(this.partiallyConsumedTab=ne>G,ie=ne>G?G:ne,this.column+=ie,this.offset+=this.partiallyConsumedTab?0:1,G-=ie):(this.partiallyConsumedTab=!1,this.column+=ne,this.offset+=1,G-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,G-=1)},advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},findNextNonspace=function(){for(var G,Z=this.currentLine,ne=this.offset,ie=this.column;""!==(G=Z.charAt(ne));)if(" "===G)ne++,ie++;else{if("\t"!==G)break;ne++,ie+=4-ie%4}this.blank="\n"===G||"\r"===G||""===G,this.nextNonspace=ne,this.nextNonspaceColumn=ie,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=4},incorporateLine=function(G){var Z,ne,ie=!0,se=this.doc;for(this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==G.indexOf("\0")&&(G=G.replace(/\0/g,"�")),this.currentLine=G;(ne=se._lastChild)&&ne._open;){switch(se=ne,this.findNextNonspace(),this.blocks[se.type].continue(this,se)){case 0:break;case 1:ie=!1;break;case 2:return;default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!ie){se=se._parent;break}}this.allClosed=se===this.oldtip,this.lastMatchedContainer=se;for(var ce="paragraph"!==se.type&&Vt[se.type].acceptsLines,fe=this.blockStarts,me=fe.length;!ce;){if(this.findNextNonspace(),!this.indented&&!Nt.test(G.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var ge=0;ge=1&&se._htmlBlockType<=5&&jt[se._htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=G.length,this.finalize(se,this.lineNumber))):this.offset')))},HtmlRenderer.prototype.emph=function html_emph(G,Z){this.tag(Z?"em":"/em")},HtmlRenderer.prototype.strong=function strong(G,Z){this.tag(Z?"strong":"/strong")},HtmlRenderer.prototype.paragraph=function paragraph(G,Z){var ne=G.parent.parent,ie=this.attrs(G);null!==ne&&"list"===ne.type&&ne.listTight||(Z?(this.cr(),this.tag("p",ie)):(this.tag("/p"),this.cr()))},HtmlRenderer.prototype.heading=function html_heading(G,Z){var ne="h"+G.level,ie=this.attrs(G);Z?(this.cr(),this.tag(ne,ie)):(this.tag("/"+ne),this.cr())},HtmlRenderer.prototype.code=function code(G){this.tag("code"),this.out(G.literal),this.tag("/code")},HtmlRenderer.prototype.code_block=function code_block(G){var Z=G.info?G.info.split(/\s+/):[],ne=this.attrs(G);Z.length>0&&Z[0].length>0&&ne.push(["class","language-"+this.esc(Z[0])]),this.cr(),this.tag("pre"),this.tag("code",ne),this.out(G.literal),this.tag("/code"),this.tag("/pre"),this.cr()},HtmlRenderer.prototype.thematic_break=function thematic_break(G){var Z=this.attrs(G);this.cr(),this.tag("hr",Z,!0),this.cr()},HtmlRenderer.prototype.block_quote=function block_quote(G,Z){var ne=this.attrs(G);Z?(this.cr(),this.tag("blockquote",ne),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())},HtmlRenderer.prototype.list=function list(G,Z){var ne="bullet"===G.listType?"ul":"ol",ie=this.attrs(G);if(Z){var se=G.listStart;null!==se&&1!==se&&ie.push(["start",se.toString()]),this.cr(),this.tag(ne,ie),this.cr()}else this.cr(),this.tag("/"+ne),this.cr()},HtmlRenderer.prototype.item=function item(G,Z){var ne=this.attrs(G);Z?this.tag("li",ne):(this.tag("/li"),this.cr())},HtmlRenderer.prototype.custom_inline=function custom_inline(G,Z){Z&&G.onEnter?this.lit(G.onEnter):!Z&&G.onExit&&this.lit(G.onExit)},HtmlRenderer.prototype.custom_block=function custom_block(G,Z){this.cr(),Z&&G.onEnter?this.lit(G.onEnter):!Z&&G.onExit&&this.lit(G.onExit),this.cr()},HtmlRenderer.prototype.esc=escapeXml,HtmlRenderer.prototype.out=function html_out(G){this.lit(this.esc(G))},HtmlRenderer.prototype.tag=function html_tag(G,Z,ne){if(!(this.disableTags>0)){if(this.buffer+="<"+G,Z&&Z.length>0)for(var ie,se=0;void 0!==(ie=Z[se]);)this.buffer+=" "+ie[0]+'="'+ie[1]+'"',se++;ne&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}},HtmlRenderer.prototype.attrs=function attrs(G){var Z=[];if(this.options.sourcepos){var ne=G.sourcepos;ne&&Z.push(["data-sourcepos",String(ne[0][0])+":"+String(ne[0][1])+"-"+String(ne[1][0])+":"+String(ne[1][1])])}return Z};var Jt=HtmlRenderer,Qt=/\<[^>]*\>/;function XmlRenderer(G){G=G||{},this.disableTags=0,this.lastOut="\n",this.indentLevel=0,this.indent=" ",this.esc=G.esc||escapeXml,this.options=G}XmlRenderer.prototype=Object.create(Kt.prototype),XmlRenderer.prototype.render=function xml_render(G){var Z,ne;this.buffer="";var ie,se,ce,fe,me,ge,Ce=G.walker(),Se=this.options;for(Se.time&&console.time("rendering"),this.buffer+='\n',this.buffer+='\n';ie=Ce.next();)if(ce=ie.entering,ge=(se=ie.node).type,fe=se.isContainer,me="thematic_break"===ge||"linebreak"===ge||"softbreak"===ge,ne=ge.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),ce){switch(Z=[],ge){case"document":Z.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"list":null!==se.listType&&Z.push(["type",se.listType.toLowerCase()]),null!==se.listStart&&Z.push(["start",String(se.listStart)]),null!==se.listTight&&Z.push(["tight",se.listTight?"true":"false"]);var Me=se.listDelimiter;if(null!==Me){var ke="";ke="."===Me?"period":"paren",Z.push(["delimiter",ke])}break;case"code_block":se.info&&Z.push(["info",se.info]);break;case"heading":Z.push(["level",String(se.level)]);break;case"link":case"image":Z.push(["destination",se.destination]),Z.push(["title",se.title]);break;case"custom_inline":case"custom_block":Z.push(["on_enter",se.onEnter]),Z.push(["on_exit",se.onExit])}if(Se.sourcepos){var xe=se.sourcepos;xe&&Z.push(["sourcepos",String(xe[0][0])+":"+String(xe[0][1])+"-"+String(xe[1][0])+":"+String(xe[1][1])])}if(this.cr(),this.out(this.tag(ne,Z,me)),fe)this.indentLevel+=1;else if(!fe&&!me){var De=se.literal;De&&this.out(this.esc(De)),this.out(this.tag("/"+ne))}}else this.indentLevel-=1,this.cr(),this.out(this.tag("/"+ne));return Se.time&&console.timeEnd("rendering"),this.buffer+="\n",this.buffer},XmlRenderer.prototype.out=function xml_out(G){this.disableTags>0?this.buffer+=G.replace(Qt,""):this.buffer+=G,this.lastOut=G},XmlRenderer.prototype.cr=function xml_cr(){if("\n"!==this.lastOut){this.buffer+="\n",this.lastOut="\n";for(var G=this.indentLevel;G>0;G--)this.buffer+=this.indent}},XmlRenderer.prototype.tag=function xml_tag(G,Z,ne){var ie="<"+G;if(Z&&Z.length>0)for(var se,ce=0;void 0!==(se=Z[ce]);)ie+=" "+se[0]+'="'+this.esc(se[1])+'"',ce++;return ne&&(ie+=" /"),ie+=">"},XmlRenderer.prototype.esc=escapeXml;var on=XmlRenderer},8404:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"FoldingController",(function(){return ft})),ne.d(Z,"foldBackgroundBackground",(function(){return _t})),ne.d(Z,"editorFoldForeground",(function(){return yt}));ne(7601);var ie=ne(4),se=ne(54),ce=ne(27),fe=ne(57),me=ne(165),ge=ne(10),Ce=ne(14),Se=ne(19);class FoldingRegions{constructor(G,Z,ne){if(G.length!==Z.length||G.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=G,this._endIndexes=Z,this._collapseStates=new Uint32Array(Math.ceil(G.length/32)),this._types=ne,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let G=[],isInsideLast=(Z,ne)=>{let ie=G[G.length-1];return this.getStartLineNumber(ie)<=Z&&this.getEndLineNumber(ie)>=ne};for(let Z=0,ne=this._startIndexes.length;Z16777215||ie>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;G.length>0&&!isInsideLast(ne,ie);)G.pop();let se=G.length>0?G[G.length-1]:-1;G.push(Z),this._startIndexes[Z]=ne+((255&se)<<24),this._endIndexes[Z]=ie+((65280&se)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(G){return 16777215&this._startIndexes[G]}getEndLineNumber(G){return 16777215&this._endIndexes[G]}getType(G){return this._types?this._types[G]:void 0}hasTypes(){return!!this._types}isCollapsed(G){let Z=G/32|0,ne=G%32;return 0!=(this._collapseStates[Z]&1<>>24)+((4278190080&this._endIndexes[G])>>>16);return 65535===Z?-1:Z}contains(G,Z){return this.getStartLineNumber(G)<=Z&&this.getEndLineNumber(G)>=Z}findIndex(G){let Z=0,ne=this._startIndexes.length;if(0===ne)return-1;for(;Z=0){if(this.getEndLineNumber(Z)>=G)return Z;for(Z=this.getParentIndex(Z);-1!==Z;){if(this.contains(Z,G))return Z;Z=this.getParentIndex(Z)}}return-1}toString(){let G=[];for(let Z=0;Z=this.endLineNumber}containsLine(G){return this.startLineNumber<=G&&G<=this.endLineNumber}}class foldingModel_FoldingModel{constructor(G,Z){this._updateEventEmitter=new Se.b,this.onDidChange=this._updateEventEmitter.event,this._textModel=G,this._decorationProvider=Z,this._regions=new FoldingRegions(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(G){if(!G.length)return;G=G.sort((G,Z)=>G.regionIndex-Z.regionIndex);const Z={};this._decorationProvider.changeDecorations(ne=>{let ie=0,se=-1,ce=-1;const updateDecorationsUntil=G=>{for(;iece&&(ce=G),ie++}};for(let ne of G){let G=ne.regionIndex,ie=this._editorDecorationIds[G];if(ie&&!Z[ie]){Z[ie]=!0,updateDecorationsUntil(G);let ne=!this._regions.isCollapsed(G);this._regions.setCollapsed(G,ne),se=Math.max(se,this._regions.getEndLineNumber(G))}}updateDecorationsUntil(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:G})}update(G,Z=[]){let ne=[],ie=-1,initRange=(se,ce)=>{const fe=G.getStartLineNumber(se),me=G.getEndLineNumber(se);ce||(ce=G.isCollapsed(se)),ce&&((G,ne)=>{for(let ie of Z)if(Gie&&(ie=me)},se=0,nextCollapsed=()=>{for(;se=Z))break;initRange(ce,ne===Z),ce++}}fe=nextCollapsed()}for(;ce0)return G}applyMemento(G){if(!Array.isArray(G))return;let Z=[];for(let ne of G){let G=this.getRegionAtLine(ne.startLineNumber);G&&!G.isCollapsed&&Z.push(G)}this.toggleCollapseState(Z)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(G,Z){let ne=[];if(this._regions){let ie=this._regions.findRange(G),se=1;for(;ie>=0;){let G=this._regions.toRegion(ie);Z&&!Z(G,se)||ne.push(G),se++,ie=G.parentIndex}}return ne}getRegionAtLine(G){if(this._regions){let Z=this._regions.findRange(G);if(Z>=0)return this._regions.toRegion(Z)}return null}getRegionsInside(G,Z){let ne=[],ie=G?G.regionIndex+1:0,se=G?G.endLineNumber:Number.MAX_VALUE;if(Z&&2===Z.length){const G=[];for(let ce=ie,fe=this._regions.length;ce0&&!ie.containedBy(G[G.length-1]);)G.pop();G.push(ie),Z(ie,G.length)&&ne.push(ie)}}else for(let G=ie,ce=this._regions.length;G0)for(let ce of ie){let ie=G.getRegionAtLine(ce);if(ie&&(ie.isCollapsed!==Z&&se.push(ie),ne>1)){let ce=G.getRegionsInside(ie,(G,ie)=>G.isCollapsed!==Z&&ieG.isCollapsed!==Z&&ieG.isCollapsed!==Z&&ie<=ne);se.push(...ie)}G.toggleCollapseState(se)}function setCollapseStateForRest(G,Z,ne){let ie=[];for(let Z of ne)ie.push(G.getAllRegionsAtLine(Z,void 0)[0]);let se=G.getRegionsInside(null,G=>ie.every(Z=>!Z.containedBy(G)&&!G.containedBy(Z))&&G.isCollapsed!==Z);G.toggleCollapseState(se)}function setCollapseStateForMatchingLines(G,Z,ne){let ie=G.textModel,se=G.regions,ce=[];for(let G=se.length-1;G>=0;G--)if(ne!==se.isCollapsed(G)){let ne=se.getStartLineNumber(G);Z.test(ie.getLineContent(ne))&&ce.push(se.toRegion(G))}G.toggleCollapseState(ce)}function setCollapseStateForType(G,Z,ne){let ie=G.regions,se=[];for(let G=ie.length-1;G>=0;G--)ne!==ie.isCollapsed(G)&&Z===ie.getType(G)&&se.push(ie.toRegion(G));G.toggleCollapseState(se)}var Me=ne(117),ke=ne(67),xe=ne(296),De=ne(50);const Ie=Object(xe.b)("folding-expanded",ke.b.chevronDown,Object(ie.a)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),Re=Object(xe.b)("folding-collapsed",ke.b.chevronRight,Object(ie.a)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin."));class FoldingDecorationProvider{constructor(G){this.editor=G,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(G,Z){return Z?FoldingDecorationProvider.HIDDEN_RANGE_DECORATION:G?this.showFoldingHighlights?FoldingDecorationProvider.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:FoldingDecorationProvider.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?FoldingDecorationProvider.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:FoldingDecorationProvider.EXPANDED_VISUAL_DECORATION}deltaDecorations(G,Z){return this.editor.deltaDecorations(G,Z)}changeDecorations(G){return this.editor.changeDecorations(G)}}FoldingDecorationProvider.COLLAPSED_VISUAL_DECORATION=Me.a.register({description:"folding-collapsed-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:De.d.asClassName(Re)}),FoldingDecorationProvider.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=Me.a.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:De.d.asClassName(Re)}),FoldingDecorationProvider.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=Me.a.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:De.d.asClassName(Ie)}),FoldingDecorationProvider.EXPANDED_VISUAL_DECORATION=Me.a.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+De.d.asClassName(Ie)}),FoldingDecorationProvider.HIDDEN_RANGE_DECORATION=Me.a.register({description:"folding-hidden-range-decoration",stickiness:1});var ze=ne(23),$e=ne(12),Je=ne(69);class hiddenRangeModel_HiddenRangeModel{constructor(G){this._updateEventEmitter=new Se.b,this._foldingModel=G,this._foldingModelListener=G.onDidChange(G=>this.updateHiddenRanges()),this._hiddenRanges=[],G.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let G=!1,Z=[],ne=0,ie=0,se=Number.MAX_VALUE,ce=-1,fe=this._foldingModel.regions;for(;ne({startLineNumber:G.startLineNumber-1,endLineNumber:G.endLineNumber}))}applyHiddenRanges(G){this._hiddenRanges=G,this._updateEventEmitter.fire(G)}hasRanges(){return this._hiddenRanges.length>0}isHidden(G){return null!==findRange(this._hiddenRanges,G)}adjustSelections(G){let Z=!1,ne=this._foldingModel.textModel,ie=null,adjustLine=G=>(ie&&function isInside(G,Z){return G>=Z.startLineNumber&&G<=Z.endLineNumber}(G,ie)||(ie=findRange(this._hiddenRanges,G)),ie?ie.startLineNumber-1:null);for(let ie=0,se=G.length;ie0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function findRange(G,Z){let ne=Object(Je.i)(G,G=>Z=0&&G[ne].endLineNumber>=Z?G[ne]:null}var it=ne(122);class indentRangeProvider_IndentRangeProvider{constructor(G){this.editorModel=G,this.id="indent"}dispose(){}compute(G){let Z=it.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),ne=Z&&!!Z.offSide,ie=Z&&Z.markers;return Promise.resolve(function computeRanges(G,Z,ne,ie=5e3){const se=G.getOptions().tabSize;let ce=new indentRangeProvider_RangesCollector(ie),fe=void 0;ne&&(fe=new RegExp(`(${ne.start.source})|(?:${ne.end.source})`));let me=[],ge=G.getLineCount()+1;me.push({indent:-1,endAbove:ge,line:ge});for(let ne=G.getLineCount();ne>0;ne--){let ie,ge=G.getLineContent(ne),Ce=Me.b.computeIndentLevel(ge,se),Se=me[me.length-1];if(-1!==Ce){if(fe&&(ie=ge.match(fe))){if(!ie[1]){me.push({indent:-2,endAbove:ne,line:ne});continue}{let G=me.length-1;for(;G>0&&-2!==me[G].indent;)G--;if(G>0){me.length=G+1,Se=me[G],ce.insertFirst(ne,Se.line,Ce),Se.line=ne,Se.indent=Ce,Se.endAbove=ne;continue}}}if(Se.indent>Ce){do{me.pop(),Se=me[me.length-1]}while(Se.indent>Ce);let G=Se.endAbove-1;G-ne>=1&&ce.insertFirst(ne,G,Ce)}Se.indent===Ce?Se.endAbove=ne:me.push({indent:Ce,endAbove:ne,line:ne})}else Z&&(Se.endAbove=ne)}return ce.toIndentRanges(G)}(this.editorModel,ne,ie))}}class indentRangeProvider_RangesCollector{constructor(G){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=G}insertFirst(G,Z,ne){if(G>16777215||Z>16777215)return;let ie=this._length;this._startIndexes[ie]=G,this._endIndexes[ie]=Z,this._length++,ne<1e3&&(this._indentOccurrences[ne]=(this._indentOccurrences[ne]||0)+1)}toIndentRanges(G){if(this._length<=this._foldingRangesLimit){let G=new Uint32Array(this._length),Z=new Uint32Array(this._length);for(let ne=this._length-1,ie=0;ne>=0;ne--,ie++)G[ie]=this._startIndexes[ne],Z[ie]=this._endIndexes[ne];return new FoldingRegions(G,Z)}{let Z=0,ne=this._indentOccurrences.length;for(let G=0;Gthis._foldingRangesLimit){ne=G;break}Z+=ie}}const ie=G.getOptions().tabSize;let se=new Uint32Array(this._foldingRangesLimit),ce=new Uint32Array(this._foldingRangesLimit);for(let fe=this._length-1,me=0;fe>=0;fe--){let ge=this._startIndexes[fe],Ce=G.getLineContent(ge),Se=Me.b.computeIndentLevel(Ce,ie);(SePromise.resolve(G.provideFoldingRanges(Z,st,ne)).then(G=>{if(!ne.isCancellationRequested&&Array.isArray(G)){Array.isArray(ie)||(ie=[]);let ne=Z.getLineCount();for(let Z of G)Z.start>0&&Z.end>Z.start&&Z.end<=ne&&ie.push({start:Z.start,end:Z.end,rank:se,kind:Z.kind})}},at.f));return Promise.all(se).then(G=>ie)}(this.providers,this.editorModel,G).then(G=>{if(G){return sanitizeRanges(G,this.limit)}return null})}dispose(){var G;null===(G=this.disposables)||void 0===G||G.dispose()}}class syntaxRangeProvider_RangesCollector{constructor(G){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=G}add(G,Z,ne,ie){if(G>16777215||Z>16777215)return;let se=this._length;this._startIndexes[se]=G,this._endIndexes[se]=Z,this._nestingLevels[se]=ie,this._types[se]=ne,this._length++,ie<30&&(this._nestingLevelCounts[ie]=(this._nestingLevelCounts[ie]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let G=new Uint32Array(this._length),Z=new Uint32Array(this._length);for(let ne=0;nethis._foldingRangesLimit){Z=ne;break}G+=ie}}let ne=new Uint32Array(this._foldingRangesLimit),ie=new Uint32Array(this._foldingRangesLimit),se=[];for(let ce=0,fe=0;ce{let ne=G.start-Z.start;return 0===ne&&(ne=G.rank-Z.rank),ne}),ie=new syntaxRangeProvider_RangesCollector(Z),se=void 0,ce=[];for(let G of ne)if(se){if(G.start>se.start)if(G.end<=se.end)ce.push(se),se=G,ie.add(G.start,G.end,G.kind&&G.kind.value,ce.length);else{if(G.start>se.end){do{se=ce.pop()}while(se&&G.start>se.end);se&&ce.push(se),se=G}ie.add(G.start,G.end,G.kind&&G.kind.value,ce.length)}}else se=G,ie.add(G.start,G.end,G.kind&&G.kind.value,ce.length);return ie.toIndentRanges()}class intializingRangeProvider_InitializingRangeProvider{constructor(G,Z,ne,ie){if(this.editorModel=G,this.id="init",Z.length){let toDecorationRange=Z=>({range:{startLineNumber:Z.startLineNumber,startColumn:0,endLineNumber:Z.endLineNumber,endColumn:G.getLineLength(Z.endLineNumber)},options:{description:"folding-initializing-range-provider",stickiness:1}});this.decorationIds=G.deltaDecorations([],Z.map(toDecorationRange)),this.timeout=setTimeout(ne,ie)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(G){let Z=[];if(this.decorationIds)for(let G of this.decorationIds){let ne=this.editorModel.getDecorationRange(G);ne&&Z.push({start:ne.startLineNumber,end:ne.endLineNumber,rank:1})}return Promise.resolve(sanitizeRanges(Z,Number.MAX_VALUE))}}var ct=ne(26),ut=ne(13),dt=ne(332),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const ht=new ct.c("foldingEnabled",!1);let ft=class FoldingController extends ge.a{constructor(G,Z){super(),this.contextKeyService=Z,this.localToDispose=this._register(new ge.b),this.editor=G;const ne=this.editor.getOptions();this._isEnabled=ne.get(35),this._useFoldingProviders="indentation"!==ne.get(36),this._unfoldOnClickAfterEndOfLine=ne.get(39),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=ne.get(38),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new FoldingDecorationProvider(G),this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===ne.get(98),this.foldingDecorationProvider.showFoldingHighlights=ne.get(37),this.foldingEnabled=ht.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(G=>{if(G.hasChanged(35)&&(this._isEnabled=this.editor.getOptions().get(35),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),G.hasChanged(98)||G.hasChanged(37)){const G=this.editor.getOptions();this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===G.get(98),this.foldingDecorationProvider.showFoldingHighlights=G.get(37),this.onModelContentChanged()}G.hasChanged(36)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(36),this.onFoldingStrategyChanged()),G.hasChanged(39)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(39)),G.hasChanged(38)&&(this._foldingImportsByDefault=this.editor.getOptions().get(38))})),this.onModelChanged()}static get(G){return G.getContribution(FoldingController.ID)}saveViewState(){let G=this.editor.getModel();if(!G||!this._isEnabled||G.isTooLargeForTokenization())return{};if(this.foldingModel){let Z=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),ne=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Z,lineCount:G.getLineCount(),provider:ne,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(G){let Z=this.editor.getModel();if(!Z||!this._isEnabled||Z.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!G||G.lineCount!==Z.getLineCount())return;if(this._currentModelHasFoldedImports=!!G.foldedImports,!G.collapsedRegions)return;"syntax"!==G.provider&&"init"!==G.provider||(this.foldingStateMemento=G);const ne=G.collapsedRegions;if(this.hiddenRangeModel.applyMemento(ne)){const G=this.getFoldingModel();G&&G.then(G=>{if(G){this._restoringViewState=!0;try{G.applyMemento(ne)}finally{this._restoringViewState=!1}}}).then(void 0,at.e)}}onModelChanged(){this.localToDispose.clear();let G=this.editor.getModel();this._isEnabled&&G&&!G.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new foldingModel_FoldingModel(G,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new hiddenRangeModel_HiddenRangeModel(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(G=>this.onHiddenRangesChanges(G))),this.updateScheduler=new fe.a(200),this.cursorChangedScheduler=new fe.e(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(ot.o.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(G=>this.onEditorMouseDown(G))),this.localToDispose.add(this.editor.onMouseUp(G=>this.onEditorMouseUp(G))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(G){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new indentRangeProvider_IndentRangeProvider(G),this._useFoldingProviders&&this.foldingModel){let Z=ot.o.ordered(this.foldingModel.textModel);if(0===Z.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){return this.rangeProvider=new intializingRangeProvider_InitializingRangeProvider(G,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4)}Z.length>0&&(this.rangeProvider=new syntaxRangeProvider_SyntaxRangeProvider(G,Z,()=>this.onModelContentChanged()))}return this.foldingStateMemento=null,this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const G=this.foldingModel;if(!G)return null;const Z=this.getRangeProvider(G.textModel);let ne=this.foldingRegionPromise=Object(fe.h)(G=>Z.compute(G));return ne.then(Z=>{if(Z&&ne===this.foldingRegionPromise){let ne;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const G=Z.setCollapsedAllOfType(ot.n.Imports.value,!0);G&&(ne=dt.c.capture(this.editor),this._currentModelHasFoldedImports=G)}let ie=this.editor.getSelections(),se=ie?ie.map(G=>G.startLineNumber):[];G.update(Z,se),ne&&ne.restore(this.editor)}return G})}).then(void 0,G=>(Object(at.e)(G),null)))}onHiddenRangesChanges(G){if(this.hiddenRangeModel&&G.length&&!this._restoringViewState){let G=this.editor.getSelections();G&&this.hiddenRangeModel.adjustSelections(G)&&this.editor.setSelections(G)}this.editor.setHiddenAreas(G)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const G=this.getFoldingModel();G&&G.then(G=>{if(G){let Z=this.editor.getSelections();if(Z&&Z.length>0){let ne=[];for(let ie of Z){let Z=ie.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(Z)&&ne.push(...G.getAllRegionsAtLine(Z,G=>G.isCollapsed&&Z>G.startLineNumber))}ne.length&&(G.toggleCollapseState(ne),this.reveal(Z[0].getPosition()))}}}).then(void 0,at.e)}onEditorMouseDown(G){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!G.target||!G.target.range)return;if(!G.event.leftButton&&!G.event.middleButton)return;const Z=G.target.range;let ne=!1;switch(G.target.type){case 4:const ie=G.target.detail,se=G.target.element.offsetLeft;if(ie.offsetX-se<5)return;ne=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!G.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){let G=this.editor.getModel();if(G&&Z.startColumn===G.getLineMaxColumn(Z.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:Z.startLineNumber,iconClicked:ne}}onEditorMouseUp(G){const Z=this.getFoldingModel();if(!Z||!this.mouseDownInfo||!G.target)return;let ne=this.mouseDownInfo.lineNumber,ie=this.mouseDownInfo.iconClicked,se=G.target.range;if(se&&se.startLineNumber===ne){if(ie){if(4!==G.target.type)return}else{let G=this.editor.getModel();if(!G||se.startColumn!==G.getLineMaxColumn(ne))return}Z.then(Z=>{if(Z){let se=Z.getRegionAtLine(ne);if(se&&se.startLineNumber===ne){let ce=se.isCollapsed;if(ie||ce){let ie=[];if(G.event.altKey){let filter=G=>!G.containedBy(se)&&!se.containedBy(G),G=Z.getRegionsInside(null,filter);for(const Z of G)Z.isCollapsed&&ie.push(Z);0===ie.length&&(ie=G)}else{let ne=G.event.middleButton||G.event.shiftKey;if(ne)for(const G of Z.getRegionsInside(se))G.isCollapsed===ce&&ie.push(G);!ce&&ne&&0!==ie.length||ie.push(se)}Z.toggleCollapseState(ie),this.reveal({lineNumber:ne,column:1})}}}}).then(void 0,at.e)}}reveal(G){this.editor.revealPositionInCenterIfOutsideViewport(G,0)}};ft.ID="editor.contrib.folding",ft=__decorate([__param(1,ct.b)],ft);class folding_FoldingAction extends Ce.b{runEditorCommand(G,Z,ne){let ie=ft.get(Z);if(!ie)return;let se=ie.getFoldingModel();return se?(this.reportTelemetry(G,Z),se.then(G=>{if(G){this.invoke(ie,G,Z,ne);const se=Z.getSelection();se&&ie.reveal(se.getStartPosition())}})):void 0}getSelectedLines(G){let Z=G.getSelections();return Z?Z.map(G=>G.startLineNumber):[]}getLineNumbers(G,Z){return G&&G.selectionLines?G.selectionLines.map(G=>G+1):this.getSelectedLines(Z)}run(G,Z){}}function foldingArgumentsConstraint(G){if(!se.l(G)){if(!se.j(G))return!1;const Z=G;if(!se.l(Z.levels)&&!se.i(Z.levels))return!1;if(!se.l(Z.direction)&&!se.k(Z.direction))return!1;if(!(se.l(Z.selectionLines)||se.f(Z.selectionLines)&&Z.selectionLines.every(se.i)))return!1}return!0}class folding_FoldLevelAction extends folding_FoldingAction{getFoldingLevel(){return parseInt(this.id.substr(folding_FoldLevelAction.ID_PREFIX.length))}invoke(G,Z,ne){!function setCollapseStateAtLevel(G,Z,ne,ie){let se=G.getRegionsInside(null,(G,se)=>se===Z&&G.isCollapsed!==ne&&!ie.some(Z=>G.containsLine(Z)));G.toggleCollapseState(se)}(Z,this.getFoldingLevel(),!0,this.getSelectedLines(ne))}}folding_FoldLevelAction.ID_PREFIX="editor.foldLevel",folding_FoldLevelAction.ID=G=>folding_FoldLevelAction.ID_PREFIX+G;Object(Ce.l)(ft.ID,ft),Object(Ce.j)(class folding_UnfoldAction extends folding_FoldingAction{constructor(){super({id:"editor.unfold",label:ie.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:foldingArgumentsConstraint,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(G,Z,ne,ie){let se=ie&&ie.levels||1,ce=this.getLineNumbers(ie,ne);ie&&"up"===ie.direction?setCollapseStateLevelsUp(Z,!1,se,ce):setCollapseStateLevelsDown(Z,!1,se,ce)}}),Object(Ce.j)(class folding_UnFoldRecursivelyAction extends folding_FoldingAction{constructor(){super({id:"editor.unfoldRecursively",label:ie.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2137),weight:100}})}invoke(G,Z,ne,ie){setCollapseStateLevelsDown(Z,!1,Number.MAX_VALUE,this.getSelectedLines(ne))}}),Object(Ce.j)(class folding_FoldAction extends folding_FoldingAction{constructor(){super({id:"editor.fold",label:ie.a("foldAction.label","Fold"),alias:"Fold",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:foldingArgumentsConstraint,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(G,Z,ne,ie){let se=this.getLineNumbers(ie,ne);const ce=ie&&ie.levels,fe=ie&&ie.direction;"number"!=typeof ce&&"string"!=typeof fe?function setCollapseStateUp(G,Z,ne){let ie=[];for(let se of ne){let ne=G.getAllRegionsAtLine(se,G=>G.isCollapsed!==Z);ne.length>0&&ie.push(ne[0])}G.toggleCollapseState(ie)}(Z,!0,se):"up"===fe?setCollapseStateLevelsUp(Z,!0,ce||1,se):setCollapseStateLevelsDown(Z,!0,ce||1,se)}}),Object(Ce.j)(class folding_FoldRecursivelyAction extends folding_FoldingAction{constructor(){super({id:"editor.foldRecursively",label:ie.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2135),weight:100}})}invoke(G,Z,ne){let ie=this.getSelectedLines(ne);setCollapseStateLevelsDown(Z,!0,Number.MAX_VALUE,ie)}}),Object(Ce.j)(class folding_FoldAllAction extends folding_FoldingAction{constructor(){super({id:"editor.foldAll",label:ie.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2069),weight:100}})}invoke(G,Z,ne){setCollapseStateLevelsDown(Z,!0)}}),Object(Ce.j)(class folding_UnfoldAllAction extends folding_FoldingAction{constructor(){super({id:"editor.unfoldAll",label:ie.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2088),weight:100}})}invoke(G,Z,ne){setCollapseStateLevelsDown(Z,!1)}}),Object(Ce.j)(class folding_FoldAllBlockCommentsAction extends folding_FoldingAction{constructor(){super({id:"editor.foldAllBlockComments",label:ie.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2133),weight:100}})}invoke(G,Z,ne){if(Z.regions.hasTypes())setCollapseStateForType(Z,ot.n.Comment.value,!0);else{const G=ne.getModel();if(!G)return;let ie=it.a.getComments(G.getLanguageIdentifier().id);if(ie&&ie.blockCommentStartToken){setCollapseStateForMatchingLines(Z,new RegExp("^\\s*"+Object(ce.u)(ie.blockCommentStartToken)),!0)}}}}),Object(Ce.j)(class folding_FoldAllRegionsAction extends folding_FoldingAction{constructor(){super({id:"editor.foldAllMarkerRegions",label:ie.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2077),weight:100}})}invoke(G,Z,ne){if(Z.regions.hasTypes())setCollapseStateForType(Z,ot.n.Region.value,!0);else{const G=ne.getModel();if(!G)return;let ie=it.a.getFoldingRules(G.getLanguageIdentifier().id);if(ie&&ie.markers&&ie.markers.start){setCollapseStateForMatchingLines(Z,new RegExp(ie.markers.start),!0)}}}}),Object(Ce.j)(class folding_UnfoldAllRegionsAction extends folding_FoldingAction{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:ie.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2078),weight:100}})}invoke(G,Z,ne){if(Z.regions.hasTypes())setCollapseStateForType(Z,ot.n.Region.value,!1);else{const G=ne.getModel();if(!G)return;let ie=it.a.getFoldingRules(G.getLanguageIdentifier().id);if(ie&&ie.markers&&ie.markers.start){setCollapseStateForMatchingLines(Z,new RegExp(ie.markers.start),!1)}}}}),Object(Ce.j)(class folding_FoldAllRegionsExceptAction extends folding_FoldingAction{constructor(){super({id:"editor.foldAllExcept",label:ie.a("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2131),weight:100}})}invoke(G,Z,ne){setCollapseStateForRest(Z,!0,this.getSelectedLines(ne))}}),Object(Ce.j)(class folding_UnfoldAllRegionsExceptAction extends folding_FoldingAction{constructor(){super({id:"editor.unfoldAllExcept",label:ie.a("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2129),weight:100}})}invoke(G,Z,ne){setCollapseStateForRest(Z,!1,this.getSelectedLines(ne))}}),Object(Ce.j)(class folding_ToggleFoldAction extends folding_FoldingAction{constructor(){super({id:"editor.toggleFold",label:ie.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2090),weight:100}})}invoke(G,Z,ne){!function toggleCollapseState(G,Z,ne){let ie=[];for(let se of ne){let ne=G.getRegionAtLine(se);if(ne){const se=!ne.isCollapsed;if(ie.push(ne),Z>1){let ce=G.getRegionsInside(ne,(G,ne)=>G.isCollapsed!==se&&ne0){let G=function getParentFoldLine(G,Z){let ne=null,ie=Z.getRegionAtLine(G);if(null!==ie&&(ne=ie.startLineNumber,G===ne)){let G=ie.parentIndex;ne=-1!==G?Z.regions.getStartLineNumber(G):null}return ne}(ie[0],Z);null!==G&&ne.setSelection({startLineNumber:G,startColumn:1,endLineNumber:G,endColumn:1})}}}),Object(Ce.j)(class folding_GotoPreviousFoldAction extends folding_FoldingAction{constructor(){super({id:"editor.gotoPreviousFold",label:ie.a("gotoPreviousFold.label","Go to Previous Fold"),alias:"Go to Previous Fold",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,weight:100}})}invoke(G,Z,ne){let ie=this.getSelectedLines(ne);if(ie.length>0){let G=function getPreviousFoldLine(G,Z){let ne=Z.getRegionAtLine(G);if(null!==ne){if(G!==ne.startLineNumber)return ne.startLineNumber;{let G=ne.parentIndex;if(-1===G)return null;let ie=Z.regions.getStartLineNumber(ne.parentIndex);for(;null!==ne;){if(!(ne.regionIndex>0))return null;if(ne=Z.regions.toRegion(ne.regionIndex-1),ne.startLineNumber<=ie)return null;if(ne.parentIndex===G)return ne.startLineNumber}}}return null}(ie[0],Z);null!==G&&ne.setSelection({startLineNumber:G,startColumn:1,endLineNumber:G,endColumn:1})}}}),Object(Ce.j)(class folding_GotoNextFoldAction extends folding_FoldingAction{constructor(){super({id:"editor.gotoNextFold",label:ie.a("gotoNextFold.label","Go to Next Fold"),alias:"Go to Next Fold",precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,weight:100}})}invoke(G,Z,ne){let ie=this.getSelectedLines(ne);if(ie.length>0){let G=function getNextFoldLine(G,Z){let ne=Z.getRegionAtLine(G);if(null!==ne){let G=ne.parentIndex;if(-1===G)return null;let ie=Z.regions.getEndLineNumber(ne.parentIndex);for(;null!==ne;){if(!(ne.regionIndex=ie)return null;if(ne.parentIndex===G)return ne.startLineNumber}}return null}(ie[0],Z);null!==G&&ne.setSelection({startLineNumber:G,startColumn:1,endLineNumber:G,endColumn:1})}}});for(let G=1;G<=7;G++)Object(Ce.m)(new folding_FoldLevelAction({id:folding_FoldLevelAction.ID(G),label:ie.a("foldLevelAction.label","Fold Level {0}",G),alias:"Fold Level "+G,precondition:ht,kbOpts:{kbExpr:ze.a.editorTextFocus,primary:Object(me.a)(2089,2048|21+G),weight:100}}));const _t=Object(ut.wc)("editor.foldBackground",{light:Object(ut.Kc)(ut.R,.3),dark:Object(ut.Kc)(ut.R,.3),hc:null},ie.a("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),yt=Object(ut.wc)("editorGutter.foldingControlForeground",{dark:ut.fb,light:ut.fb,hc:ut.fb},ie.a("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(De.f)((G,Z)=>{const ne=G.getColor(_t);ne&&Z.addRule(`.monaco-editor .folded-background { background-color: ${ne}; }`);const ie=G.getColor(yt);ie&&Z.addRule(`\n\t\t.monaco-editor .cldr${De.d.asCSSSelector(Ie)},\n\t\t.monaco-editor .cldr${De.d.asCSSSelector(Re)} {\n\t\t\tcolor: ${ie} !important;\n\t\t}\n\t\t`)})},8409:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"DuplicateSelectionAction",(function(){return linesOperations_DuplicateSelectionAction})),ne.d(Z,"AbstractSortLinesAction",(function(){return linesOperations_AbstractSortLinesAction})),ne.d(Z,"SortLinesAscendingAction",(function(){return linesOperations_SortLinesAscendingAction})),ne.d(Z,"SortLinesDescendingAction",(function(){return linesOperations_SortLinesDescendingAction})),ne.d(Z,"TrimTrailingWhitespaceAction",(function(){return linesOperations_TrimTrailingWhitespaceAction})),ne.d(Z,"DeleteLinesAction",(function(){return linesOperations_DeleteLinesAction})),ne.d(Z,"IndentLinesAction",(function(){return linesOperations_IndentLinesAction})),ne.d(Z,"InsertLineBeforeAction",(function(){return linesOperations_InsertLineBeforeAction})),ne.d(Z,"InsertLineAfterAction",(function(){return linesOperations_InsertLineAfterAction})),ne.d(Z,"AbstractDeleteAllToBoundaryAction",(function(){return linesOperations_AbstractDeleteAllToBoundaryAction})),ne.d(Z,"DeleteAllLeftAction",(function(){return linesOperations_DeleteAllLeftAction})),ne.d(Z,"DeleteAllRightAction",(function(){return linesOperations_DeleteAllRightAction})),ne.d(Z,"JoinLinesAction",(function(){return linesOperations_JoinLinesAction})),ne.d(Z,"TransposeAction",(function(){return linesOperations_TransposeAction})),ne.d(Z,"AbstractCaseAction",(function(){return linesOperations_AbstractCaseAction})),ne.d(Z,"UpperCaseAction",(function(){return linesOperations_UpperCaseAction})),ne.d(Z,"LowerCaseAction",(function(){return linesOperations_LowerCaseAction})),ne.d(Z,"TitleCaseAction",(function(){return linesOperations_TitleCaseAction})),ne.d(Z,"SnakeCaseAction",(function(){return linesOperations_SnakeCaseAction}));var ie=ne(4),se=ne(165),ce=ne(381),fe=ne(14),me=ne(223),ge=ne(27),Ce=ne(221),Se=ne(12);class TrimTrailingWhitespaceCommand{constructor(G,Z){this._selection=G,this._cursors=Z,this._selectionId=null}getEditOperations(G,Z){let ne=function trimTrailingWhitespace(G,Z){Z.sort((G,Z)=>G.lineNumber===Z.lineNumber?G.column-Z.column:G.lineNumber-Z.lineNumber);for(let G=Z.length-2;G>=0;G--)Z[G].lineNumber===Z[G+1].lineNumber&&Z.splice(G,1);let ne=[],ie=0,se=0,ce=Z.length;for(let fe=1,me=G.getLineCount();fe<=me;fe++){let me=G.getLineContent(fe),Me=me.length+1,ke=0;if(seG.getLineTokens(Z),getLanguageIdentifier:()=>G.getLanguageIdentifier(),getLanguageIdAtPosition:(Z,ne)=>G.getLanguageIdAtPosition(Z,ne),getLineContent:null};if(ie.startLineNumber===ie.endLineNumber&&1===G.getLineMaxColumn(ie.startLineNumber)){let ne=ie.startLineNumber,se=this._isMovingDown?ne+1:ne-1;1===G.getLineMaxColumn(se)?Z.addEditOperation(new Se.a(1,1,1,1),null):(Z.addEditOperation(new Se.a(ne,1,ne,1),G.getLineContent(se)),Z.addEditOperation(new Se.a(se,1,se,G.getLineMaxColumn(se)),null)),ie=new xe.a(se,1,se,1)}else{let ne,ce;if(this._isMovingDown){ne=ie.endLineNumber+1,ce=G.getLineContent(ne),Z.addEditOperation(new Se.a(ne-1,G.getLineMaxColumn(ne-1),ne,G.getLineMaxColumn(ne)),null);let Me=ce;if(this.shouldAutoIndent(G,ie)){let ke=this.matchEnterRule(G,me,se,ne,ie.startLineNumber-1);if(null!==ke){let Z=ge.y(G.getLineContent(ne)),ie=ke+$e.b(Z,se),me=$e.a(ie,se,fe);Me=me+this.trimLeft(ce)}else{Ce.getLineContent=Z=>Z===ie.startLineNumber?G.getLineContent(ne):G.getLineContent(Z);let Z=ze.a.getGoodIndentForLine(this._autoIndent,Ce,G.getLanguageIdAtPosition(ne,1),ie.startLineNumber,me);if(null!==Z){let ie=ge.y(G.getLineContent(ne)),me=$e.b(Z,se);if(me!==$e.b(ie,se)){let G=$e.a(me,se,fe);Me=G+this.trimLeft(ce)}}}Z.addEditOperation(new Se.a(ie.startLineNumber,1,ie.startLineNumber,1),Me+"\n");let xe=this.matchEnterRuleMovingDown(G,me,se,ie.startLineNumber,ne,Me);if(null!==xe)0!==xe&&this.getIndentEditsOfMovingBlock(G,Z,ie,se,fe,xe);else{Ce.getLineContent=Z=>Z===ie.startLineNumber?Me:Z>=ie.startLineNumber+1&&Z<=ie.endLineNumber+1?G.getLineContent(Z-1):G.getLineContent(Z);let ce=ze.a.getGoodIndentForLine(this._autoIndent,Ce,G.getLanguageIdAtPosition(ne,1),ie.startLineNumber+1,me);if(null!==ce){const ne=ge.y(G.getLineContent(ie.startLineNumber)),me=$e.b(ce,se),Ce=$e.b(ne,se);if(me!==Ce){const ne=me-Ce;this.getIndentEditsOfMovingBlock(G,Z,ie,se,fe,ne)}}}}else Z.addEditOperation(new Se.a(ie.startLineNumber,1,ie.startLineNumber,1),Me+"\n")}else if(ne=ie.startLineNumber-1,ce=G.getLineContent(ne),Z.addEditOperation(new Se.a(ne,1,ne+1,1),null),Z.addEditOperation(new Se.a(ie.endLineNumber,G.getLineMaxColumn(ie.endLineNumber),ie.endLineNumber,G.getLineMaxColumn(ie.endLineNumber)),"\n"+ce),this.shouldAutoIndent(G,ie)){Ce.getLineContent=Z=>Z===ne?G.getLineContent(ie.startLineNumber):G.getLineContent(Z);let ce=this.matchEnterRule(G,me,se,ie.startLineNumber,ie.startLineNumber-2);if(null!==ce)0!==ce&&this.getIndentEditsOfMovingBlock(G,Z,ie,se,fe,ce);else{let ce=ze.a.getGoodIndentForLine(this._autoIndent,Ce,G.getLanguageIdAtPosition(ie.startLineNumber,1),ne,me);if(null!==ce){let ne=ge.y(G.getLineContent(ie.startLineNumber)),me=$e.b(ce,se),Ce=$e.b(ne,se);if(me!==Ce){let ne=me-Ce;this.getIndentEditsOfMovingBlock(G,Z,ie,se,fe,ne)}}}}}this._selectionId=Z.trackSelection(ie)}buildIndentConverter(G,Z,ne){return{shiftIndent:ie=>Ie.a.shiftIndent(ie,ie.length+1,G,Z,ne),unshiftIndent:ie=>Ie.a.unshiftIndent(ie,ie.length+1,G,Z,ne)}}parseEnterResult(G,Z,ne,ie,se){if(se){let ce=se.indentation;se.indentAction===Re.b.None||se.indentAction===Re.b.Indent?ce=se.indentation+se.appendText:se.indentAction===Re.b.IndentOutdent?ce=se.indentation:se.indentAction===Re.b.Outdent&&(ce=Z.unshiftIndent(se.indentation)+se.appendText);let fe=G.getLineContent(ie);if(this.trimLeft(fe).indexOf(this.trimLeft(ce))>=0){let se=ge.y(G.getLineContent(ie)),fe=ge.y(ce),me=ze.a.getIndentMetadata(G,ie);return null!==me&&2&me&&(fe=Z.unshiftIndent(fe)),$e.b(fe,ne)-$e.b(se,ne)}}return null}matchEnterRuleMovingDown(G,Z,ne,ie,se,ce){if(ge.J(ce)>=0){let ce=G.getLineMaxColumn(se),fe=ze.a.getEnterAction(this._autoIndent,G,new Se.a(se,ce,se,ce));return this.parseEnterResult(G,Z,ne,ie,fe)}{let se=ie-1;for(;se>=1;){let Z=G.getLineContent(se);if(ge.J(Z)>=0)break;se--}if(se<1||ie>G.getLineCount())return null;let ce=G.getLineMaxColumn(se),fe=ze.a.getEnterAction(this._autoIndent,G,new Se.a(se,ce,se,ce));return this.parseEnterResult(G,Z,ne,ie,fe)}}matchEnterRule(G,Z,ne,ie,se,ce){let fe=se;for(;fe>=1;){let Z;if(Z=fe===se&&void 0!==ce?ce:G.getLineContent(fe),ge.J(Z)>=0)break;fe--}if(fe<1||ie>G.getLineCount())return null;let me=G.getLineMaxColumn(fe),Ce=ze.a.getEnterAction(this._autoIndent,G,new Se.a(fe,me,fe,me));return this.parseEnterResult(G,Z,ne,ie,Ce)}trimLeft(G){return G.replace(/^\s+/,"")}shouldAutoIndent(G,Z){if(this._autoIndent<4)return!1;if(!G.isCheapToTokenize(Z.startLineNumber))return!1;let ne=G.getLanguageIdAtPosition(Z.startLineNumber,1);return ne===G.getLanguageIdAtPosition(Z.endLineNumber,1)&&null!==ze.a.getIndentRulesSupport(ne)}getIndentEditsOfMovingBlock(G,Z,ne,ie,se,ce){for(let fe=ne.startLineNumber;fe<=ne.endLineNumber;fe++){let me=G.getLineContent(fe),Ce=ge.y(me),Me=$e.b(Ce,ie)+ce,ke=$e.a(Me,ie,se);ke!==Ce&&(Z.addEditOperation(new Se.a(fe,1,fe,Ce.length+1),ke),fe===ne.endLineNumber&&ne.endColumn<=Ce.length+1&&""===ke&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(G,Z){let ne=Z.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(ne=ne.setEndPosition(ne.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&ne.startLineNumber=se)return null;let ce=[];for(let Z=ie;Z<=se;Z++)ce.push(G.getLineContent(Z));let fe=ce.slice(0);return fe.sort(SortLinesCommand.getCollator().compare),!0===ne&&(fe=fe.reverse()),{startLineNumber:ie,endLineNumber:se,before:ce,after:fe}}SortLinesCommand._COLLATOR=null;var Je=ne(92);class linesOperations_AbstractCopyLinesAction extends fe.b{constructor(G,Z){super(Z),this.down=G}run(G,Z){if(!Z.hasModel())return;const ne=Z.getSelections().map((G,Z)=>({selection:G,index:Z,ignore:!1}));ne.sort((G,Z)=>Se.a.compareRangesUsingStarts(G.selection,Z.selection));let ie=ne[0];for(let G=1;Gnew ke.a(G.positionLineNumber,G.positionColumn)));let se=Z.getSelection();if(null===se)return;let ce=new TrimTrailingWhitespaceCommand(se,ie);Z.pushUndoStop(),Z.executeCommands(this.id,[ce]),Z.pushUndoStop()}}linesOperations_TrimTrailingWhitespaceAction.ID="editor.action.trimTrailingWhitespace";class linesOperations_DeleteLinesAction extends fe.b{constructor(){super({id:"editor.action.deleteLines",label:ie.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:De.a.writable,kbOpts:{kbExpr:De.a.textInputFocus,primary:3113,weight:100}})}run(G,Z){if(!Z.hasModel())return;let ne=this._getLinesToRemove(Z),ie=Z.getModel();if(1===ie.getLineCount()&&1===ie.getLineMaxColumn(1))return;let se=0,ce=[],fe=[];for(let G=0,Z=ne.length;G1&&(me-=1,Se=ie.getLineMaxColumn(me)),ce.push(Ce.a.replace(new xe.a(me,Se,ge,Me),"")),fe.push(new xe.a(me-se,Z.positionColumn,me-se,Z.positionColumn)),se+=Z.endLineNumber-Z.startLineNumber+1}Z.pushUndoStop(),Z.executeEdits(this.id,ce,fe),Z.pushUndoStop()}_getLinesToRemove(G){let Z=G.getSelections().map(G=>{let Z=G.endLineNumber;return G.startLineNumberG.startLineNumber===Z.startLineNumber?G.endLineNumber-Z.endLineNumber:G.startLineNumber-Z.startLineNumber);let ne=[],ie=Z[0];for(let G=1;G=Z[G].startLineNumber?ie.endLineNumber=Z[G].endLineNumber:(ne.push(ie),ie=Z[G]);return ne.push(ie),ne}}class linesOperations_IndentLinesAction extends fe.b{constructor(){super({id:"editor.action.indentLines",label:ie.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:2137,weight:100}})}run(G,Z){const ne=Z._getViewModel();ne&&(Z.pushUndoStop(),Z.executeCommands(this.id,Me.a.indent(ne.cursorConfig,Z.getModel(),Z.getSelections())),Z.pushUndoStop())}}class linesOperations_OutdentLinesAction extends fe.b{constructor(){super({id:"editor.action.outdentLines",label:ie.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:2135,weight:100}})}run(G,Z){ce.CoreEditingCommands.Outdent.runEditorCommand(G,Z,null)}}class linesOperations_InsertLineBeforeAction extends fe.b{constructor(){super({id:"editor.action.insertLineBefore",label:ie.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:3075,weight:100}})}run(G,Z){const ne=Z._getViewModel();ne&&(Z.pushUndoStop(),Z.executeCommands(this.id,Me.a.lineInsertBefore(ne.cursorConfig,Z.getModel(),Z.getSelections())))}}class linesOperations_InsertLineAfterAction extends fe.b{constructor(){super({id:"editor.action.insertLineAfter",label:ie.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:2051,weight:100}})}run(G,Z){const ne=Z._getViewModel();ne&&(Z.pushUndoStop(),Z.executeCommands(this.id,Me.a.lineInsertAfter(ne.cursorConfig,Z.getModel(),Z.getSelections())))}}class linesOperations_AbstractDeleteAllToBoundaryAction extends fe.b{run(G,Z){if(!Z.hasModel())return;const ne=Z.getSelection();let ie=this._getRangesToDelete(Z),se=[];for(let G=0,Z=ie.length-1;GCe.a.replace(G,""));Z.pushUndoStop(),Z.executeEdits(this.id,fe,ce),Z.pushUndoStop()}}class linesOperations_DeleteAllLeftAction extends linesOperations_AbstractDeleteAllToBoundaryAction{constructor(){super({id:"deleteAllLeft",label:ie.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:De.a.writable,kbOpts:{kbExpr:De.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(G,Z){let ne=null,ie=[],se=0;return Z.forEach(Z=>{let ce;if(1===Z.endColumn&&se>0){let G=Z.startLineNumber-se;ce=new xe.a(G,Z.startColumn,G,Z.startColumn)}else ce=new xe.a(Z.startLineNumber,Z.startColumn,Z.startLineNumber,Z.startColumn);se+=Z.endLineNumber-Z.startLineNumber,Z.intersectRanges(G)?ne=ce:ie.push(ce)}),ne&&ie.unshift(ne),ie}_getRangesToDelete(G){let Z=G.getSelections();if(null===Z)return[];let ne=Z,ie=G.getModel();return null===ie?[]:(ne.sort(Se.a.compareRangesUsingStarts),ne=ne.map(G=>{if(G.isEmpty()){if(1===G.startColumn){let Z=Math.max(1,G.startLineNumber-1),ne=1===G.startLineNumber?1:ie.getLineContent(Z).length+1;return new Se.a(Z,ne,G.startLineNumber,1)}return new Se.a(G.startLineNumber,1,G.startLineNumber,G.startColumn)}return new Se.a(G.startLineNumber,1,G.endLineNumber,G.endColumn)}),ne)}}class linesOperations_DeleteAllRightAction extends linesOperations_AbstractDeleteAllToBoundaryAction{constructor(){super({id:"deleteAllRight",label:ie.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:De.a.writable,kbOpts:{kbExpr:De.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(G,Z){let ne=null,ie=[];for(let se=0,ce=Z.length,fe=0;se{if(G.isEmpty()){const ne=Z.getLineMaxColumn(G.startLineNumber);return G.startColumn===ne?new Se.a(G.startLineNumber,G.startColumn,G.startLineNumber+1,1):new Se.a(G.startLineNumber,G.startColumn,G.startLineNumber,ne)}return G});return ie.sort(Se.a.compareRangesUsingStarts),ie}}class linesOperations_JoinLinesAction extends fe.b{constructor(){super({id:"editor.action.joinLines",label:ie.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(G,Z){let ne=Z.getSelections();if(null===ne)return;let ie=Z.getSelection();if(null===ie)return;ne.sort(Se.a.compareRangesUsingStarts);let se=[],ce=ne.reduce((G,Z)=>G.isEmpty()?G.endLineNumber===Z.startLineNumber?(ie.equalsSelection(G)&&(ie=Z),Z):Z.startLineNumber>G.endLineNumber+1?(se.push(G),Z):new xe.a(G.startLineNumber,G.startColumn,Z.endLineNumber,Z.endColumn):Z.startLineNumber>G.endLineNumber?(se.push(G),Z):new xe.a(G.startLineNumber,G.startColumn,Z.endLineNumber,Z.endColumn));se.push(ce);let fe=Z.getModel();if(null===fe)return;let me=[],ge=[],Me=ie,ke=0;for(let G=0,Z=se.length;G=1){let G=!0;""===$e&&(G=!1),!G||" "!==$e.charAt($e.length-1)&&"\t"!==$e.charAt($e.length-1)||(G=!1,$e=$e.replace(/[\s\uFEFF\xA0]+$/g," "));let ie=Z.substr(ne-1);$e+=(G?" ":"")+ie,Re=G?ie.length+1:ie.length}else Re=0}let Je=new Se.a(De,Ie,Z,ne);if(!Je.isEmpty()){let G;ce.isEmpty()?(me.push(Ce.a.replace(Je,$e)),G=new xe.a(Je.startLineNumber-ke,$e.length-Re+1,De-ke,$e.length-Re+1)):ce.startLineNumber===ce.endLineNumber?(me.push(Ce.a.replace(Je,$e)),G=new xe.a(ce.startLineNumber-ke,ce.startColumn,ce.endLineNumber-ke,ce.endColumn)):(me.push(Ce.a.replace(Je,$e)),G=new xe.a(ce.startLineNumber-ke,ce.startColumn,ce.startLineNumber-ke,$e.length-ze)),null!==Se.a.intersectRanges(Je,ie)?Me=G:ge.push(G)}ke+=Je.endLineNumber-Je.startLineNumber}ge.unshift(Me),Z.pushUndoStop(),Z.executeEdits(this.id,me,ge),Z.pushUndoStop()}}class linesOperations_TransposeAction extends fe.b{constructor(){super({id:"editor.action.transpose",label:ie.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:De.a.writable})}run(G,Z){let ne=Z.getSelections();if(null===ne)return;let ie=Z.getModel();if(null===ie)return;let se=[];for(let G=0,Z=ne.length;G=fe){if(ce.lineNumber===ie.getLineCount())continue;let G=new Se.a(ce.lineNumber,Math.max(1,ce.column-1),ce.lineNumber+1,1),Z=ie.getValueInRange(G).split("").reverse().join("");se.push(new me.a(new xe.a(ce.lineNumber,Math.max(1,ce.column-1),ce.lineNumber+1,1),Z))}else{let G=new Se.a(ce.lineNumber,Math.max(1,ce.column-1),ce.lineNumber,ce.column+1),Z=ie.getValueInRange(G).split("").reverse().join("");se.push(new me.b(G,Z,new xe.a(ce.lineNumber,ce.column+1,ce.lineNumber,ce.column+1)))}}Z.pushUndoStop(),Z.executeCommands(this.id,se),Z.pushUndoStop()}}class linesOperations_AbstractCaseAction extends fe.b{run(G,Z){const ne=Z.getSelections();if(null===ne)return;const ie=Z.getModel();if(null===ie)return;const se=Z.getOption(115),ce=[];for(const G of ne)if(G.isEmpty()){const ne=G.getStartPosition(),fe=Z.getConfiguredWordAtPosition(ne);if(!fe)continue;const me=new Se.a(ne.lineNumber,fe.startColumn,ne.lineNumber,fe.endColumn),ge=ie.getValueInRange(me);ce.push(Ce.a.replace(me,this._modifyText(ge,se)))}else{const Z=ie.getValueInRange(G);ce.push(Ce.a.replace(G,this._modifyText(Z,se)))}Z.pushUndoStop(),Z.executeEdits(this.id,ce),Z.pushUndoStop()}}class linesOperations_UpperCaseAction extends linesOperations_AbstractCaseAction{constructor(){super({id:"editor.action.transformToUppercase",label:ie.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:De.a.writable})}_modifyText(G,Z){return G.toLocaleUpperCase()}}class linesOperations_LowerCaseAction extends linesOperations_AbstractCaseAction{constructor(){super({id:"editor.action.transformToLowercase",label:ie.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:De.a.writable})}_modifyText(G,Z){return G.toLocaleLowerCase()}}class linesOperations_TitleCaseAction extends linesOperations_AbstractCaseAction{constructor(){super({id:"editor.action.transformToTitlecase",label:ie.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:De.a.writable})}_modifyText(G,Z){const ne=("\r\n\t "+Z).split("");let ie="",se=!0;for(let Z=0;Z=0?(se=!0,ie+=ce):se?(se=!1,ie+=ce.toLocaleUpperCase()):ie+=ce.toLocaleLowerCase()}return ie}}class BackwardsCompatibleRegExp{constructor(G,Z){this._pattern=G,this._flags=Z,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(G){}}return this._actual}isSupported(){return null!==this.get()}}class linesOperations_SnakeCaseAction extends linesOperations_AbstractCaseAction{constructor(){super({id:"editor.action.transformToSnakecase",label:ie.a("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:De.a.writable})}_modifyText(G,Z){const ne=linesOperations_SnakeCaseAction.regExp1.get(),ie=linesOperations_SnakeCaseAction.regExp2.get();return ne&&ie?G.replace(ne,"$1_$2").replace(ie,"$1_$2$3").toLocaleLowerCase():G}}linesOperations_SnakeCaseAction.regExp1=new BackwardsCompatibleRegExp("(\\p{Ll})(\\p{Lu})","gmu"),linesOperations_SnakeCaseAction.regExp2=new BackwardsCompatibleRegExp("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu"),Object(fe.j)(class linesOperations_CopyLinesUpAction extends linesOperations_AbstractCopyLinesAction{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:ie.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:Je.b.MenubarSelectionMenu,group:"2_line",title:ie.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Object(fe.j)(class linesOperations_CopyLinesDownAction extends linesOperations_AbstractCopyLinesAction{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:ie.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:Je.b.MenubarSelectionMenu,group:"2_line",title:ie.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Object(fe.j)(linesOperations_DuplicateSelectionAction),Object(fe.j)(class linesOperations_MoveLinesUpAction extends linesOperations_AbstractMoveLinesAction{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:ie.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:Je.b.MenubarSelectionMenu,group:"2_line",title:ie.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Object(fe.j)(class linesOperations_MoveLinesDownAction extends linesOperations_AbstractMoveLinesAction{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:ie.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:De.a.writable,kbOpts:{kbExpr:De.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:Je.b.MenubarSelectionMenu,group:"2_line",title:ie.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Object(fe.j)(linesOperations_SortLinesAscendingAction),Object(fe.j)(linesOperations_SortLinesDescendingAction),Object(fe.j)(linesOperations_TrimTrailingWhitespaceAction),Object(fe.j)(linesOperations_DeleteLinesAction),Object(fe.j)(linesOperations_IndentLinesAction),Object(fe.j)(linesOperations_OutdentLinesAction),Object(fe.j)(linesOperations_InsertLineBeforeAction),Object(fe.j)(linesOperations_InsertLineAfterAction),Object(fe.j)(linesOperations_DeleteAllLeftAction),Object(fe.j)(linesOperations_DeleteAllRightAction),Object(fe.j)(linesOperations_JoinLinesAction),Object(fe.j)(linesOperations_TransposeAction),Object(fe.j)(linesOperations_UpperCaseAction),Object(fe.j)(linesOperations_LowerCaseAction),Object(fe.j)(linesOperations_TitleCaseAction),linesOperations_SnakeCaseAction.regExp1.isSupported()&&linesOperations_SnakeCaseAction.regExp2.isSupported()&&Object(fe.j)(linesOperations_SnakeCaseAction)},8410:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"StandaloneCommandsQuickAccessProvider",(function(){return vt})),ne.d(Z,"GotoLineAction",(function(){return standaloneCommandsQuickAccess_GotoLineAction}));var ie,se=ne(180),ce=ne(647),fe=ne(188),me=ne(127),ge=ne(4),Ce=ne(103),Se=ne(10),Me=ne(57),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};function isPicksWithActive(G){const Z=G;return Array.isArray(Z.items)}!function(G){G[G.NO_ACTION=0]="NO_ACTION",G[G.CLOSE_PICKER=1]="CLOSE_PICKER",G[G.REFRESH_PICKER=2]="REFRESH_PICKER",G[G.REMOVE_ITEM=3]="REMOVE_ITEM"}(ie||(ie={}));class pickerQuickAccess_PickerQuickAccessProvider extends Se.a{constructor(G,Z){super(),this.prefix=G,this.options=Z}provide(G,Z){var ne;const se=new Se.b;G.canAcceptInBackground=!!(null===(ne=this.options)||void 0===ne?void 0:ne.canAcceptInBackground),G.matchOnLabel=G.matchOnDescription=G.matchOnDetail=G.sortByLabel=!1;let ce=void 0;const fe=se.add(new Se.d),updatePickerItems=()=>__awaiter(this,void 0,void 0,(function*(){const ne=fe.value=new Se.b;null==ce||ce.dispose(!0),G.busy=!1,ce=new Ce.b(Z);const ie=ce.token,se=G.value.substr(this.prefix.length).trim(),me=this._getPicks(se,ne,ie),applyPicks=(Z,ne)=>{var ie;let ce,fe=void 0;if(isPicksWithActive(Z)?(ce=Z.items,fe=Z.active):ce=Z,0===ce.length){if(ne)return!1;se.length>0&&(null===(ie=this.options)||void 0===ie?void 0:ie.noResultsPick)&&(ce=[this.options.noResultsPick])}return G.items=ce,fe&&(G.activeItems=[fe]),!0};if(null===me);else if(function isFastAndSlowPicks(G){const Z=G;return!!Z.picks&&Z.additionalPicks instanceof Promise}(me)){let Z=!1,ne=!1;yield Promise.all([(()=>__awaiter(this,void 0,void 0,(function*(){yield Object(Me.n)(pickerQuickAccess_PickerQuickAccessProvider.FAST_PICKS_RACE_DELAY),ie.isCancellationRequested||ne||(Z=applyPicks(me.picks,!0))})))(),(()=>__awaiter(this,void 0,void 0,(function*(){G.busy=!0;try{const se=yield me.additionalPicks;if(ie.isCancellationRequested)return;let ce,fe,ge=void 0;isPicksWithActive(me.picks)?(ce=me.picks.items,ge=me.picks.active):ce=me.picks;let Ce=void 0;if(isPicksWithActive(se)?(fe=se.items,Ce=se.active):fe=se,fe.length>0||!Z){let Z=void 0;if(!ge&&!Ce){const ne=G.activeItems[0];ne&&-1!==ce.indexOf(ne)&&(Z=ne)}applyPicks({items:[...ce,...fe],active:ge||Ce||Z})}}finally{ie.isCancellationRequested||(G.busy=!1),ne=!0}})))()])}else if(me instanceof Promise){G.busy=!0;try{const Z=yield me;if(ie.isCancellationRequested)return;applyPicks(Z)}finally{ie.isCancellationRequested||(G.busy=!1)}}else applyPicks(me)}));return se.add(G.onDidChangeValue(()=>updatePickerItems())),updatePickerItems(),se.add(G.onDidAccept(Z=>{const[ne]=G.selectedItems;"function"==typeof(null==ne?void 0:ne.accept)&&(Z.inBackground||G.hide(),ne.accept(G.keyMods,Z))})),se.add(G.onDidTriggerItemButton(({button:ne,item:se})=>__awaiter(this,void 0,void 0,(function*(){var ce,fe;if("function"==typeof se.trigger){const me=null!==(fe=null===(ce=se.buttons)||void 0===ce?void 0:ce.indexOf(ne))&&void 0!==fe?fe:-1;if(me>=0){const ne=se.trigger(me,G.keyMods),ce="number"==typeof ne?ne:yield ne;if(Z.isCancellationRequested)return;switch(ce){case ie.NO_ACTION:break;case ie.CLOSE_PICKER:G.hide();break;case ie.REFRESH_PICKER:updatePickerItems();break;case ie.REMOVE_ITEM:const Z=G.items.indexOf(se);if(-1!==Z){const ne=G.items.slice();ne.splice(Z,1),G.items=ne}}}}})))),se}}pickerQuickAccess_PickerQuickAccessProvider.FAST_PICKS_RACE_DELAY=200;var ke=ne(253),xe=ne(54),De=ne(234),Ie=ne(375),Re=ne(156),ze=ne(60),$e=ne(175),Je=ne(98),it=ne(574),ot=ne(51),at=ne(821),st=ne(235),ct=ne(69);function exceptionToErrorMessage(G,Z){return Z&&(G.stack||G.stacktrace)?ge.a("stackTrace.format","{0}: {1}",detectSystemErrorMessage(G),stackToString(G.stack)||stackToString(G.stacktrace)):detectSystemErrorMessage(G)}function stackToString(G){return Array.isArray(G)?G.join("\n"):G}function detectSystemErrorMessage(G){return"string"==typeof G.code&&"number"==typeof G.errno&&"string"==typeof G.syscall?ge.a("nodeExceptionMessage","A system error occurred ({0})",G.message):G.message||ge.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function toErrorMessage(G=null,Z=!1){if(!G)return ge.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(G)){const ne=ct.e(G),ie=toErrorMessage(ne[0],Z);return ne.length>1?ge.a("error.moreErrors","{0} ({1} errors in total)",ie,ne.length):ie}if(xe.k(G))return G;if(G.detail){const ne=G.detail;if(ne.error)return exceptionToErrorMessage(ne.error,Z);if(ne.exception)return exceptionToErrorMessage(ne.exception,Z)}return G.stack?exceptionToErrorMessage(G,Z):G.message?G.message:ge.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var __decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},commandsQuickAccess_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let ut=class AbstractCommandsQuickAccessProvider extends pickerQuickAccess_PickerQuickAccessProvider{constructor(G,Z,ne,ie,se,ce){super(AbstractCommandsQuickAccessProvider.PREFIX,G),this.instantiationService=Z,this.keybindingService=ne,this.commandService=ie,this.telemetryService=se,this.dialogService=ce,this.commandsHistory=this._register(this.instantiationService.createInstance(dt)),this.options=G}_getPicks(G,Z,ne){return commandsQuickAccess_awaiter(this,void 0,void 0,(function*(){const ie=yield this.getCommandPicks(Z,ne);if(ne.isCancellationRequested)return[];const se=[];for(const Z of ie){const ne=Object(xe.o)(AbstractCommandsQuickAccessProvider.WORD_FILTER(G,Z.label)),ie=Z.commandAlias?Object(xe.o)(AbstractCommandsQuickAccessProvider.WORD_FILTER(G,Z.commandAlias)):void 0;ne||ie?(Z.highlights={label:ne,detail:this.options.showAlias?ie:void 0},se.push(Z)):G===Z.commandId&&se.push(Z)}const ce=new Map;for(const G of se){const Z=ce.get(G.label);Z?(G.description=G.commandId,Z.description=Z.commandId):ce.set(G.label,G)}se.sort((G,Z)=>{const ne=this.commandsHistory.peek(G.commandId),ie=this.commandsHistory.peek(Z.commandId);return ne&&ie?ne>ie?-1:1:ne?-1:ie?1:G.label.localeCompare(Z.label)});const fe=[];let me=!1;for(let G=0;GcommandsQuickAccess_awaiter(this,void 0,void 0,(function*(){this.commandsHistory.push(Z.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:Z.commandId,from:"quick open"});try{yield this.commandService.executeCommand(Z.commandId)}catch(G){Object(ot.d)(G)||this.dialogService.show(st.a.Error,Object(ge.a)("canNotRun","Command '{0}' resulted in an error ({1})",Z.label,toErrorMessage(G)))}}))}))}return fe}))}};ut.PREFIX=">",ut.WORD_FILTER=Object(ke.j)(ke.h,ke.i,ke.f),ut=__decorate([__param(1,ze.a),__param(2,$e.a),__param(3,Je.b),__param(4,it.a),__param(5,at.a)],ut);let dt=class CommandsHistory extends Se.a{constructor(G,Z){super(),this.storageService=G,this.configurationService=Z,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=CommandsHistory.getConfiguredCommandHistoryLength(this.configurationService),CommandsHistory.cache&&CommandsHistory.cache.limit!==this.configuredCommandsHistoryLength&&(CommandsHistory.cache.limit=this.configuredCommandsHistoryLength,CommandsHistory.saveState(this.storageService))}load(){const G=this.storageService.get(CommandsHistory.PREF_KEY_CACHE,0);let Z;if(G)try{Z=JSON.parse(G)}catch(G){}const ne=CommandsHistory.cache=new De.a(this.configuredCommandsHistoryLength,1);if(Z){let G;G=Z.usesLRU?Z.entries:Z.entries.sort((G,Z)=>G.value-Z.value),G.forEach(G=>ne.set(G.key,G.value))}CommandsHistory.counter=this.storageService.getNumber(CommandsHistory.PREF_KEY_COUNTER,0,CommandsHistory.counter)}push(G){CommandsHistory.cache&&(CommandsHistory.cache.set(G,CommandsHistory.counter++),CommandsHistory.saveState(this.storageService))}peek(G){var Z;return null===(Z=CommandsHistory.cache)||void 0===Z?void 0:Z.peek(G)}static saveState(G){if(!CommandsHistory.cache)return;const Z={usesLRU:!0,entries:[]};CommandsHistory.cache.forEach((G,ne)=>Z.entries.push({key:ne,value:G})),G.store(CommandsHistory.PREF_KEY_CACHE,JSON.stringify(Z),0,0),G.store(CommandsHistory.PREF_KEY_COUNTER,CommandsHistory.counter,0,0)}static getConfiguredCommandHistoryLength(G){var Z,ne;const ie=null===(ne=null===(Z=G.getValue().workbench)||void 0===Z?void 0:Z.commandPalette)||void 0===ne?void 0:ne.history;return"number"==typeof ie?ie:CommandsHistory.DEFAULT_COMMANDS_HISTORY_LENGTH}};dt.DEFAULT_COMMANDS_HISTORY_LENGTH=50,dt.PREF_KEY_CACHE="commandPalette.mru.cache",dt.PREF_KEY_COUNTER="commandPalette.mru.counter",dt.counter=1,dt=__decorate([__param(0,Ie.a),__param(1,Re.a)],dt);var ht=ne(496);class commandsQuickAccess_AbstractEditorCommandsQuickAccessProvider extends ut{constructor(G,Z,ne,ie,se,ce){super(G,Z,ne,ie,se,ce)}getCodeEditorCommandPicks(){const G=this.activeTextEditorControl;if(!G)return[];const Z=[];for(const ne of G.getSupportedActions())Z.push({commandId:ne.id,commandAlias:ne.alias,label:Object(ht.e)(ne.label)||ne.id});return Z}}var ft=ne(14),_t=ne(23),yt=ne(493),standaloneCommandsQuickAccess_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},standaloneCommandsQuickAccess_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},standaloneCommandsQuickAccess_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let vt=class StandaloneCommandsQuickAccessProvider extends commandsQuickAccess_AbstractEditorCommandsQuickAccessProvider{constructor(G,Z,ne,ie,se,ce){super({showAlias:!1},G,ne,ie,se,ce),this.codeEditorService=Z}get activeTextEditorControl(){return Object(xe.o)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return standaloneCommandsQuickAccess_awaiter(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};vt=standaloneCommandsQuickAccess_decorate([standaloneCommandsQuickAccess_param(0,ze.a),standaloneCommandsQuickAccess_param(1,me.a),standaloneCommandsQuickAccess_param(2,$e.a),standaloneCommandsQuickAccess_param(3,Je.b),standaloneCommandsQuickAccess_param(4,it.a),standaloneCommandsQuickAccess_param(5,at.a)],vt),se.a.as(ce.b.Quickaccess).registerQuickAccessProvider({ctor:vt,prefix:vt.PREFIX,helpEntries:[{description:fe.d.quickCommandHelp,needsEditor:!0}]});class standaloneCommandsQuickAccess_GotoLineAction extends ft.b{constructor(){super({id:"editor.action.quickCommand",label:fe.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:_t.a.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(G){G.get(yt.a).quickAccess.show(vt.PREFIX)}}Object(ft.j)(standaloneCommandsQuickAccess_GotoLineAction)},8412:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"CodeLensContribution",(function(){return St}));var ie=ne(57),se=ne(51),ce=ne(10),fe=ne(332),me=ne(14),ge=ne(35),Ce=ne(103),Se=ne(94),Me=ne(187),ke=ne(98),xe=ne(54),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class codelens_CodeLensModel{constructor(){this.lenses=[],this._disposables=new ce.b}dispose(){this._disposables.dispose()}add(G,Z){this._disposables.add(G);for(const ne of G.lenses)this.lenses.push({symbol:ne,provider:Z})}}function getCodeLensModel(G,Z){return __awaiter(this,void 0,void 0,(function*(){const ne=ge.b.ordered(G),ie=new Map,ce=new codelens_CodeLensModel,fe=ne.map((ne,fe)=>__awaiter(this,void 0,void 0,(function*(){ie.set(ne,fe);try{const ie=yield Promise.resolve(ne.provideCodeLenses(G,Z));ie&&ce.add(ie,ne)}catch(G){Object(se.f)(G)}})));return yield Promise.all(fe),ce.lenses=ce.lenses.sort((G,Z)=>G.symbol.range.startLineNumberZ.symbol.range.startLineNumber?1:ie.get(G.provider)ie.get(Z.provider)?1:G.symbol.range.startColumnZ.symbol.range.startColumn?1:0),ce}))}ke.a.registerCommand("_executeCodeLensProvider",(function(G,...Z){let[ne,ie]=Z;Object(xe.c)(Se.a.isUri(ne)),Object(xe.c)("number"==typeof ie||!ie);const fe=G.get(Me.a).getModel(ne);if(!fe)throw Object(se.b)();const me=[],ge=new ce.b;return getCodeLensModel(fe,Ce.a.None).then(G=>{ge.add(G);let Z=[];for(const ne of G.lenses)null==ie||Boolean(ne.symbol.command)?me.push(ne.symbol):ie-- >0&&ne.provider.resolveCodeLens&&Z.push(Promise.resolve(ne.provider.resolveCodeLens(fe,ne.symbol,Ce.a.None)).then(G=>me.push(G||ne.symbol)));return Promise.all(Z)}).then(()=>me).finally(()=>{setTimeout(()=>ge.dispose(),100)})}));ne(7507);var De=ne(6),Ie=ne(12),Re=ne(117),ze=ne(168),$e=ne(13),Je=ne(50),it=ne(703);class CodeLensViewZone{constructor(G,Z,ne){this.afterLineNumber=G,this.heightInPx=Z,this._onHeight=ne,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(G){void 0===this._lastHeight?this._lastHeight=G:this._lastHeight!==G&&(this._lastHeight=G,this._onHeight())}}class codelensWidget_CodeLensContentWidget{constructor(G,Z,ne){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=G,this._id="codelens.widget-"+codelensWidget_CodeLensContentWidget._idPool++,this.updatePosition(ne),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+Z}withCommands(G,Z){this._commands.clear();let ne=[],ie=!1;for(let Z=0;Z{G.symbol.command&&ge.push(G.symbol),ie.addDecoration({range:G.symbol.range,options:Re.a.EMPTY},G=>this._decorationIds[Z]=G),me=me?Ie.a.plusRange(me,G.symbol.range):Ie.a.lift(G.symbol.range)}),this._viewZone=new CodeLensViewZone(me.startLineNumber-1,ce,fe),this._viewZoneId=se.addZone(this._viewZone),ge.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ge,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new codelensWidget_CodeLensContentWidget(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(G,Z){this._decorationIds.forEach(G.removeDecoration,G),this._decorationIds=[],Z&&Z.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((G,Z)=>{const ne=this._editor.getModel().getDecorationRange(G),ie=this._data[Z].symbol;return!(!ne||Ie.a.isEmpty(ie.range)!==ne.isEmpty())})}updateCodeLensSymbols(G,Z){this._decorationIds.forEach(Z.removeDecoration,Z),this._decorationIds=[],this._data=G,this._data.forEach((G,ne)=>{Z.addDecoration({range:G.symbol.range,options:Re.a.EMPTY},G=>this._decorationIds[ne]=G)})}updateHeight(G,Z){this._viewZone.heightInPx=G,Z.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(G){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let Z=0;Z{const ne=G.getColor(ze.e);ne&&(Z.addRule(`.monaco-editor .codelens-decoration { color: ${ne}; }`),Z.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${ne}; }`));const ie=G.getColor($e.q);ie&&(Z.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${ie} !important; }`),Z.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${ie} !important; }`))});var ot=ne(193),at=ne(60),st=ne(533),ct=ne(234),ut=ne(375),dt=ne(534),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const ht=Object(at.c)("ICodeLensCache");class CacheItem{constructor(G,Z){this.lineCount=G,this.data=Z}}let ft=class CodeLensCache{constructor(G){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new ct.a(20,.75);Object(ie.m)(()=>G.remove("codelens/cache",1));const Z="codelens/cache2",ne=G.get(Z,1,"{}");this._deserialize(ne),Object(dt.a)(G.onWillSaveState)(ne=>{ne.reason===ut.c.SHUTDOWN&&G.store(Z,this._serialize(),1,1)})}put(G,Z){const ne=Z.lenses.map(G=>{var Z;return{range:G.symbol.range,command:G.symbol.command&&{id:"",title:null===(Z=G.symbol.command)||void 0===Z?void 0:Z.title}}}),ie=new codelens_CodeLensModel;ie.add({lenses:ne,dispose:()=>{}},this._fakeProvider);const se=new CacheItem(G.getLineCount(),ie);this._cache.set(G.uri.toString(),se)}get(G){const Z=this._cache.get(G.uri.toString());return Z&&Z.lineCount===G.getLineCount()?Z.data:void 0}delete(G){this._cache.delete(G.uri.toString())}_serialize(){const G=Object.create(null);for(const[Z,ne]of this._cache){const ie=new Set;for(const G of ne.data.lenses)ie.add(G.symbol.range.startLineNumber);G[Z]={lineCount:ne.lineCount,lines:[...ie.values()]}}return JSON.stringify(G)}_deserialize(G){try{const Z=JSON.parse(G);for(const G in Z){const ne=Z[G],ie=[];for(const G of ne.lines)ie.push({range:new Ie.a(G,1,G,11)});const se=new codelens_CodeLensModel;se.add({lenses:ie,dispose(){}},this._fakeProvider),this._cache.set(G,new CacheItem(ne.lineCount,se))}}catch(G){}}};ft=__decorate([__param(0,ut.a)],ft),Object(st.b)(ht,ft);var _t=ne(700),yt=ne(493),vt=ne(4),wt=ne(23),Ct=ne(263),codelensController_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},codelensController_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},codelensController_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let St=class CodeLensContribution{constructor(G,Z,ne,se){this._editor=G,this._commandService=Z,this._notificationService=ne,this._codeLensCache=se,this._disposables=new ce.b,this._localToDispose=new ce.b,this._lenses=[],this._getCodeLensModelDelays=new Ct.b(ge.b,250,2500),this._oldCodeLensModels=new ce.b,this._resolveCodeLensesDelays=new Ct.b(ge.b,250,2500),this._resolveCodeLensesScheduler=new ie.e(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDelays.min),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(G=>{(G.hasChanged(41)||G.hasChanged(14)||G.hasChanged(13))&&this._updateLensStyle(),G.hasChanged(12)&&this._onModelChange()})),this._disposables.add(ge.b.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+Object(_t.b)(this._editor.getId()).toString(16),this._styleElement=De.w(De.O(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var G;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(G=this._currentCodeLensModel)||void 0===G||G.dispose(),this._styleElement.remove()}_getLayoutInfo(){let G,Z=this._editor.getOption(14);return!Z||Z<5?(Z=.9*this._editor.getOption(43)|0,G=this._editor.getOption(57)):G=Z*Math.max(1.3,this._editor.getOption(57)/this._editor.getOption(43))|0,{codeLensHeight:G,fontSize:Z}}_updateLensStyle(){const{codeLensHeight:G,fontSize:Z}=this._getLayoutInfo(),ne=this._editor.getOption(13),ie=this._editor.getOption(41),se="--codelens-font-family"+this._styleClassName,ce="--codelens-font-features"+this._styleClassName;let fe=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${G}px; font-size: ${Z}px; padding-right: ${Math.round(.5*Z)}px; font-feature-settings: var(${ce}) }\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${G}px; font-size: ${Z}px; }\n\t\t`;ne&&(fe+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${se})}`),this._styleElement.textContent=fe,this._editor.getContainerDomNode().style.setProperty(se,null!=ne?ne:"inherit"),this._editor.getContainerDomNode().style.setProperty(ce,ie.fontFeatureSettings),this._editor.changeViewZones(Z=>{for(let ne of this._lenses)ne.updateHeight(G,Z)})}_localDispose(){var G,Z,ne;null===(G=this._getCodeLensModelPromise)||void 0===G||G.cancel(),this._getCodeLensModelPromise=void 0,null===(Z=this._resolveCodeLensesPromise)||void 0===Z||Z.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(ne=this._currentCodeLensModel)||void 0===ne||ne.dispose()}_onModelChange(){this._localDispose();const G=this._editor.getModel();if(!G)return;if(!this._editor.getOption(12))return;const Z=this._codeLensCache.get(G);if(Z&&this._renderCodeLensSymbols(Z),!ge.b.has(G))return void(Z&&this._localToDispose.add(Object(ie.i)(()=>{const ne=this._codeLensCache.get(G);Z===ne&&(this._codeLensCache.delete(G),this._onModelChange())},3e4)));for(const Z of ge.b.all(G))if("function"==typeof Z.onDidChange){let G=Z.onDidChange(()=>ne.schedule());this._localToDispose.add(G)}const ne=new ie.e(()=>{var Z;const ce=Date.now();null===(Z=this._getCodeLensModelPromise)||void 0===Z||Z.cancel(),this._getCodeLensModelPromise=Object(ie.h)(Z=>getCodeLensModel(G,Z)),this._getCodeLensModelPromise.then(Z=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=Z,this._codeLensCache.put(G,Z);const ie=this._getCodeLensModelDelays.update(G,Date.now()-ce);ne.delay=ie,this._renderCodeLensSymbols(Z),this._resolveCodeLensesInViewport()},se.e)},this._getCodeLensModelDelays.get(G));this._localToDispose.add(ne),this._localToDispose.add(Object(ce.i)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(G=>{this._editor.changeViewZones(Z=>{let ne=[],ie=-1;this._lenses.forEach(G=>{G.isValid()&&ie!==G.getLineNumber()?(G.update(Z),ie=G.getLineNumber()):ne.push(G)});let se=new CodeLensHelper;ne.forEach(G=>{G.dispose(se,Z),this._lenses.splice(this._lenses.indexOf(G),1)}),se.commit(G)})}),ne.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{ne.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(G=>{G.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Object(ce.i)(()=>{if(this._editor.getModel()){const G=fe.c.capture(this._editor);this._editor.changeDecorations(G=>{this._editor.changeViewZones(Z=>{this._disposeAllLenses(G,Z)})}),G.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(G=>{if(9!==G.target.type)return;let Z=G.target.element;if("SPAN"===(null==Z?void 0:Z.tagName)&&(Z=Z.parentElement),"A"===(null==Z?void 0:Z.tagName))for(const G of this._lenses){let ne=G.getCommand(Z);if(ne){this._commandService.executeCommand(ne.id,...ne.arguments||[]).catch(G=>this._notificationService.error(G));break}}})),ne.schedule()}_disposeAllLenses(G,Z){const ne=new CodeLensHelper;for(const G of this._lenses)G.dispose(ne,Z);G&&ne.commit(G),this._lenses.length=0}_renderCodeLensSymbols(G){if(!this._editor.hasModel())return;let Z,ne=this._editor.getModel().getLineCount(),ie=[];for(let se of G.lenses){let G=se.symbol.range.startLineNumber;G<1||G>ne||(Z&&Z[Z.length-1].symbol.range.startLineNumber===G?Z.push(se):(Z=[se],ie.push(Z)))}const se=fe.c.capture(this._editor),ce=this._getLayoutInfo();this._editor.changeDecorations(G=>{this._editor.changeViewZones(Z=>{const ne=new CodeLensHelper;let se=0,fe=0;for(;fethis._resolveCodeLensesInViewportSoon())),se++,fe++)}for(;sethis._resolveCodeLensesInViewportSoon())),fe++;ne.commit(G)})}),se.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var G;null===(G=this._resolveCodeLensesPromise)||void 0===G||G.cancel(),this._resolveCodeLensesPromise=void 0;const Z=this._editor.getModel();if(!Z)return;const ne=[],ce=[];if(this._lenses.forEach(G=>{const ie=G.computeIfNecessary(Z);ie&&(ne.push(ie),ce.push(G))}),0===ne.length)return;const fe=Date.now(),me=Object(ie.h)(G=>{const ie=ne.map((ne,ie)=>{const fe=new Array(ne.length),me=ne.map((ne,ie)=>ne.symbol.command||"function"!=typeof ne.provider.resolveCodeLens?(fe[ie]=ne.symbol,Promise.resolve(void 0)):Promise.resolve(ne.provider.resolveCodeLens(Z,ne.symbol,G)).then(G=>{fe[ie]=G},se.f));return Promise.all(me).then(()=>{G.isCancellationRequested||ce[ie].isDisposed()||ce[ie].updateCommands(fe)})});return Promise.all(ie)});this._resolveCodeLensesPromise=me,this._resolveCodeLensesPromise.then(()=>{const G=this._resolveCodeLensesDelays.update(Z,Date.now()-fe);this._resolveCodeLensesScheduler.delay=G,this._currentCodeLensModel&&this._codeLensCache.put(Z,this._currentCodeLensModel),this._oldCodeLensModels.clear(),me===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},G=>{Object(se.e)(G),me===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getLenses(){return this._lenses}};St.ID="css.editor.codeLens",St=codelensController_decorate([codelensController_param(1,ke.b),codelensController_param(2,ot.a),codelensController_param(3,ht)],St),Object(me.l)(St.ID,St),Object(me.j)(class ShowLensesInCurrentLine extends me.b{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:wt.a.hasCodeLensProvider,label:Object(vt.a)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(G,Z){return codelensController_awaiter(this,void 0,void 0,(function*(){if(!Z.hasModel())return;const ne=G.get(yt.a),ie=G.get(ke.b),se=G.get(ot.a),ce=Z.getSelection().positionLineNumber,fe=Z.getContribution(St.ID),me=[];for(let G of fe.getLenses())if(G.getLineNumber()===ce)for(let Z of G.getItems()){const{command:G}=Z.symbol;G&&me.push({label:G.title,command:G})}if(0===me.length)return;const ge=yield ne.pick(me,{canPickMany:!1});if(ge)try{yield ie.executeCommand(ge.command.id,...ge.command.arguments||[])}catch(G){se.error(G)}}))}})},8413:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"TriggerParameterHintsAction",(function(){return parameterHints_TriggerParameterHintsAction}));var ie=ne(4),se=ne(10),ce=ne(60),fe=ne(23),me=ne(26),ge=ne(14),Ce=ne(6),Se=ne(215),Me=ne(416),ke=ne(19),xe=(ne(7617),ne(373)),De=ne(997),Ie=ne(51),Re=ne(34),ze=ne(35),$e=ne(103),Je=ne(98),it=ne(94),ot=ne(54),at=ne(417),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const st={Visible:new me.c("parameterHintsVisible",!1),MultipleSignatures:new me.c("parameterHintsMultipleSignatures",!1)};function provideSignatureHelp(G,Z,ne,ie){return __awaiter(this,void 0,void 0,(function*(){const se=ze.B.ordered(G);for(const ce of se)try{const se=yield ce.provideSignatureHelp(G,Z,ie,ne);if(se)return se}catch(G){Object(Ie.f)(G)}}))}Je.a.registerCommand("_executeSignatureHelpProvider",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){const[ne,ie,se]=Z;Object(ot.c)(it.a.isUri(ne)),Object(ot.c)(Re.a.isIPosition(ie)),Object(ot.c)("string"==typeof se||!se);const ce=yield G.get(at.a).createModelReference(ne);try{const G=yield provideSignatureHelp(ce.object.textEditorModel,Re.a.lift(ie),{triggerKind:ze.C.Invoke,isRetrigger:!1,triggerCharacter:se},$e.a.None);if(!G)return;return setTimeout(()=>G.dispose(),0),G.value}finally{ce.dispose()}})));var ct,ut=ne(306),dt=ne(13),ht=ne(50),ft=ne(57),_t=ne(577),parameterHintsModel_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};!function(G){G.Default={type:0};G.Pending=class Pending{constructor(G,Z){this.request=G,this.previouslyActiveHints=Z,this.type=2}};G.Active=class Active{constructor(G){this.hints=G,this.type=1}}}(ct||(ct={}));class parameterHintsModel_ParameterHintsModel extends se.a{constructor(G,Z=parameterHintsModel_ParameterHintsModel.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new ke.b),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=ct.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new se.d),this.triggerChars=new _t.b,this.retriggerChars=new _t.b,this.triggerId=0,this.editor=G,this.throttledDelayer=new ft.a(Z),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(G=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(G=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(G=>this.onCursorChange(G))),this._register(this.editor.onDidChangeModelContent(G=>this.onModelContentChange())),this._register(ze.B.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(G=>this.onDidType(G))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(G){2===this._state.type&&this._state.request.cancel(),this._state=G}cancel(G=!1){this.state=ct.Default,this.throttledDelayer.cancel(),G||this._onChangedHints.fire(void 0)}trigger(G,Z){const ne=this.editor.getModel();if(!ne||!ze.B.has(ne))return;const ie=++this.triggerId;this._pendingTriggers.push(G),this.throttledDelayer.trigger(()=>this.doTrigger(ie),Z).catch(Ie.e)}next(){if(1!==this.state.type)return;const G=this.state.hints.signatures.length,Z=this.state.hints.activeSignature,ne=Z%G==G-1,ie=this.editor.getOption(74).cycle;!(G<2||ne)||ie?this.updateActiveSignature(ne&&ie?0:Z+1):this.cancel()}previous(){if(1!==this.state.type)return;const G=this.state.hints.signatures.length,Z=this.state.hints.activeSignature,ne=0===Z,ie=this.editor.getOption(74).cycle;!(G<2||ne)||ie?this.updateActiveSignature(ne&&ie?G-1:Z-1):this.cancel()}updateActiveSignature(G){1===this.state.type&&(this.state=new ct.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:G})),this._onChangedHints.fire(this.state.hints))}doTrigger(G){return parameterHintsModel_awaiter(this,void 0,void 0,(function*(){const Z=1===this.state.type||2===this.state.type,ne=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const ie=this._pendingTriggers.reduce(mergeTriggerContexts);this._pendingTriggers=[];const se={triggerKind:ie.triggerKind,triggerCharacter:ie.triggerCharacter,isRetrigger:Z,activeSignatureHelp:ne};if(!this.editor.hasModel())return!1;const ce=this.editor.getModel(),fe=this.editor.getPosition();this.state=new ct.Pending(Object(ft.h)(G=>provideSignatureHelp(ce,fe,se,G)),ne);try{const Z=yield this.state.request;return G!==this.triggerId?(null==Z||Z.dispose(),!1):Z&&Z.value.signatures&&0!==Z.value.signatures.length?(this.state=new ct.Active(Z.value),this._lastSignatureHelpResult.value=Z,this._onChangedHints.fire(this.state.hints),!0):(null==Z||Z.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(Z){return G===this.triggerId&&(this.state=ct.Default),Object(Ie.e)(Z),!1}}))}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new _t.b,this.retriggerChars=new _t.b;const G=this.editor.getModel();if(G)for(const Z of ze.B.ordered(G)){for(const G of Z.signatureHelpTriggerCharacters||[])this.triggerChars.add(G.charCodeAt(0)),this.retriggerChars.add(G.charCodeAt(0));for(const G of Z.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(G.charCodeAt(0))}}onDidType(G){if(!this.triggerOnType)return;const Z=G.length-1,ne=G.charCodeAt(Z);(this.triggerChars.has(ne)||this.isTriggered&&this.retriggerChars.has(ne))&&this.trigger({triggerKind:ze.C.TriggerCharacter,triggerCharacter:G.charAt(Z)})}onCursorChange(G){"mouse"===G.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:ze.C.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:ze.C.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(74).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function mergeTriggerContexts(G,Z){switch(Z.triggerKind){case ze.C.Invoke:return Z;case ze.C.ContentChange:return G;case ze.C.TriggerCharacter:default:return Z}}parameterHintsModel_ParameterHintsModel.DEFAULT_DELAY=120;var yt=ne(27),vt=ne(67),wt=ne(495),Ct=ne(296),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const St=Ce.a,Mt=Object(Ct.b)("parameter-hints-next",vt.b.chevronDown,ie.a("parameterHintsNextIcon","Icon for show next parameter hint.")),kt=Object(Ct.b)("parameter-hints-previous",vt.b.chevronUp,ie.a("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let xt=class ParameterHintsWidget extends se.a{constructor(G,Z,ne,ie){super(),this.editor=G,this.renderDisposeables=this._register(new se.b),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new De.a({editor:G},ie,ne)),this.model=this._register(new parameterHintsModel_ParameterHintsModel(G)),this.keyVisible=st.Visible.bindTo(Z),this.keyMultipleSignatures=st.MultipleSignatures.bindTo(Z),this._register(this.model.onChangedHints(G=>{G?(this.show(),this.render(G)):this.hide()}))}createParameterHintDOMNodes(){const G=St(".editor-widget.parameter-hints-widget"),Z=Ce.q(G,St(".phwrapper"));Z.tabIndex=-1;const ne=Ce.q(Z,St(".controls")),ie=Ce.q(ne,St(".button"+ht.d.asCSSSelector(kt))),se=Ce.q(ne,St(".overloads")),ce=Ce.q(ne,St(".button"+ht.d.asCSSSelector(Mt)));this._register(Ce.i(ie,"click",G=>{Ce.c.stop(G),this.previous()})),this._register(Ce.i(ce,"click",G=>{Ce.c.stop(G),this.next()}));const fe=St(".body"),me=new Me.a(fe,{});this._register(me),Z.appendChild(me.getDomNode());const ge=Ce.q(fe,St(".signature")),Se=Ce.q(fe,St(".docs"));G.style.userSelect="text",this.domNodes={element:G,signature:ge,overloads:se,docs:Se,scrollbar:me},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(G=>{this.visible&&this.editor.layoutContentWidget(this)}));const updateFont=()=>{if(!this.domNodes)return;const G=this.editor.getOption(41);this.domNodes.element.style.fontSize=G.fontSize+"px"};updateFont(),this._register(ke.c.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(G=>G.hasChanged(41)).on(updateFont,null)),this._register(this.editor.onDidLayoutChange(G=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&this.domNodes.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&this.domNodes.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(G){var Z;if(this.renderDisposeables.clear(),!this.domNodes)return;const ne=G.signatures.length>1;this.domNodes.element.classList.toggle("multiple",ne),this.keyMultipleSignatures.set(ne),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const se=G.signatures[G.activeSignature];if(!se)return;const ce=Ce.q(this.domNodes.signature,St(".code")),fe=this.editor.getOption(41);ce.style.fontSize=fe.fontSize+"px",ce.style.fontFamily=fe.fontFamily;const me=se.parameters.length>0,ge=null!==(Z=se.activeParameter)&&void 0!==Z?Z:G.activeParameter;if(me)this.renderParameters(ce,se,ge);else{Ce.q(ce,St("span")).textContent=se.label}const Me=se.parameters[ge];if(null==Me?void 0:Me.documentation){const G=St("span.documentation");if("string"==typeof Me.documentation)G.textContent=Me.documentation;else{const Z=this.renderMarkdownDocs(Me.documentation);G.appendChild(Z.element)}Ce.q(this.domNodes.docs,St("p",{},G))}if(void 0===se.documentation);else if("string"==typeof se.documentation)Ce.q(this.domNodes.docs,St("p",{},se.documentation));else{const G=this.renderMarkdownDocs(se.documentation);Ce.q(this.domNodes.docs,G.element)}const ke=this.hasDocs(se,Me);if(this.domNodes.signature.classList.toggle("has-docs",ke),this.domNodes.docs.classList.toggle("empty",!ke),this.domNodes.overloads.textContent=String(G.activeSignature+1).padStart(G.signatures.length.toString().length,"0")+"/"+G.signatures.length,Me){const G=this.getParameterLabel(se,ge);this.announcedLabel!==G&&(Se.a(ie.a("hint","{0}, hint",G)),this.announcedLabel=G)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(G){const Z=this.renderDisposeables.add(this.markdownRenderer.render(G,{asyncRenderCallback:()=>{var G;null===(G=this.domNodes)||void 0===G||G.scrollbar.scanDomNode()}}));return Z.element.classList.add("markdown-docs"),Z}hasDocs(G,Z){return!!(Z&&"string"==typeof Z.documentation&&Object(ot.a)(Z.documentation).length>0)||(!!(Z&&"object"==typeof Z.documentation&&Object(ot.a)(Z.documentation).value.length>0)||(!!(G.documentation&&"string"==typeof G.documentation&&Object(ot.a)(G.documentation).length>0)||!!(G.documentation&&"object"==typeof G.documentation&&Object(ot.a)(G.documentation.value).length>0)))}renderParameters(G,Z,ne){const[ie,se]=this.getParameterLabelOffsets(Z,ne),ce=document.createElement("span");ce.textContent=Z.label.substring(0,ie);const fe=document.createElement("span");fe.textContent=Z.label.substring(ie,se),fe.className="parameter active";const me=document.createElement("span");me.textContent=Z.label.substring(se),Ce.q(G,ce,fe,me)}getParameterLabel(G,Z){const ne=G.parameters[Z];return Array.isArray(ne.label)?G.label.substring(ne.label[0],ne.label[1]):ne.label}getParameterLabelOffsets(G,Z){const ne=G.parameters[Z];if(ne){if(Array.isArray(ne.label))return ne.label;if(ne.label.length){const Z=new RegExp(`(\\W|^)${Object(yt.u)(ne.label)}(?=\\W|$)`,"g");Z.test(G.label);const ie=Z.lastIndex-ne.label.length;return ie>=0?[ie,Z.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return ParameterHintsWidget.ID}trigger(G){this.model.trigger(G,0)}updateMaxHeight(){if(!this.domNodes)return;const G=Math.max(this.editor.getLayoutInfo().height/4,250)+"px";this.domNodes.element.style.maxHeight=G;const Z=this.domNodes.element.getElementsByClassName("phwrapper");Z.length&&(Z[0].style.maxHeight=G)}};xt.ID="editor.widget.parameterHintsWidget",xt=__decorate([__param(1,me.b),__param(2,ut.a),__param(3,xe.a)],xt),Object(ht.f)((G,Z)=>{const ne=G.getColor(dt.F);if(ne){const ie=G.type===wt.a.HIGH_CONTRAST?2:1;Z.addRule(`.monaco-editor .parameter-hints-widget { border: ${ie}px solid ${ne}; }`),Z.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${ne.transparent(.5)}; }`),Z.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${ne.transparent(.5)}; }`)}const ie=G.getColor(dt.E);ie&&Z.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${ie}; }`);const se=G.getColor(dt.Jc);se&&Z.addRule(`.monaco-editor .parameter-hints-widget a { color: ${se}; }`);const ce=G.getColor(dt.G);ce&&Z.addRule(`.monaco-editor .parameter-hints-widget { color: ${ce}; }`);const fe=G.getColor(dt.Hc);fe&&Z.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${fe}; }`)});var parameterHints_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},parameterHints_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Lt=class ParameterHintsController extends se.a{constructor(G,Z){super(),this.editor=G,this.widget=this._register(Z.createInstance(xt,this.editor))}static get(G){return G.getContribution(ParameterHintsController.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(G){this.widget.trigger(G)}};Lt.ID="editor.controller.parameterHints",Lt=parameterHints_decorate([parameterHints_param(1,ce.a)],Lt);class parameterHints_TriggerParameterHintsAction extends ge.b{constructor(){super({id:"editor.action.triggerParameterHints",label:ie.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:fe.a.hasSignatureHelpProvider,kbOpts:{kbExpr:fe.a.editorTextFocus,primary:3082,weight:100}})}run(G,Z){const ne=Lt.get(Z);ne&&ne.trigger({triggerKind:ze.C.Invoke})}}Object(ge.l)(Lt.ID,Lt),Object(ge.j)(parameterHints_TriggerParameterHintsAction);const Tt=ge.c.bindToContribution(Lt.get);Object(ge.k)(new Tt({id:"closeParameterHints",precondition:st.Visible,handler:G=>G.cancel(),kbOpts:{weight:175,kbExpr:fe.a.focus,primary:9,secondary:[1033]}})),Object(ge.k)(new Tt({id:"showPrevParameterHint",precondition:me.a.and(st.Visible,st.MultipleSignatures),handler:G=>G.previous(),kbOpts:{weight:175,kbExpr:fe.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(ge.k)(new Tt({id:"showNextParameterHint",precondition:me.a.and(st.Visible,st.MultipleSignatures),handler:G=>G.next(),kbOpts:{weight:175,kbExpr:fe.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},8416:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(4),se=ne(165),ce=ne(14),fe=ne(12),me=ne(23),ge=ne(221),Ce=ne(34),Se=ne(80),Me=ne(122);class blockCommentCommand_BlockCommentCommand{constructor(G,Z){this._selection=G,this._insertSpace=Z,this._usedEndToken=null}static _haystackHasNeedleAtOffset(G,Z,ne){if(ne<0)return!1;const ie=Z.length;if(ne+ie>G.length)return!1;for(let se=0;se=65&&ie<=90&&ie+32===ce||ce>=65&&ce<=90&&ce+32===ie))return!1}return!0}_createOperationsForBlockComment(G,Z,ne,ie,se,ce){const me=G.startLineNumber,ge=G.startColumn,Ce=G.endLineNumber,Se=G.endColumn,Me=se.getLineContent(me),ke=se.getLineContent(Ce);let xe,De=Me.lastIndexOf(Z,ge-1+Z.length),Ie=ke.indexOf(ne,Se-1-ne.length);if(-1!==De&&-1!==Ie)if(me===Ce){Me.substring(De+Z.length,Ie).indexOf(ne)>=0&&(De=-1,Ie=-1)}else{const G=Me.substring(De+Z.length),ie=ke.substring(0,Ie);(G.indexOf(ne)>=0||ie.indexOf(ne)>=0)&&(De=-1,Ie=-1)}-1!==De&&-1!==Ie?(ie&&De+Z.length0&&32===ke.charCodeAt(Ie-1)&&(ne=" "+ne,Ie-=1),xe=blockCommentCommand_BlockCommentCommand._createRemoveBlockCommentOperations(new fe.a(me,De+Z.length+1,Ce,Ie+1),Z,ne)):(xe=blockCommentCommand_BlockCommentCommand._createAddBlockCommentOperations(G,Z,ne,this._insertSpace),this._usedEndToken=1===xe.length?ne:null);for(const G of xe)ce.addTrackedEditOperation(G.range,G.text)}static _createRemoveBlockCommentOperations(G,Z,ne){let ie=[];return fe.a.isEmpty(G)?ie.push(ge.a.delete(new fe.a(G.startLineNumber,G.startColumn-Z.length,G.endLineNumber,G.endColumn+ne.length))):(ie.push(ge.a.delete(new fe.a(G.startLineNumber,G.startColumn-Z.length,G.startLineNumber,G.startColumn))),ie.push(ge.a.delete(new fe.a(G.endLineNumber,G.endColumn,G.endLineNumber,G.endColumn+ne.length)))),ie}static _createAddBlockCommentOperations(G,Z,ne,ie){let se=[];return fe.a.isEmpty(G)?se.push(ge.a.replace(new fe.a(G.startLineNumber,G.startColumn,G.endLineNumber,G.endColumn),Z+" "+ne)):(se.push(ge.a.insert(new Ce.a(G.startLineNumber,G.startColumn),Z+(ie?" ":""))),se.push(ge.a.insert(new Ce.a(G.endLineNumber,G.endColumn),(ie?" ":"")+ne))),se}getEditOperations(G,Z){const ne=this._selection.startLineNumber,ie=this._selection.startColumn;G.tokenizeIfCheap(ne);const se=G.getLanguageIdAtPosition(ne,ie),ce=Me.a.getComments(se);ce&&ce.blockCommentStartToken&&ce.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,ce.blockCommentStartToken,ce.blockCommentEndToken,this._insertSpace,G,Z)}computeCursorState(G,Z){const ne=Z.getInverseEditOperations();if(2===ne.length){const G=ne[0],Z=ne[1];return new Se.a(G.range.endLineNumber,G.range.endColumn,Z.range.startLineNumber,Z.range.startColumn)}{const G=ne[0].range,Z=this._usedEndToken?-this._usedEndToken.length-1:0;return new Se.a(G.endLineNumber,G.endColumn+Z,G.endLineNumber,G.endColumn+Z)}}}var ke=ne(27);class lineCommentCommand_LineCommentCommand{constructor(G,Z,ne,ie,se,ce){this._selection=G,this._tabSize=Z,this._type=ne,this._insertSpace=ie,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=se,this._ignoreFirstLine=ce||!1}static _gatherPreflightCommentStrings(G,Z,ne){G.tokenizeIfCheap(Z);const ie=G.getLanguageIdAtPosition(Z,1),se=Me.a.getComments(ie),ce=se?se.lineCommentToken:null;if(!ce)return null;let fe=[];for(let G=0,ie=ne-Z+1;Gfe?se-1:se}}}var xe=ne(92);class comment_CommentLineAction extends ce.b{constructor(G,Z){super(Z),this._type=G}run(G,Z){if(!Z.hasModel())return;const ne=[],ie=Z.getModel().getOptions(),se=Z.getOption(17),ce=Z.getSelections().map((G,Z)=>({selection:G,index:Z,ignoreFirstLine:!1}));ce.sort((G,Z)=>fe.a.compareRangesUsingStarts(G.selection,Z.selection));let me=ce[0];for(let G=1;G1?function doScoreFuzzy2Multiple(G,Z,ne,ie){let se=0;const ce=[];for(const fe of Z){const[Z,me]=doScoreFuzzy2Single(G,fe,ne,ie);if("number"!=typeof Z)return De;se+=Z,ce.push(...me)}return[se,normalizeMatches(ce)]}(G,se.values,ne,ie):doScoreFuzzy2Single(G,Z,ne,ie)}function doScoreFuzzy2Single(G,Z,ne,ie){const se=Object(Me.d)(Z.original,Z.originalLowercase,ne,G,G.toLowerCase(),ie,!0);return se?[se[0],Object(Me.c)(se)]:De}function normalizeMatches(G){const Z=G.sort((G,Z)=>G.start-Z.start),ne=[];let ie=void 0;for(const G of Z)ie&&matchOverlaps(ie,G)?(ie.start=Math.min(ie.start,G.start),ie.end=Math.max(ie.end,G.end)):(ie=G,ne.push(G));return ne}function matchOverlaps(G,Z){return!(G.end=0;let fe=void 0;const me=G.split(" ");if(me.length>1)for(const G of me){const{pathNormalized:Z,normalized:ne,normalizedLowercase:ie}=normalizeQuery(G);ne&&(fe||(fe=[]),fe.push({original:G,originalLowercase:G.toLowerCase(),pathNormalized:Z,normalized:ne,normalizedLowercase:ie}))}return{original:G,originalLowercase:Z,pathNormalized:ne,normalized:ie,normalizedLowercase:se,values:fe,containsPathSeparator:ce}}function normalizeQuery(G){let Z;Z=xe.j?G.replace(/\//g,ke.h):G.replace(/\\/g,ke.h);const ne=Object(Se.U)(Z).replace(/\s/g,"");return{pathNormalized:Z,normalized:ne,normalizedLowercase:ne.toLowerCase()}}function pieceToQuery(G){return Array.isArray(G)?prepareQuery(G.map(G=>G.original).join(" ")):prepareQuery(G.original)}var Ie=ne(67),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider extends me.a{constructor(G=Object.create(null)){super(G),this.options=G,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(G){return this.provideLabelPick(G,Object(ie.a)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),ce.a.None}provideWithTextEditor(G,Z,ne){const ie=G.editor,se=this.getModel(ie);return se?ge.m.has(se)?this.doProvideWithEditorSymbols(G,se,Z,ne):this.doProvideWithoutEditorSymbols(G,se,Z,ne):ce.a.None}doProvideWithoutEditorSymbols(G,Z,ne,se){const fe=new ce.b;return this.provideLabelPick(ne,Object(ie.a)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{__awaiter(this,void 0,void 0,(function*(){(yield this.waitForLanguageSymbolRegistry(Z,fe))&&!se.isCancellationRequested&&fe.add(this.doProvideWithEditorSymbols(G,Z,ne,se))}))})(),fe}provideLabelPick(G,Z){G.items=[{label:Z,index:0,kind:14}],G.ariaLabel=Z}waitForLanguageSymbolRegistry(G,Z){return __awaiter(this,void 0,void 0,(function*(){if(ge.m.has(G))return!0;let ne;const ie=new Promise(G=>ne=G),se=Z.add(ge.m.onDidChange(()=>{ge.m.has(G)&&(se.dispose(),ne(!0))}));return Z.add(Object(ce.i)(()=>ne(!1))),ie}))}doProvideWithEditorSymbols(G,Z,ne,fe){const me=G.editor,ge=new ce.b;ge.add(ne.onDidAccept(Z=>{const[ie]=ne.selectedItems;ie&&ie.range&&(this.gotoLocation(G,{range:ie.range.selection,keyMods:ne.keyMods,preserveFocus:Z.inBackground}),Z.inBackground||ne.hide())})),ge.add(ne.onDidTriggerItemButton(({item:Z})=>{Z&&Z.range&&(this.gotoLocation(G,{range:Z.range.selection,keyMods:ne.keyMods,forceSideBySide:!0}),ne.hide())}));const Ce=this.getDocumentSymbols(Z,fe);let Se=void 0;const updatePickerItems=()=>__awaiter(this,void 0,void 0,(function*(){null==Se||Se.dispose(!0),ne.busy=!1,Se=new se.b(fe),ne.busy=!0;try{const G=prepareQuery(ne.value.substr(gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX.length).trim()),Z=yield this.doGetSymbolPicks(Ce,G,void 0,Se.token);if(fe.isCancellationRequested)return;Z.length>0?ne.items=Z:G.original.length>0?this.provideLabelPick(ne,Object(ie.a)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(ne,Object(ie.a)("noSymbolResults","No editor symbols"))}finally{fe.isCancellationRequested||(ne.busy=!1)}}));ge.add(ne.onDidChangeValue(()=>updatePickerItems())),updatePickerItems();let Me=!0;return ge.add(ne.onDidChangeActive(()=>{const[G]=ne.activeItems;if(G&&G.range){if(Me)return void(Me=!1);me.revealRangeInCenter(G.range.selection,0),this.addDecorations(me,G.range.decoration)}})),ge}doGetSymbolPicks(G,Z,ne,se){return __awaiter(this,void 0,void 0,(function*(){const ce=yield G;if(se.isCancellationRequested)return[];const me=0===Z.original.indexOf(gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX),Ce=me?1:0;let Me,ke;Z.values&&Z.values.length>1?(Me=pieceToQuery(Z.values[0]),ke=pieceToQuery(Z.values.slice(1))):Me=Z;const xe=[];for(let G=0;GCe){let G=!1;if(Me!==Z&&([$e,Je]=scoreFuzzy2(De,Object.assign(Object.assign({},Z),{values:void 0}),Ce,Re),"number"==typeof $e&&(G=!0)),"number"!=typeof $e&&([$e,Je]=scoreFuzzy2(De,Me,Ce,Re),"number"!=typeof $e))continue;if(!G&&ke){if(ze&&ke.original.length>0&&([it,ot]=scoreFuzzy2(ze,ke)),"number"!=typeof it)continue;"number"==typeof $e&&($e+=it)}}const at=se.tags&&se.tags.indexOf(1)>=0;xe.push({index:G,kind:se.kind,score:$e,label:De,ariaLabel:me,description:ze,highlights:at?void 0:{label:Je,description:ot},range:{selection:fe.a.collapseToStart(se.selectionRange),decoration:se.range},strikethrough:at,buttons:(()=>{var G,Z;const ne=(null===(G=this.options)||void 0===G?void 0:G.openSideBySideDirection)?null===(Z=this.options)||void 0===Z?void 0:Z.openSideBySideDirection():void 0;if(ne)return[{iconClass:"right"===ne?Ie.b.splitHorizontal.classNames:Ie.b.splitVertical.classNames,tooltip:"right"===ne?Object(ie.a)("openToSide","Open to the Side"):Object(ie.a)("openToBottom","Open to the Bottom")}]})()})}const De=xe.sort((G,Z)=>me?this.compareByKindAndScore(G,Z):this.compareByScore(G,Z));let $e=[];if(me){let G=void 0,Z=void 0,ne=0;function updateLastSeparatorLabel(){Z&&"number"==typeof G&&ne>0&&(Z.label=Object(Se.w)(ze[G]||Re,ne))}for(const ie of De)G!==ie.kind?(updateLastSeparatorLabel(),G=ie.kind,ne=1,Z={type:"separator"},$e.push(Z)):ne++,$e.push(ie);updateLastSeparatorLabel()}else De.length>0&&($e=[{label:Object(ie.a)("symbols","symbols ({0})",xe.length),type:"separator"},...De]);return $e}))}compareByScore(G,Z){if("number"!=typeof G.score&&"number"==typeof Z.score)return 1;if("number"==typeof G.score&&"number"!=typeof Z.score)return-1;if("number"==typeof G.score&&"number"==typeof Z.score){if(G.score>Z.score)return-1;if(G.scoreZ.index?1:0}compareByKindAndScore(G,Z){const ne=ze[G.kind]||Re,ie=ze[Z.kind]||Re,se=ne.localeCompare(ie);return 0===se?this.compareByScore(G,Z):se}getDocumentSymbols(G,Z){return __awaiter(this,void 0,void 0,(function*(){const ne=yield Ce.a.create(G,Z);return Z.isCancellationRequested?[]:ne.asListOfDocumentSymbols()}))}}gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX="@",gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX=":",gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY=`${gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX}${gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.SCOPE_PREFIX}`;const Re=Object(ie.a)("property","properties ({0})"),ze={5:Object(ie.a)("method","methods ({0})"),11:Object(ie.a)("function","functions ({0})"),8:Object(ie.a)("_constructor","constructors ({0})"),12:Object(ie.a)("variable","variables ({0})"),4:Object(ie.a)("class","classes ({0})"),22:Object(ie.a)("struct","structs ({0})"),23:Object(ie.a)("event","events ({0})"),24:Object(ie.a)("operator","operators ({0})"),10:Object(ie.a)("interface","interfaces ({0})"),2:Object(ie.a)("namespace","namespaces ({0})"),3:Object(ie.a)("package","packages ({0})"),25:Object(ie.a)("typeParameter","type parameters ({0})"),1:Object(ie.a)("modules","modules ({0})"),6:Object(ie.a)("property","properties ({0})"),9:Object(ie.a)("enum","enumerations ({0})"),21:Object(ie.a)("enumMember","enumeration members ({0})"),14:Object(ie.a)("string","strings ({0})"),0:Object(ie.a)("file","files ({0})"),17:Object(ie.a)("array","arrays ({0})"),15:Object(ie.a)("number","numbers ({0})"),16:Object(ie.a)("boolean","booleans ({0})"),18:Object(ie.a)("object","objects ({0})"),19:Object(ie.a)("key","keys ({0})"),7:Object(ie.a)("field","fields ({0})"),13:Object(ie.a)("constant","constants ({0})")};var $e=ne(180),Je=ne(647),it=ne(127),ot=ne(54),at=ne(188),st=ne(19),ct=ne(14),ut=ne(23),dt=ne(493),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let ht=class StandaloneGotoSymbolQuickAccessProvider extends gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider{constructor(G){super(),this.editorService=G,this.onDidActiveTextEditorControlChange=st.c.None}get activeTextEditorControl(){return Object(ot.o)(this.editorService.getFocusedCodeEditor())}};ht=__decorate([__param(0,it.a)],ht),$e.a.as(Je.b.Quickaccess).registerQuickAccessProvider({ctor:ht,prefix:gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX,helpEntries:[{description:at.f.quickOutlineActionLabel,prefix:gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX,needsEditor:!0},{description:at.f.quickOutlineByCategoryActionLabel,prefix:gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY,needsEditor:!0}]});class standaloneGotoSymbolQuickAccess_GotoLineAction extends ct.b{constructor(){super({id:"editor.action.quickOutline",label:at.f.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:ut.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:ut.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(G){G.get(dt.a).quickAccess.show(gotoSymbolQuickAccess_AbstractGotoSymbolQuickAccessProvider.PREFIX)}}Object(ct.j)(standaloneGotoSymbolQuickAccess_GotoLineAction)},8419:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"SortableContext",(function(){return SortableContext})),ne.d(Z,"arrayMove",(function(){return arrayMove})),ne.d(Z,"arraySwap",(function(){return arraySwap})),ne.d(Z,"defaultAnimateLayoutChanges",(function(){return defaultAnimateLayoutChanges})),ne.d(Z,"defaultNewIndexGetter",(function(){return defaultNewIndexGetter})),ne.d(Z,"hasSortableData",(function(){return hasSortableData})),ne.d(Z,"horizontalListSortingStrategy",(function(){return horizontalListSortingStrategy})),ne.d(Z,"rectSortingStrategy",(function(){return rectSortingStrategy})),ne.d(Z,"rectSwappingStrategy",(function(){return rectSwappingStrategy})),ne.d(Z,"sortableKeyboardCoordinates",(function(){return sortableKeyboardCoordinates})),ne.d(Z,"useSortable",(function(){return useSortable})),ne.d(Z,"verticalListSortingStrategy",(function(){return verticalListSortingStrategy}));var ie=ne(0),se=ne.n(ie),ce=ne(499);function isWindow(G){const Z=Object.prototype.toString.call(G);return"[object Window]"===Z||"[object global]"===Z}function isNode(G){return"nodeType"in G}function getWindow(G){var Z,ne;return G?isWindow(G)?G:isNode(G)&&null!=(Z=null==(ne=G.ownerDocument)?void 0:ne.defaultView)?Z:window:window}const fe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ie.useLayoutEffect:ie.useEffect;let me={};function createAdjustmentFn(G){return(Z,...ne)=>ne.reduce((Z,ne)=>{const ie=Object.entries(ne);for(const[ne,se]of ie){const ie=Z[ne];null!=ie&&(Z[ne]=ie+G*se)}return Z},{...Z})}const ge=createAdjustmentFn(-1);const Ce=Object.freeze({Translate:{toString(G){if(!G)return;const{x:Z,y:ne}=G;return`translate3d(${Z?Math.round(Z):0}px, ${ne?Math.round(ne):0}px, 0)`}},Scale:{toString(G){if(!G)return;const{scaleX:Z,scaleY:ne}=G;return`scaleX(${Z}) scaleY(${ne})`}},Transform:{toString(G){if(G)return[Ce.Translate.toString(G),Ce.Scale.toString(G)].join(" ")}},Transition:{toString:({property:G,duration:Z,easing:ne})=>`${G} ${Z}ms ${ne}`}});function arrayMove(G,Z,ne){const ie=G.slice();return ie.splice(ne<0?ie.length+ne:ne,0,ie.splice(Z,1)[0]),ie}function arraySwap(G,Z,ne){const ie=G.slice();return ie[Z]=G[ne],ie[ne]=G[Z],ie}function getSortedRects(G,Z){return G.reduce((G,ne,ie)=>{const se=Z.get(ne);return se&&(G[ie]=se),G},Array(G.length))}function isValidIndex(G){return null!==G&&G>=0}const Se={scaleX:1,scaleY:1},horizontalListSortingStrategy=G=>{var Z;let{rects:ne,activeNodeRect:ie,activeIndex:se,overIndex:ce,index:fe}=G;const me=null!=(Z=ne[se])?Z:ie;if(!me)return null;const ge=function getItemGap(G,Z,ne){const ie=G[Z],se=G[Z-1],ce=G[Z+1];if(!ie||!se&&!ce)return 0;if(nese&&fe<=ce?{x:-me.width-ge,y:0,...Se}:fe=ce?{x:me.width+ge,y:0,...Se}:{x:0,y:0,...Se}};const rectSortingStrategy=G=>{let{rects:Z,activeIndex:ne,overIndex:ie,index:se}=G;const ce=arrayMove(Z,ie,ne),fe=Z[se],me=ce[se];return me&&fe?{x:me.left-fe.left,y:me.top-fe.top,scaleX:me.width/fe.width,scaleY:me.height/fe.height}:null},rectSwappingStrategy=G=>{let Z,ne,{activeIndex:ie,index:se,rects:ce,overIndex:fe}=G;return se===ie&&(Z=ce[se],ne=ce[fe]),se===fe&&(Z=ce[se],ne=ce[ie]),ne&&Z?{x:ne.left-Z.left,y:ne.top-Z.top,scaleX:ne.width/Z.width,scaleY:ne.height/Z.height}:null},Me={scaleX:1,scaleY:1},verticalListSortingStrategy=G=>{var Z;let{activeIndex:ne,activeNodeRect:ie,index:se,rects:ce,overIndex:fe}=G;const me=null!=(Z=ce[ne])?Z:ie;if(!me)return null;if(se===ne){const G=ce[fe];return G?{x:0,y:nene&&se<=fe?{x:0,y:-me.height-ge,...Me}:se=fe?{x:0,y:me.height+ge,...Me}:{x:0,y:0,...Me}};const ke=se.a.createContext({activeIndex:-1,containerId:"Sortable",disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:rectSortingStrategy,disabled:{draggable:!1,droppable:!1}});function SortableContext(G){let{children:Z,id:ne,items:ge,strategy:Ce=rectSortingStrategy,disabled:Se=!1}=G;const{active:Me,dragOverlay:xe,droppableRects:De,over:Ie,measureDroppableContainers:Re}=Object(ce.useDndContext)(),ze=function useUniqueId(G,Z){return Object(ie.useMemo)(()=>{if(Z)return Z;const ne=null==me[G]?0:me[G]+1;return me[G]=ne,`${G}-${ne}`},[G,Z])}("Sortable",ne),$e=Boolean(null!==xe.rect),Je=Object(ie.useMemo)(()=>ge.map(G=>"object"==typeof G&&"id"in G?G.id:G),[ge]),it=null!=Me,ot=Me?Je.indexOf(Me.id):-1,at=Ie?Je.indexOf(Ie.id):-1,st=Object(ie.useRef)(Je),ct=!function itemsEqual(G,Z){if(G===Z)return!0;if(G.length!==Z.length)return!1;for(let ne=0;ne{ct&&it&&Re(Je)},[ct,Je,it,Re]),Object(ie.useEffect)(()=>{st.current=Je},[Je]);const ht=Object(ie.useMemo)(()=>({activeIndex:ot,containerId:ze,disabled:dt,disableTransforms:ut,items:Je,overIndex:at,useDragOverlay:$e,sortedRects:getSortedRects(Je,De),strategy:Ce}),[ot,ze,dt.draggable,dt.droppable,ut,Je,at,De,$e,Ce]);return se.a.createElement(ke.Provider,{value:ht},Z)}const defaultNewIndexGetter=G=>{let{id:Z,items:ne,activeIndex:ie,overIndex:se}=G;return arrayMove(ne,ie,se).indexOf(Z)},defaultAnimateLayoutChanges=G=>{let{containerId:Z,isSorting:ne,wasDragging:ie,index:se,items:ce,newIndex:fe,previousItems:me,previousContainerId:ge,transition:Ce}=G;return!(!Ce||!ie)&&((me===ce||se!==fe)&&(!!ne||fe!==se&&Z===ge))},xe={duration:200,easing:"ease"},De=Ce.Transition.toString({property:"transform",duration:0,easing:"linear"}),Ie={roleDescription:"sortable"};function useSortable(G){let{animateLayoutChanges:Z=defaultAnimateLayoutChanges,attributes:ne,disabled:se,data:me,getNewIndex:ge=defaultNewIndexGetter,id:Se,strategy:Me,resizeObserverConfig:Re,transition:ze=xe}=G;const{items:$e,containerId:Je,activeIndex:it,disabled:ot,disableTransforms:at,sortedRects:st,overIndex:ct,useDragOverlay:ut,strategy:dt}=Object(ie.useContext)(ke),ht=function normalizeLocalDisabled(G,Z){var ne,ie;if("boolean"==typeof G)return{draggable:G,droppable:!1};return{draggable:null!=(ne=null==G?void 0:G.draggable)?ne:Z.draggable,droppable:null!=(ie=null==G?void 0:G.droppable)?ie:Z.droppable}}(se,ot),ft=$e.indexOf(Se),_t=Object(ie.useMemo)(()=>({sortable:{containerId:Je,index:ft,items:$e},...me}),[Je,me,ft,$e]),yt=Object(ie.useMemo)(()=>$e.slice($e.indexOf(Se)),[$e,Se]),{rect:vt,node:wt,isOver:Ct,setNodeRef:St}=Object(ce.useDroppable)({id:Se,data:_t,disabled:ht.droppable,resizeObserverConfig:{updateMeasurementsFor:yt,...Re}}),{active:Mt,activatorEvent:kt,activeNodeRect:xt,attributes:Lt,setNodeRef:Tt,listeners:At,isDragging:Dt,over:Et,setActivatorNodeRef:jt,transform:It}=Object(ce.useDraggable)({id:Se,data:_t,attributes:{...Ie,...ne},disabled:ht.draggable}),Nt=function useCombinedRefs(...G){return Object(ie.useMemo)(()=>Z=>{G.forEach(G=>G(Z))},G)}(St,Tt),Rt=Boolean(Mt),zt=Rt&&!at&&isValidIndex(it)&&isValidIndex(ct),qt=!ut&&Dt,Wt=qt&&zt?It:null,Bt=zt?null!=Wt?Wt:(null!=Me?Me:dt)({rects:st,activeNodeRect:xt,activeIndex:it,overIndex:ct,index:ft}):null,Ft=isValidIndex(it)&&isValidIndex(ct)?ge({id:Se,items:$e,activeIndex:it,overIndex:ct}):ft,Ht=null==Mt?void 0:Mt.id,$t=Object(ie.useRef)({activeId:Ht,items:$e,newIndex:Ft,containerId:Je}),Vt=$e!==$t.current.items,Yt=Z({active:Mt,containerId:Je,isDragging:Dt,isSorting:Rt,id:Se,index:ft,items:$e,newIndex:$t.current.newIndex,previousItems:$t.current.items,previousContainerId:$t.current.containerId,transition:ze,wasDragging:null!=$t.current.activeId}),Ut=function useDerivedTransform(G){let{disabled:Z,index:ne,node:se,rect:me}=G;const[ge,Ce]=Object(ie.useState)(null),Se=Object(ie.useRef)(ne);return fe(()=>{if(!Z&&ne!==Se.current&&se.current){const G=me.current;if(G){const Z=Object(ce.getClientRect)(se.current,{ignoreTransform:!0}),ne={x:G.left-Z.left,y:G.top-Z.top,scaleX:G.width/Z.width,scaleY:G.height/Z.height};(ne.x||ne.y)&&Ce(ne)}}ne!==Se.current&&(Se.current=ne)},[Z,ne,se,me]),Object(ie.useEffect)(()=>{ge&&Ce(null)},[ge]),ge}({disabled:!Yt,index:ft,node:wt,rect:vt});return Object(ie.useEffect)(()=>{Rt&&$t.current.newIndex!==Ft&&($t.current.newIndex=Ft),Je!==$t.current.containerId&&($t.current.containerId=Je),$e!==$t.current.items&&($t.current.items=$e)},[Rt,Ft,Je,$e]),Object(ie.useEffect)(()=>{if(Ht===$t.current.activeId)return;if(Ht&&!$t.current.activeId)return void($t.current.activeId=Ht);const G=setTimeout(()=>{$t.current.activeId=Ht},50);return()=>clearTimeout(G)},[Ht]),{active:Mt,activeIndex:it,attributes:Lt,data:_t,rect:vt,index:ft,newIndex:Ft,items:$e,isOver:Ct,isSorting:Rt,isDragging:Dt,listeners:At,node:wt,overIndex:ct,over:Et,setNodeRef:Nt,setActivatorNodeRef:jt,setDroppableNodeRef:St,setDraggableNodeRef:Tt,transform:null!=Ut?Ut:Bt,transition:function getTransition(){if(Ut||Vt&&$t.current.newIndex===ft)return De;if(qt&&!function isKeyboardEvent(G){if(!G)return!1;const{KeyboardEvent:Z}=getWindow(G.target);return Z&&G instanceof Z}(kt)||!ze)return;if(Rt||Yt)return Ce.Transition.toString({...ze,property:"transform"});return}()}}function hasSortableData(G){if(!G)return!1;const Z=G.data.current;return!!(Z&&"sortable"in Z&&"object"==typeof Z.sortable&&"containerId"in Z.sortable&&"items"in Z.sortable&&"index"in Z.sortable)}const Re=[ce.KeyboardCode.Down,ce.KeyboardCode.Right,ce.KeyboardCode.Up,ce.KeyboardCode.Left],sortableKeyboardCoordinates=(G,Z)=>{let{context:{active:ne,collisionRect:ie,droppableRects:se,droppableContainers:fe,over:me,scrollableAncestors:Ce}}=Z;if(Re.includes(G.code)){if(G.preventDefault(),!ne||!ie)return;const Z=[];fe.getEnabled().forEach(ne=>{if(!ne||null!=ne&&ne.disabled)return;const fe=se.get(ne.id);if(fe)switch(G.code){case ce.KeyboardCode.Down:ie.topfe.top&&Z.push(ne);break;case ce.KeyboardCode.Left:ie.left>fe.left&&Z.push(ne);break;case ce.KeyboardCode.Right:ie.left1&&(Me=Se[1].id),null!=Me){const G=fe.get(ne.id),Z=fe.get(Me),me=Z?se.get(Z.id):null,Se=null==Z?void 0:Z.node.current;if(Se&&me&&G&&Z){const ne=Object(ce.getScrollableAncestors)(Se).some((G,Z)=>Ce[Z]!==G),se=isSameContainer(G,Z),fe=function isAfter(G,Z){if(!hasSortableData(G)||!hasSortableData(Z))return!1;if(!isSameContainer(G,Z))return!1;return G.data.current.sortable.indexthis.selection.endLineNumber?this.targetSelection=new ge.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumberthis._onEditorMouseDown(G))),this._register(this._editor.onMouseUp(G=>this._onEditorMouseUp(G))),this._register(this._editor.onMouseDrag(G=>this._onEditorMouseDrag(G))),this._register(this._editor.onMouseDrop(G=>this._onEditorMouseDrop(G))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(G=>this.onEditorKeyDown(G))),this._register(this._editor.onKeyUp(G=>this.onEditorKeyUp(G))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(G){this._editor.getOption(29)&&!this._editor.getOption(16)&&(hasTriggerModifier(G)&&(this._modifierPressed=!0),this._mouseDown&&hasTriggerModifier(G)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(G){this._editor.getOption(29)&&!this._editor.getOption(16)&&(hasTriggerModifier(G)&&(this._modifierPressed=!1),this._mouseDown&&G.keyCode===dnd_DragAndDropController.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(G){this._mouseDown=!0}_onEditorMouseUp(G){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(G){let Z=G.target;if(null===this._dragSelection){let G=(this._editor.getSelections()||[]).filter(G=>Z.position&&G.containsPosition(Z.position));if(1!==G.length)return;this._dragSelection=G[0]}hasTriggerModifier(G.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),Z.position&&(this._dragSelection.containsPosition(Z.position)?this._removeDecoration():this.showAt(Z.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(G){if(G.target&&(this._hitContent(G.target)||this._hitMargin(G.target))&&G.target.position){let Z=new fe.a(G.target.position.lineNumber,G.target.position.column);if(null===this._dragSelection){let ne=null;if(G.event.shiftKey){let G=this._editor.getSelection();if(G){const{selectionStartLineNumber:ie,selectionStartColumn:se}=G;ne=[new ge.a(ie,se,Z.lineNumber,Z.column)]}}else ne=(this._editor.getSelections()||[]).map(G=>G.containsPosition(Z)?new ge.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column):G);this._editor.setSelections(ne||[],"mouse",3)}else(!this._dragSelection.containsPosition(Z)||(hasTriggerModifier(G.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(Z)||this._dragSelection.getStartPosition().equals(Z)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(dnd_DragAndDropController.ID,new dragAndDropCommand_DragAndDropCommand(this._dragSelection,Z,hasTriggerModifier(G.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(G){let Z=[{range:new me.a(G.lineNumber,G.column,G.lineNumber,G.column),options:dnd_DragAndDropController._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,Z),this._editor.revealPosition(G,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(G){return 6===G.type||7===G.type}_hitMargin(G){return 2===G.type||3===G.type||4===G.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}dnd_DragAndDropController.ID="editor.contrib.dragAndDrop",dnd_DragAndDropController.TRIGGER_KEY_VALUE=se.f?6:5,dnd_DragAndDropController._DECORATION_OPTIONS=Ce.a.register({description:"dnd-target",className:"dnd-target"}),Object(ce.l)(dnd_DragAndDropController.ID,dnd_DragAndDropController)},8422:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"StandaloneGotoLineQuickAccessProvider",(function(){return Re})),ne.d(Z,"GotoLineAction",(function(){return standaloneGotoLineQuickAccess_GotoLineAction}));var ie=ne(4),se=ne(10),ce=ne(2112),fe=ne(497);class gotoLineQuickAccess_AbstractGotoLineQuickAccessProvider extends ce.a{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(G){const Z=Object(ie.a)("cannotRunGotoLine","Open a text editor first to go to a line.");return G.items=[{label:Z}],G.ariaLabel=Z,se.a.None}provideWithTextEditor(G,Z,ne){const ie=G.editor,ce=new se.b;ce.add(Z.onDidAccept(ne=>{const[se]=Z.selectedItems;if(se){if(!this.isValidLineNumber(ie,se.lineNumber))return;this.gotoLocation(G,{range:this.toRange(se.lineNumber,se.column),keyMods:Z.keyMods,preserveFocus:ne.inBackground}),ne.inBackground||Z.hide()}}));const updatePickerAndEditor=()=>{const G=this.parsePosition(ie,Z.value.trim().substr(gotoLineQuickAccess_AbstractGotoLineQuickAccessProvider.PREFIX.length)),ne=this.getPickLabel(ie,G.lineNumber,G.column);if(Z.items=[{lineNumber:G.lineNumber,column:G.column,label:ne}],Z.ariaLabel=ne,!this.isValidLineNumber(ie,G.lineNumber))return void this.clearDecorations(ie);const se=this.toRange(G.lineNumber,G.column);ie.revealRangeInCenter(se,0),this.addDecorations(ie,se)};updatePickerAndEditor(),ce.add(Z.onDidChangeValue(()=>updatePickerAndEditor()));const me=Object(fe.a)(ie);if(me){2===me.getOptions().get(58).renderType&&(me.updateOptions({lineNumbers:"on"}),ce.add(Object(se.i)(()=>me.updateOptions({lineNumbers:"relative"}))))}return ce}toRange(G=1,Z=1){return{startLineNumber:G,startColumn:Z,endLineNumber:G,endColumn:Z}}parsePosition(G,Z){const ne=Z.split(/,|:|#/).map(G=>parseInt(G,10)).filter(G=>!isNaN(G)),ie=this.lineCount(G)+1;return{lineNumber:ne[0]>0?ne[0]:ie+ne[0],column:ne[1]}}getPickLabel(G,Z,ne){if(this.isValidLineNumber(G,Z))return this.isValidColumn(G,Z,ne)?Object(ie.a)("gotoLineColumnLabel","Go to line {0} and character {1}.",Z,ne):Object(ie.a)("gotoLineLabel","Go to line {0}.",Z);const se=G.getPosition()||{lineNumber:1,column:1},ce=this.lineCount(G);return ce>1?Object(ie.a)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",se.lineNumber,se.column,ce):Object(ie.a)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",se.lineNumber,se.column)}isValidLineNumber(G,Z){return!(!Z||"number"!=typeof Z)&&(Z>0&&Z<=this.lineCount(G))}isValidColumn(G,Z,ne){if(!ne||"number"!=typeof ne)return!1;const ie=this.getModel(G);if(!ie)return!1;const se={lineNumber:Z,column:ne};return ie.validatePosition(se).equals(se)}lineCount(G){var Z,ne;return null!==(ne=null===(Z=this.getModel(G))||void 0===Z?void 0:Z.getLineCount())&&void 0!==ne?ne:0}}gotoLineQuickAccess_AbstractGotoLineQuickAccessProvider.PREFIX=":";var me=ne(180),ge=ne(647),Ce=ne(127),Se=ne(54),Me=ne(188),ke=ne(19),xe=ne(14),De=ne(23),Ie=ne(493),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Re=class StandaloneGotoLineQuickAccessProvider extends gotoLineQuickAccess_AbstractGotoLineQuickAccessProvider{constructor(G){super(),this.editorService=G,this.onDidActiveTextEditorControlChange=ke.c.None}get activeTextEditorControl(){return Object(Se.o)(this.editorService.getFocusedCodeEditor())}};Re=__decorate([__param(0,Ce.a)],Re),me.a.as(ge.b.Quickaccess).registerQuickAccessProvider({ctor:Re,prefix:Re.PREFIX,helpEntries:[{description:Me.b.gotoLineActionLabel,needsEditor:!0}]});class standaloneGotoLineQuickAccess_GotoLineAction extends xe.b{constructor(){super({id:"editor.action.gotoLine",label:Me.b.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:De.a.focus,primary:2085,mac:{primary:293},weight:100}})}run(G){G.get(Ie.a).quickAccess.show(Re.PREFIX)}}Object(xe.j)(standaloneGotoLineQuickAccess_GotoLineAction)},8423:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(4),se=ne(12),ce=ne(80),fe=ne(23),me=ne(14),ge=ne(418);class inPlaceReplaceCommand_InPlaceReplaceCommand{constructor(G,Z,ne){this._editRange=G,this._originalSelection=Z,this._text=ne}getEditOperations(G,Z){Z.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(G,Z){const ne=Z.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new ce.a(ne.endLineNumber,Math.min(this._originalSelection.positionColumn,ne.endColumn),ne.endLineNumber,Math.min(this._originalSelection.positionColumn,ne.endColumn)):new ce.a(ne.endLineNumber,ne.endColumn-this._text.length,ne.endLineNumber,ne.endColumn)}}var Ce=ne(332),Se=ne(50),Me=ne(168),ke=ne(117),xe=ne(57),De=ne(51),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ie=class InPlaceReplaceController{constructor(G,Z){this.decorationIds=[],this.editor=G,this.editorWorkerService=Z}static get(G){return G.getContribution(InPlaceReplaceController.ID)}dispose(){}run(G,Z){this.currentRequest&&this.currentRequest.cancel();const ne=this.editor.getSelection(),ie=this.editor.getModel();if(!ie||!ne)return;let fe=ne;if(fe.startLineNumber!==fe.endLineNumber)return;const me=new Ce.a(this.editor,5),ge=ie.uri;return this.editorWorkerService.canNavigateValueSet(ge)?(this.currentRequest=Object(xe.h)(G=>this.editorWorkerService.navigateValueSet(ge,fe,Z)),this.currentRequest.then(Z=>{if(!Z||!Z.range||!Z.value)return;if(!me.validate(this.editor))return;let ne=se.a.lift(Z.range),ie=Z.range,ge=Z.value.length-(fe.endColumn-fe.startColumn);ie={startLineNumber:ie.startLineNumber,startColumn:ie.startColumn,endLineNumber:ie.endLineNumber,endColumn:ie.startColumn+Z.value.length},ge>1&&(fe=new ce.a(fe.startLineNumber,fe.startColumn,fe.endLineNumber,fe.endColumn+ge-1));const Ce=new inPlaceReplaceCommand_InPlaceReplaceCommand(ne,fe,Z.value);this.editor.pushUndoStop(),this.editor.executeCommand(G,Ce),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:ie,options:InPlaceReplaceController.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(xe.n)(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(De.e)}).catch(De.e)):Promise.resolve(void 0)}};Ie.ID="editor.contrib.inPlaceReplaceController",Ie.DECORATION=ke.a.register({description:"in-place-replace",className:"valueSetReplacement"}),Ie=__decorate([__param(1,ge.a)],Ie);class inPlaceReplace_InPlaceReplaceUp extends me.b{constructor(){super({id:"editor.action.inPlaceReplace.up",label:ie.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:fe.a.writable,kbOpts:{kbExpr:fe.a.editorTextFocus,primary:3154,weight:100}})}run(G,Z){const ne=Ie.get(Z);return ne?ne.run(this.id,!0):Promise.resolve(void 0)}}class inPlaceReplace_InPlaceReplaceDown extends me.b{constructor(){super({id:"editor.action.inPlaceReplace.down",label:ie.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:fe.a.writable,kbOpts:{kbExpr:fe.a.editorTextFocus,primary:3156,weight:100}})}run(G,Z){const ne=Ie.get(Z);return ne?ne.run(this.id,!1):Promise.resolve(void 0)}}Object(me.l)(Ie.ID,Ie),Object(me.j)(inPlaceReplace_InPlaceReplaceUp),Object(me.j)(inPlaceReplace_InPlaceReplaceDown),Object(Se.f)((G,Z)=>{const ne=G.getColor(Me.d);ne&&Z.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${ne}; }`)})},8424:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"LinkDetector",(function(){return ht}));ne(7614);var ie=ne(4),se=ne(57),ce=ne(103),fe=ne(51),me=ne(379),ge=ne(10),Ce=ne(46),Se=ne(14),Me=ne(117),ke=ne(35),xe=ne(2110),De=ne(94),Ie=ne(12),Re=ne(187),ze=ne(98),$e=ne(69),Je=ne(54),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class Link{constructor(G,Z){this._link=G,this._provider=Z}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(G){return __awaiter(this,void 0,void 0,(function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,G)).then(Z=>(this._link=Z||this._link,this._link.url?this.resolve(G):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}))}}class getLinks_LinksList{constructor(G){this._disposables=new ge.b;let Z=[];for(const[ne,ie]of G){const G=ne.links.map(G=>new Link(G,ie));Z=getLinks_LinksList._union(Z,G),Object(ge.g)(ne)&&this._disposables.add(ne)}this.links=Z}dispose(){this._disposables.dispose(),this.links.length=0}static _union(G,Z){let ne,ie,se,ce,fe=[];for(ne=0,se=0,ie=G.length,ce=Z.length;nePromise.resolve(ie.provideLinks(G,Z)).then(G=>{G&&(ne[se]=[G,ie])},fe.f));return Promise.all(ie).then(()=>{const G=new getLinks_LinksList(Object($e.e)(ne));return Z.isCancellationRequested?(G.dispose(),new getLinks_LinksList([])):G})}ze.a.registerCommand("_executeLinkProvider",(G,...Z)=>__awaiter(void 0,void 0,void 0,(function*(){let[ne,ie]=Z;Object(Je.c)(ne instanceof De.a),"number"!=typeof ie&&(ie=0);const se=G.get(Re.a).getModel(ne);if(!se)return[];const fe=yield getLinks(se,ce.a.None);if(!fe)return[];for(let G=0;G=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},links_awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};const dt={general:Me.a.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:Me.a.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class LinkOccurrence{constructor(G,Z){this.link=G,this.decorationId=Z}static decoration(G,Z){return{range:G.range,options:LinkOccurrence._getOptions(G,Z,!1)}}static _getOptions(G,Z,ne){const se=Object.assign({},ne?dt.active:dt.general);return se.hoverMessage=function getHoverMessage(G,Z){const ne=G.url&&/^command:/i.test(G.url.toString()),se=G.tooltip?G.tooltip:ne?ie.a("links.navigate.executeCmd","Execute command"):ie.a("links.navigate.follow","Follow link"),ce=Z?Ce.f?ie.a("links.navigate.kb.meta.mac","cmd + click"):ie.a("links.navigate.kb.meta","ctrl + click"):Ce.f?ie.a("links.navigate.kb.alt.mac","option + click"):ie.a("links.navigate.kb.alt","alt + click");if(G.url){let Z="";if(/^command:/i.test(G.url.toString())){const ne=G.url.toString().match(/^command:([^?#]+)/);if(ne){const G=ne[1];Z=` "${ie.a("tooltip.explanation","Execute command {0}",G)}"`}}return new me.a("",!0).appendMarkdown(`[${se}](${G.url.toString(!0)}${Z}) (${ce})`)}return(new me.a).appendText(`${se} (${ce})`)}(G,Z),se}activate(G,Z){G.changeDecorationOptions(this.decorationId,LinkOccurrence._getOptions(this.link,Z,!0))}deactivate(G,Z){G.changeDecorationOptions(this.decorationId,LinkOccurrence._getOptions(this.link,Z,!1))}}let ht=class LinkDetector{constructor(G,Z,ne){this.listenersToRemove=new ge.b,this.editor=G,this.openerService=Z,this.notificationService=ne;let ie=new xe.a(G);this.listenersToRemove.add(ie),this.listenersToRemove.add(ie.onMouseMoveOrRelevantKeyDown(([G,Z])=>{this._onEditorMouseMove(G,Z)})),this.listenersToRemove.add(ie.onExecute(G=>{this.onEditorMouseUp(G)})),this.listenersToRemove.add(ie.onCancel(G=>{this.cleanUpActiveLinkDecoration()})),this.enabled=G.getOption(61),this.listenersToRemove.add(G.onDidChangeConfiguration(Z=>{const ne=G.getOption(61);this.enabled!==ne&&(this.enabled=ne,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(G.onDidChangeModelContent(G=>this.onChange())),this.listenersToRemove.add(G.onDidChangeModel(G=>this.onModelChanged())),this.listenersToRemove.add(G.onDidChangeModelLanguage(G=>this.onModelModeChanged())),this.listenersToRemove.add(ke.v.onDidChange(G=>this.onModelModeChanged())),this.timeout=new se.g,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(G){return G.getContribution(LinkDetector.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),LinkDetector.RECOMPUTE_TIME)}beginCompute(){return links_awaiter(this,void 0,void 0,(function*(){if(!this.editor.hasModel()||!this.enabled)return;const G=this.editor.getModel();if(ke.v.has(G)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=se.h(Z=>getLinks(G,Z));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(G){Object(fe.e)(G)}finally{this.computePromise=null}}}))}updateDecorations(G){const Z="altKey"===this.editor.getOption(68);let ne=[],ie=Object.keys(this.currentOccurrences);for(let G=0,Z=ie.length;G{Z.activate(G,ne),this.activeLinkDecorationId=Z.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const G="altKey"===this.editor.getOption(68);if(this.activeLinkDecorationId){const Z=this.currentOccurrences[this.activeLinkDecorationId];Z&&this.editor.changeDecorations(ne=>{Z.deactivate(ne,G)}),this.activeLinkDecorationId=null}}onEditorMouseUp(G){if(!this.isEnabled(G))return;const Z=this.getLinkOccurrence(G.target.position);Z&&this.openLinkOccurrence(Z,G.hasSideBySideModifier,!0)}openLinkOccurrence(G,Z,ne=!1){if(!this.openerService)return;const{link:se}=G;se.resolve(ce.a.None).then(G=>{if("string"==typeof G&&this.editor.hasModel()){const Z=this.editor.getModel().uri;if(Z.scheme===ct.c.file&&G.startsWith(ct.c.file+":")){const ne=De.a.parse(G);if(ne.scheme===ct.c.file){const ie=ut.i(ne);let se=null;ie.startsWith("/./")?se="."+ie.substr(1):ie.startsWith("//./")&&(se="."+ie.substr(2)),se&&(G=ut.g(Z,se))}}}return this.openerService.open(G,{openToSide:Z,fromUserGesture:ne,allowContributedOpeners:!0,allowCommands:!0})},G=>{const Z=G instanceof Error?G.message:G;"invalid"===Z?this.notificationService.warn(ie.a("invalid.url","Failed to open this link because it is not well-formed: {0}",se.url.toString())):"missing"===Z?this.notificationService.warn(ie.a("missing.url","Failed to open this link because its target is missing.")):Object(fe.e)(G)})}getLinkOccurrence(G){if(!this.editor.hasModel()||!G)return null;const Z=this.editor.getModel().getDecorationsInRange({startLineNumber:G.lineNumber,startColumn:G.column,endLineNumber:G.lineNumber,endColumn:G.column},0,!0);for(const G of Z){const Z=this.currentOccurrences[G.id];if(Z)return Z}return null}isEnabled(G,Z){return Boolean(6===G.target.type&&(G.hasTriggerModifier||Z&&Z.keyCodeIsTriggerKey))}stop(){var G;this.timeout.cancel(),this.activeLinksList&&(null===(G=this.activeLinksList)||void 0===G||G.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};ht.ID="editor.linkDetector",ht.RECOMPUTE_TIME=1e3,ht=__decorate([__param(1,ot.a),__param(2,it.a)],ht);class links_OpenLinkAction extends Se.b{constructor(){super({id:"editor.action.openLink",label:ie.a("label","Open Link"),alias:"Open Link",precondition:void 0})}run(G,Z){let ne=ht.get(Z);if(!ne)return;if(!Z.hasModel())return;let ie=Z.getSelections();for(let G of ie){let Z=ne.getLinkOccurrence(G.getEndPosition());Z&&ne.openLinkOccurrence(Z,!1)}}}Object(Se.l)(ht.ID,ht),Object(Se.j)(links_OpenLinkAction),Object(st.f)((G,Z)=>{const ne=G.getColor(at.q);ne&&Z.addRule(`.monaco-editor .detected-link-active { color: ${ne} !important; }`)})},8425:function(G,Z,ne){"use strict";ne.r(Z);var ie=ne(180),se=ne(647),ce=ne(188),fe=ne(493),me=ne(4),ge=ne(10),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let Ce=class HelpQuickAccessProvider{constructor(G){this.quickInputService=G,this.registry=ie.a.as(se.b.Quickaccess)}provide(G){const Z=new ge.b;Z.add(G.onDidAccept(()=>{const[Z]=G.selectedItems;Z&&this.quickInputService.quickAccess.show(Z.prefix,{preserveValue:!0})})),Z.add(G.onDidChangeValue(G=>{const Z=this.registry.getQuickAccessProvider(G.substr(HelpQuickAccessProvider.PREFIX.length));Z&&Z.prefix&&Z.prefix!==HelpQuickAccessProvider.PREFIX&&this.quickInputService.quickAccess.show(Z.prefix,{preserveValue:!0})}));const{editorProviders:ne,globalProviders:ie}=this.getQuickAccessProviders();return G.items=0===ne.length||0===ie.length?[...0===ne.length?ie:ne]:[{label:Object(me.a)("globalCommands","global commands"),type:"separator"},...ie,{label:Object(me.a)("editorCommands","editor commands"),type:"separator"},...ne],Z}getQuickAccessProviders(){const G=[],Z=[];for(const ne of this.registry.getQuickAccessProviders().sort((G,Z)=>G.prefix.localeCompare(Z.prefix)))if(ne.prefix!==HelpQuickAccessProvider.PREFIX)for(const ie of ne.helpEntries){const se=ie.prefix||ne.prefix,ce=se||"…";(ie.needsEditor?Z:G).push({prefix:se,label:ce,ariaLabel:Object(me.a)("helpPickAriaLabel","{0}, {1}",ce,ie.description),description:ie.description})}return{editorProviders:Z,globalProviders:G}}};Ce.PREFIX="?",Ce=__decorate([__param(0,fe.a)],Ce),ie.a.as(se.b.Quickaccess).registerQuickAccessProvider({ctor:Ce,prefix:"",helpEntries:[{description:ce.e.helpQuickAccessActionLabel,needsEditor:!0}]})},8426:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"rename",(function(){return rename})),ne.d(Z,"RenameAction",(function(){return rename_RenameAction}));var ie=ne(4),se=ne(51),ce=ne(26),fe=ne(331),me=ne(14),ge=ne(23),Ce=(ne(7620),ne(10)),Se=ne(34),Me=ne(13),ke=ne(50),xe=ne(175),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};const De=new ce.c("renameInputVisible",!1,Object(ie.a)("renameInputVisible","Whether the rename input widget is visible"));let Ie=class RenameInputField{constructor(G,Z,ne,ie,se){this._editor=G,this._acceptKeybindings=Z,this._themeService=ne,this._keybindingService=ie,this._disposables=new Ce.b,this.allowEditorOverflow=!0,this._visibleContextKey=De.bindTo(se),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(G=>{G.hasChanged(41)&&this._updateFont()})),this._disposables.add(ne.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(ie.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);const updateLabel=()=>{var G,Z;const[ne,se]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(ne),this._label.innerText=Object(ie.a)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(G=this._keybindingService.lookupKeybinding(ne))||void 0===G?void 0:G.getLabel(),null===(Z=this._keybindingService.lookupKeybinding(se))||void 0===Z?void 0:Z.getLabel())};updateLabel(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(updateLabel)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(G){var Z,ne,ie,se;if(!this._input||!this._domNode)return;const ce=G.getColor(Me.Mc);this._domNode.style.backgroundColor=String(null!==(Z=G.getColor(Me.Y))&&void 0!==Z?Z:""),this._domNode.style.boxShadow=ce?" 0 0 8px 2px "+ce:"",this._domNode.style.color=String(null!==(ne=G.getColor(Me.lb))&&void 0!==ne?ne:""),this._input.style.backgroundColor=String(null!==(ie=G.getColor(Me.jb))&&void 0!==ie?ie:"");const fe=G.getColor(Me.kb);this._input.style.borderWidth=fe?"1px":"0px",this._input.style.borderStyle=fe?"solid":"none",this._input.style.borderColor=null!==(se=null==fe?void 0:fe.toString())&&void 0!==se?se:"none"}_updateFont(){if(!this._input||!this._label)return;const G=this._editor.getOption(41);this._input.style.fontFamily=G.fontFamily,this._input.style.fontWeight=G.fontWeight,this._input.style.fontSize=G.fontSize+"px",this._label.style.fontSize=.8*G.fontSize+"px"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(G){G||this.cancelInput(!0)}acceptInput(G){this._currentAcceptInput&&this._currentAcceptInput(G)}cancelInput(G){this._currentCancelInput&&this._currentCancelInput(G)}getInput(G,Z,ne,ie,se,ce){this._domNode.classList.toggle("preview",se),this._position=new Se.a(G.startLineNumber,G.startColumn),this._input.value=Z,this._input.setAttribute("selectionStart",ne.toString()),this._input.setAttribute("selectionEnd",ie.toString()),this._input.size=Math.max(1.1*(G.endColumn-G.startColumn),20);const fe=new Ce.b;return new Promise(G=>{this._currentCancelInput=Z=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,G(Z),!0),this._currentAcceptInput=ne=>{0!==this._input.value.trim().length&&this._input.value!==Z?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,G({newName:this._input.value,wantsPreview:se&&ne})):this.cancelInput(!0)},ce.onCancellationRequested(()=>this.cancelInput(!0)),fe.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{fe.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};Ie=__decorate([__param(2,ke.b),__param(3,xe.a),__param(4,ce.b)],Ie);var Re=ne(35),ze=ne(215),$e=ne(12),Je=ne(827),it=ne(332),ot=ne(193),at=ne(826),st=ne(94),ct=ne(127),ut=ne(103),dt=ne(57),ht=ne(352),ft=ne(60),_t=ne(180),yt=ne(608),vt=ne(905),wt=ne(54),rename_decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},rename_param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class rename_RenameSkeleton{constructor(G,Z){this.model=G,this.position=Z,this._providerRenameIdx=0,this._providers=Re.z.ordered(G)}hasProvider(){return this._providers.length>0}resolveRenameLocation(G){return __awaiter(this,void 0,void 0,(function*(){const Z=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?Z.join("\n"):void 0}:{range:$e.a.fromPositions(this.position),text:"",rejectReason:Z.length>0?Z.join("\n"):void 0}}))}provideRenameEdits(G,Z){return __awaiter(this,void 0,void 0,(function*(){return this._provideRenameEdits(G,this._providerRenameIdx,[],Z)}))}_provideRenameEdits(G,Z,ne,se){return __awaiter(this,void 0,void 0,(function*(){const ce=this._providers[Z];if(!ce)return{edits:[],rejectReason:ne.join("\n")};const fe=yield ce.provideRenameEdits(this.model,this.position,G,se);return fe?fe.rejectReason?this._provideRenameEdits(G,Z+1,ne.concat(fe.rejectReason),se):fe:this._provideRenameEdits(G,Z+1,ne.concat(ie.a("no result","No result.")),se)}))}}function rename(G,Z,ne){return __awaiter(this,void 0,void 0,(function*(){const ie=new rename_RenameSkeleton(G,Z),se=yield ie.resolveRenameLocation(ut.a.None);return(null==se?void 0:se.rejectReason)?{edits:[],rejectReason:se.rejectReason}:ie.provideRenameEdits(ne,ut.a.None)}))}let Ct=class RenameController{constructor(G,Z,ne,ie,se,ce,fe){this.editor=G,this._instaService=Z,this._notificationService=ne,this._bulkEditService=ie,this._progressService=se,this._logService=ce,this._configService=fe,this._dispoableStore=new Ce.b,this._cts=new ut.b,this._renameInputField=this._dispoableStore.add(new dt.b(()=>this._dispoableStore.add(this._instaService.createInstance(Ie,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(G){return G.getContribution(RenameController.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return __awaiter(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const G=this.editor.getPosition(),Z=new rename_RenameSkeleton(this.editor.getModel(),G);if(!Z.hasProvider())return;let ne;this._cts=new it.b(this.editor,5);try{const G=Z.resolveRenameLocation(this._cts.token);this._progressService.showWhile(G,250),ne=yield G}catch(Z){return void Je.a.get(this.editor).showMessage(Z||ie.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),G)}if(!ne)return;if(ne.rejectReason)return void Je.a.get(this.editor).showMessage(ne.rejectReason,G);if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new it.b(this.editor,5,ne.range);let se=this.editor.getSelection(),ce=0,fe=ne.text.length;$e.a.isEmpty(se)||$e.a.spansMultipleLines(se)||!$e.a.containsRange(ne.range,se)||(ce=Math.max(0,se.startColumn-ne.range.startColumn),fe=Math.min(ne.range.endColumn,se.endColumn)-ne.range.startColumn);const me=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),ge=yield this._renameInputField.value.getInput(ne.range,ne.text,ce,fe,me,this._cts.token);if("boolean"==typeof ge)return void(ge&&this.editor.focus());this.editor.focus();const Ce=Object(dt.l)(Z.provideRenameEdits(ge.newName,this._cts.token),this._cts.token).then(G=>__awaiter(this,void 0,void 0,(function*(){G&&this.editor.hasModel()&&(G.rejectReason?this._notificationService.info(G.rejectReason):this._bulkEditService.apply(at.b.convert(G),{editor:this.editor,showPreview:ge.wantsPreview,label:ie.a("label","Renaming '{0}'",null==ne?void 0:ne.text),quotableLabel:ie.a("quotableLabel","Renaming {0}",null==ne?void 0:ne.text)}).then(G=>{G.ariaSummary&&Object(ze.a)(ie.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ne.text,ge.newName,G.ariaSummary))}).catch(G=>{this._notificationService.error(ie.a("rename.failedApply","Rename failed to apply edits")),this._logService.error(G)}))})),G=>{this._notificationService.error(ie.a("rename.failed","Rename failed to compute edits")),this._logService.error(G)});return this._progressService.showWhile(Ce,250),Ce}))}acceptRenameInput(G){this._renameInputField.value.acceptInput(G)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};Ct.ID="editor.contrib.renameController",Ct=rename_decorate([rename_param(1,ft.a),rename_param(2,ot.a),rename_param(3,at.a),rename_param(4,fe.a),rename_param(5,ht.b),rename_param(6,vt.a)],Ct);class rename_RenameAction extends me.b{constructor(){super({id:"editor.action.rename",label:ie.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:ce.a.and(ge.a.writable,ge.a.hasRenameProvider),kbOpts:{kbExpr:ge.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(G,Z){const ne=G.get(ct.a),[ie,ce]=Array.isArray(Z)&&Z||[void 0,void 0];return st.a.isUri(ie)&&Se.a.isIPosition(ce)?ne.openCodeEditor({resource:ie},ne.getActiveCodeEditor()).then(G=>{G&&(G.setPosition(ce),G.invokeWithinContext(Z=>(this.reportTelemetry(Z,G),this.run(Z,G))))},se.e):super.runCommand(G,Z)}run(G,Z){const ne=Ct.get(Z);return ne?ne.run():Promise.resolve()}}Object(me.l)(Ct.ID,Ct),Object(me.j)(rename_RenameAction);const St=me.c.bindToContribution(Ct.get);Object(me.k)(new St({id:"acceptRenameInput",precondition:De,handler:G=>G.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:ge.a.focus,primary:3}})),Object(me.k)(new St({id:"acceptRenameInputWithPreview",precondition:ce.a.and(De,ce.a.has("config.editor.rename.enablePreview")),handler:G=>G.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:ge.a.focus,primary:1027}})),Object(me.k)(new St({id:"cancelRenameInput",precondition:De,handler:G=>G.cancelRenameInput(),kbOpts:{weight:199,kbExpr:ge.a.focus,primary:9,secondary:[1033]}})),Object(me.n)("_executeDocumentRenameProvider",(function(G,Z,...ne){const[ie]=ne;return Object(wt.c)("string"==typeof ie),rename(G,Z,ie)})),_t.a.as(yt.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:ie.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},8427:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"provideSelectionRanges",(function(){return provideSelectionRanges}));var ie=ne(69),se=ne(103),ce=ne(14),fe=ne(34),me=ne(12),ge=ne(80),Ce=ne(23),Se=ne(35),Me=ne(4),ke=ne(92),xe=ne(27);var De=ne(2109),Ie=ne(98),Re=ne(51),__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};class SelectionRanges{constructor(G,Z){this.index=G,this.ranges=Z}mov(G){let Z=this.index+(G?1:-1);if(Z<0||Z>=this.ranges.length)return this;const ne=new SelectionRanges(Z,this.ranges);return ne.ranges[Z].equalsRange(this.ranges[this.index])?ne.mov(G):ne}}class smartSelect_SmartSelectController{constructor(G){this._editor=G,this._ignoreSelection=!1}static get(G){return G.getContribution(smartSelect_SmartSelectController.ID)}dispose(){var G;null===(G=this._selectionListener)||void 0===G||G.dispose()}run(G){return __awaiter(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return;const Z=this._editor.getSelections(),ne=this._editor.getModel();if(!Se.A.has(ne))return;if(this._state||(yield provideSelectionRanges(ne,Z.map(G=>G.getPosition()),this._editor.getOption(101),se.a.None).then(G=>{var ne;if(ie.n(G)&&G.length===Z.length&&this._editor.hasModel()&&ie.h(this._editor.getSelections(),Z,(G,Z)=>G.equalsSelection(Z))){for(let ne=0;neG.containsPosition(Z[ne].getStartPosition())&&G.containsPosition(Z[ne].getEndPosition())),G[ne].unshift(Z[ne]);this._state=G.map(G=>new SelectionRanges(0,G)),null===(ne=this._selectionListener)||void 0===ne||ne.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var G;this._ignoreSelection||(null===(G=this._selectionListener)||void 0===G||G.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(Z=>Z.mov(G));const ce=this._state.map(G=>ge.a.fromPositions(G.ranges[G.index].getStartPosition(),G.ranges[G.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(ce)}finally{this._ignoreSelection=!1}}))}}smartSelect_SmartSelectController.ID="editor.contrib.smartSelectController";class smartSelect_AbstractSmartSelect extends ce.b{constructor(G,Z){super(Z),this._forward=G}run(G,Z){return __awaiter(this,void 0,void 0,(function*(){let G=smartSelect_SmartSelectController.get(Z);G&&(yield G.run(this._forward))}))}}Ie.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");function provideSelectionRanges(G,Z,ne,se){return __awaiter(this,void 0,void 0,(function*(){const ce=Se.A.all(G);1===ce.length&&ce.unshift(new De.a);let ge=[],Ce=[];for(const ne of ce)ge.push(Promise.resolve(ne.provideSelectionRanges(G,Z,se)).then(G=>{if(ie.n(G)&&G.length===Z.length)for(let ne=0;ne{if(0===Z.length)return[];Z.sort((G,Z)=>fe.a.isBefore(G.getStartPosition(),Z.getStartPosition())?1:fe.a.isBefore(Z.getStartPosition(),G.getStartPosition())||fe.a.isBefore(G.getEndPosition(),Z.getEndPosition())?-1:fe.a.isBefore(Z.getEndPosition(),G.getEndPosition())?1:0);let ie,se=[];for(const G of Z)(!ie||me.a.containsRange(G,ie)&&!me.a.equalsRange(G,ie))&&(se.push(G),ie=G);if(!ne.selectLeadingAndTrailingWhitespace)return se;let ce=[se[0]];for(let Z=1;Z=0;ge--){let G=se.charCodeAt(ge);if(ge!==fe&&(95===G||45===G))break;if(Object(xe.H)(G)&&Object(xe.I)(Se))break;Se=G}for(ge+=1;Ce0&&0===Z.getLineFirstNonWhitespaceColumn(ne.lineNumber)&&0===Z.getLineLastNonWhitespaceColumn(ne.lineNumber)&&G.push({range:new me.a(ne.lineNumber,1,ne.lineNumber,Z.getLineMaxColumn(ne.lineNumber))})}}),Object(ce.o)("_executeSelectionRangeProvider",(function(G,...Z){const[ne]=Z;return provideSelectionRanges(G,ne,{selectLeadingAndTrailingWhitespace:!0},se.a.None)}))},865:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isInterpolationResult=isInterpolationResult,Z.default=Z.getThemeVariant=void 0;var ie=ne(562);function _typeof(G){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(G){return typeof G}:function _typeof(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(G)}var se={enterprise:"family",prisma:"family",light:"colorScheme",dark:"colorScheme",compact:"density",comfortable:"density"};function isInterpolationResult(G){return"object"!==_typeof(G)||Array.isArray(G)||null===G}var ce=function getThemeVariant(G,Z){var ne=Object.keys(G).shift();if(!ne)throw new Error("A pick tree cannot be empty.");var ie=se[ne];if(!ie)throw new Error("Invalid pick tree key: ".concat(ne));var ce=G[Z[ie]];return isInterpolationResult(ce)?ce:getThemeVariant(ce,Z)};Z.getThemeVariant=ce;var fe=function pick(G){return function(Z){var ne=Z.theme,se=(0,ie.addThemeDefaults)(null==ne?void 0:ne.splunkThemeV1);return ce(G,se)}};Z.default=fe},866:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=185)}({0:function(G,Z){G.exports=ne(339)},1:function(G,Z){G.exports=ne(2)},10:function(G,Z,ne){"use strict";function updateReactRef(G,Z){G&&("function"==typeof G?G(Z):G.current=Z)}ne.d(Z,"a",(function(){return updateReactRef}))},11:function(G,Z){G.exports=ne(63)},15:function(G,Z){G.exports=ne(65)},150:function(G,Z){G.exports=ne(470)},151:function(G,Z){G.exports=ne(271)},152:function(G,Z){G.exports=ne(182)},16:function(G,Z){G.exports=ne(1098)},18:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getWindow}));var ie={document:ne(28).b,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function replaceState(){},pushState:function pushState(){},go:function go(){},back:function back(){}},CustomEvent:function CustomEvent(){return this},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},getComputedStyle:function getComputedStyle(){return{getPropertyValue:function getPropertyValue(){return""}}},Image:function Image(){},Date:function Date(){},screen:{},setTimeout:function setTimeout(){},clearTimeout:function clearTimeout(){},matchMedia:function matchMedia(){return{}},requestAnimationFrame:function requestAnimationFrame(G){return"undefined"==typeof setTimeout?(G(),null):setTimeout(G,0)},cancelAnimationFrame:function cancelAnimationFrame(G){"undefined"!=typeof setTimeout&&clearTimeout(G)}};function getWindow(){return"undefined"!=typeof window?window:ie}},185:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Jt})),ne.d(Z,"PopoverContext",(function(){return Tt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(93),ge=ne(150),Ce=ne.n(ge),Se=ne(58),Me=ne.n(Se),ke=ne(151),xe=ne.n(ke),De=ne(11),Ie=ne.n(De),Re=ne(15),ze=ne.n(Re),$e=ne(152),Je=ne.n($e),it=ne(19),ot=ne.n(it),at=ne(71),st=ne.n(at),ct=ne(9),ut=ne.n(ct),dt=ne(5),ht=ne.n(dt),ft=ne(33),_t=ne.n(ft),yt=ne(0),vt=ne(43),wt=ne(16),Ct=ne.n(wt),St=ne(85),Mt=ne.n(St),kt=ne(53),xt=ne.n(kt),Lt=ne(31);function ownKeys(G,Z){var ne=Object.keys(G);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);Z&&(ie=ie.filter((function(Z){return Object.getOwnPropertyDescriptor(G,Z).enumerable}))),ne.push.apply(ne,ie)}return ne}function _objectSpread(G){for(var Z=1;ZCe-ne.bottom?"above":"below":"horizontal"===ce&&(xe=ne.left>Se-ne.right?"left":"right");var De=xe,Ie=function getInitialStyle(G){var Z=G.align,ne=G.anchorPos,ie=G.outerContainerEl,se=G.padding,ce=G.placement;switch(ce){case"above":return{top:ne.top-ie.offsetHeight,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"below":return"end"===Z?{top:ne.bottom,left:ne.right-ie.offsetWidth+se}:{top:ne.bottom,left:"edge"===Z?ne.left-se:ne.middle-ie.offsetWidth/2};case"left":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.left-ie.offsetWidth};case"right":return{top:"edge"===Z?ne.top-se:ne.center-ie.offsetHeight/2,left:ne.right};default:throw new Error("".concat(ce," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:Z,anchorPos:ne,outerContainerEl:fe,padding:me,placement:De}),Re=Ie.top,ze=Ie.left,$e="auto",Je=Se,it=Ce,ot=De,at=ne.top-fe.offsetHeight>0,st=ne.bottom+fe.offsetHeight0,ut=ne.right+fe.offsetWidthCe-ne.bottom,ht=("edge"===Z?ne.left+fe.offsetWidth-me:ne.middle+fe.offsetWidth/2)>Se,ft=("edge"===Z?ne.left-me:ne.middle-fe.offsetWidth/2)<0,_t=("edge"===Z?ne.top-me:ne.top-fe.offsetHeight/2)<0,yt=("edge"===Z?ne.top+fe.offsetHeight-me:ne.bottom+fe.offsetHeight/2)>Ce;if("above"===ot){if(!at&&ke){if(st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}"misaligned"!==ot&&($e=Ce-Re-fe.offsetHeight,ie&&($e=Math.min($e,Ce-ie.top)),Re="auto"),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=ne.top)}if("below"===ot){if(!st&&ke){if(at&&dt)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));if(Me&&ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));se&&(ot="misaligned",Re=0)}ie&&(Re=Math.min(Re,ie.bottom)),ht?ze=Math.max(Se-fe.offsetWidth,0):ft&&(ze=0),se||(it=Ce-ne.bottom)}if("left"===ot){if(!ct&&ke){if(ut)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"right"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=ne.left)}if("right"===ot){if(!ut&&ke){if(ct)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"left"}));if(Me&&st)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"below"}));if(Me&&at)return getPlacement(_objectSpread(_objectSpread({},G),{},{placement:"above"}));se&&(ot="misaligned",Re=0)}_t?Re=0:yt&&(Re=Math.max(Ce-fe.offsetHeight,0)),se||(Je=Se-ne.left)}return{placement:ot,maxHeight:it,maxWidth:Je,outerContainerStyle:{top:Re,left:ze,bottom:$e}}}var Tt=Object(ie.createContext)({}),At=ne(24),Dt=ne(3),Et=ne.n(Dt),jt=Object(yt.pick)({enterprise:"8px",prisma:0}),It=Et()(At.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],yt.variables.zindexPopover),Nt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";",";"],yt.mixins.reset("block"),(function(G){return!G.$open&&Object(Dt.css)(["pointer-events:none;"])}),(function(G){return"none"!==G.$appearance&&Object(Dt.css)(["padding:8px;"])})),Rt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],yt.variables.backgroundColorPopup,yt.variables.contentColorDefault,Object(yt.pick)({enterprise:{light:yt.variables.border,dark:yt.variables.border},prisma:"none"}),Object(yt.pick)({enterprise:{light:Object(Dt.css)(["0 2px 2px ",""],yt.mixins.colorWithAlpha(yt.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:yt.variables.overlayShadow}),yt.variables.borderRadius),inverted:Object(Dt.css)(["background-color:",";color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}),Object(yt.pick)({light:yt.variables.white,dark:yt.variables.gray30}))})),zt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],jt,jt,jt,Object(yt.pickVariant)("$appearance",{normal:Object(Dt.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(yt.pick)({light:yt.variables.borderColor,dark:yt.variables.black}),jt,jt,jt,yt.variables.backgroundColor,jt),inverted:Object(Dt.css)(["border-bottom-color:",";"],Object(yt.pick)({light:yt.variables.gray20,dark:yt.variables.white}))})),qt=Et.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),Wt=Et.a.svg.withConfig({displayName:"PopoverStyles__StyledHitArea",componentId:"sc-1nahsvw-5"})(["position:fixed;pointer-events:none;path{pointer-events:auto;stroke-width:0;stroke:transparent;fill:transparent;}"]);function _slicedToArray(G,Z){return function _arrayWithHoles(G){if(Array.isArray(G))return G}(G)||function _iterableToArrayLimit(G,Z){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(G)))return;var ne=[],ie=!0,se=!1,ce=void 0;try{for(var fe,me=G[Symbol.iterator]();!(ie=(fe=me.next()).done)&&(ne.push(fe.value),!Z||ne.length!==Z);ie=!0);}catch(G){se=!0,ce=G}finally{try{ie||null==me.return||me.return()}finally{if(se)throw ce}}return ne}(G,Z)||function _unsupportedIterableToArray(G,Z){if(!G)return;if("string"==typeof G)return _arrayLikeToArray(G,Z);var ne=Object.prototype.toString.call(G).slice(8,-1);"Object"===ne&&G.constructor&&(ne=G.constructor.name);if("Map"===ne||"Set"===ne)return Array.from(G);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return _arrayLikeToArray(G,Z)}(G,Z)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(G,Z){(null==Z||Z>G.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);neG.length)&&(Z=G.length);for(var ne=0,ie=new Array(Z);ne2&&void 0!==arguments[2]?arguments[2]:1;return!!G&&!!Z&&xe()(G,(function(G,ie){return ot()(G)?Math.abs(Z[ie]-G)<=ne:Z[ie]===G}))}function isHTMLElement(G){return G!==window&&G!==window.document}var Gt=function(G){!function _inherits(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Super expression must either be null or a function");G.prototype=Object.create(Z&&Z.prototype,{constructor:{value:G,writable:!0,configurable:!0}}),Z&&_setPrototypeOf(G,Z)}(Popover,G);var Z=_createSuper(Popover);function Popover(G){var ne;return function _classCallCheck(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,Popover),Popover_defineProperty(_assertThisInitialized(ne=Z.call(this,G)),"outerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"innerContainerEl",null),Popover_defineProperty(_assertThisInitialized(ne),"arrow",null),Popover_defineProperty(_assertThisInitialized(ne),"windowSizeMeasurementEl",null),Popover_defineProperty(_assertThisInitialized(ne),"handleScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"handleWindowScroll",void 0),Popover_defineProperty(_assertThisInitialized(ne),"allowAnimationUpdates",!0),Popover_defineProperty(_assertThisInitialized(ne),"getElPosition",(function(G){var Z=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ie=getBoundingClientRect(G,Z),se={width:G.offsetWidth,height:G.offsetHeight},ce=ne.props.pointTo,fe=ce&&Ie()(ce,"x"),me=ce&&Ie()(ce,"y");return se.left=fe?ie.left+((null==ce?void 0:ce.x)||0):ie.left,se.top=me?ie.top+((null==ce?void 0:ce.y)||0):ie.top,se.right=fe?se.left+se.width:ie.left+se.width||ie.right,se.bottom=me?se.top+se.height:ie.top+se.height||ie.bottom,se.middle=fe?se.left:ie.left+(se.right-ie.left)/2,se.center=me?se.top:ie.top+(se.bottom-ie.top)/2,se})),Popover_defineProperty(_assertThisInitialized(ne),"setPlacement",(function(G){var Z=Object($t.a)();ne.setState((function(ie){var se,ce=ne.props,fe=ce.align,me=ce.anchor,ge=ce.autoCloseWhenOffScreen,Ce=ce.canCoverAnchor,Se=ce.defaultPlacement,Me=ce.open,ke=ce.repositionMode,xe=ce.splunkTheme,De=ne.context||Z,Ie=xe.isPrisma;if(!(Me&&ne.outerContainerEl&&me&&ie.anchorEl&&ne.windowSizeMeasurementEl))return null;var Re=ne.getElPosition(ie.anchorEl),ze=ne.getElPosition(ie.anchorEl,!0),$e=isHTMLElement(De)?ne.getElPosition(De):void 0;if(G&&ge&&ne.autoCloseWhenOffScreen(Re,$e))return null;var Je=Ie?0:8,it=getPlacement({align:"theme"===fe?Ie?"edge":"center":fe,anchorPos:ze,scrollContainerPos:$e,canCoverAnchor:Ce,defaultPlacement:Se,repositionMode:ke,outerContainerEl:ne.outerContainerEl,padding:8,windowWidth:ne.windowSizeMeasurementEl.offsetLeft,windowHeight:ne.windowSizeMeasurementEl.offsetTop}),ot=it.placement,at=it.outerContainerStyle,st=it.maxHeight,ct=it.maxWidth,ut=Popover_slicedToArray(ne.arrow?Popover.getArrowStyle({anchorPos:ze,arrowHeight:Je,outerContainerStyle:at,placement:ot,outerContainerEl:ne.outerContainerEl}):[],2),dt=ut[0],ft=ut[1],_t="none"!==ne.props.appearance&&!Ie,yt=everyApproxEqual(ze,ie.anchorPos)&&everyApproxEqual(at,ie.outerContainerStyle)&&ot===ie.placement&&st===ie.maxHeight&&ct===ie.maxWidth,vt=everyApproxEqual(ht()(dt,"transform"),ht()(ie.arrowStyle,"transform"))&&everyApproxEqual(null!=ft?ft:{},null!==(se=ie.arrowStyleTransformMeta)&&void 0!==se?se:{});return yt&&(!_t||_t&&vt)?null:{anchorPos:ze,arrowStyle:dt,arrowStyleTransformMeta:ft,outerContainerStyle:at,placement:ot,maxHeight:st,maxWidth:ct}}))})),Popover_defineProperty(_assertThisInitialized(ne),"handleNewAnchor",(function(G){var Z,ie=(Z=!G||G instanceof HTMLElement?null!=G?G:void 0:Object(me.findDOMNode)(G))?ne.getElPosition(Z):void 0;ne.setState({anchorEl:Z,anchorPos:ie})})),Popover_defineProperty(_assertThisInitialized(ne),"handleInnerContainerMount",(function(G){ne.innerContainerEl=G,G&&ne.props.takeFocus&&Me()(Lt.takeFocus,G),Object(Vt.a)(ne.props.elementRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleOuterContainerMount",(function(G){ne.outerContainerEl=G,Object(Vt.a)(ne.props.outerRef,G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleTab",(function(G){if(ne.innerContainerEl)if(ne.props.retainFocus)Object(Lt.handleTab)(ne.innerContainerEl,G);else if(Object(Lt.isTabKey)(G)){var Z=Object(Lt.getSortedTabbableElements)(ne.innerContainerEl);if(Z.length>0)(G.shiftKey?Z[0]:Z[Z.length-1])===G.target&&ne.handleRequestClose({event:G,reason:"tabKey"})}})),Popover_defineProperty(_assertThisInitialized(ne),"handleRequestClose",(function(G){ne.props.open&&ne.requestClose(G)})),Popover_defineProperty(_assertThisInitialized(ne),"handleAnimationEnd",(function(){ne.allowAnimationUpdates&&ne.setState({animating:!1})})),Popover_defineProperty(_assertThisInitialized(ne),"renderLayer",(function(){var G=ne.props,Z=G.animation,ie=G.animationConfig,ce=G.appearance,fe=G.children,me=G.id,ge=G.open,Ce=G.retainFocus,Se=G.splunkTheme,Me=ne.state,ke=Me.anchorPos,xe=Me.arrowStyle,De=Me.outerContainerStyle,Ie=Me.placement,Re=Se.isPrisma,ze=Re&&"inverted"===ce?"normal":ce,$e=ne.state,Je=$e.maxHeight,it=$e.maxWidth;"none"!==ce&&(ot()(Je)&&(Je-=20),ot()(it)&&(it-=20));var at={anchorHeight:ke?ke.height:null,anchorWidth:ke?ke.width:null,placement:Ie||null,maxHeight:Je||null,maxWidth:it||null},ct=Z?{opacity:ge?1:0}:{opacity:1};return se.a.createElement(vt.Spring,{from:{opacity:Z?0:1},to:ct,config:Popover_objectSpread({tension:300,friction:40},ie),onRest:ne.handleAnimationEnd},(function(G){return se.a.createElement(It,{"data-test":"outer-popover",style:Popover_objectSpread(Popover_objectSpread({},De),G),ref:ne.handleOuterContainerMount},(ge||ne.state.animating)&&se.a.createElement(Nt,_extends({$appearance:ze,$open:ge,"data-test":"popover",ref:ne.handleInnerContainerMount,tabIndex:-1,id:me,onKeyDown:ne.handleTab},ht()(ne.props,["anchor"].concat(_toConsumableArray(ut()(Popover.propTypes))))),se.a.createElement(Tt.Provider,{value:{retainFocus:Ce}},se.a.createElement(se.a.Fragment,null,"none"===ce&&fe,"none"!==ce&&!Re&&se.a.createElement(zt,{$appearance:ze,ref:function ref(G){ne.arrow=G},style:xe}),"none"!==ce&&se.a.createElement(Rt,{$appearance:ze},st()(fe)?fe(at):fe)))),se.a.createElement(qt,{ref:function ref(G){ne.windowSizeMeasurementEl=G}}))}))})),ne.handleScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.handleWindowScroll=_t()(ne.setPlacement.bind(_assertThisInitialized(ne),!0),0),ne.setPlacement=_t()(ne.setPlacement,0,{leading:!1}),ne.state={animating:!1,prevOpen:G.open},ne}return _createClass(Popover,null,[{key:"getArrowStyle",value:function getArrowStyle(G){var Z=G.anchorPos,ne=G.arrowHeight,ie=G.placement,se=G.outerContainerStyle,ce=G.outerContainerEl;if("misaligned"===ie)return[{display:"none"}];var fe={display:"block"},me=ce.offsetHeight/2-22,ge=-(ce.offsetHeight/2-15),Se=Z.center-(se.top+ce.offsetHeight/2)-ne/2,Me=Ce()(Se,ge,me),ke=Z.middle-(se.left+ce.offsetWidth/2)-ne,xe={left:{translateX:ne/2,translateY:Me,rotate:90},right:{translateX:-ne/2,translateY:Me,rotate:-90},above:{translateX:ke,translateY:0,rotate:180},below:{translateX:ke,translateY:0,rotate:0}}[ie];fe.transform="translate(".concat(xe.translateX,"px, ").concat(xe.translateY,"px) rotate(").concat(xe.rotate,"deg)");fe[{left:"right",right:"left",above:"bottom",below:"top"}[ie]]="1px";return fe[{left:"top",right:"top",above:"left",below:"left"}[ie]]="50%",[fe,xe]}}]),_createClass(Popover,[{key:"componentDidMount",value:function componentDidMount(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function componentDidUpdate(G){G.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!G.open&&this.props.open&&this.props.takeFocus&&Object(Lt.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.setPlacement.cancel(),this.handleScroll.cancel(),this.allowAnimationUpdates=!1}},{key:"autoCloseWhenOffScreen",value:function autoCloseWhenOffScreen(G,Z){var ne=Object($t.a)();return(G.top<0||G.top>ne.innerHeight||G.left<0||G.left>ne.innerWidth||!(!Z||!(G.height+G.topZ.bottom||G.width+G.leftZ.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function requestClose(G){var Z,ne;ze()(this.props.closeReasons,G.reason)&&(null===(Z=(ne=this.props).onRequestClose)||void 0===Z||Z.call(ne,G))}},{key:"render",value:function render(){var G=Object($t.a)(),Z=this.props.open||this.state.animating,ne=this.context||G,ie=ne!==G,ce=this.state,fe=ce.anchorPos,me=ce.placement,ge=Z?[ie&&se.a.createElement(Ct.a,{target:ne,eventType:"scroll",listener:this.handleScroll,options:{passive:!1,capture:!0},key:"eventListener"}),se.a.createElement(Ct.a,{target:G,eventType:"resize",listener:this.setPlacement,key:"eventListenerOnWindowResize"}),se.a.createElement(Ct.a,{target:G,eventType:"scroll",listener:this.handleWindowScroll,options:{passive:!1,capture:!0},key:"eventListenerOnWindowScroll"})]:[];return[].concat(ge,[se.a.createElement(Mt.a,{closeReasons:Je()(this.props.closeReasons.filter((function(G){return"offScreen"!==G})),Mt.a.possibleCloseReasons),open:Z,onRequestClose:this.handleRequestClose,key:"Layer"},Z&&this.innerContainerEl&&this.props.hitAreaRef&&se.a.createElement(Ht,{anchorRect:fe,popoverEl:this.innerContainerEl,popoverPlacement:me,ref:this.props.hitAreaRef}),Z&&this.renderLayer())])}}]),Popover}(ie.Component);Popover_defineProperty(Gt,"contextType",xt.a),Popover_defineProperty(Gt,"defaultProps",Kt),Popover_defineProperty(Gt,"propTypes",Ut),Popover_defineProperty(Gt,"getDerivedStateFromProps",(function(G,Z){return G.open!==Z.prevOpen?{animating:G.animation,prevOpen:G.open}:null}));var Zt=Object(yt.withSplunkTheme)(Gt);Zt.propTypes=Gt.propTypes;var Jt=Zt},19:function(G,Z){G.exports=ne(167)},2:function(G,Z){G.exports=ne(0)},24:function(G,Z){G.exports=ne(136)},28:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return getDocument})),ne.d(Z,"b",(function(){return ie}));var ie={body:{appendChild:function appendChild(){return[]}},addEventListener:function addEventListener(){},removeEventListener:function removeEventListener(){},activeElement:{blur:function blur(){},nodeName:""},querySelector:function querySelector(){return null},querySelectorAll:function querySelectorAll(){return[]},getElementById:function getElementById(){return null},createEvent:function createEvent(){return{initEvent:function initEvent(){}}},createElement:function createElement(){return{children:[],childNodes:[],style:{},setAttribute:function setAttribute(){},getElementsByTagName:function getElementsByTagName(){return[]}}},createElementNS:function createElementNS(){return{}},importNode:function importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){return"undefined"!=typeof document?document:ie}},3:function(G,Z){G.exports=ne(3)},31:function(G,Z){G.exports=ne(1534)},33:function(G,Z){G.exports=ne(212)},43:function(G,Z){G.exports=ne(1535)},5:function(G,Z){G.exports=ne(41)},53:function(G,Z){G.exports=ne(1537)},58:function(G,Z){G.exports=ne(153)},71:function(G,Z){G.exports=ne(115)},85:function(G,Z){G.exports=ne(2477)},9:function(G,Z){G.exports=ne(62)},93:function(G,Z){G.exports=ne(36)}})},867:function(G,Z,ne){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.isNumber=isNumber,Z.isDecimal=isDecimal,Z.isMinus=isMinus,Z.isNumeric=function isNumeric(G,Z){return isNumber(G)||isDecimal(G,Z)||isMinus(G)},Z.addsCharacter=function addsCharacter(G){var Z=G.key;if(isValidKey(Z)){return 1===Z.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(Z)>=0}return},Z.keycode=void 0;var ie=_interopRequireDefault(ne(266)),se=_interopRequireDefault(ne(105));function _interopRequireDefault(G){return G&&G.__esModule?G:{default:G}}var ce=ie.default;function isValidKey(G){return!(0,se.default)(G)&&"Unidentified"!==G}function isNumber(G){var Z=G.key,ne=G.keyCode;if(isValidKey(Z)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(Z)>=0}return ne>=48&&ne<=57||ne>=96&&ne<=105}function isDecimal(G){var Z=G.key,ne=G.keyCode,ie=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},se=ie.locale,fe=void 0===se?"en-US":se,me=new Intl.NumberFormat(fe.replace("_","-")).format(1.2),ge=me.indexOf(",")>-1?",":".";return isValidKey(Z)?Z===ge||"Decimal"===Z:"."===ge&&ne===ce("numpad .")||ne===ce(ge)}function isMinus(G){var Z=G.key,ne=G.keyCode;return isValidKey(Z)?"-"===Z||"Subtract"===Z:ne===ce("numpad -")||ne===ce("-")}Z.keycode=ce},890:function(G,Z,ne){"use strict";var ie;function setSharedTranslator(G){ie=G}function resetSharedTranslator(){setSharedTranslator("undefined"!=typeof window&&window.gettext||function(G){return G})}Object.defineProperty(Z,"__esModule",{value:!0}),Z.gettext=function gettext(){return ie.apply(void 0,arguments)},Z._=function _(){return ie.apply(void 0,arguments)},Z.setSharedTranslator=setSharedTranslator,Z.resetSharedTranslator=resetSharedTranslator,resetSharedTranslator()},891:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=231)}({0:function(G,Z){G.exports=ne(204)},1:function(G,Z){G.exports=ne(2)},2:function(G,Z){G.exports=ne(0)},231:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return ke}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(3),ge=ne.n(me),Ce=ne(0),Se=ge.a.span.withConfig({displayName:"ScreenReaderContentStyles__Styled",componentId:"sc-1lnohwp-0"})(["",";"],Ce.mixins.screenReaderContent());function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Me={children:fe.a.node.isRequired,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object])};function ScreenReaderContent(G){var Z=G.children,ne=G.elementRef,ie=_objectWithoutProperties(G,["children","elementRef"]);return se.a.createElement(Se,_extends({"data-test":"screen-reader-content",ref:ne},ie),Z)}ScreenReaderContent.propTypes=Me;var ke=ScreenReaderContent},3:function(G,Z){G.exports=ne(3)}})},903:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ke}));var ie=ne(166),se=ne(127),ce=ne(1352),fe=ne(98),me=ne(26),ge=ne(60),Ce=ne(193),Se=ne(50),Me=ne(295),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};let ke=class EmbeddedCodeEditorWidget extends ce.a{constructor(G,Z,ne,ie,se,ce,fe,me,ge,Ce){super(G,Object.assign(Object.assign({},ne.getRawOptions()),{overflowWidgetsDomNode:ne.getOverflowWidgetsDomNode()}),{},ie,se,ce,fe,me,ge,Ce),this._parentEditor=ne,this._overwriteOptions=Z,super.updateOptions(this._overwriteOptions),this._register(ne.onDidChangeConfiguration(G=>this._onParentConfigurationChanged(G)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(G){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(G){ie.f(this._overwriteOptions,G,!0),super.updateOptions(this._overwriteOptions)}};ke=__decorate([__param(3,ge.a),__param(4,se.a),__param(5,fe.b),__param(6,me.b),__param(7,Se.b),__param(8,Ce.a),__param(9,Me.b)],ke)},904:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return ServiceCollection}));class ServiceCollection{constructor(...G){this._entries=new Map;for(let[Z,ne]of G)this.set(Z,ne)}set(G,Z){const ne=this._entries.get(G);return this._entries.set(G,Z),ne}has(G){return this._entries.has(G)}get(G){return this._entries.get(G)}}},905:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return se})),ne.d(Z,"b",(function(){return ce}));var ie=ne(60);const se=Object(ie.c)("textResourceConfigurationService"),ce=Object(ie.c)("textResourcePropertiesService")},908:function(G,Z,ne){"use strict";ne.d(Z,"d",(function(){return ie})),ne.d(Z,"a",(function(){return Ie})),ne.d(Z,"b",(function(){return InMemoryClipboardMetadataManager})),ne.d(Z,"c",(function(){return TextAreaInput}));var ie,se=ne(130),ce=ne(6),fe=ne(57),me=ne(19),ge=ne(10),Ce=ne(578),Se=ne(46),Me=ne(27),ke=ne(355),xe=ne(34),De=ne(80);!function(G){G.Tap="-monaco-textarea-synthetic-tap"}(ie||(ie={}));const Ie={forceCopyWithSyntaxHighlighting:!1};class InMemoryClipboardMetadataManager{constructor(){this._lastState=null}set(G,Z){this._lastState={lastCopiedValue:G,data:Z}}get(G){return this._lastState&&this._lastState.lastCopiedValue===G?this._lastState.data:(this._lastState=null,null)}}InMemoryClipboardMetadataManager.INSTANCE=new InMemoryClipboardMetadataManager;class TextAreaInput extends ge.a{constructor(G,Z){super(),this.textArea=Z,this._onFocus=this._register(new me.b),this.onFocus=this._onFocus.event,this._onBlur=this._register(new me.b),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new me.b),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new me.b),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new me.b),this.onCut=this._onCut.event,this._onPaste=this._register(new me.b),this.onPaste=this._onPaste.event,this._onType=this._register(new me.b),this.onType=this._onType.event,this._onCompositionStart=this._register(new me.b),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new me.b),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new me.b),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new me.b),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=G,this._textArea=this._register(new TextAreaWrapper(Z)),this._asyncTriggerCut=this._register(new fe.e(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new fe.e(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=ke.b.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let ne=null;this._register(ce.o(Z.domNode,"keydown",G=>{(109===G.keyCode||this._isDoingComposition&&1===G.keyCode)&&G.stopPropagation(),G.equals(9)&&G.preventDefault(),ne=G,this._onKeyDown.fire(G)})),this._register(ce.o(Z.domNode,"keyup",G=>{this._onKeyUp.fire(G)})),this._register(ce.i(Z.domNode,"compositionstart",G=>{if(ke.c&&console.log("[compositionstart]",G),!this._isDoingComposition){if(this._isDoingComposition=!0,Se.f&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===G.data){if(ne&&ne.equals(109)&&("ArrowRight"===ne.code||"ArrowLeft"===ne.code)||se.g)return ke.c&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",G),this._textAreaState=new ke.b(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new xe.a(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),void this._onCompositionStart.fire({revealDeltaColumns:-1})}se.e?this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart}):(this._setAndWriteTextAreaState("compositionstart",ke.b.EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0}))}}));const deduceInputFromTextAreaValue=G=>{const Z=this._textAreaState,ne=ke.b.readFromTextArea(this._textArea);return[ne,ke.b.deduceInput(Z,ne,G)]},deduceAndroidCompositionInput=()=>{const G=this._textAreaState,Z=ke.b.readFromTextArea(this._textArea);return[Z,ke.b.deduceAndroidCompositionInput(G,Z)]},deduceComposition=G=>{const Z=this._textAreaState,ne=ke.b.selectedText(G);return[ne,{text:ne.value,replacePrevCharCnt:Z.selectionEnd-Z.selectionStart,replaceNextCharCnt:0,positionDelta:0}]};this._register(ce.i(Z.domNode,"compositionupdate",G=>{if(ke.c&&console.log("[compositionupdate]",G),se.e){const[Z,ne]=deduceAndroidCompositionInput();return this._textAreaState=Z,this._onType.fire(ne),void this._onCompositionUpdate.fire(G)}const[Z,ne]=deduceComposition(G.data||"");this._textAreaState=Z,this._onType.fire(ne),this._onCompositionUpdate.fire(G)})),this._register(ce.i(Z.domNode,"compositionend",G=>{if(ke.c&&console.log("[compositionend]",G),!this._isDoingComposition)return;if(this._isDoingComposition=!1,se.e){const[G,Z]=deduceAndroidCompositionInput();return this._textAreaState=G,this._onType.fire(Z),void this._onCompositionEnd.fire()}const[Z,ne]=deduceComposition(G.data||"");this._textAreaState=Z,this._onType.fire(ne),(se.f||se.g)&&(this._textAreaState=ke.b.readFromTextArea(this._textArea)),this._onCompositionEnd.fire()})),this._register(ce.i(Z.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[G,Z]=deduceInputFromTextAreaValue(Se.f);0===Z.replacePrevCharCnt&&1===Z.text.length&&Me.F(Z.text.charCodeAt(0))||(this._textAreaState=G,0===this._nextCommand?""===Z.text&&0===Z.replacePrevCharCnt||this._onType.fire(Z):(""===Z.text&&0===Z.replacePrevCharCnt||this._firePaste(Z.text,null),this._nextCommand=0))})),this._register(ce.i(Z.domNode,"cut",G=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(G),this._asyncTriggerCut.schedule()})),this._register(ce.i(Z.domNode,"copy",G=>{this._ensureClipboardGetsEditorSelection(G)})),this._register(ce.i(Z.domNode,"paste",G=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),ClipboardEventUtils.canUseTextData(G)){const[Z,ne]=ClipboardEventUtils.getTextData(G);""!==Z&&this._firePaste(Z,ne)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",ke.b.EMPTY),this._nextCommand=1})),this._register(ce.i(Z.domNode,"focus",()=>{const G=this._hasFocus;this._setHasFocus(!0),se.h&&!G&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(ce.i(Z.domNode,"blur",()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(ce.i(Z.domNode,ie.Tap,()=>{se.e&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let G=0;return ce.i(document,"selectionchange",Z=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!se.f)return;const ne=Date.now(),ie=ne-G;if(G=ne,ie<5)return;const ce=ne-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),ce<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const fe=this._textArea.getValue();if(this._textAreaState.value!==fe)return;const me=this._textArea.getSelectionStart(),ge=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===me&&this._textAreaState.selectionEnd===ge)return;const Ce=this._textAreaState.deduceEditorPosition(me),Se=this._host.deduceModelPosition(Ce[0],Ce[1],Ce[2]),Me=this._textAreaState.deduceEditorPosition(ge),ke=this._host.deduceModelPosition(Me[0],Me[1],Me[2]),xe=new De.a(Se.lineNumber,Se.column,ke.lineNumber,ke.column);this._onSelectionChangeRequest.fire(xe)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const G=ce.F(this.textArea.domNode);G?this._setHasFocus(G.activeElement===this.textArea.domNode):ce.N(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(G){this._hasFocus!==G&&(this._hasFocus=G,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(G,Z){this._hasFocus||(Z=Z.collapseSelection()),Z.writeToTextArea(G,this._textArea,this._hasFocus),this._textAreaState=Z}writeScreenReaderContent(G){this._isDoingComposition||this._setAndWriteTextAreaState(G,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(G){const Z=this._host.getDataToCopy(ClipboardEventUtils.canUseTextData(G)),ne={version:1,isFromEmptySelection:Z.isFromEmptySelection,multicursorText:Z.multicursorText,mode:Z.mode};InMemoryClipboardMetadataManager.INSTANCE.set(se.g?Z.text.replace(/\r\n/g,"\n"):Z.text,ne),ClipboardEventUtils.canUseTextData(G)?ClipboardEventUtils.setTextData(G,Z.text,Z.html,ne):this._setAndWriteTextAreaState("copy or cut",ke.b.selectedText(Z.text))}_firePaste(G,Z){Z||(Z=InMemoryClipboardMetadataManager.INSTANCE.get(G)),this._onPaste.fire({text:G,metadata:Z})}}class ClipboardEventUtils{static canUseTextData(G){return!!G.clipboardData||!!window.clipboardData}static getTextData(G){if(G.clipboardData){G.preventDefault();const Z=G.clipboardData.getData(Ce.a.text);let ne=null;const ie=G.clipboardData.getData("vscode-editor-data");if("string"==typeof ie)try{ne=JSON.parse(ie),1!==ne.version&&(ne=null)}catch(G){}return[Z,ne]}if(window.clipboardData){G.preventDefault();return[window.clipboardData.getData("Text"),null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(G,Z,ne,ie){if(G.clipboardData)return G.clipboardData.setData(Ce.a.text,Z),"string"==typeof ne&&G.clipboardData.setData("text/html",ne),G.clipboardData.setData("vscode-editor-data",JSON.stringify(ie)),void G.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",Z),void G.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class TextAreaWrapper extends ge.a{constructor(G){super(),this._actual=G,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(G){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(G,Z){const ne=this._actual.domNode;ne.value!==Z&&(this.setIgnoreSelectionChangeTime("setValue"),ne.value=Z)}getSelectionStart(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(G,Z,ne){const ie=this._actual.domNode;let fe=null;const me=ce.F(ie);fe=me?me.activeElement:document.activeElement;const ge=fe===ie,Ce=ie.selectionStart,Se=ie.selectionEnd;if(ge&&Ce===Z&&Se===ne)se.g&&window.parent!==window&&ie.focus();else{if(ge)return this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.setSelectionRange(Z,ne),void(se.g&&window.parent!==window&&ie.focus());try{const G=ce.U(ie);this.setIgnoreSelectionChangeTime("setSelectionRange"),ie.focus(),ie.setSelectionRange(Z,ne),ce.S(ie,G)}catch(G){}}}}},909:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return HighlightedLabel}));var ie=ne(166),se=ne(6),ce=ne(703);class HighlightedLabel{constructor(G,Z){this.supportIcons=Z,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",G.appendChild(this.domNode)}get element(){return this.domNode}set(G,Z=[],ne="",se){G||(G=""),se&&(G=HighlightedLabel.escapeNewLines(G,Z)),this.didEverRender&&this.text===G&&this.title===ne&&ie.d(this.highlights,Z)||(this.text=G,this.title=ne,this.highlights=Z,this.render())}render(){const G=[];let Z=0;for(const ne of this.highlights){if(ne.end===ne.start)continue;if(Z{ie="\r\n"===G?-1:0,se+=ne;for(const G of Z)G.end<=se||(G.start>=se&&(G.start+=ie),G.end>=se&&(G.end+=ie));return ne+=ie,"⏎"})}}},911:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return isEditStackElement})),ne.d(Z,"a",(function(){return EditStack}));var ie=ne(4),se=ne(51),ce=ne(80),fe=ne(94),me=ne(1671),ge=ne(250),Ce=ne(181);function uriGetComparisonKey(G){return G.toString()}class SingleModelEditStackData{constructor(G,Z,ne,ie,se,ce,fe){this.beforeVersionId=G,this.afterVersionId=Z,this.beforeEOL=ne,this.afterEOL=ie,this.beforeCursorState=se,this.afterCursorState=ce,this.changes=fe}static create(G,Z){const ne=G.getAlternativeVersionId(),ie=getModelEOL(G);return new SingleModelEditStackData(ne,ne,ie,ie,Z,Z,[])}append(G,Z,ne,ie,se){Z.length>0&&(this.changes=Object(me.b)(this.changes,Z)),this.afterEOL=ne,this.afterVersionId=ie,this.afterCursorState=se}static _writeSelectionsSize(G){return 4+16*(G?G.length:0)}static _writeSelections(G,Z,ne){if(ge.f(G,Z?Z.length:0,ne),ne+=4,Z)for(const ie of Z)ge.f(G,ie.selectionStartLineNumber,ne),ne+=4,ge.f(G,ie.selectionStartColumn,ne),ne+=4,ge.f(G,ie.positionLineNumber,ne),ne+=4,ge.f(G,ie.positionColumn,ne),ne+=4;return ne}static _readSelections(G,Z,ne){const ie=ge.c(G,Z);Z+=4;for(let se=0;seG.toString()).join(", ")}matchesResource(G){return(fe.a.isUri(this.model)?this.model:this.model.uri).toString()===G.toString()}setModel(G){this.model=G}canAppend(G){return this.model===G&&this._data instanceof SingleModelEditStackData}append(G,Z,ne,ie,se){this._data instanceof SingleModelEditStackData&&this._data.append(G,Z,ne,ie,se)}close(){this._data instanceof SingleModelEditStackData&&(this._data=this._data.serialize())}open(){this._data instanceof SingleModelEditStackData||(this._data=SingleModelEditStackData.deserialize(this._data))}undo(){if(fe.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof SingleModelEditStackData&&(this._data=this._data.serialize());const G=SingleModelEditStackData.deserialize(this._data);this.model._applyUndo(G.changes,G.beforeEOL,G.beforeVersionId,G.beforeCursorState)}redo(){if(fe.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof SingleModelEditStackData&&(this._data=this._data.serialize());const G=SingleModelEditStackData.deserialize(this._data);this.model._applyRedo(G.changes,G.afterEOL,G.afterVersionId,G.afterCursorState)}heapSize(){return this._data instanceof SingleModelEditStackData&&(this._data=this._data.serialize()),this._data.byteLength+168}}function getModelEOL(G){return"\n"===G.getEOL()?0:1}function isEditStackElement(G){return!!G&&(G instanceof SingleModelEditStackElement||G instanceof class MultiModelEditStackElement{constructor(G,Z){this.type=1,this.label=G,this._isOpen=!0,this._editStackElementsArr=Z.slice(0),this._editStackElementsMap=new Map;for(const G of this._editStackElementsArr){const Z=uriGetComparisonKey(G.resource);this._editStackElementsMap.set(Z,G)}this._delegate=null}get resources(){return this._editStackElementsArr.map(G=>G.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(G){const Z=uriGetComparisonKey(G);return this._editStackElementsMap.has(Z)}setModel(G){const Z=uriGetComparisonKey(fe.a.isUri(G)?G:G.uri);this._editStackElementsMap.has(Z)&&this._editStackElementsMap.get(Z).setModel(G)}canAppend(G){if(!this._isOpen)return!1;const Z=uriGetComparisonKey(G.uri);if(this._editStackElementsMap.has(Z)){return this._editStackElementsMap.get(Z).canAppend(G)}return!1}append(G,Z,ne,ie,se){const ce=uriGetComparisonKey(G.uri);this._editStackElementsMap.get(ce).append(G,Z,ne,ie,se)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const G of this._editStackElementsArr)G.undo()}redo(){for(const G of this._editStackElementsArr)G.redo()}heapSize(G){const Z=uriGetComparisonKey(G);if(this._editStackElementsMap.has(Z)){return this._editStackElementsMap.get(Z).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){let G=[];for(const Z of this._editStackElementsArr)G.push(`${Object(Ce.b)(Z.resource)}: ${Z}`);return`{${G.join(", ")}}`}})}class EditStack{constructor(G,Z){this._model=G,this._undoRedoService=Z}pushStackElement(){const G=this._undoRedoService.getLastElement(this._model.uri);isEditStackElement(G)&&G.close()}popStackElement(){const G=this._undoRedoService.getLastElement(this._model.uri);isEditStackElement(G)&&G.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(G){const Z=this._undoRedoService.getLastElement(this._model.uri);if(isEditStackElement(Z)&&Z.canAppend(this._model))return Z;const ne=new SingleModelEditStackElement(this._model,G);return this._undoRedoService.pushElement(ne),ne}pushEOL(G){const Z=this._getOrCreateEditStackElement(null);this._model.setEOL(G),Z.append(this._model,[],getModelEOL(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(G,Z,ne){const ie=this._getOrCreateEditStackElement(G),se=this._model.applyEdits(Z,!0),ce=EditStack._computeCursorState(ne,se),fe=se.map((G,Z)=>({index:Z,textChange:G.textChange}));return fe.sort((G,Z)=>G.textChange.oldPosition===Z.textChange.oldPosition?G.index-Z.index:G.textChange.oldPosition-Z.textChange.oldPosition),ie.append(this._model,fe.map(G=>G.textChange),getModelEOL(this._model),this._model.getAlternativeVersionId(),ce),ce}static _computeCursorState(G,Z){try{return G?G(Z):null}catch(G){return Object(se.e)(G),null}}}},92:function(G,Z,ne){"use strict";ne.d(Z,"f",(function(){return isIMenuItem})),ne.d(Z,"b",(function(){return MenuId})),ne.d(Z,"a",(function(){return xe})),ne.d(Z,"d",(function(){return De})),ne.d(Z,"e",(function(){return SubmenuItemAction})),ne.d(Z,"c",(function(){return Ie}));var ie=ne(196),se=ne(60),ce=ne(26),fe=ne(98),me=ne(10),ge=ne(19),Ce=ne(50),Se=ne(151),Me=ne(376),ke=ne(67),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}};function isIMenuItem(G){return void 0!==G.command}class MenuId{constructor(G){this.id=MenuId._idPool++,this._debugName=G}}MenuId._idPool=0,MenuId.CommandPalette=new MenuId("CommandPalette"),MenuId.EditorContext=new MenuId("EditorContext"),MenuId.SimpleEditorContext=new MenuId("SimpleEditorContext"),MenuId.EditorContextCopy=new MenuId("EditorContextCopy"),MenuId.EditorContextPeek=new MenuId("EditorContextPeek"),MenuId.MenubarEditMenu=new MenuId("MenubarEditMenu"),MenuId.MenubarCopy=new MenuId("MenubarCopy"),MenuId.MenubarGoMenu=new MenuId("MenubarGoMenu"),MenuId.MenubarSelectionMenu=new MenuId("MenubarSelectionMenu"),MenuId.InlineCompletionsActions=new MenuId("InlineCompletionsActions");const xe=Object(se.c)("menuService"),De=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ge.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:G=>G===MenuId.CommandPalette}}addCommand(G){return this.addCommands(Se.a.single(G))}addCommands(G){for(const Z of G)this._commands.set(Z.id,Z);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(me.i)(()=>{let Z=!1;for(const ne of G)Z=this._commands.delete(ne.id)||Z;Z&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(G){return this._commands.get(G)}getCommands(){const G=new Map;return this._commands.forEach((Z,ne)=>G.set(ne,Z)),G}appendMenuItem(G,Z){return this.appendMenuItems(Se.a.single({id:G,item:Z}))}appendMenuItems(G){const Z=new Set,ne=new Me.a;for(const{id:ie,item:se}of G){let G=this._menuItems.get(ie);G||(G=new Me.a,this._menuItems.set(ie,G)),ne.push(G.push(se)),Z.add(ie)}return this._onDidChangeMenu.fire(Z),Object(me.i)(()=>{if(ne.size>0){for(let G of ne)G();this._onDidChangeMenu.fire(Z),ne.clear()}})}getMenuItems(G){let Z;return Z=this._menuItems.has(G)?[...this._menuItems.get(G)]:[],G===MenuId.CommandPalette&&this._appendImplicitItems(Z),Z}_appendImplicitItems(G){const Z=new Set;for(const ne of G)isIMenuItem(ne)&&(Z.add(ne.command.id),ne.alt&&Z.add(ne.alt.id));this._commands.forEach((ne,ie)=>{Z.has(ie)||G.push({command:ne})})}};class SubmenuItemAction extends ie.e{constructor(G,Z,ne,ie){super("submenuitem."+G.submenu.id,"string"==typeof G.title?G.title:G.title.value,[],"submenu"),this.item=G,this._menuService=Z,this._contextKeyService=ne,this._options=ie}get actions(){const G=[],Z=this._menuService.createMenu(this.item.submenu,this._contextKeyService),ne=Z.getActions(this._options);Z.dispose();for(const[,Z]of ne)Z.length>0&&(G.push(...Z),G.push(new ie.d));return G.length&&G.pop(),G}}let Ie=class MenuItemAction{constructor(G,Z,ne,ie,se){var ce;if(this._commandService=se,this.id=G.id,this.label=(null==ne?void 0:ne.renderShortTitle)&&G.shortTitle?"string"==typeof G.shortTitle?G.shortTitle:G.shortTitle.value:"string"==typeof G.title?G.title:G.title.value,this.tooltip=null!==(ce=G.tooltip)&&void 0!==ce?ce:"",this.enabled=!G.precondition||ie.contextMatchesRules(G.precondition),this.checked=!1,G.toggled){const Z=G.toggled.condition?G.toggled:{condition:G.toggled};this.checked=ie.contextMatchesRules(Z.condition),this.checked&&Z.tooltip&&(this.tooltip="string"==typeof Z.tooltip?Z.tooltip:Z.tooltip.value),Z.title&&(this.label="string"==typeof Z.title?Z.title:Z.title.value)}this.item=G,this.alt=Z?new MenuItemAction(Z,void 0,ne,ie,se):void 0,this._options=ne,Ce.d.isThemeIcon(G.icon)&&(this.class=ke.a.asClassName(G.icon))}dispose(){}run(...G){var Z,ne;let ie=[];return(null===(Z=this._options)||void 0===Z?void 0:Z.arg)&&(ie=[...ie,this._options.arg]),(null===(ne=this._options)||void 0===ne?void 0:ne.shouldForwardArgs)&&(ie=[...ie,...G]),this._commandService.executeCommand(this.id,...ie)}};Ie=__decorate([__param(3,ce.b),__param(4,fe.b)],Ie)},94:function(G,Z,ne){"use strict";ne.d(Z,"a",(function(){return URI})),ne.d(Z,"b",(function(){return uriToFsPath}));var ie=ne(46),se=ne(210);const ce=/^\w[\w\d+.-]*$/,fe=/^\//,me=/^\/\//;function _validateUri(G,Z){if(!G.scheme&&Z)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${G.authority}", path: "${G.path}", query: "${G.query}", fragment: "${G.fragment}"}`);if(G.scheme&&!ce.test(G.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(G.path)if(G.authority){if(!fe.test(G.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(me.test(G.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const ge="/",Ce=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class URI{constructor(G,Z,ne,ie,se,ce=!1){"object"==typeof G?(this.scheme=G.scheme||"",this.authority=G.authority||"",this.path=G.path||"",this.query=G.query||"",this.fragment=G.fragment||""):(this.scheme=function _schemeFix(G,Z){return G||Z?G:"file"}(G,ce),this.authority=Z||"",this.path=function _referenceResolution(G,Z){switch(G){case"https":case"http":case"file":Z?Z[0]!==ge&&(Z=ge+Z):Z=ge}return Z}(this.scheme,ne||""),this.query=ie||"",this.fragment=se||"",_validateUri(this,ce))}static isUri(G){return G instanceof URI||!!G&&("string"==typeof G.authority&&"string"==typeof G.fragment&&"string"==typeof G.path&&"string"==typeof G.query&&"string"==typeof G.scheme&&"string"==typeof G.fsPath&&"function"==typeof G.with&&"function"==typeof G.toString)}get fsPath(){return uriToFsPath(this,!1)}with(G){if(!G)return this;let{scheme:Z,authority:ne,path:ie,query:se,fragment:ce}=G;return void 0===Z?Z=this.scheme:null===Z&&(Z=""),void 0===ne?ne=this.authority:null===ne&&(ne=""),void 0===ie?ie=this.path:null===ie&&(ie=""),void 0===se?se=this.query:null===se&&(se=""),void 0===ce?ce=this.fragment:null===ce&&(ce=""),Z===this.scheme&&ne===this.authority&&ie===this.path&&se===this.query&&ce===this.fragment?this:new Uri(Z,ne,ie,se,ce)}static parse(G,Z=!1){const ne=Ce.exec(G);return ne?new Uri(ne[2]||"",percentDecode(ne[4]||""),percentDecode(ne[5]||""),percentDecode(ne[7]||""),percentDecode(ne[9]||""),Z):new Uri("","","","","")}static file(G){let Z="";if(ie.j&&(G=G.replace(/\\/g,ge)),G[0]===ge&&G[1]===ge){const ne=G.indexOf(ge,2);-1===ne?(Z=G.substring(2),G=ge):(Z=G.substring(2,ne),G=G.substring(ne)||ge)}return new Uri("file",Z,G,"","")}static from(G){const Z=new Uri(G.scheme,G.authority,G.path,G.query,G.fragment);return _validateUri(Z,!0),Z}static joinPath(G,...Z){if(!G.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let ne;return ne=ie.j&&"file"===G.scheme?URI.file(se.i.join(uriToFsPath(G,!0),...Z)).path:se.e.join(G.path,...Z),G.with({path:ne})}toString(G=!1){return _asFormatted(this,G)}toJSON(){return this}static revive(G){if(G){if(G instanceof URI)return G;{const Z=new Uri(G);return Z._formatted=G.external,Z._fsPath=G._sep===Se?G.fsPath:null,Z}}return G}}const Se=ie.j?1:void 0;class Uri extends URI{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=uriToFsPath(this,!1)),this._fsPath}toString(G=!1){return G?_asFormatted(this,!0):(this._formatted||(this._formatted=_asFormatted(this,!1)),this._formatted)}toJSON(){const G={$mid:1};return this._fsPath&&(G.fsPath=this._fsPath,G._sep=Se),this._formatted&&(G.external=this._formatted),this.path&&(G.path=this.path),this.scheme&&(G.scheme=this.scheme),this.authority&&(G.authority=this.authority),this.query&&(G.query=this.query),this.fragment&&(G.fragment=this.fragment),G}}const Me={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function encodeURIComponentFast(G,Z){let ne=void 0,ie=-1;for(let se=0;se=97&&ce<=122||ce>=65&&ce<=90||ce>=48&&ce<=57||45===ce||46===ce||95===ce||126===ce||Z&&47===ce)-1!==ie&&(ne+=encodeURIComponent(G.substring(ie,se)),ie=-1),void 0!==ne&&(ne+=G.charAt(se));else{void 0===ne&&(ne=G.substr(0,se));const Z=Me[ce];void 0!==Z?(-1!==ie&&(ne+=encodeURIComponent(G.substring(ie,se)),ie=-1),ne+=Z):-1===ie&&(ie=se)}}return-1!==ie&&(ne+=encodeURIComponent(G.substring(ie))),void 0!==ne?ne:G}function encodeURIComponentMinimal(G){let Z=void 0;for(let ne=0;ne1&&"file"===G.scheme?`//${G.authority}${G.path}`:47===G.path.charCodeAt(0)&&(G.path.charCodeAt(1)>=65&&G.path.charCodeAt(1)<=90||G.path.charCodeAt(1)>=97&&G.path.charCodeAt(1)<=122)&&58===G.path.charCodeAt(2)?Z?G.path.substr(1):G.path[1].toLowerCase()+G.path.substr(2):G.path,ie.j&&(ne=ne.replace(/\//g,"\\")),ne}function _asFormatted(G,Z){const ne=Z?encodeURIComponentMinimal:encodeURIComponentFast;let ie="",{scheme:se,authority:ce,path:fe,query:me,fragment:Ce}=G;if(se&&(ie+=se,ie+=":"),(ce||"file"===se)&&(ie+=ge,ie+=ge),ce){let G=ce.indexOf("@");if(-1!==G){const Z=ce.substr(0,G);ce=ce.substr(G+1),G=Z.indexOf(":"),-1===G?ie+=ne(Z,!1):(ie+=ne(Z.substr(0,G),!1),ie+=":",ie+=ne(Z.substr(G+1),!1)),ie+="@"}ce=ce.toLowerCase(),G=ce.indexOf(":"),-1===G?ie+=ne(ce,!1):(ie+=ne(ce.substr(0,G),!1),ie+=ce.substr(G))}if(fe){if(fe.length>=3&&47===fe.charCodeAt(0)&&58===fe.charCodeAt(2)){const G=fe.charCodeAt(1);G>=65&&G<=90&&(fe=`/${String.fromCharCode(G+32)}:${fe.substr(3)}`)}else if(fe.length>=2&&58===fe.charCodeAt(1)){const G=fe.charCodeAt(0);G>=65&&G<=90&&(fe=`${String.fromCharCode(G+32)}:${fe.substr(2)}`)}ie+=ne(fe,!0)}return me&&(ie+="?",ie+=ne(me,!1)),Ce&&(ie+="#",ie+=Z?Ce:encodeURIComponentFast(Ce,!1)),ie}const ke=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function percentDecode(G){return G.match(ke)?G.replace(ke,G=>function decodeURIComponentGraceful(G){try{return decodeURIComponent(G)}catch(Z){return G.length>3?G.substr(0,3)+decodeURIComponentGraceful(G.substr(3)):G}}(G)):G}},976:function(G,Z,ne){"use strict";var ie=ne(442);Object.defineProperty(Z,"__esModule",{value:!0}),Z.normalizeUnit=normalizeUnit,Z.normalizeSnapUnit=normalizeSnapUnit,Z.getUnitLabel=function getUnitLabel(G,Z=!1){return Ce.snapUnits[G][Z?"plural":"singular"]},Z.removeRealTime=removeRealTime,Z.removeISOTimezone=function removeISOTimezone(G){return G.replace(/[+-]\d?\d:\d\d$/,"")},Z.isEpoch=isEpoch,Z.isISO=isISO,Z.isAbsolute=function isAbsolute(G){if(void 0===G)return!1;return isEpoch(G)||isISO(G)},Z.getISOWithTimeZone=getISOWithTimeZone,Z.parseTimeString=parseTimeString,Z.isValidTime=function isValidTime(G){return parseTimeString(G).isFullyParsed},Z.isRealTime=isRealTime,Z.isWholeDay=isWholeDay,Z.isEarliestEmpty=isEarliestEmpty,Z.isLatestNow=isLatestNow,Z.isAllTime=function isAllTime(G,Z){return isEarliestEmpty(removeRealTime(G))&&isLatestNow(removeRealTime(Z))},Z.timeRangesAreEquivalent=timeRangesAreEquivalent,Z.findPresetLabel=findPresetLabel,Z.createRangeLabel=function createRangeLabel(G,Z,{presets:ne,maxChars:ie}={}){const Se=G.trim(),Me=Z.trim();return function createAllTimeLabel(G,Z){if(isEarliestEmpty(G)&&isLatestNow(Z))return(0,me._)("All time");return!1}(Se,Me)||ne&&findPresetLabel(ne,Se,Me)||function createRealTimeLabel(G,Z){if(isRealTime(G)||isRealTime(Z)){const ne=parseTimeString(G),ie=ne.modifiers[0],fe=parseTimeString(Z),ge={s:(0,me._)("%(time)d second window"),m:(0,me._)("%(time)d minute window"),h:(0,me._)("%(time)d hour window"),d:(0,me._)("%(time)d day window"),w:(0,me._)("%(time)d week window"),mon:(0,me._)("%(time)d month window"),q:(0,me._)("%(time)d quarter window"),y:(0,me._)("%(time)d year window")};return ie&&"realTime"===ne.type&&"realTime"===fe.type&&0===fe.modifiers.length&&(0,se.has)(ge,ie.unit)&&1===ne.modifiers.length?(0,ce.sprintf)(ge[ie.unit],{time:Math.abs(ie.amount)}):(0,me._)("Real-time")}return!1}(Se,Me)||function createRelativeTimeLabel(G,Z){const ne=parseTimeString(G),ie=ne.modifiers[0],se=parseTimeString(Z),fe=se.modifiers[0];if("realTime"===ne.type||"realTime"===se.type||!ie||ne.modifiers.length>1||se.modifiers.length>1)return!1;if(ie.amount<0&&(!ie.snap||ie.unit===ie.snap)&&(isLatestNow(Z)||fe&&!fe.amount)&&(!fe||!fe.snap||ie.unit===fe.snap)){const G=Math.abs(ie.amount),Z=G>1?"plural":"singular";return(0,ce.sprintf)((0,me._)("Last %(amount)d %(unit)s"),{amount:G,unit:Ce.timeUnits[ie.unit][Z]})}return!1}(Se,Me)||function createDateTimeRangeLabel(G,Z,ne){const ie=isISO(G)?(0,ge.default)(G).locale(fe.locale||"en_US"):void 0,se=isISO(Z)?(0,ge.default)(Z).locale(fe.locale||"en_US"):void 0;if(ie&&se){const G=function findSingleDateUnit(G,Z){if(!isWholeDay(G)||!isWholeDay(Z))return null;if(0===G.month()&&0===Z.month()&&1===G.date()&&1===Z.date())return"year";if(G.year()===Z.year()&&1===G.date()&&1===Z.date()||G.year()+1===Z.year()&&0===Z.month()&&1===G.date()&&1===Z.date())return"month";return"date"}(ie,se),Z=G&&(0,ge.default)(ie).add(1,"date"===G?"days":G);if(G){if("date"===G&&(0,ge.default)(ie).add(1,"days").isSame(se))return createSingleUnitOnLabel(ie,G);if("date"!==G&&Z[G]()===se[G]())return createSingleUnitOnLabel(ie,G)}return G?conformToMaxChars(function createSingleUnitThroughLabel(G,Z,ne){const ie=Z.subtract(1,"date"===ne?"day":ne);switch(ne){case"year":return(0,ce.sprintf)((0,me._)("%(earliestYear)s – %(latestYear)s"),{earliestYear:G.format("YYYY"),latestYear:ie.format("YYYY")});case"month":return(0,ce.sprintf)((0,me._)("%(earliestMonth)s – %(latestMonth)s, %(inYear)s"),{earliestMonth:G.format("MMM"),latestMonth:ie.format("MMM"),inYear:ie.format("YYYY")});case"date":return G.year()===ie.year()?G.month()===ie.month()?(0,ce.sprintf)((0,me._)("%(earliestMonth)s %(earliestDayOfMonth)s – %(latestDayOfMonth)s, %(latestYear)s"),{earliestMonth:G.format("MMM"),earliestDayOfMonth:G.format("D"),latestDayOfMonth:ie.format("D"),latestYear:ie.format("YYYY")}):(0,ce.sprintf)((0,me._)("%(earliestMonth)s %(earliestDayOfMonth)s – %(latestMonth)s %(latestDayOfMonth)s, %(latestYear)s"),{earliestMonth:G.format("MMM"),earliestDayOfMonth:G.format("D"),latestMonth:ie.format("MMM"),latestDayOfMonth:ie.format("D"),latestYear:ie.format("YYYY")}):(0,ce.sprintf)((0,me._)("%(earliestMonth)s %(earliestDayOfMonth)s, %(earliestYear)s – %(latestMonth)s %(latestDayOfMonth)s, %(latestYear)s"),{earliestMonth:G.format("MMM"),earliestDayOfMonth:G.format("D"),earliestYear:G.format("YYYY"),latestMonth:ie.format("MMM"),latestDayOfMonth:ie.format("D"),latestYear:ie.format("YYYY")});default:return(0,ce.sprintf)((0,me._)("%(month)s %(earliestDayOfMonth)s – %(latestDayOfMonth)s, %(inYear)s"),{month:G.format("MMM"),earliestDayOfMonth:G.format("D"),latestDayOfMonth:ie.format("D"),inYear:ie.format("YYYY")})}}(ie,se,G),(0,me._)("Date Range"),ne):function areSameDay(G,Z){const ne=G.clone().startOf("day"),ie=Z.clone().startOf("day");return ne.isSame(ie)}(ie,se)?conformToMaxChars(function createPartOfDayLabel(G,Z){return(0,ce.sprintf)((0,me._)("%(earliestTime)s – %(latestTime)s, %(date)s"),{earliestTime:createTimeLabel(G),latestTime:createTimeLabel(Z),date:G.format("ll")})}(ie,se),(0,me._)("Part of a Day"),ne):conformToMaxChars(function createTimeRangeLabel(G,Z){let ne,ie,se;ne=G.millisecond()||Z.millisecond()?"llms":G.second()||Z.second()?"lls":"lll";try{ie=G.splunkFormat(ne),se=Z.splunkFormat(ne)}catch(ne){ie=G.format("lll"),se=Z.format("lll")}return(0,ce.sprintf)((0,me._)("%(earliestDateTime)s – %(latestDateTime)s"),{earliestDateTime:ie,latestDateTime:se})}(ie,se),(0,me._)("Between Date-times"),ne)}if(ie&&isLatestNow(Z)){const G=largestDateUnit(ie),Z=G?createSingleUnitOnLabel(ie,G):createDateTimeLabel(ie);return conformToMaxChars((0,ce.sprintf)((0,me._)("Since %(dateTime)s"),{dateTime:Z}),(0,me._)("Since Date-time"),ne)}if(isEarliestEmpty(G)&&se){const G=largestDateUnit(se),Z=G?createSingleUnitOnLabel(se,G):createDateTimeLabel(se);return conformToMaxChars((0,ce.sprintf)((0,me._)("Before %(dateTime)s"),{dateTime:Z}),(0,me._)("Before Date-time"),ne)}return null}(Se,Me,ie)||(0,me._)("Custom time")},Z.formatDuration=function formatDuration(G){if(G<=0)return null;const Z=ge.default.duration(G);return[pluralize((0,me._)("1 year"),(0,me._)("%(numberOf)d years"),Z.years()),pluralize((0,me._)("1 month"),(0,me._)("%(numberOf)d months"),Z.months()),pluralize((0,me._)("1 day"),(0,me._)("%(numberOf)d days"),Z.days()),pluralize((0,me._)("1 hour"),(0,me._)("%(numberOf)d hours"),Z.hours()),pluralize((0,me._)("1 minute"),(0,me._)("%(numberOf)d minutes"),Z.minutes()),pluralize((0,me._)("1 second"),(0,me._)("%(numberOf)d seconds"),Z.seconds()),pluralize((0,me._)("1 millisecond"),(0,me._)("%(numberOf)d milliseconds"),Z.milliseconds())].filter(G=>!!G).join(" ")},Z.getAcceleratedTimeRange=Z.getRealTimeEarliest=Z.getRelativeLatest=Z.getRelativeEarliest=Z.getToSnap=Z.getFromUnit=Z.getFromSnap=Z.getFromNumber=void 0;var se=ne(24),ce=ne(7375),fe=ne(695),me=ne(2870),ge=ie(ne(7378)),Ce=ne(7380);function normalizeUnit(G,Z=!0){const ne=(0,se.has)(Ce.timeUnits,G),ie=Z?"":Ce.timeUnits.s.abbr;return ne?Ce.timeUnits[G].abbr:ie}function normalizeSnapUnit(G,Z=!0){const ne=(0,se.has)(Ce.snapUnits,G),ie=Z?"":Ce.timeUnits.s.abbr;return ne?Ce.snapUnits[G].abbr:ie}function removeRealTime(G){return"rt"===G?"now":G.replace(/^rt/,"")}function isEpoch(G){return(0,se.isFinite)(G)||(0,se.isString)(G)&&/^\d+((\.\d+)|(\d*))$/.test(G)}function isISO(G){return!!G.match(/^\d\d\d\d-\d\d?-\d\d?T\d\d?:\d\d?(:\d\d?)?(\.\d\d?\d?)?([+-]\d\d?:\d\d|Z)?$/)}function getISOWithTimeZone(G,Z){return(0,se.isString)(G)?Z?ge.default.tz(G,Z).toISOString():(0,ge.default)(G).toISOString():null}function parseTimeString(G){if(!(0,se.isString)(G))return!1;const Z={string:G,isFullyParsed:!0,modifiers:[]};if(isISO(G))return Z.type="iso",Z;if(isEpoch(G))return Z.type="epoch",Z;const ne=G.trim().replace(/-/g,"\n-").replace(/\+/g,"\n+").split("\n");if("@"===ne[0].charAt(0)&&ne.unshift(""),"rt"===ne[0]||"rtnow"===ne[0])Z.type="realTime";else{if(["rt","now","rtnow",""].indexOf(ne[0])<0)return Z.isFullyParsed=!1,Z;Z.type="relative"}return Z.modifiers=ne.slice(1).map(G=>{const ne={string:G,isParsed:!1},ie=G.match(/^(([-+]\d*)([a-zA-Z]*))?(@([a-zA-Z][a-zA-Z0-7]*))?$/);return ie?(ne.unit=ie[3]&&normalizeUnit(ie[3],!1),ne.amount=ne.unit?parseInt(ie[2],10)||1:0,ne.snap=!!ie[4]&&normalizeSnapUnit(ie[5],!1),ne.isParsed=!0,(ie[5]&&!Ce.snapUnits[ie[5]]||ie[3]&&!Ce.timeUnits[ie[3]]||1===G.length)&&(Z.isFullyParsed=!1,ne.isParsed=!1)):Z.isFullyParsed=!1,ne}),Z}function isRealTime(G){const Z=parseTimeString(G);return Z&&"realTime"===Z.type&&Z.isFullyParsed}function isWholeDay(G){if((0,se.isString)(G)&&isISO(G)||ge.default.isMoment(G)&&G.isValid()){const Z=(0,ge.default)(G);return Z.valueOf()===Z.startOf("day").valueOf()}return!1}function isEarliestEmpty(G){return"0"===G||!G}function isLatestNow(G){return!G||(0,se.isString)(G)&&"now"===G}function timeRangesAreEquivalent(G,Z){const ne=G.earliest,ie=G.latest,se=Z.earliest,ce=Z.latest;let fe=!1,me=!1;return fe=!(!isEarliestEmpty(ne)||!isEarliestEmpty(se))||ne===se,me=!(!isLatestNow(ie)||!isLatestNow(ce))||ie===ce,fe&&me}function findPresetLabel(G,Z,ne){const ie=(0,se.find)(G,G=>{const ie={earliest:G.earliest,latest:G.latest};return timeRangesAreEquivalent({earliest:Z,latest:ne},ie)});return!!ie&&ie.label}function largestDateUnit(G){return(0,se.find)(["year","month","date"],Z=>{const ne=G.clone().startOf(Z);return G.isSame(ne)})}function createSingleUnitOnLabel(G,Z){switch(Z){case"year":return G.format("YYYY");case"month":return(0,ce.sprintf)((0,me._)("%(month)s %(year)s"),{month:G.format("MMM"),year:G.format("YYYY")});default:return G.format("ll")}}function createDateTimeLabel(G){try{return G.millisecond()?G.splunkFormat("llms"):G.second()?G.splunkFormat("lls"):G.splunkFormat("lll")}catch(Z){return G.format("MMM D, YYYY H:mm.SS")}}function createTimeLabel(G){if(G.millisecond())try{return G.splunkFormat("LTMS")}catch(Z){return G.format("LTS")}return G.second()?G.format("LTS"):G.format("LT")}function conformToMaxChars(G,Z,ne){return ne&&G.length>Math.max(Z.length,ne)?Z:G}function pluralize(G,Z,ne){return 0===ne?null:1===ne?G:(0,ce.sprintf)(Z,{numberOf:ne})}Z.getFromNumber=G=>{const Z=parseTimeString(G).modifiers[0];return Z&&Math.abs(parseInt(Z.amount,10))||0};Z.getFromSnap=G=>{const Z=parseTimeString(G).modifiers[0];return!!Z&&!!Z.snap};Z.getFromUnit=G=>{const Z=parseTimeString(G).modifiers[0];return Z&&Z.unit||"s"};Z.getToSnap=G=>{const Z=parseTimeString(G).modifiers[0];return Z&&!!Z.snap||!1};Z.getRelativeEarliest=(G,Z,ne)=>"-"+G+ne+(Z?"@"+ne:"");Z.getRelativeLatest=(G,Z)=>Z?"@"+G:"now";Z.getRealTimeEarliest=(G,Z)=>"rt-"+G+Z;Z.getAcceleratedTimeRange=(G,Z,ne)=>{const ie="YYYY-MM-DDTHH:mm:ss.SSSZ";return{earliest:getISOWithTimeZone((0,ge.default)(G).subtract(Z,ne).format(ie)),latest:getISOWithTimeZone((0,ge.default)(G).add(Z,ne).format(ie))}}},977:function(G,Z,ne){var ie=ne(7388);G.exports=function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,se,ce=ie(G,Z);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(G);for(se=0;se=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(ce[ne]=G[ne])}return ce},G.exports.default=G.exports,G.exports.__esModule=!0},978:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=183)}({0:function(G,Z){G.exports=ne(240)},1:function(G,Z){G.exports=ne(2)},100:function(G,Z){G.exports=ne(4093)},101:function(G,Z){G.exports=ne(4094)},102:function(G,Z){G.exports=ne(4095)},103:function(G,Z){G.exports=ne(4096)},12:function(G,Z){G.exports=ne(758)},146:function(G,Z){G.exports=ne(7389)},183:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Ft})),ne.d(Z,"Link",(function(){return kt}));var ie=ne(2),se=ne.n(ie),ce=ne(1),fe=ne.n(ce),me=ne(72),ge=ne.n(me),Ce=ne(26),Se=ne.n(Ce),Me=ne(27),ke=ne.n(Me),xe=ne(73),De=ne.n(xe),Ie=ne(98),Re=ne.n(Ie),ze=ne(99),$e=ne.n(ze),Je=ne(100),it=ne.n(Je),ot=ne(101),at=ne.n(ot),st=ne(102),ct=ne.n(st),ut=ne(103),dt=ne.n(ut),ht=ne(146),ft=ne.n(ht),_t=ne(0),yt=ne(3),vt=ne.n(yt),wt=ne(37),Ct=ne.n(wt),St=vt()(Ct.a).withConfig({displayName:"LinkStyles__StyledLink",componentId:"w06zjv-0"})([""]);function _objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function _objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Mt={children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),openInNewContext:fe.a.bool,to:fe.a.string};function Link(G){var Z=G.children,ne=_objectWithoutProperties(G,["children"]);return se.a.createElement(St,ne,Z)}Link.propTypes=Mt;var kt=Link,xt=ne(6),Lt=ne.n(xt),Tt=ne(12),At=ne.n(Tt),Dt=vt.a.p.withConfig({displayName:"TitleStyles__StyledTitle",componentId:"sc-6gbjha-0"})([""," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:Object(yt.css)(["font-size:14px;line-height:20px;"])})),Et=vt.a.div.withConfig({displayName:"MessageStyles__StyledContent",componentId:"eg66af-0"})(["",";",""],_t.mixins.reset("inline"),Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorActive)})),jt=vt()(At.a).withConfig({displayName:"MessageStyles__StyledRemove",componentId:"eg66af-1"})(["",";border:1px solid transparent;border-radius:",";color:",";",";cursor:pointer;position:absolute;"," padding:8px;&:hover,&:focus{background:",";border:",";color:",";}&:active{",";}",""],_t.mixins.reset("flex"),Object(_t.pick)({prisma:"50%",enterprise:_t.variables.borderRadius}),Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:{dark:_t.variables.gray96,light:_t.variables.gray45}}),(function(G){return"banner"===G.$appearance&&Object(_t.pick)({prisma:Object(yt.css)(["color:",";"],_t.variables.contentColorInverted)})}),Object(_t.pick)({prisma:Object(yt.css)(["top:1px;right:2px;"]),enterprise:Object(yt.css)(["top:6px;right:8px;"])}),Object(_t.pick)({prisma:_t.variables.interactiveColorOverlayHover,enterprise:{dark:_t.variables.gray30,light:_t.variables.gray92}}),Object(_t.pick)({prisma:Object(yt.css)(["1px solid inherit"]),enterprise:Object(yt.css)(["1px solid ",""],_t.variables.gray80)}),Object(_t.pick)({enterprise:{dark:_t.variables.gray96,light:_t.variables.linkColor},prisma:_t.variables.contentColorActive}),Object(_t.pick)({prisma:Object(yt.css)(["background:",";"],_t.variables.interactiveColorOverlayActive),enterprise:Object(yt.css)(["box-shadow:",";"],_t.variables.focusShadow)}),Object(_t.pick)({prisma:Object(yt.css)(["&:focus{box-shadow:0 0 0 3px ",";}"],_t.variables.focusColor)})),It=vt.a.span.withConfig({displayName:"MessageStyles__StyledIconWrapper",componentId:"eg66af-2"})(["position:absolute;top:",";left:0;width:",";height:calc(100% - 8px);text-align:center;color:",";"," border-top-left-radius:inherit;border-bottom-left-radius:inherit;"," ",";"],Object(_t.pick)({prisma:"0px",enterprise:"7px"}),Object(_t.pick)({prisma:"24px",enterprise:"25px"}),_t.variables.white,Object(_t.pick)({prisma:Object(yt.css)(["padding-top:8px;"])}),Object(_t.pickVariant)("$type",{info:Object(yt.css)(["color:",";"],Object(_t.pick)({prisma:_t.variables.contentColorMuted,enterprise:_t.variables.infoColor})),success:Object(yt.css)(["color:",";"],_t.variables.accentColorPositive),warning:Object(yt.css)(["color:",";"],_t.variables.accentColorWarning),error:Object(yt.css)(["color:",";"],_t.variables.accentColorNegative)}),(function(G){return G.$fillStyle&&Object(_t.pick)({prisma:Object(yt.css)(["background-color:",";"],Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,success:_t.variables.accentColorPositive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative}))})})),Nt=vt()(Lt.a).withConfig({displayName:"MessageStyles__StyledBox",componentId:"eg66af-3"})(["",";position:relative;border-radius:",";margin-bottom:",";padding:",";word-wrap:break-word;"," ",""],_t.mixins.reset("block"),Object(_t.pick)({prisma:_t.variables.borderRadius,enterprise:"5px"}),_t.variables.spacingSmall,Object(_t.pickVariant)("$hasRemoveIcon",{true:{prisma:"10px 40px 10px 28px",enterprise:"10px 40px 10px 40px"},false:{prisma:"10px 8px 10px 28px",enterprise:"10px 10px 10px 40px"}}),(function(G){return G.$fillStyle&&Object(_t.pick)({enterprise:Object(yt.css)(["& > ","{left:",";}",""],It,_t.variables.spacingXSmall,Object(_t.pickVariant)("$type",{info:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.infoColorL50,_t.variables.infoColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.infoColor,.5))})),success:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.successColorL50,_t.variables.successColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.successColor,.5))})),warning:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.warningColorL50,_t.variables.warningColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.warningColor,.5))})),error:Object(yt.css)(["",""],Object(_t.pick)({light:Object(yt.css)(["background-color:",";border:1px solid ",";"],_t.variables.errorColorL50,_t.variables.errorColor),dark:Object(yt.css)(["background-color:",";"],_t.mixins.colorWithAlpha(_t.variables.errorColor,.5))}))})),prisma:Object(yt.css)(["border:1px solid transparent;background-color:",";box-shadow:",";& > ","{color:",";}"],_t.variables.backgroundColorPopup,_t.variables.embossShadow,It,_t.variables.backgroundColorPopup)})}),Object(_t.pick)({prisma:Object(yt.css)(["& ","{color:",";}"],Dt,Object(_t.pickVariant)("$type",{info:_t.variables.contentColorActive,warning:_t.variables.accentColorWarning,error:_t.variables.accentColorNegative,success:_t.variables.accentColorPositive}))}));function Title_objectWithoutProperties(G,Z){if(null==G)return{};var ne,ie,se=function Title_objectWithoutPropertiesLoose(G,Z){if(null==G)return{};var ne,ie,se={},ce=Object.keys(G);for(ie=0;ie=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var Rt={children:fe.a.node};function Title(G){var Z=G.children,ne=Title_objectWithoutProperties(G,["children"]);return se.a.createElement(Dt,ne,Z)}Title.propTypes=Rt;var zt=Title;function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;Z=0||(se[ne]=G[ne]);return se}(G,Z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(G);for(ie=0;ie=0||Object.prototype.propertyIsEnumerable.call(G,ne)&&(se[ne]=G[ne])}return se}var qt={appearance:fe.a.oneOf(["default","fill","banner"]),children:fe.a.node,elementRef:fe.a.oneOfType([fe.a.func,fe.a.object]),onRequestRemove:fe.a.func,type:fe.a.oneOf(["info","success","warning","error"])},Wt=Object.freeze({info:at.a,warning:dt.a,error:it.a,success:ct.a}),Bt=Object.freeze({info:Re.a,warning:$e.a,error:De.a,success:ge.a});function Message(G){var Z=G.appearance,ne=void 0===Z?"default":Z,ce=G.children,fe=G.type,me=void 0===fe?"warning":fe,ge=G.onRequestRemove,Ce=Message_objectWithoutProperties(G,["appearance","children","type","onRequestRemove"]),Me=Object(_t.useSplunkTheme)().isEnterprise;var xe=Object(ie.useCallback)((function(G){null==ge||ge(G)}),[ge]);if("banner"===ne)return se.a.createElement(ft.a,_extends({type:me,"data-test":"banner",onRequestClose:xe},Ce),ce);var De=(Me?Wt:Bt)[me],Ie="fill"===ne,Re="default"===ne||"fill"===ne;return se.a.createElement(Nt,_extends({$appearance:ne,$fillStyle:Ie,$hasRemoveIcon:!!ge,$type:me,"data-test-type":me,"data-test":"message"},Ce),Re&&se.a.createElement(It,{$fillStyle:Ie,$type:me},Me?se.a.createElement(De,{height:"24px",width:"24px",hideDefaultTooltip:!0,screenReaderText:null}):se.a.createElement(De,{variant:"filled",style:{verticalAlign:"bottom"}})),se.a.createElement(Et,{"data-test":"content",$fillStyle:Ie},ce),ge&&se.a.createElement(jt,{"data-test":"remove",onClick:xe,$appearance:ne},Me?se.a.createElement(ke.a,{height:"12px",hideDefaultTooltip:!0,screenReaderText:null,width:"12px"}):se.a.createElement(Se.a,{height:"20px",width:"20px"})))}Message.propTypes=qt,Message.Title=zt,Message.Link=kt;var Ft=Message},2:function(G,Z){G.exports=ne(0)},26:function(G,Z){G.exports=ne(2011)},27:function(G,Z){G.exports=ne(2012)},3:function(G,Z){G.exports=ne(3)},37:function(G,Z){G.exports=ne(1305)},6:function(G,Z){G.exports=ne(760)},72:function(G,Z){G.exports=ne(4097)},73:function(G,Z){G.exports=ne(4098)},98:function(G,Z){G.exports=ne(4099)},99:function(G,Z){G.exports=ne(4100)}})},979:function(G,Z,ne){"use strict";function createGUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(G){var Z=Math.floor(16*Math.random());return("x"===G?Z:Z%4+8).toString(16)}))}Object.defineProperty(Z,"__esModule",{value:!0}),Z.createGUID=createGUID,Z.createDOMID=function createDOMID(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(G.match(/^[a-zA-Z][\w-]*$/))return"".concat(G,"-").concat(createGUID());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},98:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return Ce})),ne.d(Z,"a",(function(){return Se}));var ie=ne(10),se=ne(54),ce=ne(60),fe=ne(19),me=ne(376),ge=ne(151);const Ce=Object(ce.c)("commandService"),Se=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new fe.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(G,Z){if(!G)throw new Error("invalid command");if("string"==typeof G){if(!Z)throw new Error("invalid command");return this.registerCommand({id:G,handler:Z})}if(G.description){const Z=[];for(let ne of G.description.args)Z.push(ne.constraint);const ne=G.handler;G.handler=function(G,...ie){return Object(se.n)(ie,Z),ne(G,...ie)}}const{id:ne}=G;let ce=this._commands.get(ne);ce||(ce=new me.a,this._commands.set(ne,ce));let fe=ce.unshift(G),ge=Object(ie.i)(()=>{fe();const G=this._commands.get(ne);(null==G?void 0:G.isEmpty())&&this._commands.delete(ne)});return this._onDidRegisterCommand.fire(ne),ge}registerCommandAlias(G,Z){return Se.registerCommand(G,(G,...ne)=>G.get(Ce).executeCommand(Z,...ne))}getCommand(G){const Z=this._commands.get(G);if(Z&&!Z.isEmpty())return ge.a.first(Z)}getCommands(){const G=new Map;for(const Z of this._commands.keys()){const ne=this.getCommand(Z);ne&&G.set(Z,ne)}return G}};Se.registerCommand("noop",()=>{})},980:function(G,Z,ne){G.exports=function(G){var Z={};function __webpack_require__(ne){if(Z[ne])return Z[ne].exports;var ie=Z[ne]={i:ne,l:!1,exports:{}};return G[ne].call(ie.exports,ie,ie.exports,__webpack_require__),ie.l=!0,ie.exports}return __webpack_require__.m=G,__webpack_require__.c=Z,__webpack_require__.d=function(G,Z,ne){__webpack_require__.o(G,Z)||Object.defineProperty(G,Z,{enumerable:!0,get:ne})},__webpack_require__.r=function(G){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(G,"__esModule",{value:!0})},__webpack_require__.t=function(G,Z){if(1&Z&&(G=__webpack_require__(G)),8&Z)return G;if(4&Z&&"object"==typeof G&&G&&G.__esModule)return G;var ne=Object.create(null);if(__webpack_require__.r(ne),Object.defineProperty(ne,"default",{enumerable:!0,value:G}),2&Z&&"string"!=typeof G)for(var ie in G)__webpack_require__.d(ne,ie,function(Z){return G[Z]}.bind(null,ie));return ne},__webpack_require__.n=function(G){var Z=G&&G.__esModule?function getDefault(){return G.default}:function getModuleExports(){return G};return __webpack_require__.d(Z,"a",Z),Z},__webpack_require__.o=function(G,Z){return Object.prototype.hasOwnProperty.call(G,Z)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=61)}({0:function(G,Z){G.exports=ne(0)},3:function(G,Z){G.exports=ne(643)},61:function(G,Z,ne){"use strict";ne.r(Z),ne.d(Z,"default",(function(){return Close}));var ie=ne(0),se=ne.n(ie),ce=ne(3),fe=ne(7),me=ne.n(fe);function _extends(){return(_extends=Object.assign||function(G){for(var Z=1;ZZ&&(ne=Z-G),ne<0&&(ne=0),ie<0&&(ie=0),ce+ie>se&&(ce=se-ie),ce<0&&(ce=0),this.width=G,this.scrollWidth=Z,this.scrollLeft=ne,this.height=ie,this.scrollHeight=se,this.scrollTop=ce}equals(G){return this.rawScrollLeft===G.rawScrollLeft&&this.rawScrollTop===G.rawScrollTop&&this.width===G.width&&this.scrollWidth===G.scrollWidth&&this.scrollLeft===G.scrollLeft&&this.height===G.height&&this.scrollHeight===G.scrollHeight&&this.scrollTop===G.scrollTop}withScrollDimensions(G,Z){return new ScrollState(void 0!==G.width?G.width:this.width,void 0!==G.scrollWidth?G.scrollWidth:this.scrollWidth,Z?this.rawScrollLeft:this.scrollLeft,void 0!==G.height?G.height:this.height,void 0!==G.scrollHeight?G.scrollHeight:this.scrollHeight,Z?this.rawScrollTop:this.scrollTop)}withScrollPosition(G){return new ScrollState(this.width,this.scrollWidth,void 0!==G.scrollLeft?G.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==G.scrollTop?G.scrollTop:this.rawScrollTop)}createScrollEvent(G,Z){const ne=this.width!==G.width,ie=this.scrollWidth!==G.scrollWidth,se=this.scrollLeft!==G.scrollLeft,ce=this.height!==G.height,fe=this.scrollHeight!==G.scrollHeight,me=this.scrollTop!==G.scrollTop;return{inSmoothScrolling:Z,oldWidth:G.width,oldScrollWidth:G.scrollWidth,oldScrollLeft:G.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:G.height,oldScrollHeight:G.scrollHeight,oldScrollTop:G.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:ne,scrollWidthChanged:ie,scrollLeftChanged:se,heightChanged:ce,scrollHeightChanged:fe,scrollTopChanged:me}}}class Scrollable extends se.a{constructor(G,Z){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new ie.b),this.onScroll=this._onScroll.event,this._smoothScrollDuration=G,this._scheduleAtNextAnimationFrame=Z,this._state=new ScrollState(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(G){this._smoothScrollDuration=G}validateScrollPosition(G){return this._state.withScrollPosition(G)}getScrollDimensions(){return this._state}setScrollDimensions(G,Z){const ne=this._state.withScrollDimensions(G,Z);this._setState(ne,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(G){const Z=this._state.withScrollPosition(G);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(Z,!1)}setScrollPositionSmooth(G,Z){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(G);if(this._smoothScrolling){G={scrollLeft:void 0===G.scrollLeft?this._smoothScrolling.to.scrollLeft:G.scrollLeft,scrollTop:void 0===G.scrollTop?this._smoothScrolling.to.scrollTop:G.scrollTop};const ne=this._state.withScrollPosition(G);if(this._smoothScrolling.to.scrollLeft===ne.scrollLeft&&this._smoothScrolling.to.scrollTop===ne.scrollTop)return;let ie;ie=Z?new SmoothScrollingOperation(this._smoothScrolling.from,ne,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,ne,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=ie}else{const Z=this._state.withScrollPosition(G);this._smoothScrolling=SmoothScrollingOperation.start(this._state,Z,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const G=this._smoothScrolling.tick(),Z=this._state.withScrollPosition(G);return this._setState(Z,!0),this._smoothScrolling?G.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(G,Z){const ne=this._state;ne.equals(G)||(this._state=G,this._onScroll.fire(this._state.createScrollEvent(ne,Z)))}}class SmoothScrollingUpdate{constructor(G,Z,ne){this.scrollLeft=G,this.scrollTop=Z,this.isDone=ne}}function createEaseOutCubic(G,Z){const ne=Z-G;return function(Z){return G+ne*function easeOutCubic(G){return 1-function easeInCubic(G){return Math.pow(G,3)}(1-G)}(Z)}}class SmoothScrollingOperation{constructor(G,Z,ne,ie){this.from=G,this.to=Z,this.duration=ie,this.startTime=ne,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(G,Z,ne){if(Math.abs(G-Z)>2.5*ne){let ie,se;return G\s]+))?)*)\s*(\/?)\s*>/,me=/^<\s*\/\s*([\w:-]+)[^>]*>/,ge=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Ce=/^=0&&(Z.comment&&Z.comment(G.substring(4,ie)),G=G.substring(ie+3),ne=!1)}():Se.test(G)?parseEdge(me,parseEndTag):Ce.test(G)&&parseEdge(fe,parseStartTag);!function parseTagDecode(){if(!ne)return;var ie,se=G.indexOf("<");se>=0?(ie=G.substring(0,se),G=G.substring(se)):(ie=G,G="");Z.chars&&Z.chars(ie)}()}();var ie=G===ke;ke=G,ie&&(G="")}function parseEdge(Z,ie){var se=G.match(Z);se&&(G=G.substring(se[0].length),se[0].replace(Z,ie),ne=!1)}function parseStartTag(G,ne,fe,me){var Ce={},Se=se(ne),ke=ce.voids[Se]||!!me;fe.replace(ge,(function attrReplacer(G,Z,ne,se,ce){Ce[Z]=void 0===ne&&void 0===se&&void 0===ce?void 0:ie.decode(ne||se||ce||"")})),ke||Me.push(Se),Z.start&&Z.start(Se,Ce,ke)}function parseEndTag(G,ne){var ie,ce=0,fe=se(ne);if(fe)for(ce=Me.length-1;ce>=0&&Me[ce]!==fe;ce--);if(ce>=0){for(ie=Me.length-1;ie>=ce;ie--)Z.end&&Z.end(Me[ie]);Me.length=ce}}parseEndTag()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(G,Z,ne){var ie=G("he"),se=G("./lowercase"),ce=G("./attributes"),fe=G("./elements");Z.exports=function sanitizer(G,Z){var ne,me=Z||{};return reset(),{start:function start(G,Z,fe){var ge=se(G);if(ne.ignoring)return void ignore(ge);if(-1===(me.allowedTags||[]).indexOf(ge))return void ignore(ge);if(me.filter&&!me.filter({tag:ge,attrs:Z}))return void ignore(ge);out("<"),out(ge),Object.keys(Z).forEach((function parse(G){var ne=Z[G],fe=(me.allowedClasses||{})[ge]||[],Ce=(me.allowedAttributes||{})[ge]||[];Ce=Ce.concat((me.allowedAttributes||{})["*"]||[]);var Se=se(G);("class"===Se&&-1===Ce.indexOf(Se)?(ne=ne.split(" ").filter((function isValidClass(G){return fe&&-1!==fe.indexOf(G)})).join(" ").trim()).length:-1!==Ce.indexOf(Se)&&(!0!==ce.uris[Se]||function testUrl(G){var Z=G[0];if("#"===Z||"/"===Z)return!0;var ne=G.indexOf(":");if(-1===ne)return!0;var ie=G.indexOf("?");if(-1!==ie&&ne>ie)return!0;var se=G.indexOf("#");if(-1!==se&&ne>se)return!0;return me.allowedSchemes.some((function matches(Z){return 0===G.indexOf(Z+":")}))}(ne)))&&(out(" "),out(G),"string"==typeof ne&&(out('="'),out(ie.encode(ne)),out('"')))})),out(fe?"/>":">")},end:function end(G){var Z=se(G);-1!==(me.allowedTags||[]).indexOf(Z)&&!1===ne.ignoring?(out("")):unignore(Z)},chars:function chars(G){!1===ne.ignoring&&out(me.transformText?me.transformText(G):G)}};function out(Z){G.push(Z)}function ignore(G){fe.voids[G]||(!1===ne.ignoring?ne={ignoring:G,depth:1}:ne.ignoring===G&&ne.depth++)}function unignore(G){ne.ignoring===G&&--ne.depth<=0&&reset()}function reset(){ne={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(G,Z,ne){var ie={"&":"&","<":"<",">":">",'"':""","'":"'"},se={"&":"&","<":"<",">":">",""":'"',"'":"'"},ce=/(&|<|>|"|')/g,fe=/[&<>"']/g;function escapeHtmlChar(G){return ie[G]}function unescapeHtmlChar(G){return se[G]}function escapeHtml(G){return null==G?"":String(G).replace(fe,escapeHtmlChar)}function unescapeHtml(G){return null==G?"":String(G).replace(ce,unescapeHtmlChar)}escapeHtml.options=unescapeHtml.options={},Z.exports={encode:escapeHtml,escape:escapeHtml,decode:unescapeHtml,unescape:unescapeHtml,version:"1.0.0-browser"}},{}],10:[function(G,Z,ne){function asKey(G,Z){return G[Z]=!0,G}Z.exports=function toMap(G){return G.reduce(asKey,{})}},{}]},{},[4]);var Se,Me=Ce,ke=ne(1675),xe=ne(166),De=ne(27),Ie=ne(94),Re=ne(143),ze=ne(496),$e=ne(181),Je=ne(279),it=ne(703),ot=ne(19),at=ne(206);const st=null===(Se=window.trustedTypes)||void 0===Se?void 0:Se.createPolicy("insane",{createHTML:(G,Z)=>Me(G,Z)});function renderMarkdown(G,Z={},ne={}){var Ce;const Se=Object(se.a)(Z),_uriMassage=function(Z){let ne;try{ne=Object(ke.a)(decodeURIComponent(Z))}catch(G){}return ne?(ne=Object(xe.a)(ne,Z=>G.uris&&G.uris[Z]?Ie.a.revive(G.uris[Z]):void 0),encodeURIComponent(JSON.stringify(ne))):Z},_href=function(Z,ne){const ie=G.uris&&G.uris[Z];if(!ie)return Z;let se=Ie.a.revive(ie);return Ie.a.parse(Z).toString()===se.toString()?Z:ne?Re.a.asBrowserUri(se).toString(!0):(se.query&&(se=se.with({query:_uriMassage(se.query)})),se.toString())};let ct;const ut=new Promise(G=>ct=G),dt=new ge.Renderer;if(dt.image=(G,ne,ie)=>{let se=[],ce=[];if(G){({href:G,dimensions:se}=Object(fe.c)(G)),G=_href(G,!0);try{const ne=Ie.a.parse(G);Z.baseUrl&&ne.scheme===Re.c.file&&(G=Object($e.j)(Z.baseUrl,G).toString())}catch(G){}ce.push(`src="${G}"`)}return ie&&ce.push(`alt="${ie}"`),ne&&ce.push(`title="${ne}"`),se.length&&(ce=ce.concat(se)),""},dt.link=(ne,ie,se)=>{if(ne===se&&(se=Object(fe.d)(se)),ne=_href(ne,!1),Z.baseUrl){/^\w[\w\d+.-]*:/.test(ne)||(ne=Object($e.j)(Z.baseUrl,ne).toString())}return ie=Object(fe.d)(ie),!(ne=Object(fe.d)(ne))||ne.match(/^data:|javascript:/i)||ne.match(/^command:/i)&&!G.isTrusted||ne.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?se:`
    /g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${ie||ne}">${se}`},dt.paragraph=Z=>{if(G.supportThemeIcons){Z=Object(it.a)(Z).map(G=>"string"==typeof G?G:G.outerHTML).join("")}return`

    ${Z}

    `},Z.codeBlockRenderer&&(dt.code=(G,ne)=>{const se=Z.codeBlockRenderer(ne,G),ce=me.b.nextId(),fe=Promise.all([se,ut]).then(G=>{const Z=Se.querySelector(`div[data-code="${ce}"]`);Z&&ie.R(Z,G[0])}).catch(G=>{});return Z.asyncRenderCallback&&fe.then(Z.asyncRenderCallback),`
    ${Object(De.t)(G)}
    `}),Z.actionHandler){const G=Z.actionHandler.disposeables.add(new at.a(Se,"click")),ne=Z.actionHandler.disposeables.add(new at.a(Se,"auxclick"));Z.actionHandler.disposeables.add(ot.c.any(G.event,ne.event)(G=>{const ne=new Je.a(G);if(!ne.leftButton&&!ne.middleButton)return;let ie=ne.target;if("A"===ie.tagName||(ie=ie.parentElement,ie&&"A"===ie.tagName))try{const G=ie.dataset.href;G&&Z.actionHandler.callback(G,ne)}catch(G){Object(ce.e)(G)}finally{ne.preventDefault()}}))}ne.sanitizer=Z=>(G.isTrusted?Z.match(/^(]+>)|(<\/\s*span>)$/):void 0)?Z:"",ne.sanitize=!0,ne.silent=!0,ne.renderer=dt;let ht=null!==(Ce=G.value)&&void 0!==Ce?Ce:"";ht.length>1e5&&(ht=ht.substr(0,1e5)+"…"),G.supportThemeIcons&&(ht=Object(ze.b)(ht));const ft=ge.parse(ht,ne);if(Se.innerHTML=function sanitizeRenderedMarkdown(G,Z){var ne;const ie=function getInsaneOptions(G){const Z=[Re.c.http,Re.c.https,Re.c.mailto,Re.c.data,Re.c.file,Re.c.vscodeRemote,Re.c.vscodeRemoteResource];G.isTrusted&&Z.push(Re.c.command);return{allowedSchemes:Z,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"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter:Z=>"span"!==Z.tag||!G.isTrusted||(Z.attrs.style&&1===Object.keys(Z.attrs).length?!!Z.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!!Z.attrs.class&&!!Z.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/))}}(G);return null!==(ne=null==st?void 0:st.createHTML(Z,ie))&&void 0!==ne?ne:Me(Z,ie)}(G,ft),ct(),Z.asyncRenderCallback)for(const G of Se.getElementsByTagName("img")){const ne=ie.i(G,"load",()=>{ne.dispose(),Z.asyncRenderCallback()})}return Se}var ct,ut=ne(306),dt=ne(373),ht=ne(1674),ft=ne(10),_t=ne(35),__decorate=function(G,Z,ne,ie){var se,ce=arguments.length,fe=ce<3?Z:null===ie?ie=Object.getOwnPropertyDescriptor(Z,ne):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate(G,Z,ne,ie);else for(var me=G.length-1;me>=0;me--)(se=G[me])&&(fe=(ce<3?se(fe):ce>3?se(Z,ne,fe):se(Z,ne))||fe);return ce>3&&fe&&Object.defineProperty(Z,ne,fe),fe},__param=function(G,Z){return function(ne,ie){Z(ne,ie,G)}},__awaiter=function(G,Z,ne,ie){return new(ne||(ne=Promise))((function(se,ce){function fulfilled(G){try{step(ie.next(G))}catch(G){ce(G)}}function rejected(G){try{step(ie.throw(G))}catch(G){ce(G)}}function step(G){G.done?se(G.value):function adopt(G){return G instanceof ne?G:new ne((function(Z){Z(G)}))}(G.value).then(fulfilled,rejected)}step((ie=ie.apply(G,Z||[])).next())}))};let yt=class MarkdownRenderer{constructor(G,Z,ne){this._options=G,this._modeService=Z,this._openerService=ne,this._onDidRenderAsync=new ot.b,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(G,Z,ne){const ie=new ft.b;let se;return se=G?renderMarkdown(G,Object.assign(Object.assign({},this._getRenderOptions(G,ie)),Z),ne):document.createElement("span"),{element:se,dispose:()=>ie.dispose()}}_getRenderOptions(G,Z){return{baseUrl:this._options.baseUrl,codeBlockRenderer:(G,Z)=>__awaiter(this,void 0,void 0,(function*(){var ne,ie,se,ce;let fe;G?fe=this._modeService.getModeIdForLanguageName(G):this._options.editor&&(fe=null===(ne=this._options.editor.getModel())||void 0===ne?void 0:ne.getLanguageIdentifier().language),fe||(fe="plaintext"),this._modeService.triggerMode(fe);const me=null!==(ie=yield _t.F.getPromise(fe))&&void 0!==ie?ie:void 0,ge=document.createElement("span");ge.innerHTML=null!==(ce=null===(se=MarkdownRenderer._ttpTokenizer)||void 0===se?void 0:se.createHTML(Z,me))&&void 0!==ce?ce:Object(ht.b)(Z,me);let Ce=this._options.codeBlockFontFamily;return this._options.editor&&(Ce=this._options.editor.getOption(41).fontFamily),Ce&&(ge.style.fontFamily=Ce),ge})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:Z=>this._openerService.open(Z,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:G.isTrusted}).catch(ce.e),disposeables:Z}}}};yt._ttpTokenizer=null===(ct=window.trustedTypes)||void 0===ct?void 0:ct.createPolicy("tokenizeToString",{createHTML:(G,Z)=>Object(ht.b)(G,Z)}),yt=__decorate([__param(1,dt.a),__param(2,ut.a)],yt)},999:function(G,Z,ne){"use strict";ne.d(Z,"b",(function(){return stringDiff})),ne.d(Z,"a",(function(){return diff_LcsDiff}));class DiffChange{constructor(G,Z,ne,ie){this.originalStart=G,this.originalLength=Z,this.modifiedStart=ne,this.modifiedLength=ie}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var ie=ne(700);class StringDiffSequence{constructor(G){this.source=G}getElements(){const G=this.source,Z=new Int32Array(G.length);for(let ne=0,ie=G.length;ne0||this.m_modifiedCount>0)&&this.m_changes.push(new DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(G,Z){this.m_originalStart=Math.min(this.m_originalStart,G),this.m_modifiedStart=Math.min(this.m_modifiedStart,Z),this.m_originalCount++}AddModifiedElement(G,Z){this.m_originalStart=Math.min(this.m_originalStart,G),this.m_modifiedStart=Math.min(this.m_modifiedStart,Z),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class diff_LcsDiff{constructor(G,Z,ne=null){this.ContinueProcessingPredicate=ne,this._originalSequence=G,this._modifiedSequence=Z;const[ie,se,ce]=diff_LcsDiff._getElements(G),[fe,me,ge]=diff_LcsDiff._getElements(Z);this._hasStrings=ce&&ge,this._originalStringElements=ie,this._originalElementsOrHash=se,this._modifiedStringElements=fe,this._modifiedElementsOrHash=me,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(G){return G.length>0&&"string"==typeof G[0]}static _getElements(G){const Z=G.getElements();if(diff_LcsDiff._isStringArray(Z)){const G=new Int32Array(Z.length);for(let ne=0,se=Z.length;ne=G&&ie>=ne&&this.ElementsAreEqual(Z,ie);)Z--,ie--;if(G>Z||ne>ie){let se;return ne<=ie?(Debug.Assert(G===Z+1,"originalStart should only be one more than originalEnd"),se=[new DiffChange(G,0,ne,ie-ne+1)]):G<=Z?(Debug.Assert(ne===ie+1,"modifiedStart should only be one more than modifiedEnd"),se=[new DiffChange(G,Z-G+1,ne,0)]):(Debug.Assert(G===Z+1,"originalStart should only be one more than originalEnd"),Debug.Assert(ne===ie+1,"modifiedStart should only be one more than modifiedEnd"),se=[]),se}const ce=[0],fe=[0],me=this.ComputeRecursionPoint(G,Z,ne,ie,ce,fe,se),ge=ce[0],Ce=fe[0];if(null!==me)return me;if(!se[0]){const ce=this.ComputeDiffRecursive(G,ge,ne,Ce,se);let fe=[];return fe=se[0]?[new DiffChange(ge+1,Z-(ge+1)+1,Ce+1,ie-(Ce+1)+1)]:this.ComputeDiffRecursive(ge+1,Z,Ce+1,ie,se),this.ConcatenateChanges(ce,fe)}return[new DiffChange(G,Z-G+1,ne,ie-ne+1)]}WALKTRACE(G,Z,ne,ie,se,ce,fe,me,ge,Ce,Se,Me,ke,xe,De,Ie,Re,ze){let $e=null,Je=null,it=new diff_DiffChangeHelper,ot=Z,at=ne,st=ke[0]-Ie[0]-ie,ct=-1073741824,ut=this.m_forwardHistory.length-1;do{const Z=st+G;Z===ot||Z=0&&(G=(ge=this.m_forwardHistory[ut])[0],ot=1,at=ge.length-1)}while(--ut>=-1);if($e=it.getReverseChanges(),ze[0]){let G=ke[0]+1,Z=Ie[0]+1;if(null!==$e&&$e.length>0){const ne=$e[$e.length-1];G=Math.max(G,ne.getOriginalEnd()),Z=Math.max(Z,ne.getModifiedEnd())}Je=[new DiffChange(G,Me-G+1,Z,De-Z+1)]}else{it=new diff_DiffChangeHelper,ot=ce,at=fe,st=ke[0]-Ie[0]-me,ct=1073741824,ut=Re?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const G=st+se;G===ot||G=Ce[G+1]?(xe=(Se=Ce[G+1]-1)-st-me,Se>ct&&it.MarkNextChange(),ct=Se+1,it.AddOriginalElement(Se+1,xe+1),st=G+1-se):(xe=(Se=Ce[G-1])-st-me,Se>ct&&it.MarkNextChange(),ct=Se,it.AddModifiedElement(Se+1,xe+1),st=G-1-se),ut>=0&&(se=(Ce=this.m_reverseHistory[ut])[0],ot=1,at=Ce.length-1)}while(--ut>=-1);Je=it.getChanges()}return this.ConcatenateChanges($e,Je)}ComputeRecursionPoint(G,Z,ne,ie,se,ce,fe){let me=0,ge=0,Ce=0,Se=0,Me=0,ke=0;G--,ne--,se[0]=0,ce[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const xe=Z-G+(ie-ne),De=xe+1,Ie=new Int32Array(De),Re=new Int32Array(De),ze=ie-ne,$e=Z-G,Je=G-ne,it=Z-ie,ot=($e-ze)%2==0;Ie[ze]=G,Re[$e]=Z,fe[0]=!1;for(let at=1;at<=xe/2+1;at++){let xe=0,st=0;Ce=this.ClipDiagonalBound(ze-at,at,ze,De),Se=this.ClipDiagonalBound(ze+at,at,ze,De);for(let G=Ce;G<=Se;G+=2){me=G===Ce||Gxe+st&&(xe=me,st=ge),!ot&&Math.abs(G-$e)<=at-1&&me>=Re[G])return se[0]=me,ce[0]=ge,ne<=Re[G]&&at<=1448?this.WALKTRACE(ze,Ce,Se,Je,$e,Me,ke,it,Ie,Re,me,Z,se,ge,ie,ce,ot,fe):null}const ct=(xe-G+(st-ne)-at)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(xe,ct))return fe[0]=!0,se[0]=xe,ce[0]=st,ct>0&&at<=1448?this.WALKTRACE(ze,Ce,Se,Je,$e,Me,ke,it,Ie,Re,me,Z,se,ge,ie,ce,ot,fe):(G++,ne++,[new DiffChange(G,Z-G+1,ne,ie-ne+1)]);Me=this.ClipDiagonalBound($e-at,at,$e,De),ke=this.ClipDiagonalBound($e+at,at,$e,De);for(let xe=Me;xe<=ke;xe+=2){me=xe===Me||xe=Re[xe+1]?Re[xe+1]-1:Re[xe-1],ge=me-(xe-$e)-it;const De=me;for(;me>G&&ge>ne&&this.ElementsAreEqual(me,ge);)me--,ge--;if(Re[xe]=me,ot&&Math.abs(xe-ze)<=at&&me<=Ie[xe])return se[0]=me,ce[0]=ge,De>=Ie[xe]&&at<=1448?this.WALKTRACE(ze,Ce,Se,Je,$e,Me,ke,it,Ie,Re,me,Z,se,ge,ie,ce,ot,fe):null}if(at<=1447){let G=new Int32Array(Se-Ce+2);G[0]=ze-Ce+1,MyArray.Copy2(Ie,Ce,G,1,Se-Ce+1),this.m_forwardHistory.push(G),G=new Int32Array(ke-Me+2),G[0]=$e-Me+1,MyArray.Copy2(Re,Me,G,1,ke-Me+1),this.m_reverseHistory.push(G)}}return this.WALKTRACE(ze,Ce,Se,Je,$e,Me,ke,it,Ie,Re,me,Z,se,ge,ie,ce,ot,fe)}PrettifyChanges(G){for(let Z=0;Z0,fe=ne.modifiedLength>0;for(;ne.originalStart+ne.originalLength=0;Z--){const ne=G[Z];let ie=0,se=0;if(Z>0){const ne=G[Z-1];ie=ne.originalStart+ne.originalLength,se=ne.modifiedStart+ne.modifiedLength}const ce=ne.originalLength>0,fe=ne.modifiedLength>0;let me=0,ge=this._boundaryScore(ne.originalStart,ne.originalLength,ne.modifiedStart,ne.modifiedLength);for(let G=1;;G++){const Z=ne.originalStart-G,Ce=ne.modifiedStart-G;if(Zge&&(ge=Se,me=G)}ne.originalStart-=me,ne.modifiedStart-=me;const Ce=[null];Z>0&&this.ChangesOverlap(G[Z-1],G[Z],Ce)&&(G[Z-1]=Ce[0],G.splice(Z,1),Z++)}if(this._hasStrings)for(let Z=1,ne=G.length;Z0&&ne>me&&(me=ne,ge=Z,Ce=G)}return me>0?[ge,Ce]:null}_contiguousSequenceScore(G,Z,ne){let ie=0;for(let se=0;se=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[G])}_OriginalRegionIsBoundary(G,Z){if(this._OriginalIsBoundary(G)||this._OriginalIsBoundary(G-1))return!0;if(Z>0){const ne=G+Z;if(this._OriginalIsBoundary(ne-1)||this._OriginalIsBoundary(ne))return!0}return!1}_ModifiedIsBoundary(G){return G<=0||G>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[G])}_ModifiedRegionIsBoundary(G,Z){if(this._ModifiedIsBoundary(G)||this._ModifiedIsBoundary(G-1))return!0;if(Z>0){const ne=G+Z;if(this._ModifiedIsBoundary(ne-1)||this._ModifiedIsBoundary(ne))return!0}return!1}_boundaryScore(G,Z,ne,ie){return(this._OriginalRegionIsBoundary(G,Z)?1:0)+(this._ModifiedRegionIsBoundary(ne,ie)?1:0)}ConcatenateChanges(G,Z){let ne=[];if(0===G.length||0===Z.length)return Z.length>0?Z:G;if(this.ChangesOverlap(G[G.length-1],Z[0],ne)){const ie=new Array(G.length+Z.length-1);return MyArray.Copy(G,0,ie,0,G.length-1),ie[G.length-1]=ne[0],MyArray.Copy(Z,1,ie,G.length,Z.length-1),ie}{const ne=new Array(G.length+Z.length);return MyArray.Copy(G,0,ne,0,G.length),MyArray.Copy(Z,0,ne,G.length,Z.length),ne}}ChangesOverlap(G,Z,ne){if(Debug.Assert(G.originalStart<=Z.originalStart,"Left change is not less than or equal to right change"),Debug.Assert(G.modifiedStart<=Z.modifiedStart,"Left change is not less than or equal to right change"),G.originalStart+G.originalLength>=Z.originalStart||G.modifiedStart+G.modifiedLength>=Z.modifiedStart){const ie=G.originalStart;let se=G.originalLength;const ce=G.modifiedStart;let fe=G.modifiedLength;return G.originalStart+G.originalLength>=Z.originalStart&&(se=Z.originalStart+Z.originalLength-G.originalStart),G.modifiedStart+G.modifiedLength>=Z.modifiedStart&&(fe=Z.modifiedStart+Z.modifiedLength-G.modifiedStart),ne[0]=new DiffChange(ie,se,ce,fe),!0}return ne[0]=null,!1}ClipDiagonalBound(G,Z,ne,ie){if(G>=0&&G